My Oracle Support Banner

Ora-26723 User <Streams_admin user> Requires The Role "Dba" (Doc ID 738466.1)

Last updated on JUNE 05, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 10.2.0.4 [Release 10.1 to 10.2]
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

 

-- Problem Statement:
RDBMS 10.2.0.4.0
User created procedure executing DBMS_STREAMS_ADM.ADD_TABLE_RULES gets:

ORA-26723: user "<Streams_admin user> requires the role "DBA"
ORA-06512: at "<Streams_admin user>.<procedure_name>", line 19

-- Steps To Reproduce:
Grant DBA to <Streams_admin user>

CREATE OR REPLACE PROCEDURE <procedure_name> (owner IN VARCHAR2, tname IN VARCHAR2, qname IN
VARCHAR2) AS
u_owner varchar2(24) := owner;
t_name varchar2(24) := tname;
q_name varchar2(24) := 'CAPT_'||substr(qname,1,15)||'_Q';
BEGIN
DBMS_STREAMS_ADM.ADD_TABLE_RULES(
table_name => owner||'.'||t_name,
streams_type => 'capture',
streams_name => q_name,
queue_name => '<Streams_admin user>.'||q_name,
include_dml => TRUE,
include_ddl => FALSE,
include_tagged_lcr => false,
inclusion_rule => TRUE);
DBMS_OUTPUT.PUT_LINE (u_owner||' '||t_name || ' ' ||q_name);
EXCEPTION
when others then
DBMS_OUTPUT.PUT_LINE ('Add default table rule creation failed, please investigate');
RAISE;
END;
/


Changes

Upgraded from Oracle9i to Oracle10g

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.