ORA-00942: table or view does not exist [message #133245] |
Thu, 18 August 2005 03:41 |
vgs2005
Messages: 123 Registered: April 2005
|
Senior Member |
|
|
User XXX wrote a package that reads sys.dba_tab_columns, but it does not compile - displaying ORA-00942: table or view does not exist. The user has dba role. Strangely, it can 'select' from sys.dba_tab_columns in SQLPlus and TOAD. But cannot compile the package using those same tools... any hint?
thanks in advance..
|
|
|
|
Re: ORA-00942: table or view does not exist [message #133288 is a reply to message #133245] |
Thu, 18 August 2005 07:13 |
anujlal
Messages: 4 Registered: August 2005
|
Junior Member |
|
|
Within a stored procedure, the privileges granted through roles
do not apply. You will have to give select privilege on the table
sys.dba_tab_columns to the user directly.
grant select on sys.dba_tab_columns to youruser
Regards
Anuj
|
|
|