暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

安装Oracle简化-To me

原创 章芋文 2012-08-24
510
安装的次数太多,每次都要翻文档。简化一下安装的东西,供自己以后参考
[code]
compat-db-4.2.52-5.1
compat-libstdc++-296-2.96-138
binutils-2.17.50.0.6-12.el5
control-center-2.16.0-16.el5
gcc-4.1.2-46.el5
gcc-c++-4.1.2-46.el5
glibc-2.5-42
glibc-common-2.5-42
libstdc++-4.1.2-46.el5
libstdc++-devel-4.1.2-46.el5
make-3.81-3.el5
pdksh-5.2.14-36.el5
sysstat-7.0.2-3.el5
setarch-2.0-1.1
1----
[root@localhost ~]# cd /media/RHEL_5.4\\ i386\\ DVD/
[root@localhost RHEL_5.4 i386 DVD]# ls
Cluster RELEASE-NOTES-ko.html RELEASE-NOTES-U4-kn.html
ClusterStorage RELEASE-NOTES-ml.html RELEASE-NOTES-U4-ko.html
EULA RELEASE-NOTES-mr.html RELEASE-NOTES-U4-ml.html
eula.en_US RELEASE-NOTES-or.html RELEASE-NOTES-U4-mr.html
GPL RELEASE-NOTES-pa.html RELEASE-NOTES-U4-or.html
images RELEASE-NOTES-pt_BR.html RELEASE-NOTES-U4-pa.html
isolinux RELEASE-NOTES-ru.html RELEASE-NOTES-U4-pt_BR.html
README-en RELEASE-NOTES-si.html RELEASE-NOTES-U4-ru.html
README-en.html RELEASE-NOTES-ta.html RELEASE-NOTES-U4-si.html
RELEASE-NOTES-as.html RELEASE-NOTES-te.html RELEASE-NOTES-U4-ta.html
RELEASE-NOTES-bn.html RELEASE-NOTES-U4-as.html RELEASE-NOTES-U4-te.html
RELEASE-NOTES-de.html RELEASE-NOTES-U4-bn.html RELEASE-NOTES-U4-zh_CN.html
RELEASE-NOTES-en RELEASE-NOTES-U4-de.html RELEASE-NOTES-U4-zh_TW.html
RELEASE-NOTES-en.html RELEASE-NOTES-U4-en RELEASE-NOTES-zh_CN.html
RELEASE-NOTES-es.html RELEASE-NOTES-U4-en.html RELEASE-NOTES-zh_TW.html
RELEASE-NOTES-fr.html RELEASE-NOTES-U4-es.html RPM-GPG-KEY-redhat-beta
RELEASE-NOTES-gu.html RELEASE-NOTES-U4-fr.html RPM-GPG-KEY-redhat-release
RELEASE-NOTES-hi.html RELEASE-NOTES-U4-gu.html Server
RELEASE-NOTES-it.html RELEASE-NOTES-U4-hi.html TRANS.TBL
RELEASE-NOTES-ja.html RELEASE-NOTES-U4-it.html VT
RELEASE-NOTES-kn.html RELEASE-NOTES-U4-ja.html
[root@localhost RHEL_5.4 i386 DVD]# cd Server
[root@localhost Server]# rpm -qa |grep compat
compat-libstdc++-33-3.2.3-61
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
avahi-compat-libdns_sd-0.6.16-6.el5
compat-glibc-headers-2.3.4-2.26
compat-gcc-34-3.4.6-4
compat-gcc-34-c++-3.4.6-4
java-1.4.2-gcj-compat-src-1.4.2.0-40jpp.115
compat-libgcc-296-2.96-138
compat-gcc-34-g77-3.4.6-4
java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115
compat-libcom_err-1.0-7
compat-libf2c-34-3.4.6-4
compat-libstdc++-296-2.96-138
compat-glibc-2.3.4-2.26
[root@localhost Server]# rpm -qa |grep binutils
binutils-2.17.50.0.6-12.el5
[root@localhost Server]# rpm -qa |grep control-center
control-center-2.16.0-16.el5
[root@localhost Server]# rpm -qa |grep gcc
gcc-objc-4.1.2-46.el5
libgcc-4.1.2-46.el5
compat-gcc-34-3.4.6-4
compat-gcc-34-c++-3.4.6-4
gcc44-gfortran-4.4.0-6.el5
compat-libgcc-296-2.96-138
compat-gcc-34-g77-3.4.6-4
gcc-gfortran-4.1.2-46.el5
gcc44-4.4.0-6.el5
gcc44-c++-4.4.0-6.el5
gcc-4.1.2-46.el5
gcc-c++-4.1.2-46.el5
gcc-java-4.1.2-46.el5
gcc-gnat-4.1.2-46.el5
[root@localhost Server]# rpm -qa |grep glibc
glibc-2.5-42
glibc-headers-2.5-42
compat-glibc-headers-2.3.4-2.26
glibc-common-2.5-42
glibc-devel-2.5-42
compat-glibc-2.3.4-2.26
[root@localhost Server]# rpm -qa |grep libstdc++
compat-libstdc++-33-3.2.3-61
libstdc++-devel-4.1.2-46.el5
libstdc++-4.1.2-46.el5
compat-libstdc++-296-2.96-138
libstdc++44-devel-4.4.0-6.el5
[root@localhost Server]# rpm -qa |grep make
automake16-1.6.3-8
imake-1.0.2-3
automake17-1.7.9-7
automake14-1.4p6-13
make-3.81-3.el5
automake-1.9.6-2.1
automake15-1.5-16
[root@localhost Server]# rpm -qa |grep pdksh
[root@localhost Server]# rpm -ivh pdksh-5.2.14-36.el5.i386.rpm
warning: pdksh-5.2.14-36.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:pdksh ########################################### [100%]
[root@localhost Server]# rpm -qa |grep sysstat
[root@localhost Server]# rpm -ivh sysstat-7.0.2-3.el5.i386.rpm
warning: sysstat-7.0.2-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:sysstat ########################################### [100%]
[root@localhost Server]# rpm -qa| grep setarch
setarch-2.0-1.1
[root@localhost Server]#

2----
[root@localhost Server]# groupadd -g 700 dba
[root@localhost Server]# useradd -u 500 -g dba oracle
[root@localhost Server]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
Sorry, passwords do not match.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@localhost Server]# mkdir -p /oracle/product/database
[root@localhost Server]# chown -R oracle:dba /oracle/product/database
[root@localhost Server]# chmod 775 /oracle/product/database
[root@localhost Server]# chown -R oracle:dba /oracle
[root@localhost Server]# chmod 775 /oracle

3-----
[root@localhost Server]# vim /home/oracle/.bash_profile
[root@localhost Server]# cat /home/oracle/.bash_profile


# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
export ORACLE_BASE=/oracle
export ORACLE_HOME=/oracle/product/database
export PATH=$CRS_HOME/bin:$ORACLE_HOME/bin:$PATH
export ORACLE_SID=pszx_db
unset USERNAME

4--------
[root@localhost Server]# vim /etc/security/limits.conf
oracle soft memlock 5242880
oracle hard memlock 5242880

oracle soft nofile 65536
oracle hard nofile 65536

oracle soft nproc 2047
oracle hard nproc 16384


5----------
[root@localhost Server]# vim /etc/sysctl.conf
You have new mail in /var/spool/mail/root
[root@localhost Server]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 2147483648
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
kernel.shmall = 268435456
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_max = 262144



6-----
[root@localhost oracle]# unzip 10201_database_linux32.zip[/code]
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论