在centOS上安装oracle出现的问题及解决方法

问题一:CentOS6.5 静默安装Oracle 11G过程中提示:Exception in thread "main" java.lang.NoClassDefFoundError .
在执行sh  ./database/runInstaller -silent -noconfig -responseFile  ./database/response/db_install.rsp时,提示:

$ Exception in thread "main" java.lang.NoClassDefFoundError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at java.awt.Toolkit$2.run(Toolkit.java:821)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
        at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
        at com.jgoodies.looks.LookUtils.(Unknown Source)
        at com.jgoodies.looks.plastic.PlasticLookAndFeel.(PlasticLookAndFeel.java:122)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
        at oracle.install.commons.util.Application.startup(Application.java:758)
        at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
        at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
        at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
        at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
        at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)

                   1 .系统中设置了DISPLAY环境变量

                      执行:

                               unset DISPLAY

                       然后再执行runInstaller.sh,执行成功

                   2.重新启动系统。以oracle的身份登录系统,然后执行./runInstaller

问题二:linux创建oracle时提示 file etc oratab is not accessible

原因是安装oracle的时候,忘记去执行 一个root.sh文件了,当然了,需要用root用户执行:
解决办法:
                

原因是安装oracle的时候,忘记去执行 一个root.sh文件了,当然了,需要用root用户执行:
解决办法:
               [root@localhost 10.2.0]#cd /oracle/product/10.2.0/db_1

               [root@localhost 10.2.0]# ./root.sh

              The following environment variables are set as:
               ORACLE_OWNER= oracle
               ORACLE_HOME= /opt/oracle/product/10g

               Enter the full pathname of the local bin directory: [/usr/local/bin]:
              Copying dbhome to /oracle/product/10.2.0/db_1/bin


               ./root.sh: line 155: [: too many arguments
               ./root.sh: line 175: [: too many arguments
              Copying dbhome to Copying dbhome to /oracle/product/10.2.0/db_1/bin ...
              ./root.sh: line 175: [: too many arguments
             Copying oraenv to Copying dbhome to /oracle/product/10.2.0/db_1/bin ...
             ./root.sh: line 175: [: too many arguments
             Copying coraenv to Copying dbhome to /oracle/product/10.2.0/db_1/bin ...


             Creating /etc/oratab file...
             Entries will be added to the /etc/oratab file as needed by
             Database Configuration Assistant when a database is created
             Finished running generic part of root.sh script.
             Now product-specific root actions will be performed.

问题三:centos 6.5中文版 安装ORACLE 11G R2 乱码

解决方法:export LC_ALL=en_US.UTF-8

你可能感兴趣的:(linux)