1、如果有plsql客戶端,則可以使用該用戶登錄,選中所有表 右鍵Drop即可。
drop user user_name cascade;
加了cascade就可以把用戶連帶的數(shù)據(jù)全部刪掉。
刪除后再創(chuàng)建該用戶。
--創(chuàng)建用戶 create user 用戶名 profile default identified by 密碼 default tablespace 表空間名稱 temporary tablespace TEMP account unlock;
--授權(quán) grant dba to 用戶名; grant connect,resource to 用戶名;
3、如果沒有刪除用戶的權(quán)限,則可以執(zhí)行:
select 'drop table '||table_name||';' from cat where table_type='TABLE'
table_name是要查詢的表名,''里的內(nèi)容是進行字符拼接
將會輸出一批刪除表的sql語句,執(zhí)行這些SQL語句就可以了。
新聞熱點
疑難解答
圖片精選