我自己找到答案 了: grant drop any table to u_db;不过这是删除任意表的权限,只是单个表呢?
DROP ANY TABLE 删除任何SCHEMA的TABLE(包括数据及表结构)
我只要删除某个表的权限呢?比如说: scott.emp。
scott@ORCL> grant all on dept to hr;Grant succeeded.scott@ORCL> select * from tab;TNAME TABTYPE CLUSTERID ------------------------------ ------- ---------- T_TEMP TABLEscott@ORCL> conn hr/hr Connected.hr@ORCL> drop table scott.t_temp;Table dropped.
不要一次性把一个方案下的所有表的删除权限都赋予一个人,那太不安全了。 推荐你在表的所有者的用户下,用grant all on 表名 to 用户名
我自己找到答案 了:
grant drop any table to u_db;不过这是删除任意表的权限,只是单个表呢?
DROP ANY TABLE 删除任何SCHEMA的TABLE(包括数据及表结构)
我只要删除某个表的权限呢?比如说: scott.emp。
scott@ORCL> grant all on dept to hr;Grant succeeded.scott@ORCL> select * from tab;TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
T_TEMP TABLEscott@ORCL> conn hr/hr
Connected.hr@ORCL> drop table scott.t_temp;Table dropped.
推荐你在表的所有者的用户下,用grant all on 表名 to 用户名