PLS-00904 insufficient privilege ..HELP
418679Nov 22 2005 — edited Nov 22 2005Hi
I am using the following select statements (which selects from v$session) in a database trigger then it returns the following error..please help
PLS-00904: insufficient privilege to access object SYS.V_$SESSION
SELECT ltrim(rtrim(USERENV('SESSIONID')))
INTO asid
FROM DUAL;
SELECT TERMINAL,OSUSER
INTO TERM,OSUSR
FROM V$SESSION
WHERE ltrim(rtrim(to_char(AUDSID))) = to_char(asid);
Thanks