![]() | |
![]() |
| | Thread Tools | Display Modes |
#41
| |||
| |||
|
|
TEST> @delme drop TABLE LOCATIONS cascade constraints; drop TABLE NARROW cascade constraints; drop TABLE PARTS cascade constraints; drop TABLE PARTS_TEMP cascade constraints; drop TABLE PO_HEADER cascade constraints; drop TABLE PO_HEADER_TEMP cascade constraints; drop TABLE PO_LINE cascade constraints; drop TABLE PO_LINE_TEMP cascade constraints; drop TABLE UMS cascade constraints; drop TABLE VENDORS cascade constraints; drop TABLE VENDORS_TEMP cascade constraints; TEST> select object_name, object_type from user_objects order by 1, 2; no rows selected The only cases I see where it will not work is very unusual ones like you created index on tables you don't own: TEST> sho user USER is "TEST" TEST> create index t_i on michel.t (val); Index created. TEST> select object_name, object_type from user_objects order by 1, 2; OBJECT_NAME OBJECT_TYPE ------------------------------ ------------------- T_I INDEX 1 row selected. TEST> @delme TEST> select object_name, object_type from user_objects order by 1, 2; OBJECT_NAME OBJECT_TYPE ------------------------------ ------------------- T_I INDEX 1 row selected. I will modify the script to handle this case but there may be other things like that. Regards Michel |
#42
| |||
| |||
|
|
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 -- Mi sitio sobre programación web:http://bits.demogracia.com -- Mi web de humor al baño María:http://www.demogracia.com -- |
#43
| |||
| |||
|
|
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 -- Mi sitio sobre programación web:http://bits.demogracia.com -- Mi web de humor al baño María:http://www.demogracia.com -- |
#44
| |||
| |||
|
|
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 -- Mi sitio sobre programación web:http://bits.demogracia.com -- Mi web de humor al baño María:http://www.demogracia.com -- |
#45
| |||
| |||
|
|
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 -- Mi sitio sobre programación web:http://bits.demogracia.com -- Mi web de humor al baño María:http://www.demogracia.com -- |
![]() |
| Thread Tools | |
| Display Modes | |
| |