Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

grant in a cursor

779216Jul 28 2010 — edited Jul 29 2010
declare
cursor cur is 
select object_name from all_objects where OWNER 'HR';
 
var all_objects.object_name%TYPE;
 
begin
open cur;
loop
fetch cur into var;
exit when cur%notfound;
grant SELECT var to SCOTT;
end loop;
close cur;
end;
 
 
what to change?

i want scott to own all object of hr.ora-006550 error on line 1 and pls-00103 error what to do?

Edited by: new2appsdba on Jul 28, 2010 6:06 AM
This post has been answered by Peter K on Jul 28 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2010
Added on Jul 28 2010
9 comments
3,281 views