这个错误是执行复制的这个DBLINK连接用户没有直接授权create pluggable database 导致,即使是DBA角色也是如此。
检查源端NONCDB库中SYSTEM 的权限:
SQL> select privilege from dba_sys_privs where grantee='SYSTEM';
PRIVILEGE
----------------------------------------
GLOBAL QUERY REWRITE
CREATE TABLE
DEQUEUE ANY QUEUE
ENQUEUE ANY QUEUE
SELECT ANY TABLE
MANAGE ANY QUEUE
UNLIMITED TABLESPACE
CREATE MATERIALIZED VIEW
SQL> desc session_privs;
Name Null? Type
----------------------------------------- -------- ----------------------------
PRIVILEGE NOT NULL VARCHAR2(40)
SQL> select * from session_privs where privilege like '%PLUGG%';