Hi All
I just created a 12c container database using dbca
SQL> select CON_ID, OPEN_MODE, NAME from v$containers;
---------- ---------- ---------- ------------------------------
| 1 READ WRITE CDB$ROOT |
| 2 READ ONLY PDB$SEED |
But when I use the cdb_data_files view, it shows datafiles from only the CDB$ROOT while changing the session to PDB$SEED, the datafiles are visible in dba_data_files.
My question is why all these are not visible in cdb_data_files view ?
SQL*Plus: Release 12.1.0.2.0 Production on Sun Nov 9 16:50:27 2014
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> select FILE_NAME from cdb_data_files;
FILE_NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/cdb12ct/system01.dbf
/u01/app/oracle/oradata/cdb12ct/sysaux01.dbf
/u01/app/oracle/oradata/cdb12ct/undotbs01.dbf
/u01/app/oracle/oradata/cdb12ct/users01.dbf
SQL> alter session set container=PDB$SEED;
Session altered.
SQL> select FILE_NAME from dba_data_files;
FILE_NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/cdb12ct/pdbseed/system01.dbf
/u01/app/oracle/oradata/cdb12ct/pdbseed/sysaux01.dbf