GC安装错误5:agent安装Can’t find the jar utility

错误如下:

Can’t find the jar utility. Add jar to your PATH and try again.
Removing the copied stuff…..
Removed: /apps/oracle/agentDownload10.2.0.1.0Oui/oui_linux.jar
Removed: /apps/oracle/agentDownload10.2.0.1.0Oui/agent_download.rsp
Removed:/apps/oracle/agentDownload10.2.0.1.0Oui/Disk1

问题原因:

jdk路径设置有问题,设置正确即可。

解决过程:

[oracle@dbserver1 ~]$ export JAVA_HOME=$ORACLE_HOME/jdk
[oracle@dbserver1 ~]$ export PATH=$PATH:$JAVA_HOME/bin

错误详细情况:

[oracle@dbserver1 oracle]$ ./agentDownload.linux -b /apps/oracle/
agentDownload.linux invoked on Sun Apr 22 11:53:42 CST 2012 with Arguments “-b /apps/oracle/”
Platform=Linux, OS=linux
GetPlatform:returned=0, and os is set to: linux, platform=Linux
Creating /apps/oracle/agentDownload10.2.0.1.0Oui …
LogFile for this Download can be found at: “/apps/oracle/agentDownload10.2.0.1.0Oui/agentDownload.linux042212115342.log”
Running on Selected Platform: Linux
Installer location: /apps/oracle/agentDownload10.2.0.1.0Oui
Downloading Agent install response file …
–11:53:42– 
http://dbserver2.domain:4889/agent_download/10.2.0.1.0/agent_download.rsp

           => `agent_download.rsp’
Resolving dbserver2.domain… 10.27.76.184
Connecting to dbserver2.domain|10.27.76.184|:4889… connected.
HTTP request sent, awaiting response… 200 OK
Length: 20,007 (20K) [text/plain]

100%[========================================================================================>] 20,007        –.–K/s            

11:53:42 (18.95 MB/s) – `agent_download.rsp’ saved [20007/20007]

Finished Downloading with Status=0
Downloaded response with status=0
Downloading Oracle Installer …
–11:53:43– 
http://dbserver2.domain:4889/agent_download/10.2.0.1.0/linux/oui/oui_linux.jar

           => `oui_linux.jar’
Resolving dbserver2.domain… 10.27.76.184
Connecting to dbserver2.domain|10.27.76.184|:4889… connected.
HTTP request sent, awaiting response… 200 OK
Length: 46,620,679 (44M) [application/java-archive]

100%[========================================================================================>] 46,620,679    22.63M/s            

11:53:45 (22.58 MB/s) – `oui_linux.jar’ saved [46620679/46620679]

Downloaded Oracle Installer with status=0
Downloading  Unzip Utility …
–11:53:45– 
http://dbserver2.domain:4889/agent_download/10.2.0.1.0/linux/agent/install/unzip

           => `unzip’
Resolving dbserver2.domain… 10.27.76.184
Connecting to dbserver2.domain|10.27.76.184|:4889… connected.
HTTP request sent, awaiting response… 200 OK
Length: 101,448 (99K) [text/plain]

100%[========================================================================================>] 101,448       –.–K/s            

11:53:45 (9.15 MB/s) – `unzip’ saved [101448/101448]

Adding execute permissions to unzip …
Downloaded UnzipUtility with status=0
which: no jar in (/apps/oracle/product/10.2.0/db_1/bin:/apps/oracle/product/10.2.0/crs/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/bin)
The jar to be used=
which: no jar in (/apps/oracle/product/10.2.0/db_1/bin:/apps/oracle/product/10.2.0/crs/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/bin)
Can’t find the jar utility. Add jar to your PATH and try again.
Removing the copied stuff…..
Removed: /apps/oracle/agentDownload10.2.0.1.0Oui/oui_linux.jar
Removed: /apps/oracle/agentDownload10.2.0.1.0Oui/agent_download.rsp
Removed:/apps/oracle/agentDownload10.2.0.1.0Oui/Disk1
[oracle@dbserver1 oracle]$

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注

昵称 *