unixboy 发表于 2013-1-25 22:39:16

单机安装oracle 9201 ,然后patch 到9204

将oracle的cpio文件解压缩:
  # Uncompress
  gunzip Linux9i_Disk1.cpio.gz Linux9i_Disk2.cpio.gz Linux9i_Disk3.cpio.gz
  # Unpack the downloaded files:
  cpio -idmv < Linux9i_Disk1.cpio
  cpio -idmv < Linux9i_Disk2.cpio
  cpio -idmv < Linux9i_Disk3.cpio
# ll
total 12
drwxr-xr-x    5 root     root         4096 Aug 29 07:49 oracle9
drwxr-xr-x    2 root     root         4096 Aug 29 07:42 ras3_iso
drwxr-xr-x    4 root     root         4096 Aug 29 08:44 vmware251
# chown -R oracle:dba oracle9
# ll
total 12
drwxr-xr-x    5 oracle   dba          4096 Aug 29 07:49 oracle9
drwxr-xr-x    2 root     root         4096 Aug 29 07:42 ras3_iso
drwxr-xr-x    4 root     root         4096 Aug 29 08:44 vmware251
# ll oracle9/
total 12
drwxr-xr-x    3 oracle   dba          4096 Aug 29 08:31 disk1
drwxr-xr-x    3 oracle   dba          4096 Aug 29 08:31 disk2
drwxr-xr-x    3 oracle   dba          4096 Aug 29 08:30 disk3
#
设置物理内存和SWAP:
检查物理内存:
# grep MemTotal /proc/meminfo
MemTotal:      1029608 kB
#
也可以使用free来检查内存的使用:
# free
             total       used       free     shared    buffers     cached
Mem:       1029608    1001972      27636          0      48556     852340
-/+ buffers/cache:     101076     928532
Swap:      2048248          0    2048248
#

检查swap的使用情况:
# cat /proc/swaps
Filename                        Type            Size    Used    Priority
/dev/hda6                       partition       2048248 0       -1
#

检查共享内存的设置(shmmax setting):
# cat /proc/sys/kernel/shmmax
33554432   ---这是缺省值
#

检查当前所有的共享内存的设置:
# ipcs -lm
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 32768
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1
#
我们最好将共享内存设置为大于SGA的大小,比如1G(因为我的物理内存小):
设置共享内存的方法有2个:
方法1:
echo "1073741824" > /proc/sys/kernel/shmmax
方法2: 使用 sysctl(8) 来修改内核参数的值:
sysctl -w kernel.shmmax=1073741824
为了永久的改变内核参数的值,需要将该参数加入到/etc/sysctl.conf中:
echo "kernel.shmmax=1073741824" >> /etc/sysctl.conf
操作结果类似:
# echo "1073741824" > /proc/sys/kernel/shmmax
# echo "kernel.shmmax=1073741824" >> /etc/sysctl.conf
检查修改后的参数是否生效:
# cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
kernel.shmmax=1073741824
# cat /proc/sys/kernel/shmmax
1073741824
# ipcs -lm
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 1048576
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1
#  内核参数需要重新启动才可以生效
系统级别的共享内存段的最大个数(数量),linux默认是4096:
# cat /proc/sys/kernel/shmmni
4096
#
检查所有的信号量:
# ipcs -ls
------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767
#
//////////////////////////////////////////////////////////////////////////
系统共享内存页的大小(至少为: SHMMAX/PAGE_SIZE)
# cat /proc/sys/kernel/shmall
2097152
#
This parameter sets the total amount of shared memory in pages that can be used at one time on the system. So
shmall should always be at least ceil(SHMMAX/PAGE_SIZE).
The default size for shmall on RH 2.1 AS is 2097152. This should be sufficient since it means that the total
amount of shared memory available on the system is 2097152*4096 bytes (shmall*PAGE_SIZE). On i386 architectures,
the PAGE_SIZE in RHAS 2.1 (UP and SMP kernel) is 4096 bytes unless you use bigpages which supports the
configuration of larger memory pages.
# cat /proc/sys/kernel/shmall
2097152
If you don't know what PAGE_SIZE is on your Linux system, copy/paste the following commands into a shell:
cat << EOF |
#include
main() { printf ("%d bytes\n",getpagesize()); }
EOF
gcc -xc - -o /tmp/getpagesize
/tmp/getpagesize; rm -f /tmp/getpagesize
This program will display the size of PAGE_SIZE in bytes.
//////////////////////////////////////////////////////////////////////////
检查内核参数的设置:
# cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
kernel.shmmax=1073741824
#

