设为首页 收藏本站
查看: 324|回复: 0

[经验分享] 单机安装oracle 9201 ,然后patch 到9204

[复制链接]
YunVN网友  发表于 2016-8-15 07:16:58 |阅读模式
  将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
  [iyunv@rac1 tools]# 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
[iyunv@rac1 tools]# chown -R oracle:dba oracle9
[iyunv@rac1 tools]# 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
[iyunv@rac1 tools]# 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
[iyunv@rac1 tools]#
  设置物理内存和SWAP:
检查物理内存:
[iyunv@rac1 tools]# grep MemTotal /proc/meminfo
MemTotal:      1029608 kB
[iyunv@rac1 tools]#
  也可以使用free来检查内存的使用:
[iyunv@rac1 tools]# free
             total       used       free     shared    buffers     cached
Mem:       1029608    1001972      27636          0      48556     852340
-/+ buffers/cache:     101076     928532
Swap:      2048248          0    2048248
[iyunv@rac1 tools]#
  
检查swap的使用情况:
[iyunv@rac1 tools]# cat /proc/swaps
Filename                        Type            Size    Used    Priority
/dev/hda6                       partition       2048248 0       -1
[iyunv@rac1 tools]#
  
检查共享内存的设置(shmmax setting):
[iyunv@rac1 tools]# cat /proc/sys/kernel/shmmax
33554432   ---这是缺省值
[iyunv@rac1 tools]#
  
检查当前所有的共享内存的设置:
[iyunv@rac1 tools]# 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
  [iyunv@rac1 tools]#
  我们最好将共享内存设置为大于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
  操作结果类似:
[iyunv@rac1 root]# echo "1073741824" > /proc/sys/kernel/shmmax
[iyunv@rac1 root]# echo "kernel.shmmax=1073741824" >> /etc/sysctl.conf
  检查修改后的参数是否生效:
[iyunv@rac1 root]# 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
[iyunv@rac1 root]# cat /proc/sys/kernel/shmmax
1073741824
[iyunv@rac1 root]# 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
  [iyunv@rac1 root]#  内核参数需要重新启动才可以生效
  系统级别的共享内存段的最大个数(数量),linux默认是4096:
[iyunv@rac1 root]# cat /proc/sys/kernel/shmmni
4096
[iyunv@rac1 root]#
  检查所有的信号量:
[iyunv@rac1 tools]# 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
  [iyunv@rac1 tools]#
  //////////////////////////////////////////////////////////////////////////
系统共享内存页的大小(至少为: SHMMAX/PAGE_SIZE)
[iyunv@rac1 root]# cat /proc/sys/kernel/shmall
2097152
[iyunv@rac1 root]#
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.
//////////////////////////////////////////////////////////////////////////
  检查内核参数的设置:
[iyunv@rac1 tools]# 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
[iyunv@rac1 tools]#
  
检查/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
  检查结果:
[iyunv@rac1 root]# 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*
[iyunv@rac1 root]# ./a.sh
openmotif-2.2.2-16
setarch-1.3-1
[iyunv@rac1 root]#
  根据 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
=======================================
  安装下面的包:
[iyunv@rac1 root]# 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
[iyunv@rac1 root]# rpm -qa sysstat*
sysstat-4.0.7-4
[iyunv@rac1 root]#
  [iyunv@rac1 root]#   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
[iyunv@rac1 root]#
[iyunv@rac1 root]#   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
[iyunv@rac1 root]#   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
[iyunv@rac1 root]#   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
[iyunv@rac1 root]#
  
检查一下安装结果:
[iyunv@rac1 root]# cat >a.sh
  rpm -qa sysstat*
  rpm -qa compat-db*
  rpm -qa ORBit*
  rpm -qa libpng10*
  rpm -qa gnome-lib
 
[iyunv@rac1 root]# ./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
[iyunv@rac1 root]#
  -----------------------------------------------------------
来自 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
  
检查结果:
[iyunv@rac1 root]# 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
[iyunv@rac1 root]#
  -----------------------------------------------------------
来自 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
  安装下面的包:
[iyunv@rac1 root]# 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...                ########################################### [100%]
        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
[iyunv@rac1 root]#
  [iyunv@rac1 root]# 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...                ########################################### [100%]
        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
[iyunv@rac1 root]#
  
这个包装不上!!!
[iyunv@rac1 root]# 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
[iyunv@rac1 root]#
[iyunv@rac1 root]# 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...                ########################################### [100%]
        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
[iyunv@rac1 root]#
[iyunv@rac1 root]# 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
[iyunv@rac1 root]#
  这个包装不上!!!
[iyunv@rac1 root]# 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
[iyunv@rac1 root]# 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...                ########################################### [100%]
        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
[iyunv@rac1 root]#
[iyunv@rac1 root]# 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
[iyunv@rac1 root]#
  [iyunv@rac1 root]# 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...                ########################################### [100%]
        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
[iyunv@rac1 root]#
  
[iyunv@rac1 root]# 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...                ########################################### [100%]
   1:openmotif21            ########################################### [100%]
