淘先锋技术网

首页 1 2 3 4 5 6 7

这次试了试使用静默安装Oracle,过程比较麻烦,好在有文档帮助,但是由于自己的粗心导致了各种奇葩问题,记录下来。

进行静默安装数据库

 $ORACLE_HOME/bin/dbca -silent -responseFile /home/oracle/etc/dbca.rsp

出现问题:

[oracle@bogon ~]$ $ORACLE_HOME/bin/dbca -silent -responseFile /home/oracle/etc/dbca.rsp
Exception in thread "main" java.lang.NullPointerException
        at oracle.sysman.assistants.util.INIFile$IniPair.<init>(INIFile.java:)
        at oracle.sysman.assistants.util.INIFile$IniSection.addPair(INIFile.java:)
        at oracle.sysman.assistants.util.INIFile.readINIFile(INIFile.java:)
        at oracle.sysman.assistants.util.INIFile.getProfileString(INIFile.java:)
        at oracle.sysman.assistants.dbca.backend.CommandLineArguments.processResponseFile(CommandLineArguments.java:)
        at oracle.sysman.assistants.dbca.backend.CommandLineArguments.process(CommandLineArguments.java:)
        at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:)
        at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:)

网上百度了下,说没有JDK环境,一查还真没有,然后安装JDK,这里直接安装了openjdk

命令:

yum install java*
yum install java-.-openjdk.i686 -y

然后并没有什么用,还是报错,最后查看dbca.rsp文件,发现多写一个i,尴尬,接下来又报错了,这次是权限问题

Cannot create directory "/soft/u01/app/oracle/cfgtoollogs/dbca/orcl".
Error writing into silent log -- /soft/u01/app/oracle/cfgtoollogs/dbca/silent.log (Permission denied)
Error in file copy from </soft/u01/app/oracle/cfgtoollogs/dbca/silent.log> to </soft/u01/app/oracle/cfgtoollogs/dbca/orcl.log>
Look at the log file "/soft/u01/app/oracle/cfgtoollogs/dbca/silent.log" for furt     her details.

给文件夹赋权限

chmod -R  /soft/u01/app/

总结:还是自己太粗心