#topicpath

[[Oracle Enterprise Manager Downloads:http://www.oracle.com/technology/software/products/oem/index.html]]
からダウンロードして、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 からのパッチリリースとなっています。

* 参考文献 [#kb9992c1]

- [[Oracle Enterprise Manager Grid Control インストレーション・ガイド 10gリリース5(10.2.0.5.0):http://otndnld.oracle.co.jp/document/products/oem10/1020/generic/B53906-02/toc.htm]]
- [[Installing Grid Control (10.2.0.5) on RHEL 5 with 11g Database Repository:http://www.idevelopment.info/data/Oracle/DBA_tips/Enterprise_Manager/OEM_10.shtml]] Jeff Hunterさん

* インストール環境 [#rd3cc98a]

- VMware Server 1.0.9
-- CPU 1個
-- MEM 1.5GB
-- HDD 20GB
- CentOS 5.3 (64bit)

* 必要なもの [#m74e1a70]

- 10.2.0.3 フルバージョン
-- Linux_x86_64_Grid_Control_full_102030_disk1.zip
-- Linux_x86_64_Grid_Control_full_102030_disk2.zip

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

* インストール方針 [#qeb62574]

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

- Oracle Parent Directory: /u01/app/oracle/product/
- Oracle Management Repository (Database): /u02/oradata/

* RPMの確認とインストール [#rc9130cf]

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

** 64bit [#k7cdba5b]

#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 [#p9e9252a]

#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
...
}}

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

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
}}

* インストール先ディレクトリの作成 [#be3b9d95]

#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 ユーザの設定 [#xf857771]

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 の設定 [#sb1e9c29]

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 のインストール [#l57f587a]

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 
}}

(作成中)

&ref(1.png);

&ref(2.png);

&ref(3.png);

&ref(4.png);

&ref(5.png);

&ref(6.png);

&ref(7.png);

&ref(8.png);

&ref(9.png);

&ref(10.png);

&ref(11.png);

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

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

&ref(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 ......
}}

&ref(13.png);

&ref(14.png);

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

&ref(15.png);

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

&ref(16.png);

&ref(17.png,,50%);

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

----
#comment

トップ   差分 履歴 リロード   一覧 検索 最終更新   ヘルプ   最終更新のRSS