Database Administration (MOSC)

MOSC Banner

Getting ora-01031 but delete priv is granted

edited Jun 9, 2016 12:39PM in Database Administration (MOSC) 3 commentsAnswered ✓

SuSE 11 x86-64 Oracle 12.1.0.2

My user is trying to delete from a table but getting an ORA-01031: insufficient privileges, but behold: I granted delete to role lr2k_dml:

select grantor, grantee, table_name, privilege from dba_tab_privs where grantee='LR2K_DML' and table_name = 'DECODE' and GRANTOR = 'LR2K_STG';

LR2K_STGLR2K_DMLDECODEDELETE
LR2K_STGLR2K_DMLDECODEINSERT
LR2K_STGLR2K_DMLDECODESELECT
LR2K_STGLR2K_DMLDECODE

UPDATE


and granted the role to the account he's logged in as:


select grantee, granted_role from dba_tab_privs where grantee='LR2K_DML' and table_name = 'DECODE' and GRANTOR = 'LR2K_STG';

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center