ORA-01919: role 'XDBADMIN' does not exist [message #154405] |
Sun, 08 January 2006 01:07 |
n_srinath4u
Messages: 3 Registered: January 2006
|
Junior Member |
|
|
Hi,
I have used the following code for creating user and granting role to that user. But i am getting error while granting role as
ORA-01919: role 'XDBADMIN' does not exist!!..
Please let me know where i went wrong...
create user xDemo identified by demo
default tablespace users
temporary tablespace temp
quota unlimited on users;
grant create session,
alter session,
create table,
create trigger,
create type,
create any directory,
drop any directory,
xdbadmin
to xDemo;
thanks,
Srinath N
|
|
|
Re: ORA-01919: role 'XDBADMIN' does not exist [message #154427 is a reply to message #154405] |
Sun, 08 January 2006 05:39 |
tarundua
Messages: 1080 Registered: June 2005 Location: India
|
Senior Member |
|
|
Quote: | create any directory,
drop any directory,
xdbadmin
to xDemo;
|
The error is self explanatory. You are trying to grant a role
XDBADMIN and its not present is your database so the error is obvious.
You can verify the same using the following query.
select role from dba_roles
where role like 'XDB%';
Note: Log in as sys to run the above query.
|
|
|
|
|