Task
|
Example
|
Reference
|
---|---|---|
Create a user
|
CREATE USER CALVIN IDENTIFIED BY P33W1T56;
|
|
Delete a user
|
DROP USER CALVIN;
|
|
Change a password
|
ALTER USER CALVIN IDENTIFIED BY TW1G44RT;
|
|
Create a role
|
CREATE ROLE GUEST_USERS;
|
|
Delete a role
|
DROP ROLE GUEST_USERS;
|
|
Grant privileges to a user or role
|
GRANT INSERT, DELETE ON TEST_TABLE TO GUEST_USERS;
|
|
Assign a role to a user
|
GRANT GUEST_USERS TO CALVIN;
|
|
Revoke privileges from a user or role
|
REVOKE INSERT ON TEST_TABLE FROM GUEST_USERS;
|
|
Remove a role from a user
|
REVOKE GUEST_USERS FROM CALVIN;
|
|
Assign administrator privileges to a user
|
GRANT SYS_ADMIN_ROLE TO CALVIN;
|
|
Assign DDL privileges to a user
|
GRANT DDL TO CALVIN
|
|
Revoke DDL privileges from a user
|
REVOKE DDL FROM CALVIN;
|