SQL> show con_name
CON_NAME
------------------------------
CDB$ROOT
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 ORCLPDB READ WRITE NO
SQL> select count(1) from cdb_tables;
COUNT(1)
----------
4363
SQL>
컨테이너를 변경하면 변경된 컨테이너에 관련된 테이블만 조회가 되므로 카운트 개수가 다르다.
SQL>
SQL> alter session set container=orclpdb;
Session altered.
SQL> show con_name
CON_NAME
------------------------------
ORCLPDB
SQL>
SQL> select count(1) from cdb_tables;
COUNT(1)
----------
2184
SQL>
'Database > Oracle' 카테고리의 다른 글
24 - [Oracle 19C] To query temps files (0) | 2023.11.17 |
---|---|
23 - [Oracle 19C] To query data files (0) | 2023.11.17 |
21 - [Oracle 19C] Dynamic Performance Views(v$ views) (0) | 2023.11.17 |
20 - [Oracle 19C] Common users VS local users (0) | 2023.11.17 |
19 - [Oracle 19C] Oracle Data Dictionary (0) | 2023.11.16 |