哪些 Oracle 特权隐式授予对其他模式的访问权限
Which Oracle privilege implicitly grant access to other schemas
我知道IMP_FULL_DATABASE
可以让当前模式访问其他模式中的表
有没有其他权限也一样的?
要将表从一种模式授予另一种模式,您必须开发脚本:
Login as schema from which you want to grant
begin
for i in (select * from user_tables)
loop
execute immediate 'grant select, insert, update, delete on ' || i.table_name || ' to <target_schema>';
end loop;
end;
/
<target_schema>
is the target user to which grants have to be given. Above script grants select, insert, update, delete on all tables from the schema you logged in to <target_schema>
. Replace <target_schema>
with the schema name you want to grant to.
我知道IMP_FULL_DATABASE
可以让当前模式访问其他模式中的表
有没有其他权限也一样的?
要将表从一种模式授予另一种模式,您必须开发脚本:
Login as schema from which you want to grant
begin
for i in (select * from user_tables)
loop
execute immediate 'grant select, insert, update, delete on ' || i.table_name || ' to <target_schema>';
end loop;
end;
/
<target_schema>
is the target user to which grants have to be given. Above script grants select, insert, update, delete on all tables from the schema you logged in to<target_schema>
. Replace<target_schema>
with the schema name you want to grant to.