Jan 27, 2003 #1 GERPAT Programmer Aug 15, 2002 30 IE Does anyone know hou do delete all tables belonging to a user. I tried the following but it doesn't work: delete from username.*
Does anyone know hou do delete all tables belonging to a user. I tried the following but it doesn't work: delete from username.*
Jan 27, 2003 #2 carp MIS Sep 16, 1999 2,622 US If you aren't in the process of deleting the user, then you might want to write a script: SELECT 'DROP TABLE the_user_name.'||table_name||';' FROM dba_tables WHERE user_name = 'THE_USER_NAME'; Upvote 0 Downvote
If you aren't in the process of deleting the user, then you might want to write a script: SELECT 'DROP TABLE the_user_name.'||table_name||';' FROM dba_tables WHERE user_name = 'THE_USER_NAME';
Jan 28, 2003 #3 did02 IS-IT--Management Jun 14, 2002 45 FR Another way to do this is to drop the user and then recreate it. But it drop all its objects (view,...) Rgds, Did02 Upvote 0 Downvote
Another way to do this is to drop the user and then recreate it. But it drop all its objects (view,...) Rgds, Did02