[iyunv@rac1 root]#
  
从网站上下载的rpm来安装:
[iyunv@rac1 rpm_patch]# pwd
/oracle/tools/rpm_patch
[iyunv@rac1 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
[iyunv@rac1 rpm_patch]# 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...                ########################################### [100%]
        package compat-db-4.0.14-5.1 is already installed
[iyunv@rac1 rpm_patch]# 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...                ########################################### [100%]
        package compat-gcc-7.3-2.96.128 is already installed
[iyunv@rac1 rpm_patch]# 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...                ########################################### [100%]
        package compat-gcc-c++-7.3-2.96.128 is already installed
[iyunv@rac1 rpm_patch]# 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...                ########################################### [100%]
        package compat-libstdc++-7.3-2.96.128 is already installed
[iyunv@rac1 rpm_patch]# 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...                ########################################### [100%]
        package compat-libstdc++-devel-7.3-2.96.128 is already installed
[iyunv@rac1 rpm_patch]#
///////////////////////////////////////////////////////////////
  ///////////////////////////////////////////////////////////////
需要将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++
  [iyunv@rac1 rpm_patch]# mv /usr/bin/gcc /usr/bin/gcc323
[iyunv@rac1 rpm_patch]# mv /usr/bin/g++ /usr/bin/g++323
[iyunv@rac1 rpm_patch]# ln -s /usr/bin/gcc296 /usr/bin/gcc
[iyunv@rac1 rpm_patch]# ln -s /usr/bin/g++296 /usr/bin/g++
  [iyunv@rac1 bin]# 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
[iyunv@rac1 bin]# 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
[iyunv@rac1 bin]#
///////////////////////////////////////////////////////////////
  
///////////////////////////////////////////////////////////////
设置内核参数:
  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
 
  操作过程:
[iyunv@rac1 rpm_patch]# >a.sh
[iyunv@rac1 rpm_patch]# 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
  [iyunv@rac1 rpm_patch]# chmod 777 a.sh
[iyunv@rac1 rpm_patch]# ./a.sh
[iyunv@rac1 rpm_patch]#
  检查内核参数的设置:
[iyunv@rac1 rpm_patch]# 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
[iyunv@rac1 rpm_patch]#
 
///////////////////////////////////////////////////////////////
  
///////////////////////////////////////////////////////////////
安装patch:
[iyunv@rac1 tools]# cd other
[iyunv@rac1 other]# ll
total 68
-rw-r--r--    1 oracle   dba         61549 Aug 29 12:14 unzip_lnx.Z
[iyunv@rac1 other]# uncompress unzip_lnx.Z
[iyunv@rac1 other]# ll
total 104
-rw-r--r--    1 oracle   dba        100472 Aug 29 12:14 unzip_lnx
[iyunv@rac1 other]# cp unzip_lnx ../ora_patch/
[iyunv@rac1 other]# cd ../ora_patch/
[iyunv@rac1 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
[iyunv@rac1 ora_patch]# mv unzip_lnx unzip
[iyunv@rac1 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
[iyunv@rac1 ora_patch]# unzip p3006854_9204_LINUX.zip
Archive:  p3006854_9204_LINUX.zip
   creating: 3006854/
  inflating: 3006854/rhel3_pre_install.sh 
  inflating: 3006854/README.txt     
[iyunv@rac1 ora_patch]# 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
[iyunv@rac1 ora_patch]# cd 3006854/
[iyunv@rac1 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
[iyunv@rac1 3006854]# chmod 777 rhel3_pre_install.sh
[iyunv@rac1 3006854]# ./rhel3_pre_install.sh
Applying patch...
Ensuring permissions are correctly set...
Done.
Patch successfully applied
[iyunv@rac1 3006854]#
///////////////////////////////////////////////////////////////
  ///////////////////////////////////////////////////////////////
安装rsh:
[iyunv@rac1 rpm_patch]# 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
[iyunv@rac1 rpm_patch]# rpm -Uvh rsh-0.17-19.i386.rpm
warning: rsh-0.17-19.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:rsh                    ########################################### [100%]
[iyunv@rac1 rpm_patch]# 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...                ########################################### [100%]
   1:rsh-server             ########################################### [100%]
[iyunv@rac1 rpm_patch]#
///////////////////////////////////////////////////////////////
  ///////////////////////////////////////////////////////////////
重新启动主机:
[iyunv@rac1 /]# 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!
[iyunv@rac1 /]#
///////////////////////////////////////////////////////////////
  
///////////////////////////////////////////////////////////////
准备安装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
///////////////////////////////////////////////////////////////
  
///////////////////////////////////////////////////////////////
修改安装盘所在目录属主:
[iyunv@rac1 /]# chown -R oracle:dba /oracle/
[iyunv@rac1 /]# 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
[iyunv@rac1 /]#
///////////////////////////////////////////////////////////////
  
[oracle@rac1 oracle]$ 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、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-257900-1-1.html 上篇帖子: Oracle在Solaris下的性能与调整简介 (2) 下篇帖子: 解析《提高Oracle性能--经验实谈》一文
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表