Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01031: insufficient privileges when DBMS_STREAMS_ADM.ADD_MESSAGE_RULE

SadockDec 6 2013 — edited Dec 9 2013

Dear all

I am setting Oracle Streams AQ in test environment using Oracle 11g in Windows, but I am getting back errors at the stage of Configuring a Messaging Client to Dequeue Messages as below

SQL> BEGIN

  2    DBMS_STREAMS_ADM.ADD_MESSAGE_RULE (

  3      message_type   => 'strmadmin.order_id_date',

  4      rule_condition => ':MSG.ORDER_ID > 0',

  5      streams_type   => 'DEQUEUE',

  6      streams_name   => 'strmadmin',

  7      queue_name     => 'strmadmin.streams_queue');

  8  END;

  9  /

BEGIN

*

ERROR at line 1:

ORA-01031: insufficient privileges

ORA-06512: at "SYS.DBMS_RULEADM_INTERNAL", line 49

ORA-06512: at "SYS.DBMS_RULE_ADM", line 178

ORA-06512: at "SYS.DBMS_STREAMS_ADM_UTL_INVOK", line 1037

ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 59

ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 82

ORA-06512: at line 2

I have granted EXECUTE privilege on the SYS.DBMS_STREAMS_MESSAGING package to the Oracle Streams administrator (STRMADMIN) but still getting insufficient privileges. I don't understand what are the addition privileges needed by this command to run sucessfull?

Regards, Sadock

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 6 2014
Added on Dec 6 2013
2 comments
3,876 views