Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CBD or PDB that is the question

cptkirkhMay 28 2016 — edited May 31 2016

Ok so I am trying to get up to speed on 12c and CDB and PDB.  I have installed 12.1.0.2 on Oracle Linux 7.  I have it up and running.  When i connect via the following connection i get these queries and i believe this is my CDB.

orclsys@//10.0.10.102:1521/orcl.localdomain

when i run select cdb from v$database I get

CDB

YES

When i run SELECT NAME, CON_ID, DBID, CON_UID, GUID FROM V$CONTAINERS ORDER BY CON_ID;

CDB$ROOT

PDB$SEED

PDBORCL

and if i run select * from dba_data_files

I get

/u01/app/oracle/oradata/orcl/users01.dbf

/u01/app/oracle/oradata/orcl/undotbs01.dbf

/u01/app/oracle/oradata/orcl/system01.dbf

/u01/app/oracle/oradata/orcl/sysaux01.dbf

Now this makes me think I am connected to my CDB.

Well if i connect to

pdborclsys@//10.0.10.102:1521/pdborcl.localdomain

when i run select cdb from v$database I get

CDB

YES

and then i run SELECT NAME, CON_ID, DBID, CON_UID, GUID FROM V$CONTAINERS ORDER BY CON_ID;

I get

PDBORCL

Then when i run select * from dba_data_files

I get

/u01/app/oracle/oradata/orcl/pdborcl/example01.dbf

/u01/app/oracle/oradata/orcl/pdborcl/SAMPLE_SCHEMA_users01.dbf

/u01/app/oracle/oradata/orcl/pdborcl/sysaux01.dbf

/u01/app/oracle/oradata/orcl/pdborcl/system01.dbf

Ok so I get separate datafiles, separate queires except when i run the chekc to see if it is cdb.   What gives?  Thanks for your help.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2016
Added on May 28 2016
5 comments
1,694 views