检查/tmp空间的设置,至少应该在400M,如果磁盘空间够用的话,建议设置在1G以上:
df /tmp
///////////////////////////////////////////////////////////////
检查操作系统RPM包的信息:
ADS3上需要的rpm有:
-----------------------------------------------------------
来自metalink:
        * Linux kernel version would be 2.4.21-4.EL 
        * Glibc Version Number glibc 2.3.2-95.3 
        * Required OS Components
             - compat-db-4.0.14.5
             - compat-gcc-7.3-2.96.122
             - compat-gcc-c++-7.3-2.96.122
             - compat-libstdc++-7.3-2.96.122
             - compat-libstdc++-devel-7.3-2.96.122
             - openmotif21-2.1.30-8.i386.rpm 
             - setarch-1.3-1
检查结果:
# cat a.sh
rpm -qa compat-db-4.0*
rpm -qa compat-gcc-7.3*
rpm -qa compat-gcc-c++-7.3*
rpm -qa compat-libstdc++-7.3*
rpm -qa compat-libstdc++-devel*
rpm -qa openmotif*
rpm -qa setarch*
# ./a.sh
openmotif-2.2.2-16
setarch-1.3-1
#
根据 Note:263715.1
Subject:  Configuring RHAS 30 for Usage with Oracle
查考内容:
=======================================
- After system bootup, login as root and insert the Disk2:
  mount /mnt/cdrom
  rpm -iv /mnt/cdrom/RedHat/RPMS/sysstat-4.*.rpm
  eject
- insert Disk3:
  mount /mnt/cdrom
  rpm -iv /mnt/cdrom/RedHat/RPMS/compat-db-4.*.rpm
  rpm -iv /mnt/cdrom/RedHat/RPMS/ORBit-0.*.rpm
  rpm -iv /mnt/cdrom/RedHat/RPMS/libpng10-1.*.rpm
  rpm -iv /mnt/cdrom/RedHat/RPMS/gnome-libs-1.*.rpm
  eject
=======================================
安装下面的包:
# rpm -iv /mnt/cdrom/RedHat/RPMS/sysstat-4.*.rpm
warning: /mnt/cdrom/RedHat/RPMS/sysstat-4.0.7-4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing packages for installation...
sysstat-4.0.7-4
# rpm -qa sysstat*
sysstat-4.0.7-4
#
#   rpm -iv /mnt/cdrom/RedHat/RPMS/compat-db-4.*.rpm
warning: /mnt/cdrom/RedHat/RPMS/compat-db-4.0.14-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing packages for installation...
        package compat-db-4.0.14-5.1 (which is newer than compat-db-4.0.14-5) is already installed
        file /lib/libdb-3.1.so from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /lib/libdb-3.2.so from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /lib/libdb-3.3.so from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /lib/libdb-4.0.so from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /lib/libdb2.so.3 from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/berkeley_db31_svc from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/bin/berkeley_db32_svc from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/bin/berkeley_db33_svc from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/bin/berkeley_db40_svc from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/bin/db2_archive from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db2_checkpoint from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db2_deadlock from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db2_dump from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db2_load from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db2_printlog from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db2_recover from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db2_stat from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db31_archive from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db31_checkpoint from install of compat-db-4.0.14-5 conflicts with file from package compat
