Grant y撤销sobre objetos-迪纳米科

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Grant y撤销sobre objetos-迪纳米科相关的知识,希望对你有一定的参考价值。

Uso de Grant y Revoke de objetos masivos de distintos user
  1. -----Grant
  2. BEGIN
  3. FOR R IN (SELECT owner, object_name ,object_type FROM All_Objects WHERE OWNER = 'OTELO' AND object_type IN ('VIEW','TABLE')) LOOP
  4. BEGIN
  5. EXECUTE IMMEDIATE 'grant select on '||R.owner||'.'||R.object_name||' to AUDITOR';
  6. Exception
  7. WHEN Others THEN
  8. DBMS_OUTPUT.put_line(Sqlerrm);
  9. END ;
  10. END LOOP;
  11. END;
  12. -----revoke
  13.  
  14. BEGIN
  15. FOR R IN (SELECT owner, object_name ,object_type FROM All_Objects WHERE OWNER = 'APEX_030200' AND object_type IN ('VIEW','TABLE')) LOOP
  16. BEGIN
  17. EXECUTE IMMEDIATE 'REVOKE All ON '||R.owner||'.'||R.object_name||' FROM AUDITOR';
  18. Exception
  19. WHEN Others THEN
  20. DBMS_OUTPUT.put_line(Sqlerrm);
  21. END ;
  22. END LOOP;
  23. END;

以上是关于Grant y撤销sobre objetos-迪纳米科的主要内容,如果未能解决你的问题,请参考以下文章

markdown sobre el mercado y los servicios

迪纳米科预选赛

markdown Sobre o RaDiX

JavaScript Efecto悬停sobre cualquier cosa 1

JavaScript Efecto HOVER sobre cualquier cosa

使用 Grant 和 Revoke 时遇到问题