OGG rep进程启动遇到sys.dbms_streams_adm_utl_invok.SET_FOO_TRIGGER_SESSION_CONTXT (fire=>TRUE);

GGSCI (jjtest) 2> view report repzp


***********************************************************************
                 Oracle GoldenGate Delivery for Oracle
     Version 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100 
   Linux, x64, 64bit (optimized), Oracle 10g on Oct  7 2011 04:39:32
 
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.


                    Starting at 2015-05-16 09:06:44
***********************************************************************

Operating System Version:
Linux
Version #1 SMP Wed Nov 28 21:22:00 EST 2012, Release 2.6.18-348.el5
Node: jjtest
Machine: x86_64
                         soft limit   hard limit
Address Space Size   :    unlimited    unlimited
Heap Size            :    unlimited    unlimited
File Size            :    unlimited    unlimited
CPU Time             :    unlimited    unlimited

Process id: 4585

Description: 

***********************************************************************
**            Running with the following parameters                  **
***********************************************************************
replicat repzp
setenv ( NLS_LANG =  " AMERICAN_AMERICA.ZHS16GBK " )
Set environment variable (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK)

assumetargetdefs

userid goldengate, password ******

DBOPTIONS DEFERREFCONST, SUPPRESSTRIGGERS

Source Context :
  SourceModule            : [ggdb.ora.db]
  SourceID                : [/scratch/pradshar/view_storage/pradshar_bugdbrh40_12927937/oggcore/OpenSys/src/gglib/ggdbora/dboci.c]
  SourceFunction          : [suppressTriggers]
  SourceLine              : [5028]
  ThreadBacktrace         : [9] elements
                          : [/u02/ggs/replicat(CMessageContext::AddThreadContext()+0x26) [0x5f1e56]]
                          : [/u02/ggs/replicat(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x7b2) [0x5e88f2]]
                          : [/u02/ggs/replicat(_MSG_ERR_DB_GENERIC_FAILURE(CSourceContext*, char const*, CMessageFactory::MessageDisposition)+0x92) [0x5ad612]]
                          : [/u02/ggs/replicat [0x8b37a6]]
                          : [/u02/ggs/replicat(odbc_param(char*, char*)+0xe65) [0x553535]]
                          : [/u02/ggs/replicat [0x50075c]]
                          : [/u02/ggs/replicat(main+0x1d9) [0x507399]]
                          : [/lib64/libc.so.6(__libc_start_main+0xf4) [0x353f21d9c4]]
                          : [/u02/ggs/replicat(__gxx_personality_v0+0x1e2) [0x4e3ffa]]

2015-05-16 09:06:45  ERROR   OGG-00868  ORA-06550: line 1, column 7:
PLS-00201: identifier 'SYS.DBMS_STREAMS_ADM_UTL_INVOK' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored, SQL BEGIN sys.dbms_streams_adm_utl_invok.SET_FOO_TRIGGER_SESSION_CONTXT (fire=>TRUE); END;.

2015-05-16 09:06:45  ERROR   OGG-01668  PROCESS ABENDING.



在mos上搜到如下的文章:OGG Replicat Fails: "PLS-00201: identifier 'SYS.DBMS_XSTREAM_GG' must be declared" (Doc ID 1424951.1)

我这是10.2.0.5的db,不是11.2的db,于是就用下面的:

BEGIN 
 DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE( 
 grantee => 'GOLDENGATE', 
 grant_privileges => true); 
 END; 
 /

 

[oracle@jjtest ggs]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.5.0 - Production on Sat May 16 09:13:06 2015

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> SELECT * FROM dba_streams_administrator; 

no rows selected

SQL> BEGIN 
  2   DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE( 
  3   grantee => 'GOLDENGATE', 
  4   grant_privileges => true); 
  5   END; 
  6   /

PL/SQL procedure successfully completed.

SQL>  SELECT * FROM dba_streams_administrator;

USERNAME                       LOC ACC
------------------------------ --- ---
GOLDENGATE                     YES YES

SQL> 


 

REP进程顺利启动。
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值