-db-4.0.14-5.1
        file /usr/bin/db31_deadlock from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db31_dump from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db31_load from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db31_printlog from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db31_recover from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db31_stat from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db31_upgrade from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db31_verify from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db32_archive from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db32_checkpoint from install of compat-db-4.0.14-5 conflicts with file from package compat
-db-4.0.14-5.1
        file /usr/bin/db32_deadlock from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db32_dump from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db32_load from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db32_printlog from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db32_recover from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db32_stat from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db32_upgrade from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db32_verify from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db33_archive from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db33_checkpoint from install of compat-db-4.0.14-5 conflicts with file from package compat
-db-4.0.14-5.1
        file /usr/bin/db33_deadlock from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db33_dump from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db33_load from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db33_printlog from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db33_recover from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db33_stat from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db33_upgrade from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db33_verify from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db40_archive from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db40_checkpoint from install of compat-db-4.0.14-5 conflicts with file from package compat
-db-4.0.14-5.1
        file /usr/bin/db40_deadlock from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db40_dump from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db40_load from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db40_printlog from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db40_recover from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db40_stat from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db40_upgrade from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db40_verify from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/lib/libdb_cxx-3.1.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_cxx-3.2.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_cxx-3.3.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_cxx-4.0.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_tcl-3.1.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_tcl-3.2.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_tcl-3.3.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_tcl-4.0.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
#
#   rpm -iv /mnt/cdrom/RedHat/RPMS/ORBit-0.*.rpm
warning: /mnt/cdrom/RedHat/RPMS/ORBit-0.5.17-10.4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing packages for installation...
ORBit-0.5.17-10.4
#   rpm -iv /mnt/cdrom/RedHat/RPMS/libpng10-1.*.rpm
warning: /mnt/cdrom/RedHat/RPMS/libpng10-1.0.13-8.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing packages for installation...
libpng10-1.0.13-8
#   rpm -iv /mnt/cdrom/RedHat/RPMS/gnome-libs-1.*.rpm
warning: /mnt/cdrom/RedHat/RPMS/gnome-libs-1.4.1.2.90-34.1.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing packages for installation...
        file /usr/bin/db1_dump185 from install of gnome-libs-1.4.1.2.90-34.1 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb1.so.2 from install of gnome-libs-1.4.1.2.90-34.1 conflicts with file from package
compat-db-4.0.14-5.1
#

检查一下安装结果:
# cat >a.sh
  rpm -qa sysstat*
  rpm -qa compat-db*
  rpm -qa ORBit*
  rpm -qa libpng10*
  rpm -qa gnome-lib
 
# ./a.sh
sysstat-4.0.7-4
compat-db-4.0.14-5.1
ORBit2-2.6.2-1
ORBit-0.5.17-10.4
libpng10-1.0.13-8
#
-----------------------------------------------------------
来自 www.puschitz.com:
rpm -q make \
       binutils \
       gcc \
       cpp \
       glibc-devel \
       glibc-headers \
       glibc-kernheaders \
       compat-db \
       compat-gcc \
       compat-gcc-c++ \
       compat-libstdc++ \
       compat-libstdc++-devel \
       gnome-libs \
       openmotif21 \
       setarch

检查结果:
# rpm -qa compat*
compat-libstdc++-7.3-2.96.128
compat-db-4.0.14-5.1
compat-libstdc++-devel-7.3-2.96.128
compat-gcc-c++-7.3-2.96.128
compat-gcc-7.3-2.96.128
#
-----------------------------------------------------------
来自 wzy25:
rpm -ivh compat-gcc-7.3-2.96.122.i386.rpm                     (光盘三)
rpm -ivh compat-libstdc++-7.3-2.96.122.i386.rpm                (光盘三)
rpm -ivh compat-libstdc++-devel-7.3-2.96.122.i386.rpm         (光盘三)
rpm -ivh compat-gcc-c++-7.3-2.96.122.i386.rpm                 (光盘三)
rpm -ivh compat-db-4.0.14-5.i386.rpm                          (光盘三)
 
