【GC】使用 agentDownload.linux完成Grid Control Agent的快速部署安裝
我這裡使用的作業系統是OEL4.8,完成GC的Agent部署有很多種方法,這裡給出最快速的方法:使用agentDownload.linux完成Grid Control Agent的部署安裝。
使用這種方法的特點:一次只能部署一個Agent;使用的是從GC伺服器上pull的技術;可以針對具體環境對指令碼進行修改;非互動性靜默型別的操作;純文字輸出等。
1.保證使用這種方法的先決條件被滿足
1)需要為Oracle建立使用者和組;
2)保證wget命令可用,因為安裝過程中需要使用這個命令從GC伺服器上下載安裝檔案;
3)在oracle使用者下完成安裝;
4)保證oracle使用者下Java程式jar可用;
5)確定Agent安裝的目錄,我們這裡指定的是“/u01/app/oracle/agent”。
2.agentDownload.linux指令碼完成的任務列表
1)建立所需的目錄;
2)下載installation response file;
3)下載jarred OUI;
4)靜默模式下安裝Agent;
5)自動發現主機上的targets,並啟動主機上的Agent。
3.記錄Agent安裝過程
1)將ocmdb2主機中agentDownload.linux拷貝到ocmdb1主機上
[oracle@ocmdb1 ~]$ scp ocmdb2:/u01/app/oracle/OracleHomes/oms10g/sysman/agent_download/10.2.0.1.0/linux/agentDownload.linux .
oracle@ocmdb2's password:
agentDownload.linux 100% 22KB 22.3KB/s 00:00
2)給指令碼授予執行許可權
[oracle@ocmdb1 ~]$ chmod 755 agentDownload.linux
3)執行agentDownload.linux完成在Agent的部署安裝
命令中“/u01/app/oracle/agent”表示Agent部署的路徑。
[oracle@ocmdb1 ~]$ ./agentDownload.linux -b /u01/app/oracle/agent
…… ……
……省略輸出的log資訊……
/u01/app/oracle/agent/agent10g/root.sh needs to be executed by root to complete this installation.
注意安裝完成之後,安裝日誌最後輸出的內容,需要在root使用者下執行root.sh指令碼。
4)在root使用者下執行root.sh指令碼
[oracle@ocmdb1 ~]$ su - root
Password:
[root@ocmdb1 ~]# sh /u01/app/oracle/agent/agent10g/root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/agent/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.
到此,整個Agent就安裝完畢了。
4.在GC伺服器上配置新發現的資料庫例項
因為在ocmdb1主機上部署完成Agent後會自動發現其上執行著的資料庫例項,我們這裡是ocmdb例項和ocmgc例項。只需要簡單的配置一下便可在GC中對其進行監控和管理。
具體步驟如下。
1)點選“Targets”可以在“Hosts”欄目中看到GC自動識別到了兩臺主機

2)進一步點選“Database”可以看到,GC自動識別到了ocmdb1主機上的兩個資料庫例項

3)點選“Configure”對ocmdb例項進行配置,這裡僅需要給出dbsnmp使用者的密碼(oracle1)即可,其他內容是自動返填出來的,點選“Next”

4)此時直接進入到最後的Review階段,確定沒有問題,點選“Submit”

5)稍等片刻

6)提示ocmdb例項的屬性已經被更新

7)剛剛配置完畢時ocmdb的狀態資訊還不是很完整

8)此時可以點選右上角的Refresh圖示觀察ocmdb例項的狀態變化,最終該例項的所有狀態都會顯示出來

9)同樣的流程配置ocmgc例項,最終的狀態如下

