Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Oracle logical standby database being managed via data guard. Just this morning the redo apply process began failing with an ORA-01919 error, indicating one of our application roles did not exist. However, I can see the role on both primary and standby databases. We also have a physical standby that has long since applied the redo where this is happening on the logical, without issue.

I have opened an SR with Oracle. I was wondering if anyone out there has seen this before.

I guess I should mention: Oracle, Win2003 Server SP2.

UPDATE: So far, Oracle Support has not provided an answer. I thought I'd post here what I have learned so far.

It appears that a grant of DBA on the primary host to a role works fine for users granted the role. It does not work on the logical standby. IOW:

create role TEST;
grant dba to TEST;
grant TEST to auser;
connect auser
set role TEST;
grant <existing role> to <existing user>;

This works on the primary instance but fails on the logical. A workaround appears to be to grant each role on the primary to the role TEST with admin option in the logical:

grant <existing role> to TEST with admin option; <== do this on the logical standby

Then the command works on the logical standby.

share|improve this question

it depends. With a logical standby, any actions performed by SYS on the primary will NOT be replicated to a the logical standby. So if you created that role while logged in as SYS (in the primary), the role will not exist in the logical standby, hence subsequent commands by non-SYS users (on the primary) referencing that role will fail.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.