Home  >  Article  >  Database  >  Oracle删除某个用户的所有的表

Oracle删除某个用户的所有的表

WBOY
WBOYOriginal
2016-06-07 17:06:23935browse

在网上看的,有人说先联级删除用户,再创建这个用户。 我是想删除这个用户下的所有的表,其他的不删。 1.查询这个用户下所有的表

在网上看的,有人说先联级删除用户,再创建这个用户。

我是想删除这个用户下的所有的表,其他的不删。

1.查询这个用户下所有的表:

在该用户下执行(没有结果,因为不应该从dba_all_tables 这个表查):

正确的应该是这样:

这里的单引号里面的'YDSOFT_BASE'一定要大写,要不然查不出结果。

然后,,我直接用pl/sql手动删的

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn