💡 데이터 사전을 select 할 수 있는 권한을 가진 유져가 있어야함
SYS @ ORA19 > create user maxguage
2 identified by maxguage1234;
사용자가 생성되었습니다.
SYS @ ORA19 > grant connect to maxguage;
권한이 부여되었습니다.
SYS @ ORA19 > connect maxguage/maxguage1234
연결되었습니다.
MAXGUAGE @ ORA19 >
grant select any table to maxguage;
SYS @ ORA19 > connect maxguage/maxguage1234
MAXGUAGE @ ORA19 > select count(*)
2 from dba_tables;
from dba_tables
*
2행에 오류:
ORA-00942: 테이블 또는 뷰가 존재하지 않습니다
💡 위의 데이터 사전을 볼 수 없는 이유는 오라클 파라미터
O7_DICTIONARY_ACCESSIBILITY
가 false로 되어있기 때문
--> 이 파라미터를 true로 설정해야 볼 수 있음
💡 11g 버젼까지만 있었던 파라미터임(19c는 없음)
--> 다음과 같이 select_catalog_role
이라는 권한을 부여해야함
SYS @ ORA19 > grant select_catalog_role to maxguage;
권한이 부여되었습니다.
SYS @ ORA19 > connect maxguage/maxguage1234
연결되었습니다.
MAXGUAGE @ ORA19 >
MAXGUAGE @ ORA19 > select count(*) from dba_tables;
COUNT(*)
----------
2193