Oracle 11gR201建立資料庫時遭遇ORA-19202和ORA-31154的錯誤

來源:互聯網
上載者:User

OS版本:RHEL5.6-x86-64

DB版本:Oracle 11.2.0.1

今天在使用dbca建立資料庫時,在進度條為61%的地方出錯了,出現了XML檔案解析錯誤的情況:

[Thread-71] [ 2012-03-05 17:59:31.528 CST ] [BasicStep.handleNonIgnorableError:431] ORA-31154: invalid XML document
ORA-19202: Error occurred in XML processing
:msg
[Thread-73] [ 2012-03-05 21:15:46.317 CST ] [SQLEngine.done:2148]  Done called
[Thread-73] [ 2012-03-05 21:15:46.317 CST ] [SQLEngine.spoolOff:2008]  Setting spool off = /soft/oracle/cfgtoollogs/dbca/srcbda/cwmlite.log
[Thread-73] [ 2012-03-05 21:15:46.318 CST ] [BasicStep.configureSettings:304]  messageHandler being set=oracle.sysman.assistants.util.UIMessageHandler@6719b1ca
oracle.sysman.assistants.util.step.StepExecutionException: ORA-31154: invalid XML document
ORA-19202: Error occurred in XML processing

        at oracle.sysman.assistants.util.step.dboption.CWMLiteDBOptionStep.executeImpl(CWMLiteDBOptionStep.java:168)
        at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
        at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
        at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2667)
        at java.lang.Thread.run(Thread.java:595)

而且很奇怪的一個問題是,我之前在這台伺服器上已經建立過兩個使用ASM的資料庫了,都沒有問題,唯一不同的地方就是支援建立的資料庫使用的檔案系統。

於是在MOS上查了一下,發現這是Oracle在11.2.0.1裡面的一個Bug 9242171,在11.2.0.2裡面已經修複,不過還好有相應的補丁p9242171。

把補丁打上去就好了,忽然覺得Oracle11g好的Bug啊,哎!

[oracle@instsvr1 ~]$ unzip p9242171_112010_Generic.zip
[oracle@instsvr1 ~]$ cd /home/oracle/9242171

[oracle@instsvr1 9242171]$ /soft/oracle/product/11.2.0/dbh/OPatch/opatch apply
Invoking OPatch 11.1.0.6.6

Oracle Interim Patch Installer version 11.1.0.6.6
Copyright (c) 2009, Oracle Corporation.  All rights reserved.


Oracle Home       : /soft/oracle/product/11.2.0/dbh
Central Inventory : /soft/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 11.1.0.6.6
OUI version       : 11.2.0.1.0
OUI location      : /soft/oracle/product/11.2.0/dbh/oui
Log file location : /soft/oracle/product/11.2.0/dbh/cfgtoollogs/opatch/opatch2012-03-06_12-48-52PM.log

Patch history file: /soft/oracle/product/11.2.0/dbh/cfgtoollogs/opatch/opatch_history.txt

ApplySession applying interim patch '9242171' to OH '/soft/oracle/product/11.2.0/dbh'

Running prerequisite checks...

OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.

Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '9242171' for restore. This might take a while...
Backing up files affected by the patch '9242171' for rollback. This might take a while...

Patching component oracle.rdbms, 11.2.0.1.0...
Copying file to "/soft/oracle/product/11.2.0/dbh/rdbms/admin/catqm.sql"
Copying file to "/soft/oracle/product/11.2.0/dbh/rdbms/admin/xdbe111.sql"
Copying file to "/soft/oracle/product/11.2.0/dbh/rdbms/admin/xdbdbmig.sql"

Patching component oracle.rdbms.dbscripts, 11.2.0.1.0...
Copying file to "/soft/oracle/product/11.2.0/dbh/rdbms/admin/catqm.sql"
Copying file to "/soft/oracle/product/11.2.0/dbh/rdbms/admin/xdbe111.sql"
Copying file to "/soft/oracle/product/11.2.0/dbh/rdbms/admin/xdbdbmig.sql"
ApplySession adding interim patch '9242171' to inventory

Verifying the update...
Inventory check OK: Patch ID 9242171 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 9242171 are present in Oracle Home.

OPatch succeeded.








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

【MOS文檔】

ORA-31154, ORA-19202, LSX-00023 Creating XDB Enabled Database Using DBCA [ID 1207444.1]
  修改時間 08-OCT-2010     類型 PROBLEM     狀態 PUBLISHED  

In this Document
  Symptoms
  Cause
  Solution

Applies to: Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later   [Release: 11.2 and later ]
Information in this document applies to any platform.
Symptoms
During database creation process using DBCA the creation fails when it reaches the XDB configuration.

From the xdb_protocol.log:

ERROR at line 1:
ORA-31154: invalid XML document
ORA-19202: Error occurred in XML processing
LSX-00023: unknown namespace URI


CauseThe error is reasoned by unpublished Bug 9242171
Abstract: INVALID XML DOCUMENT ERROR WHILE CREATING RAC DATABASE

SolutionThis issue is fixed in release 11.2.0.2
For release 11.2.0.1 install generic patch 9242171

There is no workaround for this issue.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.