Jan 27, 2003 #1 GERPAT Programmer Joined Aug 15, 2002 Messages 30 Location 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 Joined Sep 16, 1999 Messages 2,622 Location 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 Joined Jun 14, 2002 Messages 45 Location 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