oracle 表權限分配


grant xxx權限 on Table to USER
grant select,insert,update,delete,all on 表名 to 用戶名
例如:將test表的查詢權限賦予tom這個用戶
grant select on test to tom


---------------------------------------
select 'GRANT SELECT ON ' || table_name || ' to user1;' from user_tables
grant select,insert,update,delete,all on 表名 to 用戶

比如:授查詢sys_users表的查詢權限給jwwl用戶

grant select on sys_users to jwwl

 

 

-- 創建用戶
create user YG identified by YG;
-- 用戶授權
grant create session, connect, resource to YG;

--ORACLE函數授權給所有用戶
GRANT execute on comm.fun_getagebybirthday TO yg;

--oracle給表顯式授權
grant select on MEDREC.pat_visit to yg;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM