Oracle 權限

Oracle 權限

1.系統權限(System Privilege):可以 Grant 給 用戶(User)或 角色(Role), 使該對象擁有可以執行特定事務的權限;

create session : 如需登入 PL/SQL 需將登入者加入此權限

2.物件權限(Object Privilege):可以 Grant 給 用戶(User)或 角色(Role), 使該對象擁有可以執行特定事務的權限;

物件包含:Tables, Views, Procedures, Functions, Sequences, Packages

Ex: 將 用戶(User)或 角色(Role)設定可針對 test_table 進行 Select, Insert, Update 等操作

image

3.角色權限(Role Privilege):是系統、物件與角色權限的集合,可以將既有的角色指定(可指定大於一個角色)給

用戶(User)或 角色(Role), 使該對象擁有該角色的權限;

Ex: 建立一個名稱為 GANERAL_ROLE 角色,並設定該角色所需的權限(系統、物件與角色權限皆可設定,如紅框部分)

image

接下來就可以在 用戶(User)或 角色(Role)中的 Role privileges 加入 GANERAL_ROLE 角色, 此 用戶(User)或 角色(Role)就

擁有 GANERAL_ROLE 角色的系統權限(System Privilege)、物件權限(Object Privilege)與角色權限(Role Privilege)

image

 

Reference: http://space.itpub.net/17203031/viewspace-742206