天道酬勤

Oracle and My Life

DBCA failed when press finish button

leave a comment

以前安装完oracle,在用DBCA创建数据库时,在配置了一系统列参数之到了最后点”完成”的时候,创建画面异常消失没了任何反映,以前用在网上找到的方法解决如下:
Case:JRE 的版本不对, Oracle 一般使用的JRE是1.1.8到$ORACLE_BASE/jre 目录下,发现Oracle本身已经有1.3.1版的JRE
#ls $ORACLE_BASE/jre
1.1.8/ 1.3.1/
Fix:只要改变一下链接使用1.3.1的JRE就可以了。(可以查看dbca的script)

   1. #rm $ORACLE_HOME/JRE    (此JRE目录是1.1.8 的符号链接)
   2. #ln -s $ORACLE_BASE/jre/1.3.1  $ORACLE_HOME/JRE
   3. #cd $ORACLE_BASE/jre/1.3.1/bin
   4. #ln -s $ORACLE_BASE/jre/1.3.1/bin/.java_wrapper   jre
       OR: #ln -s Java jre
   5. #cd i386/native_threads
   6. #ln -s java  jre

完成以上步骤后再启动dbca问题就解决了。

今天再次遇到该问题,在metalink上查了一下有更好的解决办法:
Doc ID: 292278.1
Fix:
Perform the following steps to correct the defect in DBCA.

Step 1-->
Backup $ORACLE_HOME/bin/dbca shell script
 
Step 2-->
Change only line #124 in the $ORACLE_HOME/bin/dbca script to include -native flag as follows
 
$JRE_DIR/bin/jre -native -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m
-classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
 
Step 3-->
Run the root.sh and continue running the configuration assistants
DIFF will something like this.
======================
diff $ORACLE_HOME/bin/dbca $ORACLE_HOME/bin/dbca.ORG
124c124
<$JRE_DIR/bin/jre -native -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m
-classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
---
>$JRE_DIR/bin/jre -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m -classpath
$CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENT

Written by ochef

March 13th, 2009 at 11:15 am

Posted in Database

Tagged with ,

Leave a Reply

无觅相关文章插件,快速提升流量