アットウィキロゴ
PLATFORM FREAKS
掲示板 掲示板 ページ検索 ページ検索 メニュー メニュー

PLATFORM FREAKS

RHCS4

最終更新:

kcwest

- view
管理者のみ編集可
  • Oracleソフトウェアインストール

# mkdir -p /work/oracle/install
1. OTNよりダウンロードしたOracleインストールファイルを/work/oracle/install/にアップロード

# cd /work/oracle/install
# ll
# unzip 10201_database_linux32.zip >/dev/null
# ll 

# cp -p /etc/sysctl.conf /etc/sysctl.conf.`date '+%Y%m%d'`
# ls -ltr /etc/sysctl.conf*
# vi /etc/sysctl.conf
------------------------------------------
# For Oracle
kernel.sem = 250 32000 100 128
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
------------------------------------------
# diff /etc/sysctl.conf /etc/sysctl.conf.`date '+%Y%m%d'`
# sysctl -p 
# cp -p /etc/security/limits.conf /etc/security/limits.conf.`date '+%Y%m%d'`
# ls -ltr /etc/security/limits.conf*
# vi /etc/security/limits.conf
------------------------------------------
# For Oracle
oracle               soft    nproc   2047
oracle               hard    nproc   16384
oracle               soft    nofile  1024
oracle               hard    nofile  65536
------------------------------------------
# diff /etc/security/limits.conf /etc/security/limits.conf.`date '+%Y%m%d'
#
# cp -p /etc/pam.d/login /etc/pam.d/login.`date '+%Y%m%d'`
# ls -ltr /etc/pam.d/login*
# vi /etc/pam.d/login
------------------------------------------
# For Oracle
session    required     pam_limits.so
------------------------------------------
# diff /etc/pam.d/login /etc/pam.d/login.`date '+%Y%m%d'`
#
# groupadd -g 501 oinstall
# groupadd -g 502 dba
# useradd -u 501 -g oinstall -G dba oracle
# passwd oracle
#
# mkdir -p /oracle/product/10.2.0
# chown -R oracle.oinstall /oracle

# cp -p /etc/redhat-release /etc/redhat-release.`date '+%Y%m%d'`
# echo "redhat-4" > /etc/redhat-release

# su - oracle
# id 
uid=501(oracle) gid=501(oinstall) 所属グループ=501(oinstall),502(dba)
# cp -p .bash_profile .bash_profile.`date '+%Y%m%d'`
# vi .bash_profile
-----------------------------------------------
# For Oracle
export ORACLE_SID=ora10g
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0
export PATH=$ORACLE_HOME/bin:$PATH
ulimit -u 16384 -n 65536
-----------------------------------------------
$ diff .bash_profile .bash_profile.`date '+%Y%m%d'`
$ . .bash_profile
$ ulimit -n -u
open files                      (-n) 65536
max user processes              (-u) 16384

  • rootユーザでコンソールログインし、端末を起動する。
# whoami
# xhost +
# su - oracle
# cd /work/oracle/install/database
# ./runInstaller













  • 2号機も同様にOracleソフトウェアをインストールする。
最近更新されたスレッド
ウィキ募集バナー