rpm -ivh openmotif21-2.1.30-8.i386.rpm                        (光盘三)
 mv /usr/bin/gcc  /usr/bin/gcc323        
 mv  /usr/bin/g++ /usr/bin/g++323         
 ln -s /usr/bin/gcc296 /usr/bin/gcc        
 ln -s /usr/bin/g++296 /usr/bin/g++ 
 解开p3006854_9204_LINUX.zip
 cd 3006854
 su - root
 sh rhel3_pre_install.sh
安装下面的包:
# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-gcc-7.3-2.96.122.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/compat-gcc-7.3-2.96.122.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
        package compat-gcc-7.3-2.96.128 (which is newer than compat-gcc-7.3-2.96.122) is already installed
        file /usr/bin/gcc296 from install of compat-gcc-7.3-2.96.122 conflicts with file from package compat-gcc
-7.3-2.96.128
        file /usr/bin/i386-redhat-linux7-gcc from install of compat-gcc-7.3-2.96.122 conflicts with file from
package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/cc1 from install of compat-gcc-7.3-2.96.122 conflicts with
file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/collect2 from install of compat-gcc-7.3-2.96.122 conflicts
with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/cpp0 from install of compat-gcc-7.3-2.96.122 conflicts with
file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/crtbegin.o from install of compat-gcc-7.3-2.96.122
conflicts with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/crtbeginS.o from install of compat-gcc-7.3-2.96.122
conflicts with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/crtend.o from install of compat-gcc-7.3-2.96.122 conflicts
with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/crtendS.o from install of compat-gcc-7.3-2.96.122 conflicts
with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/libgcc.a from install of compat-gcc-7.3-2.96.122 conflicts
with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/tradcpp0 from install of compat-gcc-7.3-2.96.122 conflicts
with file from package compat-gcc-7.3-2.96.128
#
# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-libstdc++-7.3-2.96.122.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/compat-libstdc++-7.3-2.96.122.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
        package compat-libstdc++-7.3-2.96.128 (which is newer than compat-libstdc++-7.3-2.96.122) is already
installed
        file /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so from install of compat-libstdc++-7.3-2.96.122 conflicts
with file from package compat-libstdc++-7.3-2.96.128
#

这个包装不上!!!
# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-libstdc++-edvel-7.3-2.96.122.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/compat-libstdc++-devel-7.3-2.96.122.i386.rpm: V3 DSA signature: NOKEY, key ID
db42a60e
error: Failed dependencies:
        compat-libstdc++ = 7.3-2.96.122 is needed by compat-libstdc++-devel-7.3-2.96.122
    Suggested resolutions:
        compat-libstdc++-7.3-2.96.122.i386.rpm
#
# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-libstdc++-7.3-2.96.122.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/compat-libstdc++-7.3-2.96.122.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
        package compat-libstdc++-7.3-2.96.128 (which is newer than compat-libstdc++-7.3-2.96.122) is already
installed
        file /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so from install of compat-libstdc++-7.3-2.96.122 conflicts
with file from package compat-libstdc++-7.3-2.96.128
#
# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-libstdc++-devel-7.3-2.96.122.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/compat-libstdc++-devel-7.3-2.96.122.i386.rpm: V3 DSA signature: NOKEY, key ID
db42a60e
error: Failed dependencies:
        compat-libstdc++ = 7.3-2.96.122 is needed by compat-libstdc++-devel-7.3-2.96.122
    Suggested resolutions:
        compat-libstdc++-7.3-2.96.122.i386.rpm
#
这个包装不上!!!
# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-gcc-c++-7.3-2.96.122.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/compat-gcc-c++-7.3-2.96.122.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
        compat-gcc = 7.3-2.96.122 is needed by compat-gcc-c++-7.3-2.96.122
    Suggested resolutions:
        compat-gcc-7.3-2.96.122.i386.rpm
# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-gcc-7.3-2.96.122.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/compat-gcc-7.3-2.96.122.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
        package compat-gcc-7.3-2.96.128 (which is newer than compat-gcc-7.3-2.96.122) is already installed
        file /usr/bin/gcc296 from install of compat-gcc-7.3-2.96.122 conflicts with file from package compat-gcc
-7.3-2.96.128
        file /usr/bin/i386-redhat-linux7-gcc from install of compat-gcc-7.3-2.96.122 conflicts with file from
package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/cc1 from install of compat-gcc-7.3-2.96.122 conflicts with
file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/collect2 from install of compat-gcc-7.3-2.96.122 conflicts
with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/cpp0 from install of compat-gcc-7.3-2.96.122 conflicts with
file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/crtbegin.o from install of compat-gcc-7.3-2.96.122
conflicts with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/crtbeginS.o from install of compat-gcc-7.3-2.96.122
conflicts with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/crtend.o from install of compat-gcc-7.3-2.96.122 conflicts
with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/crtendS.o from install of compat-gcc-7.3-2.96.122 conflicts
with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/libgcc.a from install of compat-gcc-7.3-2.96.122 conflicts
with file from package compat-gcc-7.3-2.96.128
        file /usr/lib/gcc-lib/i386-redhat-linux7/2.96/tradcpp0 from install of compat-gcc-7.3-2.96.122 conflicts
with file from package compat-gcc-7.3-2.96.128
#
# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-gcc-c++-7.3-2.96.122.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/compat-gcc-c++-7.3-2.96.122.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
        compat-gcc = 7.3-2.96.122 is needed by compat-gcc-c++-7.3-2.96.122
    Suggested resolutions:
        compat-gcc-7.3-2.96.122.i386.rpm
#
# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-db-4.0.14-5.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/compat-db-4.0.14-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
        package compat-db-4.0.14-5.1 (which is newer than compat-db-4.0.14-5) is already installed
        file /lib/libdb-3.1.so from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /lib/libdb-3.2.so from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /lib/libdb-3.3.so from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /lib/libdb-4.0.so from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /lib/libdb2.so.3 from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/berkeley_db31_svc from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/bin/berkeley_db32_svc from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/bin/berkeley_db33_svc from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/bin/berkeley_db40_svc from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/bin/db2_archive from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db2_checkpoint from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db2_deadlock from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db2_dump from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db2_load from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db2_printlog from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db2_recover from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db2_stat from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db31_archive from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db31_checkpoint from install of compat-db-4.0.14-5 conflicts with file from package compat
-db-4.0.14-5.1
        file /usr/bin/db31_deadlock from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db31_dump from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db31_load from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db31_printlog from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db31_recover from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db31_stat from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db31_upgrade from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db31_verify from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db32_archive from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db32_checkpoint from install of compat-db-4.0.14-5 conflicts with file from package compat
-db-4.0.14-5.1
        file /usr/bin/db32_deadlock from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db32_dump from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db32_load from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db32_printlog from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db32_recover from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db32_stat from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db32_upgrade from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db32_verify from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db33_archive from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db33_checkpoint from install of compat-db-4.0.14-5 conflicts with file from package compat
-db-4.0.14-5.1
        file /usr/bin/db33_deadlock from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db33_dump from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db33_load from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db33_printlog from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db33_recover from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db33_stat from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db33_upgrade from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db33_verify from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db40_archive from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db40_checkpoint from install of compat-db-4.0.14-5 conflicts with file from package compat
-db-4.0.14-5.1
        file /usr/bin/db40_deadlock from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db40_dump from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db40_load from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db40_printlog from install of compat-db-4.0.14-5 conflicts with file from package compat-
db-4.0.14-5.1
        file /usr/bin/db40_recover from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db40_stat from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/bin/db40_upgrade from install of compat-db-4.0.14-5 conflicts with file from package compat-db
