oracle 把某使用者下的表許可權授權給另一使用者
阿新 • • 發佈:2019-01-22
//把JBQDEDI讀寫許可權 授權給JBQD
select 'Grant all on '||table_name||'to JBQD ;' from all_tables
where owner = upper('JBQDEDI');
//把當前登陸的使用者表查詢許可權授權給b使用者
select 'GRANT SELECT ON '||table_name||' to b;' from user_tables
//如果上面方法失效,則這樣試一下:
grant select,insert,update,delete on BGCD_EDI.EDI_ERROR_LOG to PDMP;
grant select,insert,update,delete on BGCD_EDI.EDI_JBQD_DECHEAD to PDMP;
grant select,insert,update,delete on BGCD_EDI.EDI_JBQD_DECCONTAINER to PDMP;
grant select,insert,update,delete on BGCD_EDI.EDI_JBQD_DECLICENSEDOCUS to PDMP;
grant select,insert,update,delete on BGCD_EDI.EDI_JBQD_DECLIST to PDMP;
grant select,insert,update,delete on BGCD_EDI.EDI_JBQD_HEAD_INFO to PDMP;
grant select on BGCD_EDI.SEQ_JBQD_HEAD_INFO to PDMP;