Oracle 表存取權限控制

來源:互聯網
上載者:User

Oracle 表存取權限控制

目前Oracle資料庫有一個系統使用者SYSUSER擁有所有表的許可權,另外一個系統想訪問我資料庫中的一張表,我不想他控制我資料庫的所有表,所有我就建立了一個使用者,控制這個使用者只能訪問我資料庫中的一張表,其他許可權都沒用。

具體過程如下:

1.系統使用者SYS登入
conn  sys/password as sysdba

2.建立使用者
create user username identified by password 
default tablespace user_data 
temporary tablespace user_temp; 
grant connect,resource to username;

3.建表 tableA,授權
GRANT ALL ON 使用者A.tableA TO 使用者B;

4.建同義字
CREATE SYNONYM 使用者B.tableA FOR 使用者A.tableA;

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.