新建pdb 打不开 ORA-65104 ORA-25153

2024-06-13 00:36

本文主要是介绍新建pdb 打不开 ORA-65104 ORA-25153,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

select * from pdb_plug_in_violations;

有个waring service_name 冲突,应该是不影响的

-------------------------------------service 冲突解决-------------------

Select message, action from DB_PLUG_IN_VIOLATIONS and get the result:

MESSAGE                                                                                                                                                ACTION

------------------------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------

Service name or network name of service dossqa3 in the PDB is invalid or conflicts with an existing service name or network name in the CDB.           Drop the service and recreate it with an appropriate name.

SELECT SERVICE_ID,NAME,NETWORK_NAME,CREATION_DATE,PDB,CON_ID  FROM CDB_SERVICES;

5. Find out service name 'dossqa3' was cloned from pdb 'DOSS_QA3'. So, there are one service name 'dossqa3' on two pdb, one is on 'DOSS_QA3' and another is on 'MIXEDPDB'.

6. I try to remove it using 'srvctl remove service -d cdb1206 -s dossqa3, I can only remove the one that was registered on pdb 'DOSS_QA3',

I cannot specify the pdb name on srvctl.

How to remove the cloned service name?

> srvctl status service -d cdb1206 -v

Service dossqa2 is running on instance(s) cdb12061,cdb12062

Service dossqa3 is running on instance(s) cdb12061,cdb12062

Service smalldb1 is running on instance(s) cdb12061,cdb12062

> srvctl stop service -d cdb1206 -s dossqa3

> srvctl status service -d cdb1206 -v

Service dossqa2 is running on instance(s) cdb12061,cdb12062

Service dossqa3 is not running.

Service smalldb1 is running on instance(s) cdb12061,cdb12062

>

> srvctl remove service -d cdb1206 -s dossqa3

> srvctl status service -d cdb1206 -v

Service dossqa2 is running on instance(s) cdb12061,cdb12062

Service smalldb1 is running on instance(s) cdb12061,cdb12062

Then verify the service name is still on PDB MIXEDPDB.

SQL> select SERVICE_ID,NAME,NETWORK_NAME,PDB FROM CDB_SERVICES ORDER BY PDB,SERVICE_ID;

SERVICE_ID NAME                           NETWORK_NAME                             PDB

---------- ------------------------------ ---------------------------------------- ------------------------------

         1 SYS$BACKGROUND                                                          CDB$ROOT

         2 SYS$USERS                                                               CDB$ROOT

         5 cdb1206XDB                     cdb1206XDB                               CDB$ROOT

         6 cdb1206                        cdb1206                                  CDB$ROOT

         1 doss_qa2                       doss_qa2                                 DOSS_QA2

         2 dossqa2                        dossqa2                                  DOSS_QA2

         1 doss_qa3                       doss_qa3                                 DOSS_QA3

         1 mixedpdb                       mixedpdb                                 MIXEDPDB

         2 dossqa3                        dossqa3                                  MIXEDPDB

         3 smalldb1                       smalldb1                                 MIXEDPDB

10 rows selected.

SQL> exec dbms_service.delete_service('dossqa3');

BEGIN dbms_service.delete_service('dossqa3'); END;

*

ERROR at line 1:

ORA-44304: service dossqa3 does not exist

ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86

ORA-06512: at "SYS.DBMS_SERVICE_ERR", line 23

ORA-06512: at "SYS.DBMS_SERVICE", line 352

ORA-06512: at line 1

SQL>

The service name is still exist on CDB_SERVICES view.

  • SQL> exec dbms_service.delete_service('dossqa3');

    BEGIN dbms_service.delete_service('dossqa3'); END;

    *

    ERROR at line 1:

    ORA-44304: service dossqa3 does not exist

    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86

    ORA-06512: at "SYS.DBMS_SERVICE_ERR", line 23

    ORA-06512: at "SYS.DBMS_SERVICE", line 352

    ORA-06512: at line 1

  • It works now after I go to PDB.

    SQL> alter session set container=mixedpdb;

    Session altered.

    SQL> exec dbms_service.delete_service('dossqa3');

    PL/SQL procedure successfully completed.

    SQL> select SERVICE_ID,NAME,NETWORK_NAME,PDB FROM dba_services;

    SERVICE_ID NAME                           NETWORK_NAME                             PDB

    ---------- ------------------------------ ---------------------------------------- ------------------------------

             1 mixedpdb                       mixedpdb                                 MIXEDPDB

             3 smalldb1                       smalldb1                                 MIXEDPDB

    -------------pdb删除不了 delete service cdb下的应该可以srvctl--

  • I have a very similar situation, except that the SERVICE_NAME is pointing at the CDB$ROOT and not at the appropriate PDB.

    SERVICE_ID NAME      NETWORK_NAME PDB

    ---------- ------------ ------------ ----------

         3 VADVCOUTDB  VADVCOUTDB   CDB$ROOT === CLONE

      4 VADVCDITDB   VADVCDITDB    CDB$ROOT === CLONE

    I tried from CDB$ROOT:

    SQL> exec dbms_service.delete_service('VADVCUATDB');

    BEGIN dbms_service.delete_service('VADVCUATDB'); END;

    *

    ERROR at line 1:

    ORA-44304: service VADVCUATDB does not exist

    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86

    ORA-06512: at "SYS.DBMS_SERVICE_ERR", line 23

    ORA-06512: at "SYS.DBMS_SERVICE", line 453

    ORA-06512: at line 1

    ======================================

    Please let me know how to drop the service name from CDB$ROOT.

  • deleted from srvctl config

