Oracle Enterprise Manager Downloads からダウンロードして、Enterprise Manager 10g Grid Control Release 3 (10.2.0.3) を CentOS 5.3 (64bit) にインストールします。

2009/08 現在の最新版は 10.2.0.5 ですが、 この 10.2.0.3 からのパッチリリースとなっています。

参考文献

インストール環境

必要なもの

zip を展開しておきます。同じディレクトリにかぶせて大丈夫です。 /home/oracle/gc10203/ 以下に置きました。

インストール方針

Repository は新規データベースを作るものとします。 内部で Database 10g R1 が使われるそうです。

RPMの確認とインストール

次のものが要るようです。

64bit

#pre{{ [root@em1 ~]# cat pkgs binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel libaio libaio-devel libgcc libstdc++ libstdc++-devel make openmotif sysstat libXp }}

32bit

#pre{{ [root@em1 ~]# cat pkgs.i386 compat-libstdc++-33 glibc glibc-devel libaio libgcc libstdc++ openmotif unixODBC unixODBC-devel libXp }}

確認してみます。

#pre{{ [root@em1 ~]# cat pkgs | xargs rpm -q --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" binutils-2.17.50.0.6-9.el5 (x86_64) compat-libstdc++-33-3.2.3-61 (x86_64) compat-libstdc++-33-3.2.3-61 (i386) elfutils-libelf-0.137-3.el5 (x86_64) elfutils-libelf-0.137-3.el5 (i386) elfutils-libelf-devel-0.137-3.el5 (x86_64) gcc-4.1.2-44.el5 (x86_64) gcc-c++-4.1.2-44.el5 (x86_64) glibc-2.5-34 (x86_64) glibc-2.5-34 (i686) glibc-common-2.5-34 (x86_64) glibc-devel-2.5-34 (i386) glibc-devel-2.5-34 (x86_64) libaio-0.3.106-3.2 (x86_64) libaio-0.3.106-3.2 (i386) パッケージ libaio-devel はインストールされていません。 libgcc-4.1.2-44.el5 (i386) libgcc-4.1.2-44.el5 (x86_64) libstdc++-4.1.2-44.el5 (x86_64) libstdc++-4.1.2-44.el5 (i386) libstdc++-devel-4.1.2-44.el5 (x86_64) make-3.81-3.el5 (x86_64) パッケージ openmotif はインストールされていません。 パッケージ sysstat はインストールされていません。 パッケージ libXp はインストールされていません。 [root@em1 ~]# cat pkgs.i386 | xargs rpm -q --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" compat-libstdc++-33-3.2.3-61 (x86_64) compat-libstdc++-33-3.2.3-61 (i386) glibc-2.5-34 (x86_64) glibc-2.5-34 (i686) glibc-devel-2.5-34 (i386) glibc-devel-2.5-34 (x86_64) libaio-0.3.106-3.2 (x86_64) libaio-0.3.106-3.2 (i386) libgcc-4.1.2-44.el5 (i386) libgcc-4.1.2-44.el5 (x86_64) libstdc++-4.1.2-44.el5 (x86_64) libstdc++-4.1.2-44.el5 (i386) パッケージ openmotif はインストールされていません。 パッケージ unixODBC はインストールされていません。 パッケージ unixODBC-devel はインストールされていません。 パッケージ libXp はインストールされていません。 }}

ないものをインストールします。

#pre{{ [root@em1 ~]# yum install libaio-devel sysstat libXp openmotif unixODBC unixODBC-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

...

Transaction Summary ================================================================================ Install 11 Package(s) Update 0 Package(s) Remove 0 Package(s)

Total download size: 6.5 M Is this ok [y/N]: y ... }}

グループとユーザの作成、カーネルパラメータの設定など

Database 11g と同様です。

#pre{{ [root@em1 ~]# groupadd oinstall [root@em1 ~]# groupadd dba [root@em1 ~]# useradd -g oinstall -G dba oracle [root@em1 ~]# passwd oracle Changing password for user oracle. ... }}

/etc/sysctl.conf に追加。

#pre{{

# for Grid Control 10g

#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 = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 262144 }}

設定を反映させます。

#pre{{ [root@em1 ~]# sysctl -p net.ipv4.ip_forward = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0 kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536 kernel.shmmax = 68719476736 kernel.shmall = 4294967296 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 262144 }}

/etc/security/limits.conf に追加。

#pre{{

# for Grid Control 10g

oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 }}

/etc/pam.d/login に追加。

#pre{{

# for Grid Control 10g session required pam_limits.so }}

/etc/profile に追加。

#pre{{

# for Grid Control 10g if [ $USER = "oracle" ]; then

       if [ $SHELL = "/bin/ksh" ]; then
             ulimit -p 16384
             ulimit -n 65536
       else  
             ulimit -u 16384 -n 65536
       fi

fi }}

ライブラリの設定も必要なようです。

#pre{{ [root@em1 ~]# ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2 }}

最後に、hostname (ここではem1) が 127.0.0.1 になっていると気持ち悪いため、hosts の設定もしておきます。

#pre{{ [root@em1 ~]# cat /etc/hosts

# Do not remove the following line, or various programs

