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!

creating synonys for all table

user10447332Oct 7 2009 — edited Oct 7 2009
i want to create synonyms for all atbles.the synonyn name and table name are same.instead creating one by one synonym i wnat to create all synonyms at a time.


1)select 'CREATE PUBLIC SYNONYM'||' '||'test'||' '||'for' ||' '||'test' from dual

2)select OBJECT_NAME from user_objects where OBJECT_TYPE ='TABLE'


in the first query if we replace with test with 2nd query then we can get the script for that.
i replaced that biut its not working how to do it
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2009
Added on Oct 7 2009
3 comments
636 views