zoukankan      html  css  js  c++  java
  • 查看用户建立详细原语句

    select dbms_metadata.get_ddl('USER','VGOPETL') "Create_User_DDL"
    from dual;
     
    select dbms_metadata.get_granted_ddl('SYSTEM_GRANT','VGOPETL') "Grant dba_sys_privs DDL" from dual;
    -- dba_sys_privs
    select dbms_metadata.get_granted_ddl('ROLE_GRANT','VGOPETL') "Grant dba_sys_privs DDL" from dual;
    -- dba_role_privs
    -----------------------------------------------------------------------------------------------------------上下一样的
    select dbms_metadata.get_ddl('USER','VGOPETL') "Create_User_DDL"
    from dual;
     
    select 'grant '||PRIVILEGE||' to '||GRANTEE||
    decode(ADMIN_OPTION,'NO',';','YES',' with admin option;')
    "Grant dba_sys_privs DDL"
    from dba_sys_privs where grantee='VGOPETL';
     
    select 'grant '||GRANTED_ROLE||' to '||GRANTEE||
    decode(ADMIN_OPTION,'NO',';','YES',' with admin option;')
    "Grant dba_sys_privs DDL"
    from dba_role_privs where grantee='VGOPETL';

  • 相关阅读:
    C#继承
    正则表达式
    C#笔记
    斐波那契数
    out参数
    重载和重写
    数组元素交换位置
    Win10图标显示不正常解决办法
    Linux添加sftp用户并限制其访问目录
    pclzip 解压的文件去掉文件夹
  • 原文地址:https://www.cnblogs.com/kawashibara/p/9628062.html
Copyright © 2011-2022 走看看