-4.0.14-5.1
        file /usr/bin/db40_verify from install of compat-db-4.0.14-5 conflicts with file from package compat-db-
4.0.14-5.1
        file /usr/lib/libdb_cxx-3.1.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_cxx-3.2.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_cxx-3.3.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_cxx-4.0.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_tcl-3.1.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_tcl-3.2.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_tcl-3.3.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
        file /usr/lib/libdb_tcl-4.0.so from install of compat-db-4.0.14-5 conflicts with file from package
compat-db-4.0.14-5.1
#

# rpm -ivh /mnt/cdrom/RedHat/RPMS/openmotif21-2.1.30-8.i386.rpm
warning: /mnt/cdrom/RedHat/RPMS/openmotif21-2.1.30-8.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
   1:openmotif21            ###########################################
#

从网站上下载的rpm来安装:
# pwd
/oracle/tools/rpm_patch
# ll
total 9160
-rw-r--r--    1 root     root      3643323 Aug 29 11:50 compat-db-4.0.14-5.1.i386.rpm
-rw-r--r--    1 root     root      2439343 Aug 29 11:50 compat-gcc-7.3-2.96.128.i386.rpm
-rw-r--r--    1 root     root      1850362 Aug 29 11:50 compat-gcc-c++-7.3-2.96.128.i386.rpm
-rw-r--r--    1 root     root      1056574 Aug 29 11:50 compat-libstdc++-7.3-2.96.128.i386.rpm
-rw-r--r--    1 root     root       362405 Aug 29 11:50 compat-libstdc++-devel-7.3-2.96.128.i386.rpm
# rpm -Uvh compat-db-4.0.14-5.1.i386.rpm
warning: compat-db-4.0.14-5.1.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
        package compat-db-4.0.14-5.1 is already installed
# rpm -Uvh compat-gcc-7.3-2.96.128.i386.rpm
warning: compat-gcc-7.3-2.96.128.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
        package compat-gcc-7.3-2.96.128 is already installed
# rpm -Uvh compat-gcc-c++-7.3-2.96.128.i386.rpm
warning: compat-gcc-c++-7.3-2.96.128.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
        package compat-gcc-c++-7.3-2.96.128 is already installed
# rpm -Uvh compat-libstdc++-7.3-2.96.128.i386.rpm
warning: compat-libstdc++-7.3-2.96.128.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
        package compat-libstdc++-7.3-2.96.128 is already installed
# rpm -Uvh compat-libstdc++-devel-7.3-2.96.128.i386.rpm
warning: compat-libstdc++-devel-7.3-2.96.128.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ###########################################
        package compat-libstdc++-devel-7.3-2.96.128 is already installed
