STEPS :
Overview
Prerequisites
Environment
Shutdown NON-CDB (TESTDB )
Open Non-CDB in read only (this is for consistency)
Run DBMS_PDB.DESCRIBE to create an XML file
Shutdown the Non-CDB
Connect to Target
Check whether Non-CDB (TESTDB ) can be plugged into CDB(TESTDBPDB)
Create target directory for datafiles
Plug-in Non-CDB (TESTDB ) as PDB (TESTDBPDB) into ORADB
Verify newly created PDB TESTDB on ORADB
Run noncdb_to_pdb.sql script on new PDB (ORADBPDB)
Verify table PDB_PLUG_IN_VIOLATIONS
Overview
Prerequisites
Make sure One container database already exists.
Environment
Shutdown NON-CDB (TESTDB) and create a test table for validation.
Open Non-CDB in read only (this is for consistency)
Run DBMS_PDB.DESCRIBE to create an XML file
Shutdown the Non-CDB(TESTDB)
Now connect to the container database, where it needs to be plugged.
On Target Side :
Connect to the target Container Database (ORADB)
Check whether non-cdb (TESTDB) can be plugged
into CDB(ORADB)
Create target directory for datafiles
In case you want to restore data files on different location then create a new directory structure to restore the datafile and use SOURCE_FILE_NAME_CONVERT with COPY option. This option allows us to specify a new location for the datafiles
Plug-in Non-CDB (TESTDB) as PDB (TESTDBPDB)
into ORADB
The NOCOPY option keeps the original location of the datafiles as the database is Plugged-In
I am plugging the database in to a CDB on the same server with NOCOPY clause which will use the same datafile location witout copying the datafile.
Verify newly created PDB TESTDBPDB on ORADB
Run noncdb_to_pdb.sql script on new PDB
(TESTDBPDB)
Verify table PDB_PLUG_IN_VIOLATIONS
Check out the table PDB_PLUG_IN_VIOLATIONS in order to see if there are error related to the plug in process,
but read first the note "OPTION WARNING Database option mismatch:
PDB installed version NULL" in PDB_PLUG_IN_VIOLATIONS (Doc ID 2020172.1)"
I hope this article helped you. Your suggestions/feedback are most welcome.
Keep learning... Have a great day!!!
Thank you,
Amit Pawar
Email: amitpawar.dba@gmail.com
WhatsApp No: +91-8454841011
No comments:
Post a Comment