0% found this document useful (0 votes)
3 views1 page

Noncdb To CDB

The document outlines steps for managing a non-CDB and a CDB in Oracle, including checking compatibility for plugging a non-CDB into a CDB. It includes commands for describing the non-CDB, creating a pluggable database (PDB), and checking for plugin violations. The document also details operations for opening and closing the PDB and saving its state.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Noncdb To CDB

The document outlines steps for managing a non-CDB and a CDB in Oracle, including checking compatibility for plugging a non-CDB into a CDB. It includes commands for describing the non-CDB, creating a pluggable database (PDB), and checking for plugin violations. The document also details operations for opening and closing the PDB and saving its state.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

-NONCDB:

exec dbms_pdb.describe('D:\data\non_cdb.xml');

-CDB
SET SERVEROUTPUT ON;

BEGIN
IF dbms_pdb.check_plug_compatibility('D:\data\non_cdb.xml', 'essai') THEN
dbms_output.put_line('PDB compatible? ==> Yes');
ELSE
dbms_output.put_line('PDB compatible? ==> No');
END IF;
END;
/
select type, message
from pdb_plug_in_violations
where name='essai' and status<>'RESOLVED';

-NONCDB:
shutdown immediate
startup mount
alter database open read only;
exec dbms_pdb.describe('D:\data\non_cdb.xml');
shutdown immediate

-CDB:
CREATE PLUGGABLE DATABASE essai USING 'D:\data\non_cdb.xml' NOCOPY tempfile reuse;

alter pluggable database essai OPEN;


alter session set container=essai;
@?/rdbms/admin/noncdb_to_pdb.sql
alter pluggable database essai close;
alter pluggable database essai open;

select type, message


from pdb_plug_in_violations
where name='essai' and status<>'RESOLVED';

select open_mode, restricted from v$pdbs;


alter pluggable database essai save state;
SHOW PDBS;

You might also like