5.小結
在Agent部署和GC配置的過程中遇到了幾次小的麻煩,重新安裝很多次後終於成功。
注意:在配置Agent之前記得一定要將所有資料庫例項中的dbsnmp使用者為unlock狀態!
Good luck.
secooler
10.07.10
-- The End --
使用這種方法的特點:一次只能部署一個Agent;使用的是從GC伺服器上pull的技術;可以針對具體環境對指令碼進行修改;非互動性靜默型別的操作;純文字輸出等。
1.保證使用這種方法的先決條件被滿足
1)需要為Oracle建立使用者和組;
2)保證wget命令可用,因為安裝過程中需要使用這個命令從GC伺服器上下載安裝檔案;
3)在oracle使用者下完成安裝;
4)保證oracle使用者下Java程式jar可用;
5)確定Agent安裝的目錄,我們這裡指定的是“/u01/app/oracle/agent”。
2.agentDownload.linux指令碼完成的任務列表
1)建立所需的目錄;
2)下載installation response file;
3)下載jarred OUI;
4)靜默模式下安裝Agent;
5)自動發現主機上的targets,並啟動主機上的Agent。
3.記錄Agent安裝過程
1)將ocmdb2主機中agentDownload.linux拷貝到ocmdb1主機上
[oracle@ocmdb1 ~]$ scp ocmdb2:/u01/app/oracle/OracleHomes/oms10g/sysman/agent_download/10.2.0.1.0/linux/agentDownload.linux .
oracle@ocmdb2's password:
agentDownload.linux 100% 22KB 22.3KB/s 00:00
2)給指令碼授予執行許可權
[oracle@ocmdb1 ~]$ chmod 755 agentDownload.linux
3)執行agentDownload.linux完成在Agent的部署安裝
命令中“/u01/app/oracle/agent”表示Agent部署的路徑。
[oracle@ocmdb1 ~]$ ./agentDownload.linux -b /u01/app/oracle/agent
…… ……
……省略輸出的log資訊……
/u01/app/oracle/agent/agent10g/root.sh needs to be executed by root to complete this installation.
注意安裝完成之後,安裝日誌最後輸出的內容,需要在root使用者下執行root.sh指令碼。
4)在root使用者下執行root.sh指令碼
[oracle@ocmdb1 ~]$ su - root
Password:
[root@ocmdb1 ~]# sh /u01/app/oracle/agent/agent10g/root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/agent/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.
到此,整個Agent就安裝完畢了。
4.在GC伺服器上配置新發現的資料庫例項
因為在ocmdb1主機上部署完成Agent後會自動發現其上執行著的資料庫例項,我們這裡是ocmdb例項和ocmgc例項。只需要簡單的配置一下便可在GC中對其進行監控和管理。
具體步驟如下。
1)點選“Targets”可以在“Hosts”欄目中看到GC自動識別到了兩臺主機

2)進一步點選“Database”可以看到,GC自動識別到了ocmdb1主機上的兩個資料庫例項

3)點選“Configure”對ocmdb例項進行配置,這裡僅需要給出dbsnmp使用者的密碼(oracle1)即可,其他內容是自動返填出來的,點選“Next”

4)此時直接進入到最後的Review階段,確定沒有問題,點選“Submit”

5)稍等片刻

6)提示ocmdb例項的屬性已經被更新

7)剛剛配置完畢時ocmdb的狀態資訊還不是很完整

8)此時可以點選右上角的Refresh圖示觀察ocmdb例項的狀態變化,最終該例項的所有狀態都會顯示出來

9)同樣的流程配置ocmgc例項,最終的狀態如下

5.小結
在Agent部署和GC配置的過程中遇到了幾次小的麻煩,重新安裝很多次後終於成功。
注意:在配置Agent之前記得一定要將所有資料庫例項中的dbsnmp使用者為unlock狀態!
Good luck.
secooler
10.07.10
-- The End --
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30776559/viewspace-2127077/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Zabbix Agent 安裝與使用
- zabbix安裝agent
- Zabbix Agent安裝
- Spark 安裝部署與快速上手Spark
- 12.2.0.1.0 Grid RU安裝
- 12.2.0.1 Grid RUR 安裝
- 12.2 Grid RUR 安裝
- Docker Linux快速安裝及Nginx部署DockerLinuxNginx
- zabbix agent 的兩種安裝方式
- kafka 安裝部署,使用教程Kafka
- Cloud Control 13c 安裝Cloud
- 安裝Cloud Control 12cCloud
- 安裝grid軟體報錯
- 12.2 grid 安裝空間要求
- anaconda的安裝和解除安裝及安裝完成後無法使用conda解決辦法
- Deinstall the Enterprise Manager 13c Cloud Control AgentCloud
- 64位的REDHAT AS4U6上安裝GRID CONTROL的時候,碰見找不到libdb.so.2的錯誤Redhat
- hadoop的安裝部署Hadoop
- flume的安裝部署
- LNMP部署laravel與xhprof安裝使用LNMPLaravel
- 快速掌握mongoDB(一)——mongoDB安裝部署和常用shell命令MongoDB
- JVM調優——JVM監控工具jvisualvm的使用及GC外掛安裝JVMLVMGC
- Springboot專案引入druid安裝部署使用Spring BootUI
- Oracle 11G RAC叢集安裝(2)——安裝gridOracle
- Hbase的安裝與部署
- Ansible的安裝及部署
- 使用淘寶NPM映象快速安裝CordovaNPM
- linux zabbix-6.0.1-Agent客戶端的安裝配置Linux客戶端
- 本地部署modelscope-agent
- Linux安裝部署Linux
- ELK安裝部署
- chromedriver安裝部署Chrome
- canal安裝部署
- SQOOP安裝部署OOP
- keepalived 安裝部署
- Hadoop安裝部署Hadoop
- Zabbix安裝部署
- Doris安裝部署
- Kendo UI:grid完成增刪改查(*)UI