9i升级到11gR2中报java,ORA-03113,ORA-03114的错误解决方法
从9i升级数据库到11gR2,在upgrade的过程中,报下面的错误导致升级暂停<br>SQL> -- Verify that a simple java stored procedure works<br>SQL> select dbms_java.longname('foo') from dual;<br>
select dbms_java.longname('foo') from dual<br>
*<br>
ERROR at line 1:<br>
ORA-03113: end-of-file on communication channel<br>
ERROR:<br>
ORA-03114: not connected to ORACLE<br><br>通过查询MOS,解决方法如下:<br><font face="helvetica"><table border="0" cellpadding="0" cellspacing="6" width="100%"><tbody><tr><td colspan="6" align="left" valign="TOP"><strong>ORA-29553: class in use error on 9.2 to 11.2 Migration </strong></td>
</tr>
<tr>
<td colspan="6" align="left" valign="TOP"></td>
</tr> <tr>
<td colspan="2" valign="TOP" width="25%"> </td>
<td colspan="3" nowrap="nowrap" valign="TOP" width="50%"><em>修改时间</em> 15-JUN-2011 <em>类型</em> PROBLEM <em>状态</em> MODERATED</td>
<td valign="TOP"> </td>
</tr>
</tbody></table>
</font>
<p><b>In this Document</b><br><font size="-1">
<a href="https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=1225653.1&addClickInfo=%3Cdata%20search_text=%22java%20longname%20ora-03113%22%20search_result_size=%226%22%20search_result_count=%226%22%20powerview_id=%22%22%20on_off=%22off%22%20item_position_in_list=%221%22/%3E#SYMPTOM" target="_blank">Symptoms</a><br>
<a href="https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=1225653.1&addClickInfo=%3Cdata%20search_text=%22java%20longname%20ora-03113%22%20search_result_size=%226%22%20search_result_count=%226%22%20powerview_id=%22%22%20on_off=%22off%22%20item_position_in_list=%221%22/%3E#CAUSE" target="_blank">Cause</a><br>
<a href="https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=1225653.1&addClickInfo=%3Cdata%20search_text=%22java%20longname%20ora-03113%22%20search_result_size=%226%22%20search_result_count=%226%22%20powerview_id=%22%22%20on_off=%22off%22%20item_position_in_list=%221%22/%3E#FIX" target="_blank">Solution</a><br>
<a href="https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=1225653.1&addClickInfo=%3Cdata%20search_text=%22java%20longname%20ora-03113%22%20search_result_size=%226%22%20search_result_count=%226%22%20powerview_id=%22%22%20on_off=%22off%22%20item_position_in_list=%221%22/%3E#REF" target="_blank">References</a><br>
</font></p><p>
</p><p>
</p><table align="center" border="1" cellpadding="4" cellspacing="0">
<tbody>
<tr>
<td><font size="-1"><em>This document is being delivered to
you via Oracle Support's Rapid Visibility (RaV) process and therefore
has not been subject to an independent technical review.</em></font></td>
</tr>
</tbody>
</table>
<p>
</p>Applies to:
Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later <br>Information in this document applies to any platform.<br>
<a name="SYMPTOM"></a>Symptoms
<p>When doing a migration from database version 9.2 to version 11.2. the following issues are seen:</p>
<p>1) Catupgrd.sql fails with following error: <br><br>SQL> -- Verify that a simple java stored procedure works <br>SQL> select dbms_java.longname('foo') from dual; <br>select dbms_java.longname('foo') from dual <br>* <br>ERROR at line 1: <br>ORA-03113: end-of-file on communication channel <br><br>2) Associated error in alertlog is: <br><br>ORA-07445: exception encountered: core dump <br><br></p>
<a name="CAUSE"></a>Cause
<p>This error actually stems from earlier in the catupgrd.sql output
when the JVM was not loaded correctly due to ORA-29553: class in use. <br><br>SQL> <br>SQL> -- Load all the Java classes <br>SQL> begin if initjvmaux.startstep('CREATE_JAVA_SYSTEM') then <br>2 initjvmaux.rollbacksetup; <br>3 commit; <br>4 initjvmaux.rollbackset; <br>5 initjvmaux.exec('create or replace java system'); <br>6 commit; <br>7 initjvmaux.rollbackcleanup; <br>8 initjvmaux.endstep; <br>9 end if; end; <br>10 / <br>begin if initjvmaux.startstep('CREATE_JAVA_SYSTEM') then <br>* <br>ERROR at line 1: <br>ORA-29553: class in use: SYS.javax/jms/TemporaryTopic <br>ORA-06512: at "SYS.INITJVMAUX", line 23 <br>ORA-06512: at line 5 <br><br>Note: The class named in the Ora-29553 error can be different than shown in this example.</p>
<p>This is result of unpublished <a href="https://support.oracle.com/CSP/main/article?cmd=show&type=BUG&id=10165223" target="_blank">Bug 10165223</a>.
It can occur when more than one heap manager subpool is in use, and
Java class objects can potentially remain heap-manager pinned leading to
the ORA-29553.</p>
<a name="FIX"></a>Solution
<p>Request a one off patch for bug or the following workarounds are available. <br><br>For manual migrations from 9.2 to 11.2: <br><br>- Use a SGA size less than 1GB. </p>
<p>OR<br><br>- Set hidden parameter '_kghdsidx_count' to 1 in parameter
file. This sets use of 1 subpool and can be removed after migration is
complete.<br><br><br>For migrations using DBUA from 9.2 to 11.2: <br><br>- Use a SGA size less than 1GB. </p><br><br>
页:
[1]