Front page   Edit Freeze Diff Upload Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes

技術文書/Oracle/CentOS5.3(64bit)にGridControl10gR5をインストール

Last-modified: Sat, 29 Jan 2011 15:27:49 JST (4322d)
Top > 技術文書 > Oracle > CentOS5.3(64bit)にGridControl10gR5をインストール

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

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

参考文献 EditEdit(GUI)

必要なもの EditEdit(GUI)

10.2.0.3 と同様に、 Oracle Enterprise Manager Downloads からダウンロードできます。

  • 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 のインストール EditEdit(GUI)

runInstaller を実行します。

[oracle@em1 ~]$ cd gc10205/3731593/Disk1/
[oracle@em1 Disk1]$ ./runInstaller 

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

OMS 10g EditEdit(GUI)

まずは oms10g から。

1.png

2.png

3.png

4.png

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

5.png

[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 にアクセスして言われた通りに実行します。

6.png

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

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

[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

7.png

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

8.png

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

9.png

10.png

11.png

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

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

[root@em1 ~]# 

12.png

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

13.png

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

Agent 10g EditEdit(GUI)

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

[oracle@em1 ~]$ cd gc10205/3731593/Disk1/
[oracle@em1 Disk1]$ ./runInstaller 

21.png

22.png

23.png

24.png

25.png

26.png

27.png

28.png

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

[root@em1 ~]# 

29.png

動作確認 EditEdit(GUI)

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

[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 にアクセスすれば動作確認できます。

30.png

31.png

32.png

agent のバージョン確認 EditEdit(GUI)

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

[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

起動と終了 EditEdit(GUI)

終了 EditEdit(GUI)

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

[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.
[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...
[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
[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

起動 EditEdit(GUI)

起動は終了の逆です。

listener → DB → OMS → agent です。

[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
[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
[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...
[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.


URL B I U SIZE Black Maroon Green Olive Navy Purple Teal Gray Silver Red Lime Yellow Blue Fuchsia Aqua White

Attach file: file32.png 258 download [Information] file31.png 248 download [Information] file30.png 250 download [Information] file29.png 290 download [Information] file28.png 278 download [Information] file27.png 281 download [Information] file26.png 256 download [Information] file25.png 269 download [Information] file24.png 270 download [Information] file23.png 267 download [Information] file22.png 275 download [Information] file21.png 284 download [Information] file13.png 278 download [Information] file12.png 279 download [Information] file11.png 275 download [Information] file10.png 290 download [Information] file9.png 282 download [Information] file8.png 301 download [Information] file7.png 285 download [Information] file6.png 268 download [Information] file5.png 279 download [Information] file4.png 293 download [Information] file3.png 280 download [Information] file2.png 313 download [Information] file1.png 286 download [Information]