--------------------

SQL> create pluggable database abcd1  from pdb;
create pluggable database abcd1  from pdb
*
ERROR at line 1:
ORA-25153: Temporary Tablespace is Empty


SQL> alter pluggable database abcd1 open;
alter pluggable database abcd1 open
*
ERROR at line 1:
ORA-65104: operation not allowed on an inactive pluggable database
 

create pluggable database abcd from pdb
2024-06-12T22:44:55.223990+08:00
PDB(3): AUDSYS.AUD$UNIFIED (SQL_TEXT) - CLOB populated
2024-06-12T22:44:57.741998+08:00
ABCD(4):Endian type of dictionary set to little
****************************************************************
Pluggable Database ABCD with pdb id - 4 is created as UNUSABLE.
If any errors are encountered before the pdb is marked as NEW,
then the pdb must be dropped
local undo-1, localundoscn-0x0000000000000118
****************************************************************
ORA-25153 signalled during: create pluggable database abcd from pdb...
2024-06-12T22:45:05.095541+08:00
alter pluggable database abcd open
2024-06-12T22:45:05.103040+08:00
ABCD(4):Pluggable database ABCD opening in read write
ABCD(4):Error 65104 during pluggable database ABCD opening in read write 
2024-06-12T22:45:05.103176+08:00
ABCD(4):Errors in file /u01/app/oracle/diag/rdbms/cdb/cdb1/trace/cdb1_ora_31840.trc:
ORA-65104: operation not allowed on an inactive pluggable database
ORA-65104 signalled during: alter pluggable database abcd open...

这篇关于新建pdb 打不开 ORA-65104 ORA-25153的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1055790

相关文章

Windows如何添加右键新建菜单

Windows如何添加右键新建菜单 文章目录 Windows如何添加右键新建菜单实验环境缘起以新建`.md`文件为例第一步第二步第三步 总结 实验环境 Windows7 缘起 因为我习惯用 Markdown 格式写文本,每次新建一个.txt后都要手动修改为.md,真的麻烦。如何在右键新建菜单中添加.md选项呢? 网上有很多方法,这些方法我都尝试了,要么太麻烦,要么不凑效

ora-01017 ora-02063 database link,oracle11.2g通过dblink连接oracle11.2g

错误图示: 问题解决 All database links, whether public or private, need username/password of the remote/target database. Public db links are accessible by all accounts on the local database, while private

STM32CubeMX和HAL库-新建项目

目录 新建项目 选择开发板  MCU图形化配置界面总览 MCU配置 新建项目 新建项目包含选择MCU创建项目、选择开发板新建项目和交叉选择MCU新建项目三部分。 1. 选择MCU创建项目 单击主菜单项File→New Project,或Home视图上的ACCESS TO MCU SELECTOR 按钮,都可以打开的New Project from a MCU/MPU对话框。

用了虚拟机后,本机摄像头打不开了(联想电脑thinkpad)

虚拟机有摄像头,我断开了连接,现在本机的摄像头打开就是一个锁 我先把虚拟机的摄像头关了 然后把本机的vm usb关闭了 Win+R),输入services.msc,找到VMware USB Arbitration Service,确保其状态为“关闭 然后打开桌面助手 开启 参考: 联想知识库

ORA-25150:不允许对区参数执行ALTERING

在用PL/SQL工具修改表存储报错: 百度一下找到原因: 表空间使用本地管理,其中的表不能修改NEXT MAXEXTENTS和PCTINCREASE参数 使用数据自动管理的表空间,其中的表可以修改NEXT MAXEXTENTS和PCTINCREASE参数

ElasticSearch 6.1.1 通过Head插件,新建索引,添加文档,及其查询数据

ElasticSearch 6.1.1 通过Head插件,新建索引,添加文档,及其查询; 一、首先启动相关服务: 二、新建一个film索引: 三、建立映射: 1、通过Head插件: POST http://192.168.1.111:9200/film/_mapping/dongzuo/ {"properties": {"title": {"type":

ORA-01861:文字与格式字符串不匹配

select t.*, t.rowid from log_jk_dtl t; insert into log_jk_dtl (rq,zy,kssj,jssj,memo)  values (to_date(sysdate,'yyyy-mm-dd'),'插入供应商', to_char(sysdate,'hh24:mi:ss'),to_char(sysdate,'hh24:mi:ss'),'备注'

利用PL/SQL工具连接Oracle数据库的时候,报错:ORA-12638: 身份证明检索失败的解决办法

找到相对应的安装目录:比如:E:\oracle\product\10.2.0\client_1\NETWORK\ADMIN 在里面找到:SQLNET.AUTHENTICATION_SERVICES= (NTS) 将其更改为:SQLNET.AUTHENTICATION_SERVICES= (BEQ,NONE) 或者注释掉:#SQLNET.AUTHENTICATION_SERVICES= (N

【Visual Studio 报错】未加载 wntdll.pdb(一种可行的解决办法)

调试程序时,会出现下面这个报错 分析原因: 出现未加载 wntdll.pdb 报错大概率是你的指针使用错误 ,比如使用野指针、越界访问、或者堆区空间释放方式错误等。 这里以 堆区空间释放方式错误 为例子 1、堆区开辟的数组空间使用 delete 释放 // 堆区开辟的数组空间使用 delete 释放int* p = new int[10];delete p; 正

一个CHM格式的参考手册都打不开的解决方法(就是?文件)

最常见的问题可以用下面的方法解决: 一:在chm右键 看看有没有解除锁定选项 。。应该是被锁 右键-》选择属性,如下图所示,    解除锁定就可以了