- Login as sysdba
-- system privileges with admin option.
SQL> show con_name
CON_NAME
------------------------------
CDB$ROOT
SQL> alter session set container=orclpdb;
Session altered.
SQL> create user test20 identified by test20;
User created.
SQL> grant connect to test20 with admin option;
Grant succeeded.
- Login as test20
SQL> conn test20/test20@orclpdb
Connected.
SQL> show user
USER is "TEST20"
SQL> select * from session_privs;
PRIVILEGE
----------------------------------------
CREATE SESSION
SET CONTAINER
SQL> grant connect to hr;
Grant succeeded.
- Revoke
revoke connect from hr;
'Database > Oracle' 카테고리의 다른 글
74 - [Oracle 19C] Password Parameters (0) | 2023.12.07 |
---|---|
73 - [Oracle 19C] User profile (0) | 2023.12.07 |
71 - [Oracle 19C] Role granted another role (0) | 2023.12.06 |
70 - [Oracle 19C] to Create pluggable admin (0) | 2023.12.06 |
69 - [Oracle 19C] to Create SYS user - example (0) | 2023.12.06 |