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!

"Warning: compiled but with compilation errors" while executing procedure.

1063743Jan 9 2014 — edited Jan 10 2014

Hi All, i am so new to plsql. this code has been compiled but it gave a warning. I guess i am missing a small issue like semicolon but since im new i could not see what the problem is.

CREATE OR REPLACE procedure BAKIM.grantt_uguser as

cursor synn is

    select 'CREATE PUBLIC SYNONYM '||object_name||' for '||owner||'.'||object_name TXT from dba_objects

    where owner= 'FCY' and object_type in ('INDEX','PROCEDURE','TABLE','FUNCTION','VIEW','TRIGGER','SEQUENCE','PACKAGE')

    and

    object_name not in (select table_name from dba_synonyms where owner = 'FCY');

begin

  for li in synn

  loop

execute immediate li.TXT;

  end loop;

end;

/

This post has been answered by Brian Bontrager on Jan 9 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 7 2014
Added on Jan 9 2014
5 comments
2,593 views