查看当前用户的权限sql语句,删除表空间的问题

select a2.username,a1.privilege from dba_sys_privs a1 , user_role_privs a2
where a1.privilege = 'DROP TABLESPACE'
and a1.grantee =a2.granted_role

要是在这个表空间下没有任何物理对象的话删除表空间可以用drop tablespace name;
要是在这个表空间下有物理对象那要加drop tablespace name including contents ;

猜你喜欢

转载自vivianlee.iteye.com/blog/1564075