Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Begin
- For i in (select table_name from user_tables)
- Loop
- Begin
- Execute Immediate 'Truncate table ' || i.table_name || ' reuse storage ' ; --or drop storage which is default
- Exception
- When Others then
- Null;
- End;
- End Loop;
- End;
- /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement