Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Begin
  2. For i in (select table_name from user_tables)
  3. Loop
  4. Begin
  5. Execute Immediate 'Truncate table ' || i.table_name || ' reuse storage ' ; --or drop storage which is default
  6. Exception
  7. When Others then
  8. Null;
  9. End;
  10. End Loop;
  11. End;
  12. /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement