Skip to content

Instantly share code, notes, and snippets.

@sandcastle
Created February 26, 2015 06:53
Show Gist options
  • Select an option

  • Save sandcastle/204a2752da437e564dab to your computer and use it in GitHub Desktop.

Select an option

Save sandcastle/204a2752da437e564dab to your computer and use it in GitHub Desktop.
Generates an oracle script to drop all objects within a schema.
select 'drop '||lower(object_type)||' '|| object_name||decode(object_type,'TABLE',' cascade constraints;',';')
from user_objects;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment