在Oracle里有两个用户,一个叫A,一个叫B,我想将访问A下表的增,删,改,查的权限授予B(或者说吧B设为A的同义词),对多张表操作;
GRANT SELECT ON A.table TO B;
GRANT INSERT ON A.table TO B;
GRANT UPDATE ON A.table TO B;
GRANT DELETE ON A.table TO B;
对多张表操作:
select 'grant select on '||table_name||' to usr2' from user_tables;