Linux下安装oracle9i(一)
2008-05-23 15:49Linux下安装oracle9i(一)
1、准备安装文件oracle
下载或者从光盘中得到这三个安装包
ship_9204_linux_disk1.cpio.gz
ship_9204_linux_disk2.cpio.gz
ship_9204_linux_disk3.cpio.gz
gunzip ship_9204_linux_disk1.cpio.gz
解压之后文件为ship_9204_linux_disk1.cpio
cpio -idmv <ship_9204_linux_disk1.cpio
解压生成Disk1文件
对disk2和disk3也照着这样操作
2、创建用户和组
su -
回到root
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
新增用户
passwd oracle
修改密码
3、准备文件目录
mkdir -p /opt/ora9/product/9.2
mkdir /var/opt/oracle
chown oracle.dba /var/opt/oracle
chown -R oracle.dba /opt/ora9
4、调节系统内核参数及安装支持软件包
4.1 首先用命令rpm -qa|grep compat 查看系统中是否安有以下几个软件包
compat-gcc-7.3-2.96.118.i386.rpm
compat-libgcj-7.3-2.96.118.i386.rpm
compat-libgcj-devel-7.3-2.96.118.i386.rpm
nss_db-compat-2.2-20.i386.rpm
到网站
http://rpm.pbone.net/
搜索下载对应的rpm包后安装
compat-gcc
下载地址
ftp://ftp.pbone.net/mirror/www.whiteboxlinux.org/whitebox/3.0/en/updates/i386/compat-gcc-7.3-2.96.128.i386.rpm
compat-libgcj
下载地址
ftp://ftp.nluug.nl/pub/os/Linux/distr/startcom/ML-3.0.3/os/i386/StartCom/RPMS/compat-libgcj-7.3-2.96.128.i386.rpm
compat-libgcj-devel
下载地址
ftp://ftp.pbone.net/mirror/www.whiteboxlinux.org/whitebox/3.0/en/updates/i386/compat-libgcj-devel-7.3-2.96.128.i386.rpm
nss_db-compat
下载地址
ftp://ftp.funet.fi/pub/mirrors/archive.redhat.com/redhat/linux/9/en/os/i386/RedHat/RPMS/nss_db-compat-2.2-20.i386.rpm
rpm -ivh your-package.rpm
都没有大问题,但是在安装nss_db-compat时报错如下:
[root@localhost tmp]# rpm -i nss_db-compat-2.2-20.i386.rpm
error: Failed dependencies:
libc.so.6(GLIBC_PRIVATE) is needed by nss_db-compat-2.2-20.i386
libnss_files.so.2(GLIBC_PRIVATE) is needed by nss_db-compat-2.2-20.i386
安装GLIBC_2.3.4
下载地址
ftp://ftp.icm.edu.pl/vol/rzm1/linux-pld/dists/ac/ready/i386/glibc-2.3.4-4.i386.rpm
安装报错
[root@localhost tmp]# rpm -i glibc-2.3.4-4.i386.rpm
warning: glibc-2.3.4-4.i386.rpm: V3 DSA signature: NOKEY, key ID e01260f1
error: Failed dependencies:
glibc > 2.3.4 conflicts with glibc-common-2.3.4-2.i386
发现我安装了包
rpm -qa | grep glibc-common
glibc-common-2.3.4-2
不知道是否是版本冲突
重新下载一个小版本号也能对应的
ftp://ftp.nluug.nl/pub/os/Linux/distr/startcom/ML-4.0.4/os/i386/StartCom/RPMS/glibc-2.3.4-2.i386.rpm
安装成功,那么再重新安装 nss_db-compat-2.2-20.i386.rpm
还是报相同的错误。怀疑是版本不对导致。所以注意查看所有的RPM包的版本。准备重新下载然后重新安装
compat-gcc-7.3-2.96.118.i386.rpm
compat-libgcj-7.3-2.96.118.i386.rpm
compat-libgcj-devel-7.3-2.96.118.i386.rpm
nss_db-compat-2.2-20.i386.rpm
下载RPM包
rpm -e rpm包名
下载了小版本号118的还是报相同的错误
安装这个包试试,同事传给我的一个补丁
compat-libcwait-2.1-1.i386.rpm
http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/compat-oracle-rhel4-1.0-5.i386.rpm
安装成功
compat-oracle-rhel4-1.0-5.i386.rpm
http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/compat-libcwait-2.1-1.i386.rpm
安装失败,报错
[root@localhost tmp]# rpm -ivh compat-oracle-rhel4-1.0-5.i386.rpm
error: Failed dependencies:
compat-gcc-32 is needed by compat-oracle-rhel4-1.0-5.i386
compat-gcc-32-c++ is needed by compat-oracle-rhel4-1.0-5.i386
compat-libgcc-296 is needed by compat-oracle-rhel4-1.0-5.i386
compat-libstdc++-296 is needed by compat-oracle-rhel4-1.0-5.i386
libaio is needed by compat-oracle-rhel4-