# that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6

192.168.1.224 em1.sugimura.homelinux.org em1 }}

インストール先ディレクトリの作成

#pre{{ [root@em1 ~]# mkdir -p /u01/app [root@em1 ~]# mkdir -p /u02/oradata [root@em1 ~]# chown -R oracle:oinstall /u01/app [root@em1 ~]# chown -R oracle:oinstall /u02/oradata [root@em1 ~]# chmod -R 775 /u01/app [root@em1 ~]# chmod -R 775 /u02/oradata }}

oracle ユーザの設定

oracle ユーザの ~/.bash_profile に umask 022 を追加。

#pre{{ [oracle@em1 ~]$ cat .bash_profile

# .bash_profile

# Get the aliases and functions if [ -f ~/.bashrc ]; then

       . ~/.bashrc

fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

umask 022 }}

X の設定

Gentoo Linux で上げている X サーバでは 普通に ssh -X しても X クライアントが表示できなかったので、~/.ssh/config に設定を追加しました。

#pre{{ sugimura@e8400 ~ $ cat .ssh/config Host *

       ForwardX11 yes
       ForwardX11Trusted yes

sugimura@e8400 ~ $ chmod 600 .ssh/config }}

これでリモートの X クライアントが使えるようになります。 次のように実行して xterm のウィンドウが上がってくれば OK です。

#pre{{ sugimura@e8400 ~ $ ssh -X oracle@em1 xterm oracle@em1's password: }}

Grid Control 10g 10.2.0.3.0 のインストール

zip を展開して、インストーラを起動します。 日本語フォントが変でしたので英語モードにしました。

#pre{{ sugimura@e8400 ~ $ ssh -X oracle@em1 oracle@em1's password: Last login: Mon Aug 10 22:46:36 2009 from 192.168.1.2 [oracle@em1 ~]$ export LANG=C [oracle@em1 ~]$ cd gc10203/Disk1/ [oracle@em1 Disk1]$ ./runInstaller }}

1.png

2.png

3.png

4.png

5.png

6.png

7.png

8.png

9.png

10.png

11.png

#pre{{ opmnctl: opmn is already running }}

と出ているので一度 opmnctl stopall してから Retry を押し、再度同じエラーになりますがそのまま Continue を押して先に進みます。

12.png

#pre{{ [root@em1 ~]# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory to 770. Changing groupname of /u01/app/oraInventory to oinstall. The execution of the script is complete }}

#pre{{ [root@em1 ~]# /u01/app/oracle/product/db10g/allroot.sh

Starting to execute allroot.sh .........

Starting to execute /u01/app/oracle/product/db10g/root.sh ...... Running Oracle10 root.sh script... The following environment variables are set as:

   ORACLE_OWNER= oracle
   ORACLE_HOME=  /u01/app/oracle/product/db10g

Enter the full pathname of the local bin directory: [/usr/bin]: /usr/local/bin

  Copying dbhome to /usr/local/bin ...
  Copying oraenv to /usr/local/bin ...
  Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file... Adding entry to /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. /etc/oracle does not exist. Creating it now. Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. Oracle Cluster Registry for cluster has been initialized

Adding to inittab Checking the status of Oracle init process... Expecting the CRS daemons to be up within 600 seconds. CSS is active on these nodes.

       em1

CSS is active on all nodes. Oracle CSS service is installed and running under init(1M)

Finished execution of /u01/app/oracle/product/db10g/root.sh ......

Starting to execute /u01/app/oracle/product/oms10g/root.sh ...... Running Oracle10 root.sh script... The following environment variables are set as:

   ORACLE_OWNER= oracle
   ORACLE_HOME=  /u01/app/oracle/product/oms10g

Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]:

Adding entry to /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed.

Finished execution of /u01/app/oracle/product/oms10g/root.sh ......

Starting to execute /u01/app/oracle/product/agent10g/root.sh ...... Running Oracle10 root.sh script...

The following environment variables are set as:

   ORACLE_OWNER= oracle
   ORACLE_HOME=  /u01/app/oracle/product/agent10g

Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]:

Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. Finished product-specific root actions.

Finished execution of /u01/app/oracle/product/agent10g/root.sh ...... }}

13.png

14.png

かなりの時間が掛かるのでそのまま待ちましょう。

15.png

無事終わりました。http://(インストールしたサーバ):4889/em にアクセスすれば表示されます。

16.png

17.png

次に 技術文書/Oracle/CentOS5.3(64bit)にGridControl10gR5をインストール へ進みます。



添付ファイル: file17.png 339件 [詳細] file16.png 327件 [詳細] file15.png 321件 [詳細] file6.png 372件 [詳細] file14.png 331件 [詳細] file13.png 349件 [詳細] file12.png 330件 [詳細] file11.png 353件 [詳細] file10.png 352件 [詳細] file9.png 372件 [詳細] file8.png 384件 [詳細] file7.png 366件 [詳細] file5.png 363件 [詳細] file4.png 374件 [詳細] file3.png 347件 [詳細] file2.png 372件 [詳細] file1.png 354件 [詳細]

トップ   差分 履歴 リロード   一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2011-01-29 (土) 15:27:49