1.安装前准备
1.1.修改hosts
vi /etc/hosts
192.168.1.100 test01 # 这一句不是命令,是追加到hosts文件中
1.2.关闭防火墙等
# 关闭防火墙
service iptables stop
chkconfig iptables off
# 关闭NetworkManager
service NetworkManager stop
chkconfig NetworkManager off
# 关闭selinux
vi /etc/selinux/config
SELINUX=disabled # 这一句不是命令,是修改上面vi的命令
1.3.内核参数
vi /etc/sysctl.conf
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
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
shmall,共享内存总大小,稍大于SGA即可,最小不可小于2097152
shmmax,共享内存段最大大小,稍大于SGA即可
其他的不用修改
sysctl -p
1.4.创建用户
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
mkdir -p /oracle/10205
chown -R oracle.dba /oracle
1.5.修改用户限制
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
1.6.设置oracle环境变量
vi .bash_profile
export PATH
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/10205
export ORACLE_SID=testdb
export PATH=$PATH:$ORACLE_HOME/bin
source .bash_profile
1.7.安装依赖软件
yum install -y binutils-* libXp* compat-libstdc++-33-* elfutils-libelf-* elfutils-libelf-devel-* gcc-* gcc-c++-* glibc-* glibc-common-* glibc-devel-* glibc-headers-* ksh-* libaio-* libgcc-* libstdc++-* make-* sysstat-* unixODBC-* unixODBC-devel-*
1.8.修改RedHat版本
Oracle 10g仅支持RedHat3和RedHat4,因此需要修改以下版本号
cp /etc/redhat-release /etc/redhat-release.bak
vi /etc/redhat-release
Red Hat Enterprise Linux Server release 4 (Tikanga) #把5.5替换为4
2.安装
cpio -idcmv < 10201_database_linux_x86_64.cpio
cd database/
./runInstaller
3.升级
unzip p8202632_10205_Linux-x86-64.zip
cd Disk1/
./runInstaller
4.创建监听
netca
5.创建数据库
dbca
标签:Oracle10205,vi,RedHat5.5,etc,export,ORACLE,oracle,net,安装
From: https://www.cnblogs.com/monkey6/p/17547689.html