#topicpath

[[技術文書/Oracle/CentOS5.3(64bit)にGridControl10gR3をインストール]] の続きです。

10gR3 にパッチを当てて、10gR5 をインストールしていきます。

* 参考文献 [#mbaffd74]

- [[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さん

* 必要なもの [#e6f5c803]

10.2.0.3 と同様に、
[[Oracle Enterprise Manager Downloads:http://www.oracle.com/technology/software/products/oem/index.html]]
からダウンロードできます。

- 10.2.0.5 パッチバージョン
-- gc_x86_64_10205_part1of2.zip
-- gc_x86_64_10205_part2of2.zip

zip を展開しておきます。/home/oracle/gc10205/ に展開しました。

さらに、その中身の p3731593_10205_Linux-x86-64.zip も展開しておきます。

* Grid Control 10g 10.2.0.5.0 のインストール [#c2332f49]

runInstaller を実行します。

#pre{{
[oracle@em1 ~]$ cd gc10205/3731593/Disk1/
[oracle@em1 Disk1]$ ./runInstaller 
}}

付属の README.txt を読むと、
oms10g → agent10g という順番でそれぞれ進めるとのことです。

* OMS 10g [#v30f4d34]

まずは oms10g から。

&ref(1.png);

&ref(2.png);

&ref(3.png);

&ref(4.png);

サービスがまだ上がっていると言われるので落とします。

&ref(5.png);

#pre{{
[oracle@em1 Disk1]$ export ORACLE_HOME=/u01/app/oracle/product/oms10g 
[oracle@em1 Disk1]$ $ORACLE_HOME/opmn/bin/opmnctl status

Processes in Instance: EnterpriseManager0.em1.sugimura.homelinux.org
-------------------+--------------------+---------+---------
ias-component      | process-type       |     pid | status  
-------------------+--------------------+---------+---------
DSA                | DSA                |     N/A | Down    
HTTP_Server        | HTTP_Server        |   11217 | Alive   
LogLoader          | logloaderd         |     N/A | Down    
dcm-daemon         | dcm-daemon         |     N/A | Down    
OC4J               | home               |   11218 | Alive   
OC4J               | OC4J_EMPROV        |   11219 | Alive   
OC4J               | OC4J_EM            |   11223 | Alive   
WebCache           | WebCache           |    4069 | Alive   
WebCache           | WebCacheAdmin      |   11229 | Alive   

[oracle@em1 Disk1]$ $ORACLE_HOME/opmn/bin/opmnctl stopall
opmnctl: stopping opmn and all managed processes...
[oracle@em1 Disk1]$ $ORACLE_HOME/opmn/bin/opmnctl status 
Unable to connect to opmn.
Opmn may not be up.
}}

サービスを落としたら4分待つようです。

進めるとまた怒られます。DB にアクセスして言われた通りに実行します。

&ref(6.png);

これも README.txt に詳しく書いてあります。

ジョブを削除して一度再起動し、
もうジョブがないということを確認するという手順です。

#pre{{
[oracle@em1 Disk1]$ export ORACLE_HOME=/u01/app/oracle/product/db10g 
[oracle@em1 Disk1]$ export ORACLE_SID=emrep
[oracle@em1 Disk1]$ $ORACLE_HOME/bin/sqlplus sysman/xxxxxxx

SQL*Plus: Release 10.1.0.4.0 - Production on Tue Aug 11 21:44:00 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> execute emd_maintenance.remove_em_dbms_jobs;

PL/SQL procedure successfully completed.

SQL> commit;

Commit complete.

SQL> conn / as sysdba
Connected.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area  536870912 bytes
Fixed Size                  1322944 bytes
Variable Size             216518720 bytes
Database Buffers          318767104 bytes
Redo Buffers                 262144 bytes
Database mounted.
Database opened.
SQL> conn sysman/xxxxxxxx
Connected.
SQL> select count(*) from dba_jobs_running run_job, gv$session sess
  2  where sess.sid = run_job.sid 
  3  and sess.schemaname = 'SYSMAN';

  COUNT(*)
----------
         0

SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
}}

&ref(7.png);

「ちょっと止まります」と警告が出ますが、
そりゃそうだろうと気にせずOKで進めます。

&ref(8.png);

結構待ちました。ようやくサマリー画面が出ます。

&ref(9.png);

&ref(10.png);

&ref(11.png);

root.sh を実行しますが何も出なくていいようです。

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

[root@em1 ~]# 
}}

&ref(12.png);

これはかなり掛かります。気長に待ちましょう。

&ref(13.png);

これで OMS 10g は終わりです。

* Agent 10g [#t989a6d0]

次は agent10g をやります。
同様に runInstaller を実行します。

#pre{{
[oracle@em1 ~]$ cd gc10205/3731593/Disk1/
[oracle@em1 Disk1]$ ./runInstaller 
}}

&ref(21.png);

&ref(22.png);

&ref(23.png);

&ref(24.png);

&ref(25.png);

&ref(26.png);

&ref(27.png);

&ref(28.png);

#pre{{
[root@em1 ~]# /u01/app/oracle/product/agent10g/root.sh
Finished product-specific root actions.

[root@em1 ~]# 
}}

&ref(29.png);

