My Oracle Support Banner

ORA-47401: Realm violation for CREATE INDEX on another Schema Table (Doc ID 2884647.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 19.14.0.0.0 and later
Information in this document applies to any platform.

Symptoms

User "DEPLOY_ACCOUNT" could create a table in another user "SCHEMOBJ_ACCOUNT" but could NOT create an index for that table created and got error ORA-47401.

"DEPLOY_ACCOUNT" is the account executing the creation of table and its index, also it is the owner of realm MY APP REALMNAME - its authorization is as Owner.

Changes

 -- connect as DEPLOY_ACCOUNT (with DBA role granted)

create table SCHEMOBJ_ACCOUNT.TEST_TABLE (a varchar2(100),pdb_code varchar2(2) default '00') tablespace tbsdata_01;

Table created.

create index SCHEMOBJ_ACCOUNT.TEST_INDEX01 on SCHEMOBJ_ACCOUNT.TEST_TABLE (a) tablespace tbsindx_01;
create index SCHEMOBJ_ACCOUNT.TEST_INDEX01 on SCHEMOBJ_ACCOUNT.TEST_TABLE (a) tablespace tbsindx_01
*
ERROR at line 1:
ORA-47401: Realm violation for CREATE INDEX on SCHEMOBJ_ACCOUNT.TEST_TABLE

Table was successfully create but at time to create an index for that table then it fails with ORA-47401: Realm violation. 

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.