Linux平台Oracle安装步骤


/*************Oracle安装部分**********************/

默认oracle 10g不支持redhat5/centos5版本,需要修改/etc/redhat-release文件内容为redhat-4,同时将源文件做备份安装结束后恢复该文件
一.需要安装的系统软件包:

binutils-2.15.92.0.2-13.EL4
compat-db-4.1.25-9
compat-libstdc++-296-2.96-132.7.2
control-center-2.8.0-12
gcc-3.4.3-22.1.EL4
gcc-c++-3.4.3-22.1.EL44
glibc-2.3.4-2.9
glibc-common-2.3.4-2.9
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-22.1
libstdc++-devel-3.4.3-22.1
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2
setarch-1.6-1
libaio-devel-0.3.106-3.2
libXp-1.0.0-8.1.el5

二.Configuring Kernel Parameters(内核参数)改完后需要重启系统

编辑/etc/sysctl.conf文件,将下述参数加入文件中
kernel.shmall = 2097152
kernel.shmmax = 2147483648 (系统物理内存的50%)
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 = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
编辑/etc/pam.d/login文件,将下述参数加入文件中
session required /lib/security/pam_limits.so
session required pam_limits.so
编辑/etc/security/limits.conf文件,将下述参数加入文件中
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
编辑/etc/profile文件,将下述参数加入文件中
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

三.Network Setup(网络配置)

/etc/hosts文件中加入一条主机名 IP的记录,如下:
The output of this command should contain an entry for the fully qualified host name and for localhost.
For example:
192.168.100.16 myhost.us.mycompany.com myhost
127.0.0.1 localhost localhost.localdomain

If the hosts file does not contain the fully qualified host name, then open the file and make the required changes in it.

/******注意事项********/

--/etc/hosts 分为三部分

--第一部份:网络IP地址;

--第二部份:主机名.域名,注意主机名和域名之间有个半角的点,比如 localhost.localdomain

--第三部份:主机名(主机名别名) ,其实就是主机名;

--当然每行也可以是两部份,就是主机IP地址和主机名;比如 192.168.1.195 debian

So just before starting the installation execute these in the terminal:

ping localhost (this should be replied from 127.0.0.1)
ping abc (and this will be from 10.20.30.40)


四.创建用户目录及环境变量设置

groupadd oinstall
groupadd dba
useradd -g oinstall -G dba[,oper] oracle
passwd oracle

编辑.bash_profile 设置环境变量及创建目录
# mkdir -p /mount_point/app/oracle_sw_owner
# chown -R oracle:oinstall /mount_point/app/oracle_sw_owner
# chmod -R 775 /mount_point/app/oracle_sw_owner

LD_ASSUME_KERNEL=2.6.9
ORACLE_SID=oradb
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
LD_LIBRARY_PATH=$ORACLE_HOME/LIB

export ORACLE_SID ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8497482/viewspace-1049712/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8497482/viewspace-1049712/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值