<legend id='LYU1G'><style id='LYU1G'><dir id='LYU1G'><q id='LYU1G'></q></dir></style></legend>

    <tfoot id='LYU1G'></tfoot>

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

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

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

        错误:ORA-65096:oracle 中的通用用户名或角色名无效

        时间:2023-09-18

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

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

              <bdo id='Mh6vm'></bdo><ul id='Mh6vm'></ul>
              <tfoot id='Mh6vm'></tfoot>

                    <tbody id='Mh6vm'></tbody>
                • <legend id='Mh6vm'><style id='Mh6vm'><dir id='Mh6vm'><q id='Mh6vm'></q></dir></style></legend>
                  本文介绍了错误:ORA-65096:oracle 中的通用用户名或角色名无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我刚刚安装了 Oracle,但缺少 Scott 架构.所以我想自己生成它.我得到了 Scott 模式的 sql 脚本,但是当我尝试运行查询时:

                  I just installed Oracle, and it was missing the Scott schema. So i am trying to generate it myself. I got the sql script of Scott schema, but when i try to run the query:

                  create user Scott identified by tiger; 
                  

                  它显示以下错误:

                  ORA-65096:oracle 中的通用用户名或角色名无效.

                  ORA-65096: invalid common user or role name in oracle.

                  基本上它不允许我创建用户 Scott.

                  Basically it is not allowing me to create a user Scott.

                  这是为什么,我该如何解决我的问题?

                  Why is that, and how can I fix my problem?

                  推荐答案

                  99.9% 的错误 ORA-65096: invalid common user or role name 意味着您在登录 CDB 时应该登录到 PDB.例如,如果您使用默认的 19c 安装设置,您应该登录 ORCLPDB(PDB)而不是 ORCL(CDB).

                  99.9% of the time the error ORA-65096: invalid common user or role name means you are logged into the CDB when you should be logged into a PDB. For example, if you used the default 19c installation settings, you should login to ORCLPDB (the PDB) instead of ORCL (the CDB).

                  危险 - 如果您坚持以错误的方式创建用户,请按照以下步骤操作.

                  DANGER - If you insist on creating users the wrong way, follow the steps below.

                  像这样设置未记录的参数(如前导下划线所示)只能在 Oracle Support 的指导下完成.在没有此类指导的情况下更改此类参数可能会使您的支持合同无效.因此,请自行承担风险.

                  Setting undocumented parameters like this (as indicated by the leading underscore) should only be done under the direction of Oracle Support. Changing such parameters without such guidance may invalidate your support contract. So do this at your own risk.

                  具体来说,如果您设置 "_ORACLE_SCRIPT"=true,则将在 ORACLE_MAINTAINED 列设置为Y"的情况下进行一些数据字典更改.这些用户和对象将被错误地从某些 DBA 脚本中排除.并且它们可能被错误地包含在某些系统脚本中.

                  Specifically, if you set "_ORACLE_SCRIPT"=true, some data dictionary changes will be made with the column ORACLE_MAINTAINED set to 'Y'. Those users and objects will be incorrectly excluded from some DBA scripts. And they may be incorrectly included in some system scripts.

                  如果您对上述风险没有问题,并且不想以正确的方式创建普通用户,请在创建用户之前运行此命令:

                  If you are OK with the above risks, and don't want to create common users the correct way, run this command before creating the user:

                  alter session set "_ORACLE_SCRIPT"=true;  
                  

                  我在这里找到了答案

                  这篇关于错误:ORA-65096:oracle 中的通用用户名或角色名无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Oracle 中的视图和物化视图有什么区别? 下一篇:SID 与 Oracle tnsnames.ora 中的服务名称有何不同

                  相关文章

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

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

                    1. <small id='cJqo1'></small><noframes id='cJqo1'>

                      <tfoot id='cJqo1'></tfoot>