91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

oracle中出現ORA-65085錯誤怎么辦

發布時間:2021-11-11 17:03:45 來源:億速云 閱讀:326 作者:小新 欄目:關系型數據庫

這篇文章主要介紹了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錯誤怎么辦”這篇文章對大家有幫助,同時也希望大家多多支持億速云,關注億速云行業資訊頻道,更多相關知識等著你來學習!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

布尔津县| 水城县| 通辽市| 通州区| 屏东市| 二连浩特市| 永平县| 乌鲁木齐县| 丁青县| 宜丰县| 二连浩特市| 新龙县| 邹城市| 津南区| 盐边县| 霍林郭勒市| 莫力| 建水县| 长顺县| 施秉县| 灵寿县| 绥中县| 盐亭县| 济南市| 贵阳市| 成武县| 璧山县| 梁山县| 闸北区| 九龙坡区| 弋阳县| 石狮市| 高州市| 隆化县| 恩平市| 海门市| 枣庄市| 漯河市| 高雄县| 乳源| 那曲县|