![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to remove all the contents of a schema (tables, indexes, sequences...) in my development box so I can checkout a fresh working copy of the web site I'm working on and generate all objects from scratch. The server runs version 9.2.0.1.0 in a separate network machine and I'd rather not ask the DBA to do it for me every time. What's the easiest way to do it? -- --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain |
#3
| |||
| |||
|
|
I want to remove all the contents of a schema (tables, indexes, sequences...) in my development box so I can checkout a fresh working copy of the web site I'm working on and generate all objects from scratch. The server runs version 9.2.0.1.0 in a separate network machine and I'd rather not ask the DBA to do it for me every time. What's the easiest way to do it? -- --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain |
#4
| |||
| |||
|
|
I want to remove all the contents of a schema (tables, indexes, sequences...) in my development box so I can checkout a fresh working copy of the web site I'm working on and generate all objects from scratch. The server runs version 9.2.0.1.0 in a separate network machine and I'd rather not ask the DBA to do it for me every time. What's the easiest way to do it? -- --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain |
#5
| |||
| |||
|
|
I want to remove all the contents of a schema (tables, indexes, sequences...) in my development box so I can checkout a fresh working copy of the web site I'm working on and generate all objects from scratch. The server runs version 9.2.0.1.0 in a separate network machine and I'd rather not ask the DBA to do it for me every time. What's the easiest way to do it? -- --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain |
#6
| |||
| |||
|
|
I want to remove all the contents of a schema (tables, indexes, sequences...) in my development box so I can checkout a fresh working copy of the web site I'm working on and generate all objects from scratch. The server runs version 9.2.0.1.0 in a separate network machine and I'd rather not ask the DBA to do it for me every time. What's the easiest way to do it? -- --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain |
#7
| |||
| |||
|
|
I want to remove all the contents of a schema (tables, indexes, sequences...) in my development box so I can checkout a fresh working copy of the web site I'm working on and generate all objects from scratch. The server runs version 9.2.0.1.0 in a separate network machine and I'd rather not ask the DBA to do it for me every time. What's the easiest way to do it? -- --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain |
#8
| |||
| |||
|
|
I want to remove all the contents of a schema (tables, indexes, sequences...) in my development box so I can checkout a fresh working copy of the web site I'm working on and generate all objects from scratch. The server runs version 9.2.0.1.0 in a separate network machine and I'd rather not ask the DBA to do it for me every time. What's the easiest way to do it? -- --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain |
#9
| |||
| |||
|
|
I want to remove all the contents of a schema (tables, indexes, sequences...) in my development box so I can checkout a fresh working copy of the web site I'm working on and generate all objects from scratch. The server runs version 9.2.0.1.0 in a separate network machine and I'd rather not ask the DBA to do it for me every time. What's the easiest way to do it? -- --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain |
#10
| |||
| |||
|
|
I use the following script to drop all my objects: set heading off set pagesize 0 set feedback off set timing off set time off set trimspool on set trimout on set linesize 100 set echo off spool t select 'drop '||object_type||' '||object_name|| decode(object_type,'CLUSTER',' including tables cascade constraints', 'OPERATOR', ' force', 'TABLE',' cascade constraints', 'TYPE', ' force', 'VIEW',' cascade constraints', '')||';' from user_objects where object_type in ('CLUSTER', 'CONTEXT', 'DATABASE LINK', 'DIMENSION', 'DIRECTORY', 'FUNCTION', 'INDEX TYPE', 'JAVA', 'LIBRARY', 'MATERIALIZED VIEW', 'OPERATOR', 'OUTLINE', 'PACKAGE', 'PROCEDURE', 'SEQUENCE', 'SYNONYM', 'TABLE', 'TYPE', 'VIEW') order by object_type, object_name / spool off @t.lst purge recyclebin; |
![]() |
| Thread Tools | |
| Display Modes | |
| |