I dont have access to the server until sunday so I cant post the error now. What I need is a way to truncate all tables with a script so I can import a backup.
there are other updates which are already posted...please see them as well....
Yehuda Tsadok
ASKER
As i said I'm newbie to oracle so I apologize again. If dropping the tables will allow me to import, can you should I just change my script to drop instead of truncate if not, can you provide a script?
1. If I drop and recreate the user, will it drop all associated tables even if they have forigen key relationship?
2. What is the best practice for dropping tables/etc in order to do an import?
3. My database has many tables - I am not fimiliar with them can you provide a script that will drop all tables and if needed the cascade constraints for all tables which have them?
begin
for c1 in (select table_name from user_tables) loop
v_new_tab_name := '"' || C1.Table_Name|| '"';
execute immediate (' drop table '||v_new_tab_name ||' CASCADE CONSTRAINTS') ;
end loop;
end;
\