Home » RDBMS Server » Security » Grant ROLE to user takes longer time (Oracle 12c, windows 2012)
Grant ROLE to user takes longer time [message #648661] |
Mon, 29 February 2016 01:50  |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi All,
Having a problem of granting role.
I am trying to grant a role to an user, which takes long time and not finishing.
I tried with Locally and Remotely.
Found no error in ALERT LOG FILE.
No SYNTAX error
Kindly help.
Regards
Muktha
|
|
|
|
|
|
|
|
|
|
|
Re: Grant ROLE to user takes longer time [message #648722 is a reply to message #648719] |
Wed, 02 March 2016 00:11   |
 |
Michel Cadot
Messages: 68757 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
WAIT #1895312376: nam='enq: CB - role operation' ela= 198092906 name|mode=1128398854 0=0 0=0 obj#=-1 tim=2403565707281
Someone is holding the master CBAC (Code Based Access Control) lock due to new method to grant roles to PL/SQL units. Check V$LOCK.
ERROR #1895312376:err=3113 tim=2403565707442
ORA-03113 -> you have a trace file.
Check it, then check MOS/Metalink.
[Updated on: Wed, 02 March 2016 00:13] Report message to a moderator
|
|
|
Re: Grant ROLE to user takes longer time [message #648736 is a reply to message #648722] |
Wed, 02 March 2016 01:42   |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi Michel,
FYI,
I tried with another roles to another users, but couldn't get succeed.
Nothing I could found in the v$lock.
I used the below query to find out the lock of the object.
SELECT p.username pu,
s.username su,
s.status stat,
s.sid ssid,
s.serial# sser,
lpad(p.spid,7) spid,
substr(sa.sql_text,1,540) txt
FROM v$process p, v$session s, v$sqlarea sa
WHERE p.addr=s.paddr
AND s.username is not null
AND s.sql_address=sa.address(+)
AND s.sql_hash_value=sa.hash_value(+)
and s.sid in (select sid from v$lock)
ORDER BY 1,2,7
Sorry to say that I am unaware of the new feature CBAC of 12c version.
Will take time to read that.
Help me.
Regards
Muktha
|
|
|
|
Goto Forum:
Current Time: Sun May 04 07:58:24 CDT 2025
|