千家信息网

oracle中出现ORA-65085错误怎么办

发表于:2025-01-20 作者:千家信息网编辑
千家信息网最后更新 2025年01月20日,这篇文章主要介绍了oracle中出现ORA-65085错误怎么办,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。SQL> show co
千家信息网最后更新 2025年01月20日oracle中出现ORA-65085错误怎么办

这篇文章主要介绍了oracle中出现ORA-65085错误怎么办,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。

SQL> show con_name

CON_NAME

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

CDB$ROOT

SQL> show pdbs

CON_ID CON_NAME OPEN MODE RESTRICTED

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

2 PDB$SEED READ ONLY NO

3 PDB READ WRITE NO

4 TEST MOUNTED

SQL> show con_name

CON_NAME

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

CDB$ROOT

SQL> alter pluggable database test open read only;

alter pluggable database test open read only

*

ERROR at line 1:

ORA-65085: cannot open pluggable database in read-only mode

SQL> col pdb_name for a20

SQL> col status for a40

SQL> select pdb_name,status from dba_pdbs;

PDB_NAME STATUS

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

PDB NORMAL

PDB$SEED NORMAL

TEST NEW

pdb的status有NEW、NORMAL、UNPLUGGED、NEEDS UPGRADE、CONVERTING、UNUSABLE几种状态,对这几种状态的解释如下:

NEW - The PDB has never been opened since it was created. It must be opened in READ WRITE mode for Oracle to perform processing needed to complete the integration of the PDB into the CDB and mark it NORMAL. An error will be thrown if an attempt is made to open the PDB read only.

NORMAL - The PDB is ready to be used.

UNPLUGGED - The PDB has been unplugged. The only operation that can be performed on it is DROP PLUGGABLE DATABASE.

NEEDS UPGRADE - A PDB needs to be upgraded to the version of the CDB into which it was plugged.

CONVERTING - A non-CDB was plugged into the CDB and is undergoing conversion required to make it behave like a real PDB.

UNUSABLE - The PDB is being created or an unrecoverable error was encountered during its creation. The PDB cannot be opened while its state is set to UNUSABLE. If the PDB remains in this state because of an error encountered during its creation, it can only be dropped. The alert log can be checked to determine if there was an error

during PDB creation.

通过上面对status几种状态的说明,对属于NEW的pdb,需要先open。

SQL> alter pluggable database test open;

再对数据库操作open read only操作:

[oracle@ora12c ~]$ sqlplus sys/oracle@192.168.10.31:1521/test as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Tue Dec 1 09:53:23 2015

Copyright (c) 1982, 2014, Oracle. All rights reserved.

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> show pdbs

CON_ID CON_NAME OPEN MODE RESTRICTED

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

4 TEST READ WRITE NO

SQL> shutdown immediate;

Pluggable Database closed.

SQL> alter database open read only;

Database altered.

SQL> show pdbs

CON_ID CON_NAME OPEN MODE RESTRICTED

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

4 TEST READ ONLY NO

感谢你能够认真阅读完这篇文章,希望小编分享的"oracle中出现ORA-65085错误怎么办"这篇文章对大家有帮助,同时也希望大家多多支持,关注行业资讯频道,更多相关知识等着你来学习!

篇文章 状态 怎么办 错误 价值 兴趣 同时 数据 数据库 更多 朋友 知识 编带 行业 资讯 资讯频道 频道 参考 学习 帮助 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 广西一站网网络技术集团 人渣怎么领取服务器礼包 七龙珠为什么不可以创建服务器 eplan没有同步主数据库 公有云数据库竞争 管家婆软件客户端怎么连接服务器 大工网络安全考试 利用阿里云服务器犯罪 网络安全威胁应对措施有哪些 如何将网络安全保护 北京安卓软件开发怎么样 互联网企业与科技企业的区别 java语句修改数据库 邮箱服务器总是访问我的电脑 中国电信订20万台服务器 服务器cpu性能排行 青岛训博网络技术有限公司 西游梦幻手续服务器时间表 宝塔数据库被删除怎么恢复 按f8进入网络安全模式 上海医格网络技术有限公司电话 数据库编号的类型 微视频网络安全 电脑软件开发用什么软件 一般服务器的io 化合物吸收值在哪个数据库找 用电营销管理网络技术论文 开源时间序列数据库 软件开发和维护外包 网络安全技术与实训报告心得
0