Redhat Enterprise 5(RHEL5.5)上安装ORACLE 10G Release 2(10.2.0.1) 64位版本

Oracle Database 10g Release 2 (10.2.0.1) Installation On Red Hat Enterprise Linux 5 (RHEL5)

一、安装需求
1.swap 分区不低于2G(安装LINUX会自动设置为物理内存的大小)
2.selinux 状态disable
3.物理内存不低于512M

系统组件


GNOME Desktop Environment
Editors
Graphical Internet
Text-based Internet
Development Libraries
Development Tools
Legacy Software Development
Server Configuration Tools
Administration Tools
Base
Legacy Software Support
System Tools
X Window System


二安装过程
1.软件下载(下载64位数据库版本)
http://www.oracle.com/technology/software/products/database/oracle10g/index.html
2.解包
gunzip  xxxxxxxxx.cpio.gz

cpio –idmv xxxxxxxxx.cpio

3. host配置


vi /etc/sysctl.conf file:

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096

注:上面三个参数在RHEL5中的配置若高于该值,可保留原值
# 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
运行下面命令使设置生效/sbin/sysctl –p

vi /etc/security/limits.conf
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
 
vi /etc/pam.d/login

session required /lib64/security/pam_limits.so   (注:X86_64内核 )

vi /etc/selinux/config

SELINUX=disabled

安装下面的rpm包(ORACLE官方文档中建议不单独安装依赖包。

安装LINUX系统如果选择了所有的开发包,忽略此步)   

# From RedHat AS5 Disk 1
cd /media/cdrom/Server
rpm -Uvh setarch-2*
rpm -Uvh make-3*
rpm -Uvh glibc-2*
rpm -Uvh libaio-0*
cd /
eject
# From RedHat AS5 Disk 2
cd /media/cdrom/Server
rpm -Uvh compat-libstdc++-33-3*
rpm -Uvh compat-gcc-34-3*
rpm -Uvh compat-gcc-34-c++-3*
rpm -Uvh gcc-4*
rpm -Uvh libXp-1*
cd /
eject

# From RedHat AS5 Disk 3
cd /media/cdrom/Server
rpm -Uvh openmotif-2*
rpm -Uvh compat-db-4*
cd /
eject

 

建立oracle用户和组


groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
建立相应的目录
mkdir -p /db/oracle/product/10.2.0/db_1
chown -R oracle.oinstall /db

编辑/etc/redhat-release
vi /etc/redhat-release
Red Hat Enterprise Linux Server release 5 (Tikanga) 替换为
Red Hat Enterprise Linux AS release 4 (Nahant Update 4)


登陆oracle 建立相应的环境变量

su - oracle
vi ~/.bash_profile

# Oracle Settings

vi /home/oracle/.bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_SID=SGHIS
ORACLE_BASE=/db/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID ORACLE_BASE ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
export PATH
# 以下可以用也可不用
export DISPLAY=100.100.10.27:0.0
export LANG=AMRICAN
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
运行下面命令使设置生效source ~/.bash_profile
--------
开始安装
设置显示位置(可用可不用)
DISPLAY=:0.0; export DISPLAY
# export DISPLAY=:0.0
# xhost +
启动安装程序(进入到安装包解压的目录下)
./runInstaller
安装过程

特别注意:database charset 选zhs16gbk
                      国家字符集:中国,UTF8

Select Installation Method
Specify Inventory Directory and Credentials
Select Installation Type
Specify Home Details
Product-Specific Prerequisite Checks
Select Configuration Option
Select Database Configuration
Specify Database Configuration Options
Select Database Management Option
Specify Database Storage Option
Specify Backup and Recovery Options
Specify Database Schema Passwords
Summary
Install
Configuration Assistants
Database Configuration Assistant
Database Configuration Assistant Password Management
Execute Configuration Scripts
End Of Installation

 

#以下可以不做(OYJ edit)
安装结束后修改vi /etc/redhat-release 内容为
Red Hat Enterprise Linux Server release 5 (Tikanga)
设置开机启动vi /etc/oratab
TSH1:/db/oracle/product/10.2.0/db_1:Y

转载于:https://www.cnblogs.com/jayceauyeung/archive/2010/11/11/1875241.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值