【GC】OEL4.8部署安裝 Grid Control OMS

secooler發表於2010-07-09
記錄一下在Oracle Enterprise Linux 4.8上部署安裝Grid Control的過程。

Grid Control需要有自己的資料庫用來存放管理資料,此處我們使用已經建立好的資料庫例項來安裝Grid Control。
GC安裝在ocmdb2主機上,GC的repository database已經事先在ocmdb1主機上上安裝完畢。

1.調整repository database資料庫
1)資料庫引數調整
參考《【GC】安裝GC之前需要調整的幾個引數》(http://space.itpub.net/519536/viewspace-667627)
SQL> alter system set session_cached_cursors = 201 scope=spfile;
SQL> alter system set job_queue_processes = 11 scope=spfile;
SQL> alter system set open_cursors = 301 scope=spfile;

2)執行指令碼dbmspool.sql指令碼
@?/rdbms/admin/dbmspool
指令碼註釋資訊如下:
rem
rem $Header: dbmspool.sql 15-jun-99.08:54:18 mjungerm Exp $
rem
Rem  Copyright (c) 1991, 1996, 1997, 1998, 1999 by Oracle Corporation
Rem    NAME
Rem      dbmspool.sql - dbms_shared_pool utility package.
Rem    DESCRIPTION
Rem      This package allows you to display the sizes of objects in the
Rem      shared pool, and mark them for keeping or unkeeping in order to
Rem      reduce memory fragmentation.

3)解鎖DBSNMP使用者
SQL> alter user DBSNMP identified by oracle1 account unlock;

2.檢查/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
192.168.190.32  ocmdb2.localdomain      ocmdb2
192.168.190.31  ocmdb1.localdomain      ocmdb1

3.GC安裝過程
1)root使用者下執行“xhost +”命令保證圖形化安裝介面可以啟動
[root@ocmdb2 ~]# xhost +
access control disabled, clients can connect from any host

2)切換到oracle使用者進行安裝
[root@ocmdb2 ~]# su - oracle
[oracle@ocmdb2 ~]$ cd /hsw_media/Disk1/
[oracle@ocmdb2 Disk1]$ ./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be enterprise-4, enterprise-5, redhat-3, redhat-4, redhat-5, redhat-5.1, SuSE-9, SuSE-10, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed


All installer requirements met.

3)這裡選擇“Enterprise Manager 10g Grid Control Using an Existing Database”選項,點選“Next”
【GC】OEL4.8部署安裝 Grid Control OMS

4)修改Parent Directory內容為“/u01/app/oracle/OracleHomes”,點選“Next”

【GC】OEL4.8部署安裝 Grid Control OMS

【GC】OEL4.8部署安裝 Grid Control OMS

5)系統自動完成先決條件的檢查,確保無誤,點選“Next”
【GC】OEL4.8部署安裝 Grid Control OMS

6)提供事先準備好的Repository Database的基本資訊,點選“Next”
注意:下面表空間的位置需要重點修改一下,保證Repository Database所在的主機上存在相應的目錄!
【GC】OEL4.8部署安裝 Grid Control OMS

7)其他可選配置頁,這裡保持預設,不進行配置,點選“Next”
【GC】OEL4.8部署安裝 Grid Control OMS

8)密碼安全設定,設定完成後,點選“Next”
注意:給定的密碼要求至少是5位,並且需要包含數字,我們這裡統一設定為“oracle1”!
【GC】OEL4.8部署安裝 Grid Control OMS

9)安裝配置總結頁面,確保無誤後點選“Install”進行安裝
【GC】OEL4.8部署安裝 Grid Control OMS

【GC】OEL4.8部署安裝 Grid Control OMS

10)安裝完成後,需要在root使用者下執行allroot.sh指令碼,執行完成後點選“OK”進入到漫長的配置頁面

【GC】OEL4.8部署安裝 Grid Control OMS

[root@ocmdb2 ~]# sh /u01/app/oracle/OracleHomes/oms10g/allroot.sh


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

Starting to execute /u01/app/oracle/OracleHomes/oms10g/root.sh ......
Running Oracle10 root.sh script...
\nThe following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/OracleHomes/oms10g

Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

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/OracleHomes/oms10g/root.sh ......


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

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/OracleHomes/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/OracleHomes/agent10g/root.sh ......

11)配置頁面,這裡是最耗時,但是最省心的無人值守的階段,可以小憩一下
注意:一定要保證這個配置過程的完整和正確,否則會對使用產生重大的影響,如發現問題,按照提示檢視報錯日誌中給出的內容。
可以使用“find . -cmin 1”命令輔助獲得涉及到的安裝日誌檔案。
【GC】OEL4.8部署安裝 Grid Control OMS

【GC】OEL4.8部署安裝 Grid Control OMS

12)配置結束介面。部署安裝GC完成。
【GC】OEL4.8部署安裝 Grid Control OMS

13)開啟FireFox,位址列中輸入“http://ocmdb2.localdomain:4889/em”進入到Grid Control登陸頁面
【GC】OEL4.8部署安裝 Grid Control OMS

14)輸入使用者名稱“sysman”,密碼“oracle1”進入到Grid Control的首頁
【GC】OEL4.8部署安裝 Grid Control OMS

【GC】OEL4.8部署安裝 Grid Control OMS

15)點選“Targets”,因為沒有新增其他Agent,此時只能看到本機的資訊
【GC】OEL4.8部署安裝 Grid Control OMS

4.小結
整個安裝GC的過程比較耗時,請做好心理準備。需要配置的引數最好一次性的設定正確,否則在報錯後排查問題比較耗時。

Good luck.

secooler
10.07.09

-- The End --

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-667751/,如需轉載,請註明出處,否則將追究法律責任。

相關文章