http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f73260878e482a958448e435061e5a39b2e17c7e431980852d3d5aeb1e41eaf235732a0121aa99c2954ad6ba942e2a8930340746c01e4cc75cf28b102a9f7bc010afee5ff0bb802593d9c5d2af150edd52756d80879c5b7010dd6e80033090b19939440c4ce6b07672ff282a6bc87f57b636b8ba612e50d7e1dd2d11937287305780af44e4654ce204a56f0c2537b74cc0540c3130910e60ae1e2a04e3bf06b97d6e4052eb08a4b9b0e0b008db8dac6cd8b1&p=882a9645d3885be70be2962a1b0c89&newp=98769a47cdd911a05bed913a510796231610db2151d7d01764ce&user=baidu&fm=sc&query=libXtst%2Eso%2E6%3A+cannot+open+shared+object+file%3A+No+such+file+or+directory&qid=8dd9ca5c000b553f&p1=6
强行安装命令
rpm -ivh --force --nodeps +rpm包名
binutils-2.15.92.0-10.EL4
compat-db-4.1.25-9
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
compat-libstdc++-33-3.2.3-47.3
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.L4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90EL4
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
libaio-0.3.102-1
libXp
openmotif21-2.1.30-11
make-3.80.5
pdksh-5.2.14.30
sysstat-5.0.5-1
setarch-1.3-1
xscreensaver-4.18-5.rhe4.2
#rpm -q gcc make binutils openmotif setarch compat-db compat-gcc-34 compat-gcc-34-c++ compat-libstdc++ compat-libstdc++-devel libXp
lvm
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -m -g oinstall -G dba oracle
# id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)
#passwd oracle
# mkdir -p /oracle/app/oracle
# chown -R oracle:oinstall /oracle/app/oracle
# chmod -R 775 /oracle/app/oracle
#more /proc/sys/kernel/shmmax
#vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
# /sbin/sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
kernel.sysrq = 0
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
#vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
###########################centos 6以后请加入以后的,否则用户无法在本地登陆,只能运程###############
cat >> /etc/pam.d/login <<EOF
session required /lib64/security/pam_limits.so
EOF
###########################centos 5以下请加入###############
cat >> /etc/pam.d/login <<EOF
session required /lib/security/pam_limits.so
EOF
#################################################################
#vi /etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
#su - oracle
$vi .bsah_profile
ORACLE_BASE=/oracle/app
ORACLE_SID=orcl
export ORACLE_BASE ORACLE_SID
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export NLS_LANG=AMERICAN_CHINA.ZHS16GBK
#export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"
#export NLS_LANG='american_america.ZHS16GBK'
#export LANG=zh_CN.GBK
#cd /data
#gunzip 10201_database_linux_x86_64.cpio.gz .cpio.gz
#cpio -idmv < 10201_database_linux_x86_64.cpio
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16111659/viewspace-1744437/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16111659/viewspace-1744437/