Beruflich Dokumente
Kultur Dokumente
CREATE_FILE_DEST='/u01/app/oracle/oradata/orcl/pdb2';
FILE_NAME_CONVERT=('/u01/app/oracle/oradata/orcl/pdbseed/','/u01/app/oracle/oradata
/orcl/pdb3/');
FILE_NAME_CONVERT=('/u01/app/oracle/oradata/orcl/pdb2/','/u01/app/oracle/oradata/cd
b1/pdb2/');
Create a user in the remote database for use with the database link. In this case,
we will use a common user in the remote PDB.
Check the remote CDB is in local undo mode and archivelog mode.
SELECT log_mode
FROM v$database;
Switch to the local server and create a "tnsnames.ora" entry pointing to the remote
database for use in the USING clause of the database link.
orcl=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = my-server.my-domain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
DESC user_tables@clone_link
SHUTDOWN IMMEDIATE;
STARTUP OPEN READ ONLY;
BEGIN
DBMS_PDB.DESCRIBE(
pdb_descr_file => '/tmp/db12c.xml');
END;
/
export ORACLE_SID=cdb1
sqlplus / as sysdba
@$ORACLE_HOME/rdbms/admin/noncdb_to_pdb.sql
========================================================================
NON-CDB to PDB
Remote: orcl
Local: cdb1
ORCL
Create user
grant prv
LOcal
cdb1
create a db link