PL/SQL (MOSC)

MOSC Banner

"ORA-01031: insufficient privileges" error when trying to insert in another schema using dynamic sql

edited Nov 4, 2010 7:16AM in PL/SQL (MOSC) 5 commentsAnswered
 Hi,
I get "ORA-01031: insufficient privileges" while trying to insert a row into a table in another schema using dynamic sql...

the table is in the the schema 'Studio'

and i'm trying it from the user 'Web'
I granted the user web all privileges directly on the table and there is a public synonym for the table

I can insert a row as user web into the table using regular sql, i just get this error trying to do it using dynamic sql

the dynamic sql statement is in a package in the web schema, and when I add "AUTHID CURRENT_USER" in the header of the package I

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