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!

Script to TRUNCATE a particular table in all schemas

Y.RamletJun 10 2009 — edited Jun 10 2009
DB version:10gR2
We have around 60 schemas in one of our databases. We have a table called err_msg_log in all of these schemas.
i need to issue the command
truncate table err_msg_log;
on every schema of this Database. How can i make a script which would connect to each schemas one by one and issue this TRUNCATE command. To make things easier, i've made the password for each schema same as its username(schema name)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 8 2009
Added on Jun 10 2009
5 comments
1,617 views