脚踏实地、勇往直前!
全部博文(1005)
分类: Oracle
2011-11-24 15:04:56
步骤6:安装oracle软件(相关介质可以到oracle官网下载)
本人安装的oracle版本是10.2.0.1 for linux
1.进入oracle介质目录执行
2.出现如下界面,选择Basic Installation,UNIX DBA Group选择oinstall,这里先不创建数据库,取消Create Starter Database,然后点击Next
3.Specify Operating System group name选择oinstall,点击Next
4.oracle检查各安装条件项
5.这里选择Yes
6.点击Install
7.开始安装软件
8.打开一个命令窗口,在root用户下顺序执行如下的两个脚本
9.安装完成,点击Exit
oracle软件部分已经安装完成.
总结:
1.在Red Hat Linux As4安装10g还是比较顺利的,若在Red Hat Linux As5下安装10g,运行./runInstaller会报如下错误:
[oracle@hxl database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Failed <<<<
Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2012-02-16_04-34-52AM/installActions2012-02-16_04-34-52AM.log
这个时候需要修改install目录下的oraparam.ini(/database/install/oraparam.ini),添加红色部分的内容,这可能是oracle的一个bug.
[Certified Versions]
Linux=redhat-3,SuSE-9,redhat-4,redhat-5,UnitedLinux-1.0,asianux-1,asianux-2
[UnitedLinux-1.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
[Linux-redhat-3.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
[Linux-SuSE-9-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
[Linux-redhat-4.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
[Linux-redhat-5.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
[Linux-asianux-1.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
[Linux-asianux-2.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
2.在运行./runInstaller报如下错误:
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-02-16_04-40-38AM. Please wait ...[oracle@hxl database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-02-16_04-40-38AM/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.
at java.awt.Component.
原因是安装linux的时候少安装了如下包:
libXp-1.0.0-8.i386.rpm
libXp-devel-1.0.0-8.i386.rpm
libXpm-3.5.5-3.i386.rpm
libXpm-devel-3.5.5-3.i386.rpm
libXau-1.0.1-3.1.i386.rpm
libXau-devel-1.0.1-3.1.i386.rpm
可以从安装盘中找到以上包安装.
--The End--