linux中命令行安装ORACLE

本文档详细介绍了在CentOS 6.5系统上,如何通过命令行安装Oracle 11.2版本。首先,需要安装一系列依赖包,如binutils、gcc、glibc等。接着,修改内核配置,包括内核参数设置和创建共享内存。然后,创建用户组和用户,设置相应的权限。再者,配置环境变量,并修改shell限制。此外,还需要配置hosts、防火墙和静默安装文件。最后,解压Oracle安装包并执行静默安装,配置监听器和tnsnames.ora文件,完成安装过程。
摘要由CSDN通过智能技术生成

系统版本: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

还有一个pdksh包(该程序包未被纳入CentOS的安装盘中),需要之星wget命令下载安装

下载地址: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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值