【GC】無法找到jar命令導致Download方式安裝Agent失敗的處理
在文章《【GC】使用 agentDownload.linux完成Grid Control Agent的快速部署安裝》(http://space.itpub.net/519536/viewspace-667753)中給出了使用download方式安裝Agent的很多先決條件。本文將給大家展示一下如果沒有找到jar檔案會出現的報錯資訊。防患於未然。
1.關於環境變數PATH的正確設定
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/jdk/bin:$PATH
其中$ORACLE_HOME/jdk/bin便是jar檔案藏身之處。為了保證Agent的順利部署,建議在環境變數在profile中提前準備好。
2.當無法找到jar檔案時的報錯資訊如下,供參考
[oracle@secdb1 ~]$ ./agentDownload.linux -b /u01/app/oracle/agent
agentDownload.linux invoked on Sun Sep 2 22:22:43 CST 2010 with Arguments "-b /u01/app/oracle/agent"
Platform=Linux, S=linux
GetPlatform.:returned=0, and os is set to: linux, platform=Linux
LogFile for this Download can be found at: "/home/oracle/agentDownload10.2.0.1.0Oui/agentDownload.linux080110142243.log"
Running on Selected Platform. Linux
Installer location: /home/oracle/agentDownload10.2.0.1.0Oui
Downloading Agent install response file ...
--22:22:43-- http://secdb2.localdomain:4889/agent_download/10.2.0.1.0/agent_download.rsp
=> `agent_download.rsp'
Resolving secdb2.localdomain... 192.168.23.102
Connecting to secdb2.localdomain|192.168.23.102|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19,993 (20K) [text/plain]
100%[=================================================================================================================>] 19,993 --.--K/s
22:22:43 (130.59 MB/s) - `agent_download.rsp' saved [19993/19993]
Finished Downloading with Status=0
Downloaded response with status=0
Downloading Oracle Installer ...
--22:22:43-- http://secdb2.localdomain:4889/agent_download/10.2.0.1.0/linux/oui/oui_linux.jar
=> `oui_linux.jar'
Resolving secdb2.localdomain... 192.168.23.102
Connecting to secdb2.localdomain|192.168.23.102|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46,620,679 (44M) [application/java-archive]
100%[=================================================================================================================>] 46,620,679 38.15M/s
22:22:44 (38.10 MB/s) - `oui_linux.jar' saved [46620679/46620679]
Downloaded Oracle Installer with status=0
Downloading Unzip Utility ...
--22:22:44-- http://secdb2.localdomain:4889/agent_download/10.2.0.1.0/linux/agent/install/unzip
=> `unzip'
Resolving secdb2.localdomain... 192.168.23.102
Connecting to secdb2.localdomain|192.168.23.102|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 101,448 (99K) [text/plain]
100%[=================================================================================================================>] 101,448 --.--K/s
22:22:44 (47.17 MB/s) - `unzip' saved [101448/101448]
Adding execute permissions to unzip ...
Downloaded UnzipUtility with status=0
which: no jar in ((null))
The jar to be used=
which: no jar in ((null))
Can't find the jar utility. Add jar to your PATH and try again.
Removing the copied stuff.....
Removed: /home/oracle/agentDownload10.2.0.1.0Oui/oui_linux.jar
Removed: /home/oracle/agentDownload10.2.0.1.0Oui/agent_download.rsp
Removed:/home/oracle/agentDownload10.2.0.1.0Oui/Disk1
Log name of installation can be found at: "/u01/app/oracle/agent/agent10g/agentDownload.linux080110142243.log"
3.問題處理
在錯誤的提示資訊中我們已經可以看到處理方法:“Add jar to your PATH and try again.”。
將jar位置新增到環境變數中,然後重新安裝即可。
4.小結
我們歡迎錯誤提示,因為錯誤資訊中充滿了指引我們前進的資訊。這些資訊可以協助我們快速解決問題。
現實情況是:很多朋友將錯誤提示作為過眼雲煙,更有可能連“過眼”的機會都不給!
Good luck.
secooler
10.09.02
-- The End --
1.關於環境變數PATH的正確設定
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/jdk/bin:$PATH
其中$ORACLE_HOME/jdk/bin便是jar檔案藏身之處。為了保證Agent的順利部署,建議在環境變數在profile中提前準備好。
2.當無法找到jar檔案時的報錯資訊如下,供參考
[oracle@secdb1 ~]$ ./agentDownload.linux -b /u01/app/oracle/agent
agentDownload.linux invoked on Sun Sep 2 22:22:43 CST 2010 with Arguments "-b /u01/app/oracle/agent"
Platform=Linux, S=linux
GetPlatform.:returned=0, and os is set to: linux, platform=Linux
LogFile for this Download can be found at: "/home/oracle/agentDownload10.2.0.1.0Oui/agentDownload.linux080110142243.log"
Running on Selected Platform. Linux
Installer location: /home/oracle/agentDownload10.2.0.1.0Oui
Downloading Agent install response file ...
--22:22:43-- http://secdb2.localdomain:4889/agent_download/10.2.0.1.0/agent_download.rsp
=> `agent_download.rsp'
Resolving secdb2.localdomain... 192.168.23.102
Connecting to secdb2.localdomain|192.168.23.102|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19,993 (20K) [text/plain]
100%[=================================================================================================================>] 19,993 --.--K/s
22:22:43 (130.59 MB/s) - `agent_download.rsp' saved [19993/19993]
Finished Downloading with Status=0
Downloaded response with status=0
Downloading Oracle Installer ...
--22:22:43-- http://secdb2.localdomain:4889/agent_download/10.2.0.1.0/linux/oui/oui_linux.jar
=> `oui_linux.jar'
Resolving secdb2.localdomain... 192.168.23.102
Connecting to secdb2.localdomain|192.168.23.102|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46,620,679 (44M) [application/java-archive]
100%[=================================================================================================================>] 46,620,679 38.15M/s
22:22:44 (38.10 MB/s) - `oui_linux.jar' saved [46620679/46620679]
Downloaded Oracle Installer with status=0
Downloading Unzip Utility ...
--22:22:44-- http://secdb2.localdomain:4889/agent_download/10.2.0.1.0/linux/agent/install/unzip
=> `unzip'
Resolving secdb2.localdomain... 192.168.23.102
Connecting to secdb2.localdomain|192.168.23.102|:4889... connected.
HTTP request sent, awaiting response... 200 OK
Length: 101,448 (99K) [text/plain]
100%[=================================================================================================================>] 101,448 --.--K/s
22:22:44 (47.17 MB/s) - `unzip' saved [101448/101448]
Adding execute permissions to unzip ...
Downloaded UnzipUtility with status=0
which: no jar in ((null))
The jar to be used=
which: no jar in ((null))
Can't find the jar utility. Add jar to your PATH and try again.
Removing the copied stuff.....
Removed: /home/oracle/agentDownload10.2.0.1.0Oui/oui_linux.jar
Removed: /home/oracle/agentDownload10.2.0.1.0Oui/agent_download.rsp
Removed:/home/oracle/agentDownload10.2.0.1.0Oui/Disk1
Log name of installation can be found at: "/u01/app/oracle/agent/agent10g/agentDownload.linux080110142243.log"
3.問題處理
在錯誤的提示資訊中我們已經可以看到處理方法:“Add jar to your PATH and try again.”。
將jar位置新增到環境變數中,然後重新安裝即可。
4.小結
我們歡迎錯誤提示,因為錯誤資訊中充滿了指引我們前進的資訊。這些資訊可以協助我們快速解決問題。
現實情況是:很多朋友將錯誤提示作為過眼雲煙,更有可能連“過眼”的機會都不給!
Good luck.
secooler
10.09.02
-- The End --
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-672510/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- GC 10.2.0.1 OMS和Agent連線失敗後的處理過程GC
- Electron安裝過程深入解析(讀完此文解決Electron安裝失敗導致的無法啟動,無法打包的問題)
- python的django安裝失敗如何處理PythonDjango
- win10推送無法安裝怎麼處理_win10推送安裝失敗如何修復Win10
- win10qq管家安裝失敗怎麼辦_win10騰訊管家無法安裝處理方法Win10
- windows10補丁安裝失敗如何處理_win10無法安裝補丁修復方法WindowsWin10
- 安裝 httprunner 失敗,無法顯示版本資訊HTTP
- 由於gcc軟體包沒有安裝導致的Oracle安裝失敗GCOracle
- 從郵件中提取的證書安裝失敗,無法安裝?
- /dev/bpf裝置缺失導致RAC安裝時HAIP啟動失敗devAI
- Linux Yum 安裝失敗處理過程整理Linux
- Mac openssl 未找到 / 載入失敗問題處理Mac
- 由adoacorectl.sh啟動失敗導致網頁無法顯示網頁
- puppeteer 安裝失敗的解決辦法
- 【MySQL】AppArmor導致datadir遷移無法啟動&初始化失敗MySqlAPP
- 【GC】未建立或丟失密碼檔案導致 Grid Control OMS無法正常安裝GC密碼
- 求助:jar無法在手機上安裝JAR
- 解決windows 7 音效卡驅動無法安裝或安裝失敗Windows
- oracle10g GC agent安裝與解除安裝OracleGC
- win10系統安裝失敗提示“無法安裝應用”的解決方法Win10
- win10系統realtek安裝失敗如何處理 win10電腦安裝realtek失敗修復方法Win10
- jwt安裝失敗,求大佬指導下JWT
- macOS Mojave 沒有 /usr/include 目錄導致編譯安裝 PHP 失敗Mac編譯PHP
- 安裝失敗????
- 如何處理快取導致的無效曝光快取
- win10 ch341ser.inf安裝失敗如何處理_win10無法安裝ch341ser.inf修復方法Win10
- win10無法安裝netframework3.5怎麼回事 win10安裝netframework3.5失敗如何處理Win10Framework
- npm 安裝 chromedriver 失敗的解決辦法NPMChrome
- Oracle全部索引丟失導致的效率問題處理Oracle索引
- zabbix agent 的兩種安裝方式
- mysql 目錄遷移導致無法找到relay log 解決辦法。MySql
- Aix 7一次補丁安裝失敗問題處理AI
- XP無法正常解除安裝隨身碟的處理辦法
- 匿名內部類方式構建物件導致序列化失敗物件
- win10系統realek音效卡驅動安裝失敗怎麼辦_win10系統realek無法安裝如何處理Win10
- win10更新程式安裝失敗怎麼解決_win10更新程式一直安裝失敗處理方法Win10
- qq安裝出現提取安裝檔案失敗,qq安裝失敗
- svn dump 失敗後的處理