Grant y撤销sobre objetos-迪纳米科
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Grant y撤销sobre objetos-迪纳米科相关的知识,希望对你有一定的参考价值。
Uso de Grant y Revoke de objetos masivos de distintos user
-----Grant BEGIN FOR R IN (SELECT owner, object_name ,object_type FROM All_Objects WHERE OWNER = 'OTELO' AND object_type IN ('VIEW','TABLE')) LOOP BEGIN EXECUTE IMMEDIATE 'grant select on '||R.owner||'.'||R.object_name||' to AUDITOR'; Exception WHEN Others THEN DBMS_OUTPUT.put_line(Sqlerrm); END ; END LOOP; END; -----revoke BEGIN FOR R IN (SELECT owner, object_name ,object_type FROM All_Objects WHERE OWNER = 'APEX_030200' AND object_type IN ('VIEW','TABLE')) LOOP BEGIN EXECUTE IMMEDIATE 'REVOKE All ON '||R.owner||'.'||R.object_name||' FROM AUDITOR'; Exception WHEN Others THEN DBMS_OUTPUT.put_line(Sqlerrm); END ; END LOOP; END;
以上是关于Grant y撤销sobre objetos-迪纳米科的主要内容,如果未能解决你的问题,请参考以下文章
markdown sobre el mercado y los servicios
JavaScript Efecto悬停sobre cualquier cosa 1