如在访问数据库中的表时,当用户权限高的访问时如system访问scott(普通用户)中的emp表时
直接用 select * from scott.emp;而不需要scott的授权
反过来当普通用户scott访问system管理员中的zengpan表时,必须有system的授权:首先以system的身份登录给scott授权:grant select on zengpan to scott;
然后切换为scott用户:conn scott/orclhsp;这样才可以查询:select * from system.zengpan;
如要收回权限:需切换为system用户: conn system/orclhsp;
然后收回权限:revoke select on zengpan from scott;