- 浏览: 1318679 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (351)
- Java General (37)
- .net General (2)
- Linux Toy (55)
- Oracle (81)
- Mysql (11)
- Programer Career (12)
- Oh, my living ! (2)
- Shell Script (8)
- Web Service (0)
- Linux Server (22)
- Php/Python/Perl (3P) (2)
- Javascript General (5)
- Saleforce Apex Dev (2)
- Web General (5)
- Xen & VM tech. (17)
- PSP (13)
- OpenSolaris (34)
- php (1)
- RAI/flex/action script (16)
- asterisk/CTI (7)
- 交互设计 (6)
- English (3)
- Lucene (1)
最新评论
-
GuolinLee:
markmark
JVM调优总结 -Xms -Xmx -Xmn -Xss -
di1984HIT:
写的太好啊。
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
javajdbc 写道
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
...
JVM调优总结 -Xms -Xmx -Xmn -Xss -
alvin198761:
非常感谢,国外的被封杀了,你这里还有一份
How to Convert An Image-Based Guest To An LVM-Based Guest
将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:
#
发表评论
-
About Dedicated and Shared Server Processes
2010-11-29 15:46 1549一句话, shared server 就是为了省 SGA. ... -
oracle11GR2上建立一个新用户的过程,同时更改字符集.
2010-11-15 16:21 2915写道 SQL> create user mygmccr ... -
comment on table and column
2009-11-20 16:16 3358comment [Oracle SQL] ... -
解决ASM无法启动问题
2009-11-07 15:11 7109启动报错如下所 ... -
在Oracle中实现可扩展的多级编目结构
2009-10-23 13:49 13782009-10-16 ... -
用户帐号解锁
2009-10-21 08:06 1278SQL> alter user scott accoun ... -
按上下键调出 sqlplus 中的历史命令
2009-10-21 07:50 1983在sqlplus中不能按上下键不能显示出之前的命令, 也 ... -
简单的oracle物化视图
2009-09-28 22:29 1252物化视图是一种特殊的物理表,“物化”(Mate ... -
PL/SQL 总结(4)
2009-09-19 17:40 1064存储过程 create or replace PROCEDU ... -
PL/SQL 总结(3)
2009-09-19 17:40 1044使用游标 1)显示游标: CURSOR name_curs ... -
PL/SQL 总结(2)
2009-09-19 17:39 1078)将select 嵌入到PL/SQL中 ... -
PL/SQL 总结(1)
2009-09-19 17:38 1269我们开始学习PL/SQL PL/SQ ... -
Oracle 中的 Merge 语句
2008-07-29 15:45 1377Merge Statement Demo MERGE & ... -
SQL*Plus FAQ
2008-07-24 10:04 2167SQL*Pl ... -
Oracle Default Listener
2008-07-15 15:41 2280042 第23题 关于动态注册监听器 23.Your data ... -
自动安装 Oracle 数据库 10g 和 Red Hat Enterprise Linux
2008-07-13 09:52 2314自动安装 Oracle 数据库 10g 和 Red Hat ... -
在 Linux x86 上安装 Oracle 数据库 10g
2008-07-13 09:46 1343... -
Vmware server1.0 + Linux As4 + Oracle 10g RAC
2008-07-05 15:19 3242Vmware server1.0 + Linux A ... -
How To Set Up Oracle ASM on Ubuntu Gutsy Gibbon
2008-07-05 08:51 1961How To Set Up Oracle ASM on Ubu ... -
Installing Oracle10g R2 RAC on vmware suse
2008-07-04 10:47 4913Installing Oracle10g R2 RAC Par ...
相关推荐
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 接下来,就...
- **检查补丁状态**:使用以下命令检查补丁的状态 `SELECT patch_id,action,status FROM cdb_registry_sqlpatch;` 这有助于确认所有必要的补丁是否已经被正确地应用。 #### 二、Oracle 19c RAC 升级步骤 ##### 1. ...
- 单机环境下需安装虚拟网卡并分配固定IP地址。 - 安装Java虚拟机,并设置环境变量JAVA_HOME。 3. **ORACLE安装**: - 使用默认设置完成ORACLE 8.1.7的安装。 - 打补丁至8.1.7.4。 - 注意: 必须通过`oracle\NT\...
随着技术的发展与业务需求的变化,Oracle 官方会定期发布更新包(Patch Set Updates,简称 PSU)来修复已知问题并提升系统的稳定性与性能。本文将详细介绍如何对 Oracle 11.2.0.4 版本进行补丁升级操作。 #### 二、...
本资料主要介绍了Oracle数据库的整体架构以及启停过程,同时也涉及到数据库升级和补丁更新的相关概念。 首先,数据库的整体架构包括物理结构和逻辑结构两部分。物理结构指的是在磁盘上实际存储的数据文件、控制文件...
- **2.2 WAS patch安装**:介绍如何安装补丁来修复已知问题并增强系统稳定性。 - **2.3 WAS卸载**:描述了卸载WebSphere的具体流程。 - **2.4 WAS单机环境安装**:针对单台服务器的安装进行了说明。 - **2.5 WAS集群...
定价规则可以方便导入导出,如果您不懂设置价格规则,我们可以帮助你设置,然后把价格规则发送给你,使您解除后顾之忧。同时系统里内置规则中实现了多种收费标准,您可以随意选择使用。 2.2场地预定简单、方便。 ...
定价规则可以方便导入导出,如果您不懂设置价格规则,我们可以帮助你设置,然后把价格规则发送给你,使您解除后顾之忧。同时系统里内置规则中实现了多种收费标准,您可以随意选择使用。 2.2商品折扣定义方便灵活。 ...