时间:2020-10-24 11:44:23 | 栏目:Oracle | 点击:次
这次试了试使用静默安装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:88)
at oracle.sysman.assistants.util.INIFile$IniSection.addPair(INIFile.java:225)
at oracle.sysman.assistants.util.INIFile.readINIFile(INIFile.java:827)
at oracle.sysman.assistants.util.INIFile.getProfileString(INIFile.java:439)
at oracle.sysman.assistants.dbca.backend.CommandLineArguments.processResponseFile(CommandLineArguments.java:4340)
at oracle.sysman.assistants.dbca.backend.CommandLineArguments.process(CommandLineArguments.java:3564)
at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:109)
at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
网上百度了下,说没有JDK环境,一查还真没有,然后安装JDK,这里直接安装了openjdk
命令:
yum install java* yum install java-1.8.0-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 775 /soft/u01/app/
总结:还是自己太粗心