#
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
需要将gcc,g++更换为2.96版本的:
mv /usr/bin/gcc /usr/bin/gcc323
mv /usr/bin/g++ /usr/bin/g++323
ln -s /usr/bin/gcc296 /usr/bin/gcc
ln -s /usr/bin/g++296 /usr/bin/g++
# mv /usr/bin/gcc /usr/bin/gcc323
# mv /usr/bin/g++ /usr/bin/g++323
# ln -s /usr/bin/gcc296 /usr/bin/gcc
# ln -s /usr/bin/g++296 /usr/bin/g++
# ll gcc*
lrwxrwxrwx    1 root     root           15 Aug 29 11:57 gcc -> /usr/bin/gcc296
-rwxr-xr-x    2 root     root        81864 Mar 24  2004 gcc296
lrwxrwxrwx    1 root     root            7 Aug 28 12:58 gcc323 -> gcc3.23
-rwxr-xr-x    2 root     root        84740 Sep 16  2003 gcc3.23
-rwxr-xr-x    1 root     root        86184 Sep 18  2003 gcc-ssa
# ll g++*
lrwxrwxrwx    1 root     root           15 Aug 29 11:57 g++ -> /usr/bin/g++296
-rwxr-xr-x    3 root     root        81864 Mar 24  2004 g++296
-rwxr-xr-x    4 root     root        84740 Sep 16  2003 g++323
-rwxr-xr-x    1 root     root        88888 Sep 18  2003 g++-ssa
#
///////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////
设置内核参数:
  echo "" >> /etc/sysctl.conf
  echo "# Oracle specific settings" >> /etc/sysctl.conf
  echo "kernel.hostname = rac1.oracle.com" >> /etc/sysctl.conf
  echo "# semaphores in kernel.sem: semmsl semmns semopm semmni" >> /etc/sysctl.conf
  echo "kernel.sem = 256 32000 100 142" >> /etc/sysctl.conf
  echo "kernel.shmmax = 2147483648" >> /etc/sysctl.conf
  echo "kernel.shmmni = 4096" >> /etc/sysctl.conf
  echo "kernel.shmall = 3279547" >> /etc/sysctl.conf
  echo "fs.file-max = 327679" >> /etc/sysctl.conf
  echo "net.ipv4.ip_local_port_range = 1024 65000" >> /etc/sysctl.conf
  echo "kernel.msgmni = 2878" >> /etc/sysctl.conf
  echo "kernel.msgmnb = 65535" >> /etc/sysctl.conf
  echo "" >> /etc/security/limits.conf
  echo "# Oracle specific settings" >> /etc/security/limits.conf
  echo "oracle soft nofile  1024" >> /etc/security/limits.conf
  echo "oracle hard nofile 65536" >> /etc/security/limits.conf
  echo "oracle soft nproc   2047" >> /etc/security/limits.conf
  echo "oracle hard nproc  16384" >> /etc/security/limits.conf
 
操作过程:
# >a.sh
# cat >a.sh
  echo "" >> /etc/sysctl.conf
  echo "# Oracle specific settings" >> /etc/sysctl.conf
  echo "kernel.hostname = rac1.oracle.com" >> /etc/sysctl.conf
  echo "# semaphores in kernel.sem: semmsl semmns semopm semmni" >> /etc/sysctl.conf
  echo "kernel.sem = 256 32000 100 142" >> /etc/sysctl.conf
  echo "kernel.shmmax = 2147483648" >> /etc/sysctl.conf
  echo "kernel.shmmni = 4096" >> /etc/sysctl.conf
  echo "kernel.shmall = 3279547" >> /etc/sysctl.conf
  echo "fs.file-max = 327679" >> /etc/sysctl.conf
  echo "net.ipv4.ip_local_port_range = 1024 65000" >> /etc/sysctl.conf
  echo "kernel.msgmni = 2878" >> /etc/sysctl.conf
  echo "kernel.msgmnb = 65535" >> /etc/sysctl.conf
  echo "" >> /etc/security/limits.conf
  echo "# Oracle specific settings" >> /etc/security/limits.conf
  echo "oracle soft nofile  1024" >> /etc/security/limits.conf
  echo "oracle hard nofile 65536" >> /etc/security/limits.conf
  echo "oracle soft nproc   2047" >> /etc/security/limits.conf
  echo "oracle hard nproc  16384" >> /etc/security/limits.conf
# chmod 777 a.sh
# ./a.sh
#
检查内核参数的设置:
# cat /etc/sysctl.conf 
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
kernel.shmmax=1073741824
# Oracle specific settings
kernel.hostname = rac1.oracle.com
# semaphores in kernel.sem: semmsl semmns semopm semmni
kernel.sem = 256 32000 100 142
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.shmall = 3279547
fs.file-max = 327679
net.ipv4.ip_local_port_range = 1024 65000
kernel.msgmni = 2878
kernel.msgmnb = 65535
#
 
