Home  >  Article  >  Database  >  在RHAS4下安装oracle 10G

在RHAS4下安装oracle 10G

WBOY
WBOYOriginal
2016-06-07 15:18:10761browse

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入 一,修改核心参数.执行如下命令: #vi /etc/sysctl.conf 在该文件末尾加入如下内容: #-----------Begin from here-------------------------------------- kernel.shmall = 2097152 kernel.shmmax = 2

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入


一,修改核心参数.执行如下命令:

#vi /etc/sysctl.conf

在该文件末尾加入如下内容:
#-----------Begin from here--------------------------------------
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
#--------------End here--------------------------------------------
编辑完之后,保存,执行 # /sbin/sysctl -p 命令操作来使我们所做的变更生效.


一,修改核心参数.执行如下命令:

#vi /etc/sysctl.conf

在该文件末尾加入如下内容:
#-----------Begin from here--------------------------------------
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
#--------------End here--------------------------------------------
编辑完之后,保存,执行 # /sbin/sysctl -p 命令操作来使我们所做的变更生效.

二,为Oracle用户设定Shell的限制
一般来说,还需要需要进行如下的设定,以便改进Oracle用户的有关nofile(可打开的文件描述符的最大数)和nproc(单个用户可用的最大进程数量)
# vi /etc/security/limits.conf
# 添加如下的行

*               soft    nproc   2047
*               hard    nproc   16384
*               soft    nofile  1024
*               hard    nofile  65536
 
添加如下的行到/etc/pam.d/login 文件:

  session    required     /lib/security/pam_limits.so


三,确保以下包都正确安装
make-3.80-5
openmotif-devel-2.2.3-6.RHEL4.2
openmotif-2.2.3-6.RHEL4.2
binutils-2.15.92.0.2-10.EL4
setarch-1.6-1
compat-db-4.1.25-9
compat-gcc-32-c++-3.2.3-47.3
compat-libstdc++-33-3.2.3-47.3
compat-gcc-32-3.2.3-47.3
要额外注意的是,这些软件包之间是有依赖性的,先后的顺序要找好.否则会报告不能安装的错误.
 
四,创建用户和相关的组,并添加环境变量
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -g oinstall -G dba oracle 
# su ? oracle 
$ cd 
$ vi .bash_profile
#添加如下内容,路径和ORACLE_SID的具体值根据你的实际情况修改.
export ORACLE_BASE=/database/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.1.0/db_1
export ORACLE_SID=TEST
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export LC_CTYPE=en_US.UTF-8


五,建立相应的目录并授权
#mkdir -p /database/oracle/product/10.1.0/db_1
#chown -R oracle:oinstall /database/oracle
#chmod -R 755  /database/oracle

六,开始安装
如果是cpio文件先进行解压缩
#cpio -idmv 由于oracle 10G不支持在RHAS4上进行安装,所以在运行安装命令时加上-ignoreSysPrereqs参数跳过检测.

 

在RHAS4下安装oracle 10G

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn