LoginSignup
4
2

More than 5 years have passed since last update.

Oracle DB 11g を REHL7 にインストール事前準備

Last updated at Posted at 2019-02-14

1.リソース制限ファイルを作成

Oracle DB 11g の インストールユーザが「oracle」の場合、
次のconfファイルを用意して、サーバを再起動する。

# cat << EOF > /etc/security/limits.d/30-oracle.conf
oracle         soft    nproc           4094
oracle         hard    nproc           16384
oracle         soft    nofile          10240
oracle         hard    nofile          65536
oracle         soft    stack           10240
oracle         hard    stack           32768
oracle         soft    memlock         15728640
oracle         hard    memlock         15728640
EOF

# reboot

2.必要なモジュールのインストール

# yum install compat-libcap1.x86_64 libstdc++-devel.x86_64 gcc-c++.x86_64 ksh.x86_64 glibc-devel.x86_64 libaio-devel.x86_64

3.Oracle DB 11.2.0.4.0 download

こちらからダウンロードしてください。
11.2.0.4.0 PATCH SET FOR ORACLE DATABASE SERVER

p13390677_112040_Linux-x86-64_1of7.zip

p13390677_112040_Linux-x86-64_7of7.zip

上記の1~7まで全てダウンロードして展開してください。

4.Oracle のリポジトリの追加

# wget http://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

# wget https://yum.oracle.com/public-yum-ol7.repo -O /etc/yum.repos.d/public-yum-ol7.repo

5.Oracle 11g 用 プレインストールの取得

# yum install oracle-rdbms-server-11gR2-preinstall -y

6.make ファイルの修正

# vi $ORACLE_HOME/sysman/lib/ins_emagent.mk

$ diff ins_emagent.mk ins_emagent.mk_org
176c176
<       $(MK_EMAGENT_NMECTL) -lnnz11
---
>       $(MK_EMAGENT_NMECTL)

7.最後にデスクトップ接続してrunInstallerを実行

$ 展開先/oracle/runInstaller
4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2