管理角色 角色类似于部门,成员,某个部门需要有特殊的权限,而对应得员工就应该有相应的权限 对应语句 SQL>CREATE ROLE oe_clerk; SQL>CREATE ROLE hr_clerk IDENTIFIED BY bonus; SQL>CREATE ROLE hr_manager IDENTIFIED EXTERNALLY; 已经定义好的角色connect,resource,dba 这些权利提供了什么什么的协调性(backward compatibility) exp_full_database 管理进入的database imp_full_database 管理出去的database delete_catalog_role delete权限角色 execute_catalog_role execute执行权限角色 select_catalog_role select权限角色 修改角色 SQL>ALTER ROLE oe_clerk IDENTIFIED BY order; SQL>ALTER ROLE hr_clerk IDENTIFIED EXTERNALLY; SQL>ALTER ROLE hr_manager NOT IDENTIFIED; 分配角色: SQL>GRANT oe_clerk TO scott; SQL>GRANT hr_clerk TO hr_manager; SQL>GRANT hr_manager TO scott WITH ADMIN OPTION; 建立默认的角色: SQL>ALTER USER scott DEFAULT ROLE hr_clerk, oe_clerk; SQL>ALTER USER scott DEFAULT ROLE ALL; SQL>ALTER USER scott DEFAULT ROLE ALL EXCEPT hr_clerk; SQL>ALTER USER scott DEFAULT ROLE NONE; 运用角色(Application roles) SQL>CREATE ROLE admin_role IDENTIFIED USING hr.employee; admin_role就是一个应...