您的位置:首页 > 数据库 > Oracle

RedHat Linux 企业5 oracle 10g

2010-01-21 10:39 260 查看
一、安装环境RedHat 企业5
# vi /etc/sysctl.conf
在行末添加以下内容
#use for oracle
#kernel.shmall = 2097152
#kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
再运行sysctl -p应用以上参数
# /sbin/sysctl -p
设置最大打开文件数
# vi /etc/security/limits.conf
在行末添加以下内容
#use for oracle
* soft nofile 65536
* hard nofile 65536
设置会话
# vi/etc/pam.d/login
行末添加以下内容
sessionrequired /lib/security/pam_limits.so
二、查询所需安装包是否完整
以root用户在终端中执行以下命令:
# yum -y install setarch-2*
# yum -y install libaio-0*
# yum -y install compat-libstdc++-33-3*
# yum -y install compat-gcc-34-3*
# yum -y install compat-gcc-34-c++-3*
# yum -y install libXp-1*
# yum -y install openmotif-2*
# yum -y install compat-db-4*
按命令提示的下载安装,所需的时间取决于你的网速。

三、建立oracle用户及组
groupadd dba

groupadd oinstall

useradd -g oinstall -G dba -m oracle

passwd oracle
oracle数据库下载
修改Linux发行版本信息

由 于Oracle 10g发行的时候,RedHat Enterprise Linux 5没有发行,所以Oracle 10g并没有对 RedHat Enterprise Linux 5确认支持,我们有两种方法可以让Oracle 10g支持 RedHat Enterprise Linux 5。

方法一:

我们需要手工修改Linux的发行注记,让Oracle 10g支持RedHat Enterprise Linux 5。

编辑/etc/redhat-release文件

# vi /etc/redhat-release

将其中的内容Red Hat Enterprise Linux Server release 5 (Tikanga)修改为Red Hat Enterprise Linux AS release 4

修改ORACLE环境变量
创建oracle安装目录,并设置权限
mkdir -p /home/oracle

chown -R oracle.oinstall /home/oracle
chmod -R 775 /home/oracle
解压oracle安装文件
#cd /home/oracle/

#unzip oracle_10201_database_linux32.zip
设置环境变量
# su - oracle

$ vi ~/.bash_profile
增加如下内容
export ORACLE_BASE=/home/oracle

export ORACLE_SID=orcl

export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1

export PATH=$PATH:$ORACLE_HOME/bin
保存后使用如下命令,使设置生效
$ source ~/.bash_profile
# su - oracle

$ xhost + (确定有图形界面)

$ export DISPLAY=11.168.130.74:0.0
$ /home/oracle/database/runInstaller
在root环境中执行
# /home/opt/oracle/oraInventory/orainstRoot.sh
# /home/opt/oracle/product/10.2.0/db_1/root.sh本文出自 “吴光科-京峰Linux运维培训” 博客,请务必保留此出处http://wgkgood.blog.51cto.com/1192594/268947
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: