Dbms_goldengate_auth.grant_admin_privilege Fails With ORA-06512: At "SYS.DBMS_XSTREAM_ADM_INTERNAL" (文档 ID 1956932.1)
Oracle GoldenGate - Version 11.2.1.0.14 and later
Information in this document applies to any platform.
运行dbms_goldengate_auth.grant_admin_privilege失败
-------------------------------------------------
BEGIN dbms_goldengate_auth.grant_admin_privilege('ogg'); END;
*
ERROR at line 1:
ORA-01952: system privileges not granted to 'OGG'
ORA-06512: at "SYS.DBMS_XSTREAM_ADM_INTERNAL", line 2882
ORA-06512: at "SYS.DBMS_GOLDENGATE_AUTH", line 24
ORA-06512: at line 1
--------------------------------------------------
This is a permissions issue documented on
Bug 20023340 - ORA-1952 ON DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE
解决方案:
--------------------------------
connect / as sysdba
drop table sys.gpprv_sav;
create table sys.gpprv_sav as select * from sys.goldengate$_privileges where username = 'OGG_USER';
delete from sys.goldengate$_privileges where username = 'OGG_USER';
commit;
Then re-run
SQL> exec dbms_goldengate_auth.grant_admin_privilege('OGG_USER');