oracle 12c使用dblink克隆pdb
Multitenant : Hot Clone a Remote PDB or Non-CDB in Oracle Database 12c Release 2 (12.2)
Multitenant : Clone a Remote PDB or Non-CDB in Oracle Database 12c (12.1.0.2)
on remote source CDB:
SQL> alter session set container=CRMDB;
Session altered.
SQL> create user dblk identified by welcome123;
User created.
SQL> grant create session,create pluggable database to dblk;
Grant succeeded.
SQL> alter pluggable database CRMDB close;
Pluggable database altered.
SQL> alter pluggable database CRMDB open read only;
Pluggable database altered.
on local destination CDB:
REMTPDB=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.22.140)(PORT=1523))
(CONNECT_DATA=
(SERVICE_NAME=crmdb.test.com)
)
)
SQL> create database link clone_link connect to dblk identified by welcome123 using 'REMTPDB';
Database link created.
SQL> desc SIEBEL.user_tables@clone_link;
...
SQL> create pluggable database CRMIP from CRMDB@clone_link; ---- CRMDB is the name of destination PDB
Pluggable database created.
SQL> select name,open_mode from v$pdbs where name='CRMIP';
NAME OPEN_MODE
------------------------------ ----------
CRMIP MOUNTED
SQL> alter pluggable database CRMIP open;
Pluggable database altered.
SQL> select name,open_mode from v$pdbs where name='CRMIP';
NAME OPEN_MODE
------------------------------ ----------
CRMIP READ WRITE
check whether role and privs are cloned to PDB:
SQL> select * from user_role_privs where username='SIEBEL';
USERNAME GRANTED_ROLE ADM DEL DEF OS_ COM
--------------------------------------------------------------------------------
SIEBEL DBA NO NO NO NO NO
SIEBEL SSE_ROLE NO NO YES NO NO
SIEBEL TBLO_ROLE NO NO YES NO NO
Multitenant : Clone a Remote PDB or Non-CDB in Oracle Database 12c (12.1.0.2)
on remote source CDB:
SQL> alter session set container=CRMDB;
Session altered.
SQL> create user dblk identified by welcome123;
User created.
SQL> grant create session,create pluggable database to dblk;
Grant succeeded.
SQL> alter pluggable database CRMDB close;
Pluggable database altered.
SQL> alter pluggable database CRMDB open read only;
Pluggable database altered.
on local destination CDB:
REMTPDB=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.22.140)(PORT=1523))
(CONNECT_DATA=
(SERVICE_NAME=crmdb.test.com)
)
)
SQL> create database link clone_link connect to dblk identified by welcome123 using 'REMTPDB';
Database link created.
SQL> desc SIEBEL.user_tables@clone_link;
...
SQL> create pluggable database CRMIP from CRMDB@clone_link; ---- CRMDB is the name of destination PDB
Pluggable database created.
SQL> select name,open_mode from v$pdbs where name='CRMIP';
NAME OPEN_MODE
------------------------------ ----------
CRMIP MOUNTED
SQL> alter pluggable database CRMIP open;
Pluggable database altered.
SQL> select name,open_mode from v$pdbs where name='CRMIP';
NAME OPEN_MODE
------------------------------ ----------
CRMIP READ WRITE
check whether role and privs are cloned to PDB:
SQL> select * from user_role_privs where username='SIEBEL';
USERNAME GRANTED_ROLE ADM DEL DEF OS_ COM
--------------------------------------------------------------------------------
SIEBEL DBA NO NO NO NO NO
SIEBEL SSE_ROLE NO NO YES NO NO
SIEBEL TBLO_ROLE NO NO YES NO NO
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29135257/viewspace-2132796/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 建立、克隆pdb---oracle 12c 學習(1)Oracle
- Oracle 12C 新特性之 PDB熱克隆(本地克隆、遠端異機克隆)Oracle
- Oracle 12C -- 使用seed PDB建立新的pdbOracle
- Oracle 建立PDB-本地克隆Oracle
- Oracle 建立PDB-遠端克隆Oracle
- Oracle 12c Relocate PDBOracle
- Oracle 12c多租戶特性詳解:PDB 的建立、克隆與維護Oracle
- Oracle 12c PDB淺析Oracle
- Oracle 12c 使用Non-CDB來建立PDBOracle
- Oracle 12C 建立使用者連線pdbOracle
- Oracle 11g使用dblink與12c使用dblink的一點區別Oracle
- 【BUILD_ORACLE】使用Oracle資料泵線上不停機克隆/遷移PDBUIOracle
- Oracle 12c PDB遷移(一)Oracle
- Oracle 12c系列(六)|Relocate a PDBOracle
- Oracle 12c系列(五)|PDB RefreshOracle
- oracle 12c rman備份pdbOracle
- Oracle 12c PDB淺析(二)Oracle
- Oracle 12C RMAN transport tablespace from PDB of RAC CDB to remote PDBOracleREM
- ORACLE 12C pdb受限解決思路Oracle
- Oracle 12c系列(二)|PDB的建立Oracle
- ORACLE 12C新特性——CDB與PDBOracle
- PDB克隆遷移轉換
- oracle 12c PDB隨CDB啟動和連結PDB的方式Oracle
- Oracle 12c 多租戶 手工建立 pdb 與 手工刪除 pdbOracle
- Oracle 12C RMAN Duplicating Tablespaces Within a PDBOracle
- Oracle 12C RMAN Duplicating the PDB to remote CDBOracleREM
- Oracle 12c CDB&PDB 基本維護Oracle
- Oracle 12c 多租戶在 CDB 中 Plug A PDB,Unplugging A PDBOracle
- Oracle 12c RMAN Cross-Platform Transport of a Closed PDBOracleROSPlatform
- ORACLE 12C PDB 維護基礎介紹Oracle
- Oracle 12c PDB中碰到的DG問題Oracle
- Oracle 12c 手工建立 和 刪除 PDB 示例Oracle
- 12c 資料泵克隆使用者
- 12c pdb基本操作
- Oracle 12c 多租戶 CDB 與 PDB 備份Oracle
- Oracle 12c PDB的資料備份恢復Oracle
- oracle 12c pdb測試:建立、開關、刪除Oracle
- 使用12c PDB整合環境的總結