1. 检查软件配置要求
a. Linux内核要求为2.6.16.21:
suse-linux:~ # cat /proc/version
Linux version 2.6.16.21-0.8-default (geeko@buildhost) (gcc version 4.1.0 (SUSE Linux)) #1 Mon Jul 3 18:25:39 UTC 2006
也可以使用uname命令
suse-linux:~ # uname -r
2.6.16.21-0.8-default
b. 检查文件包
Ø binutils-2.16.91.0.5
suse-linux:~ # rpm -q binutils
binutils-2.16.91.0.5-23.4
Ø compat-libstdc++-5.0.7
suse-linux:~ # rpm -q compat-libstdc++
compat-libstdc++-5.0.7-22.2
Ø glibc-2.4-31.2
suse-linux:~ # rpm -q glibc
glibc-2.4-31.2
Ø glibc-devel-2.4-31.2
suse-linux:~ # rpm -q glibc-devel
glibc-devel-2.4-31.2
Ø gcc-4.1.0
suse-linux:~ # rpm -q gcc
gcc-4.1.0-28.4
Ø ksh-93r-12.9
suse-linux:~ # rpm -q ksh-93r
ksh-93r-12.9
Ø libaio-0.3.104
suse-linux:~ # rpm -q libaio
libaio-0.3.104-14.2
Ø libaio-devel-0.3.104
suse-linux:~ # rpm -q libaio-devel
package libaio-devel is not installed
suse-linux:~ # yast2 -i libaio-devel
suse-linux:~ # rpm -q libaio-devel
libaio-devel-0.3.104-14.2
Ø libelf-0.8.5
suse-linux:~ # rpm -q libelf
package libelf is not installed
suse-linux:~ # yast2 -i libelf
suse-linux:~ # rpm -q libelf
libelf-0.8.5-47.2
Ø libgcc-4.1.0
suse-linux:~ # rpm -q libgcc
libgcc-4.1.0-28.4
Ø libstdc++-4.1.0
suse-linux:~ # rpm -q libstdc++
libstdc++-4.1.0-28.4
Ø libstdc++-devel-4.1.0
suse-linux:~ # rpm -q libstdc++-devel
libstdc++-devel-4.1.0-28.4
Ø make-3.80
suse-linux:~ # rpm -q make
make-3.80-202.2
Ø sysstat-6.0.2
suse-linux:~ # rpm -q sysstat
package sysstat is not installed
suse-linux:~ # yast2 -i sysstat
suse-linux:~ # rpm -q sysstat
sysstat-6.0.2-16.4
Ø unixODBC-2.2.11
suse-linux:~ # rpm -q unixODBC
package unixODBC is not installed
suse-linux:~ # yast2 -i unixODBC
suse-linux:~ # rpm -q unixODBC
unixODBC-2.2.11-21.4
Ø unixODBC-devel-2.2.11
suse-linux:~ # rpm -q unixODBC-devel
package unixODBC-devel is not installed
suse-linux:~ # yast2 -i unixODBC-devel
suse-linux:~ # rpm -q unixODBC-devel
unixODBC-devel-2.2.11-21.4
2. 安装orarun软件包
suse-linux:~ # yast2 -i orarun
或
suse-linux:~ #rpm –ivh orarun-1.8-109.15.i586.rpm
3. 修改环境变量
当orarun软件包安装时,会自动建立名为oracle的用户,和一个oinstall组等。
a. 现首先使oracle用户可用
修改/etc/passwd文件中oracle用户的shell
suse-linux:/ # vi /etc/passwd
test:x:1000:100:test:/home/test:/bin/bash
oracle:x:103:106:Oracle user:/opt/oracle:/bin/bash
蓝字为更改后的内容
b. 修改/ect/profile.d/oracle.sh文件
suse-linux:/etc/profile.d # vi oracle.sh
#
# Set your ORACLE environment variable here
# ORACLE_HOME - Used here and in /etc/init.d/oracle (ora_environment())
# ORACLE_SID - Your Oracle System Identifier
#
ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1
ORACLE_SID=orcl
export ORACLE_BASE ORACLE_HOME ORACLE_SID
#
# Login environment variable settings for Oracle
# The code below is done ONLY if the user is "oracle":
蓝字部分为需要修改的部分
4. 建立ORACLE目录,并更改相应权限
mkdir -p /opt/oracle/product/10.2
chown -R oracle.dba /opt/oracle
chown -R oracle:oinstall /opt/oracle
chmod -R 777 /opt/oracle
5. 执行xhost +
6. 安装Oracle
注意:安装时不能使用root用户su到oracle用户,这将造成不能启动图形界面
由于Oracle 10g不能识别Suse linux 10,所以使用如下方法安装:
既可以
#. /runInstaller –ignoresysprereqs
也可以修改oraparam.ini文件,将其中添加SuSE-10
具体图形化安装步骤省略