<i id='NHhOB'><tr id='NHhOB'><dt id='NHhOB'><q id='NHhOB'><span id='NHhOB'><b id='NHhOB'><form id='NHhOB'><ins id='NHhOB'></ins><ul id='NHhOB'></ul><sub id='NHhOB'></sub></form><legend id='NHhOB'></legend><bdo id='NHhOB'><pre id='NHhOB'><center id='NHhOB'></center></pre></bdo></b><th id='NHhOB'></th></span></q></dt></tr></i><div id='NHhOB'><tfoot id='NHhOB'></tfoot><dl id='NHhOB'><fieldset id='NHhOB'></fieldset></dl></div>

      <bdo id='NHhOB'></bdo><ul id='NHhOB'></ul>

    <small id='NHhOB'></small><noframes id='NHhOB'>

      <tfoot id='NHhOB'></tfoot>
      <legend id='NHhOB'><style id='NHhOB'><dir id='NHhOB'><q id='NHhOB'></q></dir></style></legend>

    1. 如何在 Oracle 中克隆用户

      时间:2023-11-03
      <tfoot id='Xamqx'></tfoot>
        • <bdo id='Xamqx'></bdo><ul id='Xamqx'></ul>

        • <i id='Xamqx'><tr id='Xamqx'><dt id='Xamqx'><q id='Xamqx'><span id='Xamqx'><b id='Xamqx'><form id='Xamqx'><ins id='Xamqx'></ins><ul id='Xamqx'></ul><sub id='Xamqx'></sub></form><legend id='Xamqx'></legend><bdo id='Xamqx'><pre id='Xamqx'><center id='Xamqx'></center></pre></bdo></b><th id='Xamqx'></th></span></q></dt></tr></i><div id='Xamqx'><tfoot id='Xamqx'></tfoot><dl id='Xamqx'><fieldset id='Xamqx'></fieldset></dl></div>

          <small id='Xamqx'></small><noframes id='Xamqx'>

            <tbody id='Xamqx'></tbody>

              1. <legend id='Xamqx'><style id='Xamqx'><dir id='Xamqx'><q id='Xamqx'></q></dir></style></legend>

              2. 本文介绍了如何在 Oracle 中克隆用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                需要一个 sql 查询来克隆 Oracle 用户.作为来源,我拥有拥有所有必要权限的用户.我想知道是否可以在同一个数据库中创建相同的用户名但使用不同的用户名.

                Have a need for a sql query which will do cloning of Oracle user. As source I have user which has all necessary privileges. I wonder if it is possible to create the same one, but with different username in the same database.

                推荐答案

                Briefly(来自 这里)

                Briefly (from here)

                select dbms_metadata.get_ddl('USER', '...') FROM DUAL;
                SELECT DBMS_METADATA.GET_GRANTED_DDL('ROLE_GRANT','...') FROM DUAL;
                SELECT DBMS_METADATA.GET_GRANTED_DDL('SYSTEM_GRANT','...') FROM DUAL;
                SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT','...') FROM DUAL;
                SELECT DBMS_METADATA.GET_granted_DDL('TABLESPACE_QUOTA', '...') FROM dual;
                

                然后只需将用户名替换为您要创建的新用户名即可.

                Then just replace the username with the new one you want to create.

                这篇关于如何在 Oracle 中克隆用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:FOR r in (SELECT ... INTO ...) 下一篇:为什么oracle plsql varchar2 变量需要大小而参数不需要?

                相关文章

                • <bdo id='K0ONQ'></bdo><ul id='K0ONQ'></ul>
                <tfoot id='K0ONQ'></tfoot>
              3. <small id='K0ONQ'></small><noframes id='K0ONQ'>

                <i id='K0ONQ'><tr id='K0ONQ'><dt id='K0ONQ'><q id='K0ONQ'><span id='K0ONQ'><b id='K0ONQ'><form id='K0ONQ'><ins id='K0ONQ'></ins><ul id='K0ONQ'></ul><sub id='K0ONQ'></sub></form><legend id='K0ONQ'></legend><bdo id='K0ONQ'><pre id='K0ONQ'><center id='K0ONQ'></center></pre></bdo></b><th id='K0ONQ'></th></span></q></dt></tr></i><div id='K0ONQ'><tfoot id='K0ONQ'></tfoot><dl id='K0ONQ'><fieldset id='K0ONQ'></fieldset></dl></div>
              4. <legend id='K0ONQ'><style id='K0ONQ'><dir id='K0ONQ'><q id='K0ONQ'></q></dir></style></legend>