Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Miscellaneous > Re: EXECUTE IMM...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 6858 of 7280
Post > Topic >>

Re: EXECUTE IMMEDIATE statement FAILS

by yf110@[EMAIL PROTECTED] (Malcolm Dew-Jones) Apr 24, 2008 at 10:35 AM

xylem (me_at_icq@[EMAIL PROTECTED]
) wrote:
: Hi all,

: My procedure below is failing to provide the desired result and I've
: failed to track down what is the cause. The procedure is supposed to
: dynamically grant roll on objects to users. I've tested the cursor SQL
: and it's working fine. However, sql_stmt is failing. When I run the
: procedure I get the following error:

: Warning: Procedure created with compilation errors.

: SQL> sho err
: Errors for PROCEDURE G_R:

: LINE/COL ERROR
: -------- ----------------------------------------------------
: 35/3     PL/SQL: Statement ignored
: 35/50    PLS-00302: component 'VIEW_NAME' must be declared

You probably have access to 'VIEW_NAME' only thru a role.

The role will allow you to access the object interactively , but it will
not allow you to compile code that needs to access the object.

Your username itself needs to be granted access to the object to compile 
code that accesses the object.
 




 5 Posts in Topic:
EXECUTE IMMEDIATE statement FAILS
xylem <me_at_icq@[EMAI  2008-04-24 09:38:13 
Re: EXECUTE IMMEDIATE statement FAILS
yf110@[EMAIL PROTECTED]   2008-04-24 10:35:01 
Re: EXECUTE IMMEDIATE statement FAILS
Ken Denny <ken@[EMAIL   2008-04-24 10:49:41 
Re: EXECUTE IMMEDIATE statement FAILS
xylem <me_at_icq@[EMAI  2008-04-24 15:18:12 
Re: EXECUTE IMMEDIATE statement FAILS
xylem <me_at_icq@[EMAI  2008-04-25 04:03:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 0:09:04 CST 2008.