Wednesday, September 9, 2015

VIMAL :CREATION OF CONTAINER DATABASE

Creation of a CDB

The CREATE DATABASE ... ENABLE PLUGGABLE DATABASE SQL statement creates a new CDB. If you do not specify the ENABLE PLUGGABLE DATABASE clause, then the newly created database is a non-CDB and can never contain PDBs.

Along with the root (CDB$ROOT), Oracle Database automatically creates a seed PDB (PDB$SEED). The following graphic shows a newly created CDB:

Determining Whether a Database Is a CDB

SQL> SELECT NAME, CDB, CON_ID FROM V$DATABASE;


Creating a pluggable Database

SQL> CREATE PLUGGABLE DATABASE hrpdb  ADMIN USER dba1 IDENTIFIED BY password

If you clone from a remote CDB, then you must use a database link.

The following SQL statement clones a PDB named salespdb from the plugged-in PDB named hrpdb:

SQL > CREATE PLUGGABLE DATABASE salespdb FROM hrpdb

1 comment:

  1. Casino. Atlantic City - MapyRO
    This map shows 광명 출장샵 the 통영 출장마사지 casinos, and other gaming facilities located along the beach. 창원 출장마사지 Island Road, 제천 출장샵 Atlantic City, NJ 김제 출장안마 08401, United States.

    ReplyDelete