oracle安装常见问题
版本信息:CentOS6.5 + oracle11G
1、监视器颜色错误:
[oracle@bogon database]$ 正在启动 Oracle Universal Installer... 检查临时空间: 必须大于 120 MB。 实际为 13199 MB 通过 检查交换空间: 必须大于 150 MB。 实际为 3071 MB 通过 检查监视器: 监视器配置至少必须显示 256 种颜色 >>> 无法使用命令 /usr/bin/xdpyinfo 自动检查显示器颜色。请检查是否设置了 DISPLAY 变量。 未通过 <<<< 未通过某些要求检查。必须先满足这些 要求, 然后才能继续安装, 是否继续? (y/n) [n] y -bash: y: command not found [1]+ Stopped ./runInstaller
解决方法一:
退出root用户,然后重新以oracle用户登录
方法二:参考http://www.2cto.com/database/201302/189368.html
2、中文乱码:如果centos是中文环境,安装时会出现中文乱码,可以下指令
$ exportLANG=en
接着执行
$ ./runInstaller
3、提示错误:
[INS-06101] IP adddress of localhost could not be determined Are you sure you want to continue?
错误原因:主机名和/etc/hosts 文件不一致,只需要把主机名和其IP 写入/etc/hosts 文件,就ok。
解决方法:(参考:http://www.linuxidc.com/Linux/2011-09/44130.htm)
[root@bogon database]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=localhost.localdomain 主机名:localhost.localdomain [root@bogon database]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 [root@bogon database]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=localhost.localdomain [root@bogon database]# hostname bogon [root@bogon database]# hostname localhost [root@bogon database]# hostname localhost
4、提示:[INS-20802] Oracle Net Configuration Assistant failed
解决方法一(推荐):
[root@localhost 8670579]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 [root@localhost 8670579]# hostname localhost.localdomain
解决方法二:
安装补丁:p8670579_112010_LINUX
下载位置:http://dl.dbank.com/c0mqkyip5l
安装方法参考:http://www.cnblogs.com/gw811/p/3676882.html
5、安装单实例数据库结束后,执行:
[oracle@localhost ~]$ netca Oracle Net Services Configuration: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x00007fafa07d3a41, pid=2409, tid=140393309488896 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_17-b03 mixed mode) # Problematic frame: # C [libclntsh.so.11.1+0x62aa41] snlinGetAddrInfo+0x1b1 # # An error report file with more information is saved as hs_err_pid2409.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # /opt/oracle/product/OraHome/bin/netca: line 178: 2409 Aborted (core dumped) $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*
解决方法:切换到root用户执行此命令即可
6、找不到配置文件
SQL> startup ORA-01078: failure in processing system parameters LRM-00109: could not open parameter file '/opt/oracle/product/OraHome/dbs/initorcl.ora'