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
# 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
相关文章推荐
- ORACLE 10g for RedHat Linux 5(企业版)安装
- 在redhat企业版5.8上装oracle 10g --笔记
- RedHat Linux7.2 上 Oracle 8i R2 (8.1.6) 企业版安装实例
- Redhat linux下oracle 10g 安装说明
- Redhat Linux oracle 10g em 按钮乱码解决
- redhat linux fedora core 5 成功安装 Oracle 10g
- Redhat linux下安装oracle 10g
- 在vmware下安装redhat linux 5.4 环境与oracle 10g 数据库
- redhat linux 下安装oracle 10g 的方法
- Redhat linux下安装oracle 10g
- ubuntu 8.10 安装Oracle 10G 企业版综合指南
- Redhat Linux 6.4下安装Oracle 10g问题总结
- 在CentOS5.6下安装Oracle 10g企业版
- 轉載:利用SQL*Loader将 Excel 数据导出到数据库中 Oracle 10g (10.2.0.2) for NT 企业版
- Redhat linux5.5下Oracle 10g 安装配置手册三
- Oracle 10g标准版与企业版
- Oracle 10g 11g在Redhat linux平台下不能自动关闭
- Redhat Linux oracle 10g em 按钮乱码解决
- Redhat linux下oracle 10g安装总结
- Redhat Linux Enterprise6.4 + Oracle 10g安装问题集锦