系统版本:centos6.5
oracle版本:11.2
命令行安装oracle分以下几个步骤
root用户操作
1、准备安装以来的包
具体的包如下:
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
unixODBC-2.2.14-11.el6 (x86_64) or later
unixODBC-2.2.14-11.el6.i686 or later
unixODBC-devel-2.2.14-11.el6 (x86_64) or later
unixODBC-devel-2.2.14-11.el6.i686 or later
libXp
对应的命令:
#yum install -ybinutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++glibc glibc-common glibc-devel libaio libaio-devel libgcc libstdc++libstdc++-devel make numactl sysstat libXp unixODBC unixODBC-devel
下载地址:http://mirror.centos.org/centos/5/os/x86_64/CentOS/pdksh-5.2.14-37.el5_8.1.x86_64.rpm
如果未安装wget需要先安装wget
对应的命令:
#wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/pdksh-5.2.14-37.el5_8.1.x86_64.rpm
注: #yum –y install wget
#rpm –ivhpdksh-5.2.14-37.el5_8.1.x86_64.rpm
root用户操作
2、修改内核
修改/etc/sysctl.conf
内容为:
# Kernel sysctlconfiguration file for Red Hat Linux
# For binary values,0 is disabled, 1 is enabled. Seesysctl(8) and
# sysctl.conf(5) formore details.
# Controls IP packetforwarding
net.ipv4.ip_forward =0
# Controls sourceroute verification
net.ipv4.conf.default.rp_filter= 1
# Do not acceptsource routing
net.ipv4.conf.default.accept_source_route= 0
# Controls the SystemRequest debugging functionality of the kernel
kernel.sysrq = 0
# Controls whethercore dumps will append the PID to the core filename.
# Useful fordebugging multi-threaded applications.
kernel.core_uses_pid= 1
# Controls the use ofTCP syncookies
net.ipv4.tcp_syncookies= 1
# Disable netfilteron bridges.
net.bridge.bridge-nf-call-ip6tables= 0
net.bridge.bridge-nf-call-iptables= 0
net.bridge.bridge-nf-call-arptables= 0
# Controls thedefault maxmimum size of a mesage queue
kernel.msgmnb = 65536
# Controls themaximum size of a message, in bytes
kernel.msgmax = 65536
# Controls themaximum shared segment size, in bytes
#kernel.shmmax =68719476736
kernel.shmmax = 1073741824
kernel.shmmni = 4096
# Controls themaximum number of shared memory segments, in pages