linux下安装oracle常见错误处理方式-摘录

常见错误:
常见错误1:[oracle@nj15 database]$ ./runInstaller
正在启动 Oracle Universal Installer...
正在检查安装程序要求...
检查操作系统版本: 必须是redhat-3, SuSE-9, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1 or asianux-2
通过所有安装程序要求均已满足。

准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2007-12-29_02-57-39AM.

请稍候...[oracle@nj15 database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-12-29_02-57-39AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.(Unknown Source)
at java.awt.Component.(Unknown Source)

解决方法:
进入安装盘 server目录,把
libXp-1.0.0-8.1.el5.i386.rpm
openmotif-devel-2.3.0-0.3.el5.i386.rpm
libXp-devel-1.0.0-8.1.el5.i386.rpm
openmotif-2.3.0-0.3.el5.i386.rpm
这4个安装包安装,先装 libXP,再装openmotif

常见错误2
[oracle@nj15 database]$ ./runInstaller
正在启动 Oracle Universal Installer...
正在检查安装程序要求...
检查操作系统版本: 必须是redhat-3, SuSE-9, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1 or asianux-2

通过所有安装程序要求均已满足。

准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2007-12-29_03-05-54AM. 请稍候...[oracle@nj15 database]$ Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at java.awt.Window.init(Unknown Source)
at java.awt.Window.(Unknown Source)
at java.awt.Frame.(Unknown Source)
at oracle.ewt.popup.PopupFrame.(Unknown Source)
at oracle.ewt.lwAWT.BufferedFrame.(Unknown Source)
at oracle.sysman.oio.oioc.OiocOneClickInstaller.(OiocOneClickInstaller.java:37
at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2091)

解决办法 :
#vi /etc/inittab
把 id:5:initdefault: 修改为 id:3:initdefault
#reboot
在文本模式下 用boot登录
# startx
# xhost +
# su - oracle
$ export DISPLAY="192.168.0.7:0.0"
$ export LANG=en_US
$ cd /tmp/10201_database_linux32/databases
$ ./runInstaller

常见错误3、swap空间不足。本错误只会在安装界面后出现,我的是走到38%不走了。

在图形界面中提示说:oracle需要的swap空间是2668M(这个是大概数字,我没记录实际的),而检测到的系统的swap空间是1988M,swap空间不够。

解决办法:1)dd if=/dev/zero of=/home/swap bs=1M count =1000;( 建立一个1000M的文件);{建议放到其他位置如:/dev}
2)mkswap /home/swap; (标识为SWAP文件)

3)swapon /home/swap;(激活SWAP文件)
4)修改/etc/fstab文件,增加以下内容:
/home/swap swap swap default 0 0
5)swapon -s 或free 或cat /proc/swaps 查看。


转存

猜你喜欢

转载自leiding.iteye.com/blog/1660093
今日推荐