* 動作確認 [#dea05926]

パッチ適用が終わったら、念のため opmnctl で再起動してみます。

#pre{{
[oracle@em1 ~]$ $ORACLE_HOME/opmn/bin/opmnctl stopall
opmnctl: stopping opmn and all managed processes...
[oracle@em1 ~]$ $ORACLE_HOME/opmn/bin/opmnctl status 
Unable to connect to opmn.
Opmn may not be up.
[oracle@em1 ~]$ $ORACLE_HOME/opmn/bin/opmnctl startall
opmnctl: starting opmn and all managed processes...
[oracle@em1 ~]$ $ORACLE_HOME/opmn/bin/opmnctl status

Processes in Instance: EnterpriseManager0.em1.sugimura.homelinux.org
-------------------+--------------------+---------+---------
ias-component      | process-type       |     pid | status  
-------------------+--------------------+---------+---------
HTTP_Server        | HTTP_Server        |    4618 | Alive   
LogLoader          | logloaderd         |     N/A | Down    
dcm-daemon         | dcm-daemon         |     N/A | Down    
OC4J               | home               |    4619 | Alive   
OC4J               | OC4J_EMPROV        |    4620 | Alive   
OC4J               | OC4J_EM            |    4621 | Alive   
OC4J               | OCMRepeater        |    4624 | Alive   
WebCache           | WebCache           |    4631 | Alive   
WebCache           | WebCacheAdmin      |    4625 | Alive   
DSA                | DSA                |     N/A | Down    

}}

ブラウザで http://(インストールしたサーバ):4889/em にアクセスすれば動作確認できます。

&ref(30.png);

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

&ref(32.png);

* agent のバージョン確認 [#q6a39a22]

agent のバージョン確認もできます。

#pre{{
[oracle@em1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/agent10g 
[oracle@em1 ~]$ $ORACLE_HOME/bin/emctl status agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.2.0.5.0
OMS Version       : 10.2.0.5.0
Protocol Version  : 10.2.0.5.0
Agent Home        : /u01/app/oracle/product/agent10g
Agent binaries    : /u01/app/oracle/product/agent10g
Agent Process ID  : 3005
Parent Process ID : 2987
Agent URL         : https://em1.sugimura.homelinux.org:3872/emd/main/
Repository URL    : https://em1.sugimura.homelinux.org:1159/em/upload
Started at        : 2009-08-11 23:15:01
Started by user   : oracle
Last Reload       : 2009-08-11 23:26:43
Last successful upload                       : 2009-08-12 00:09:47
Total Megabytes of XML files uploaded so far :    15.32
Number of XML files pending upload           :        0
Size of XML files pending upload(MB)         :     0.00
Available disk space on upload filesystem    :     4.34%
Last successful heartbeat to OMS             : 2009-08-12 00:09:37
---------------------------------------------------------------
Agent is Running and Ready
}}

* 起動と終了 [#v49ad22b]

** 終了 [#rcb37b81]

agent → OMS → DB → listener の順に落とします。

#pre{{
[oracle@em1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/agent10g
[oracle@em1 ~]$ $ORACLE_HOME/bin/emctl stop agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.
}}

#pre{{
[oracle@em1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/oms10g
[oracle@em1 ~]$ $ORACLE_HOME/opmn/bin/opmnctl stopall
opmnctl: stopping opmn and all managed processes...
}}

#pre{{
[oracle@em1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/db10g
[oracle@em1 ~]$ export ORACLE_SID=emrep
[oracle@em1 ~]$ $ORACLE_HOME/bin/sqlplus / as sysdba

SQL*Plus: Release 10.1.0.4.0 - Production on Thu Aug 13 11:24:53 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
}}

#pre{{
[oracle@em1 ~]$ $ORACLE_HOME/bin/lsnrctl stop

LSNRCTL for Linux: Version 10.1.0.4.0 - Production on 13-AUG-2009 11:25:19

Copyright (c) 1991, 2004, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
The command completed successfully
}}

** 起動 [#l4bc7c98]

起動は終了の逆です。

listener → DB → OMS → agent です。

#pre{{
[oracle@em1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/db10g
[oracle@em1 ~]$ $ORACLE_HOME/bin/lsnrctl start

LSNRCTL for Linux: Version 10.1.0.4.0 - Production on 13-AUG-2009 11:25:25

Copyright (c) 1991, 2004, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/db10g/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.1.0.4.0 - Production
System parameter file is /u01/app/oracle/product/db10g/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/db10g/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=em1.sugimura.homelinux.org)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.1.0.4.0 - Production
Start Date                13-AUG-2009 11:25:26
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/db10g/network/admin/listener.ora
Listener Log File         /u01/app/oracle/product/db10g/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=em1.sugimura.homelinux.org)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
}}

#pre{{
[oracle@em1 ~]$ export ORACLE_SID=emrep
[oracle@em1 ~]$ $ORACLE_HOME/bin/sqlplus / as sysdba

SQL*Plus: Release 10.1.0.4.0 - Production on Thu Aug 13 11:25:30 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area  536870912 bytes
Fixed Size                  1322944 bytes
Variable Size             275238976 bytes
Database Buffers          260046848 bytes
Redo Buffers                 262144 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
}}

#pre{{
[oracle@em1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/oms10g
[oracle@em1 ~]$ $ORACLE_HOME/opmn/bin/opmnctl startall
opmnctl: starting opmn and all managed processes...
}}

#pre{{
[oracle@em1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/agent10g
[oracle@em1 ~]$ $ORACLE_HOME/bin/emctl start agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Starting agent ............................... started.
}}

----
#comment

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