`

单机安装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

[root@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
[root@rac1 tools]# chown -R oracle:dba oracle9
[root@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
[root@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
[root@rac1 tools]#

设置物理内存和SWAP:
检查物理内存:
[root@rac1 tools]# grep MemTotal /proc/meminfo
MemTotal:      1029608 kB
[root@rac1 tools]#

也可以使用free来检查内存的使用:
[root@rac1 tools]# free
             total       used       free     shared    buffers     cached
Mem:       1029608    1001972      27636          0      48556     852340
-/+ buffers/cache:     101076     928532
Swap:      2048248          0    2048248
[root@rac1 tools]#


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


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


检查当前所有的共享内存的设置:
[root@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

[root@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

操作结果类似:
[root@rac1 root]# echo "1073741824" > /proc/sys/kernel/shmmax
[root@rac1 root]# echo "kernel.shmmax=1073741824" >> /etc/sysctl.conf

检查修改后的参数是否生效:
[root@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
[root@rac1 root]# cat /proc/sys/kernel/shmmax
1073741824
[root@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

[root@rac1 root]#  内核参数需要重新启动才可以生效

系统级别的共享内存段的最大个数(数量),linux默认是4096:
[root@rac1 root]# cat /proc/sys/kernel/shmmni
4096
[root@rac1 root]#

检查所有的信号量:
[root@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

[root@rac1 tools]#

//////////////////////////////////////////////////////////////////////////
系统共享内存页的大小(至少为: SHMMAX/PAGE_SIZE)
[root@rac1 root]# cat /proc/sys/kernel/shmall
2097152
[root@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.
//////////////////////////////////////////////////////////////////////////

检查内核参数的设置:
[root@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
[root@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

检查结果:
[root@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*
[root@rac1 root]# ./a.sh
openmotif-2.2.2-16
setarch-1.3-1
[root@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
=======================================

安装下面的包:
[root@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
[root@rac1 root]# rpm -qa sysstat*
sysstat-4.0.7-4
[root@rac1 root]#

[root@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
[root@rac1 root]#
[root@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
[root@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
[root@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
[root@rac1 root]#


检查一下安装结果:
[root@rac1 root]# cat >a.sh
  rpm -qa sysstat*
  rpm -qa compat-db*
  rpm -qa ORBit*
  rpm -qa libpng10*
  rpm -qa gnome-lib
 
[root@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
[root@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


检查结果:
[root@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
[root@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

安装下面的包:
[root@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
[root@rac1 root]#

[root@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
[root@rac1 root]#


这个包装不上!!!
[root@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
[root@rac1 root]#
[root@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
[root@rac1 root]#
[root@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
[root@rac1 root]#

这个包装不上!!!
[root@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
[root@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
[root@rac1 root]#
[root@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
[root@rac1 root]#

[root@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
[root@rac1 root]#


[root@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%]
[root@rac1 root]#


从网站上下载的rpm来安装:
[root@rac1 rpm_patch]# pwd
/oracle/tools/rpm_patch
[root@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
[root@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
[root@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
[root@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
[root@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
[root@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
[root@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++

[root@rac1 rpm_patch]# mv /usr/bin/gcc /usr/bin/gcc323
[root@rac1 rpm_patch]# mv /usr/bin/g++ /usr/bin/g++323
[root@rac1 rpm_patch]# ln -s /usr/bin/gcc296 /usr/bin/gcc
[root@rac1 rpm_patch]# ln -s /usr/bin/g++296 /usr/bin/g++

[root@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
[root@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
[root@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
 

操作过程:
[root@rac1 rpm_patch]# >a.sh
[root@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

[root@rac1 rpm_patch]# chmod 777 a.sh
[root@rac1 rpm_patch]# ./a.sh
[root@rac1 rpm_patch]#

检查内核参数的设置:
[root@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
[root@rac1 rpm_patch]#
 
///////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////
安装patch:
[root@rac1 tools]# cd other
[root@rac1 other]# ll
total 68
-rw-r--r--    1 oracle   dba         61549 Aug 29 12:14 unzip_lnx.Z
[root@rac1 other]# uncompress unzip_lnx.Z
[root@rac1 other]# ll
total 104
-rw-r--r--    1 oracle   dba        100472 Aug 29 12:14 unzip_lnx
[root@rac1 other]# cp unzip_lnx ../ora_patch/
[root@rac1 other]# cd ../ora_patch/
[root@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
[root@rac1 ora_patch]# mv unzip_lnx unzip
[root@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
[root@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     
[root@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
[root@rac1 ora_patch]# cd 3006854/
[root@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
[root@rac1 3006854]# chmod 777 rhel3_pre_install.sh
[root@rac1 3006854]# ./rhel3_pre_install.sh
Applying patch...
Ensuring permissions are correctly set...
Done.
Patch successfully applied
[root@rac1 3006854]#
///////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////
安装rsh:
[root@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
[root@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%]
[root@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%]
[root@rac1 rpm_patch]#
///////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////
重新启动主机:
[root@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!
[root@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
///////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////
修改安装盘所在目录属主:
[root@rac1 /]# chown -R oracle:dba /oracle/
[root@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
[root@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:
#    

分享到:
评论

相关推荐

    XP上安装oracle+cognos+apatch实战经验

    3 安装oracle 10g for windows 4 安装cognos 8.3 server for windows 5 安装配置Apatch http web 服务 6 配置cognos服务 7 配置cognos数据源 8 安装 Cognos 8 BI Modeling 8.3 Window 9 导出导入报表 10 接下来,就...

    oracle19c单例&RAC升级步骤

    - **检查补丁状态**:使用以下命令检查补丁的状态 `SELECT patch_id,action,status FROM cdb_registry_sqlpatch;` 这有助于确认所有必要的补丁是否已经被正确地应用。 #### 二、Oracle 19c RAC 升级步骤 ##### 1. ...

    SAP.IDES.4.7安装手册

    - 单机环境下需安装虚拟网卡并分配固定IP地址。 - 安装Java虚拟机,并设置环境变量JAVA_HOME。 3. **ORACLE安装**: - 使用默认设置完成ORACLE 8.1.7的安装。 - 打补丁至8.1.7.4。 - 注意: 必须通过`oracle\NT\...

    oracle11.2.0.4 补丁升级

    随着技术的发展与业务需求的变化,Oracle 官方会定期发布更新包(Patch Set Updates,简称 PSU)来修复已知问题并提升系统的稳定性与性能。本文将详细介绍如何对 Oracle 11.2.0.4 版本进行补丁升级操作。 #### 二、...

    Oracle数据库整体架构及启停介绍.pptx

    本资料主要介绍了Oracle数据库的整体架构以及启停过程,同时也涉及到数据库升级和补丁更新的相关概念。 首先,数据库的整体架构包括物理结构和逻辑结构两部分。物理结构指的是在磁盘上实际存储的数据文件、控制文件...

    用友NC-UAP用户手册5.5(上)

    - **2.2 WAS patch安装**:介绍如何安装补丁来修复已知问题并增强系统稳定性。 - **2.3 WAS卸载**:描述了卸载WebSphere的具体流程。 - **2.4 WAS单机环境安装**:针对单台服务器的安装进行了说明。 - **2.5 WAS集群...

    王中王体育馆管理软件

    定价规则可以方便导入导出,如果您不懂设置价格规则,我们可以帮助你设置,然后把价格规则发送给你,使您解除后顾之忧。同时系统里内置规则中实现了多种收费标准,您可以随意选择使用。 2.2场地预定简单、方便。 ...

    王中王羽毛球馆管理软件V5.3

    定价规则可以方便导入导出,如果您不懂设置价格规则,我们可以帮助你设置,然后把价格规则发送给你,使您解除后顾之忧。同时系统里内置规则中实现了多种收费标准,您可以随意选择使用。 2.2商品折扣定义方便灵活。 ...

Global site tag (gtag.js) - Google Analytics