创建了一个角色后,不想用了,可是怎么也不能drop掉这个角色。
出现如下错误:ORA-00604和ORA-01422。
该角色已经没有任何权限,也没有被付给任何用户。

解决方案 »

  1.   

    drop role 角色名
    You must have been granted the role with admin option or have the drop any role system privilege to drop the role.When you drop the role,the oracle server revokes it from all users and roles to whom it has been granted and removes it from the database.
      

  2.   

    我用sys用户以sysdba身份登陆,也不能drop该角色。
      

  3.   

    只要有相应的角色就可以删除了。用命令方法如下:
    drop role (you call name of role) 
    就ok啦