///////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////
安装patch:
# cd other
# ll
total 68
-rw-r--r--    1 oracle   dba         61549 Aug 29 12:14 unzip_lnx.Z
# uncompress unzip_lnx.Z
# ll
total 104
-rw-r--r--    1 oracle   dba        100472 Aug 29 12:14 unzip_lnx
# cp unzip_lnx ../ora_patch/
# cd ../ora_patch/
# ll
total 108
-rw-r--r--    1 oracle   dba          1670 Aug 29 12:14 p3006854_9204_LINUX.zip
-rw-r--r--    1 root     root       100472 Aug 29 12:15 unzip_lnx
# mv unzip_lnx unzip
# ll
total 108
-rw-r--r--    1 oracle   dba          1670 Aug 29 12:14 p3006854_9204_LINUX.zip
-rw-r--r--    1 root     root       100472 Aug 29 12:15 unzip
# unzip p3006854_9204_LINUX.zip
Archive:  p3006854_9204_LINUX.zip
   creating: 3006854/
  inflating: 3006854/rhel3_pre_install.sh 
  inflating: 3006854/README.txt     
# ll
total 112
drwxrwxr-x    2 root     root         4096 May 10  2004 3006854
-rw-r--r--    1 oracle   dba          1670 Aug 29 12:14 p3006854_9204_LINUX.zip
-rw-r--r--    1 root     root       100472 Aug 29 12:15 unzip
# cd 3006854/
# ll
total 8
-rw-rw-r--    1 root     root         1360 Mar 18 07:03 README.txt
-rw-r--r--    1 root     root         1254 Mar 18 07:11 rhel3_pre_install.sh
# chmod 777 rhel3_pre_install.sh
# ./rhel3_pre_install.sh
Applying patch...
Ensuring permissions are correctly set...
Done.
Patch successfully applied
#
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
安装rsh:
# ll
total 9236
-rw-r--r--    1 root     root      3643323 Aug 29 11:50 compat-db-4.0.14-5.1.i386.rpm
-rw-r--r--    1 root     root      2439343 Aug 29 11:50 compat-gcc-7.3-2.96.128.i386.rpm
-rw-r--r--    1 root     root      1850362 Aug 29 11:50 compat-gcc-c++-7.3-2.96.128.i386.rpm
-rw-r--r--    1 root     root      1056574 Aug 29 11:50 compat-libstdc++-7.3-2.96.128.i386.rpm
-rw-r--r--    1 root     root       362405 Aug 29 11:50 compat-libstdc++-devel-7.3-2.96.128.i386.rpm
-rw-r--r--    1 oracle   dba         37531 Aug 29 13:32 rsh-0.17-19.i386.rpm
-rw-r--r--    1 oracle   dba         35339 Aug 29 13:32 rsh-server-0.17-19.i386.rpm
# rpm -Uvh rsh-0.17-19.i386.rpm
warning: rsh-0.17-19.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ###########################################
   1:rsh                    ###########################################
# rpm -Uvh rsh-server-0.17-19.i386.rpm
warning: rsh-server-0.17-19.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ###########################################
   1:rsh-server             ###########################################
#
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
重新启动主机:
# shutdown -h now
Broadcast message from root (pts/2) (Mon Aug 29 13:42:58 2005):
The system is going down for system halt NOW!
#
///////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////
准备安装oracle:
建立用户和组:
- create the group oinstall and dba
  groupadd -g 500 oinstall
  groupadd -g 501 dba
- create the user oracle
  useradd -u 502 -g oinstall -G dba -d /home/oracle oracle -s /bin/bash
- Specify a password for user oracle
  passwd oracle
- Make oracle the owner of the oracle install directory
  chown oracle:oinstall /oracle
///////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////
修改安装盘所在目录属主:
# chown -R oracle:dba /oracle/
# ll /oracle/
total 20
drwx------    2 oracle   dba         16384 Aug 28 07:51 lost+found
drwxr-xr-x    8 oracle   dba          4096 Aug 29 12:12 tools
#
///////////////////////////////////////////////////////////////

$ cat /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - an user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#    
页: [1]
查看完整版本: 单机安装oracle 9201 ,然后patch 到9204