1、如果有plsql客户端,则可以使用该用户登录,选中所有表 右键Drop即可。

数据库清理

2、如果有删除用户的权限,则可以:

1
drop user user_name cascade;

加了cascade就可以把用户连带的数据全部删掉。

--创建用户 create user 用户名 profile default identified by 密码 default tablespace 表空间名称 temporary tablespace TEMP account unlock;

1
2
3
--授权
grant dba to 用户名;
grant connect,resource to 用户名;

3、如果没有删除用户的权限,则可以执行:

1
select 'drop table '||table_name||';' from cat where table_type='TABLE'

将得到的结果全部复制粘贴到另一个sql窗口,执行。

相关文章:

  • 2021-12-15
  • 2021-11-08
  • 2021-09-07
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-12-21
猜你喜欢
  • 2021-12-21
  • 2021-06-10
  • 2021-12-21
  • 2022-12-23
  • 2019-03-09
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案