The contents are of my own testing and deployments. Not guaranteed that these might work in your environment. Please test before usage.
Summary: In this session, I will teach you How to create the CDB(Container database) and PDB(pluggable database) in oracle database.
Step1:Login to the server
Note :We are go will create the CDB using DBCA method in oracle database
Step2:Goto the home location or set the environment
Step3:You can choose the create database option and press next
Step 4:You can choose the container name and pdb name,password as well
Step5:Press next and wait until its complete
Step6:Read the summary carefully and press finish
Step7:Its completed CDB and PDB created.
How to create the PDB in CDB in the same container?
Login to the server
Make the directory to collect the output from that old pdb seed location see below
Step2:
Make the directory as below mentioned.
mkdir -p /u01/app/oracle/oradata/cdbdev/pdb2
Step3:
Connect the sqlplus / as sysdba
Provide the below command
SQL> CREATE PLUGGABLE DATABASE pdb2 ADMIN USER pdb_adm IDENTIFIED BY Password1 FILE_NAME_CONVERT=('/u01/app/oracle/oradata/cdbdev/pdbseed/','u01/app/oracle/oradata/cdbdev/pdb2');
Pluggable database created.
Step4:Open the PDB2 which we are created now
SQL> alter pluggable database PDB2 open;
Pluggable database altered.
Step5:PDB has been open;
0 Comments