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;
