[oracle@oralin2]$ 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.
---------------------------------------------------------------
/u01/app/oracle/OracleHomes/agent10g/bin/emdctl: error while loading shared libraries: libjava.so: cannot open shared object file: No such file or directory
|
Solution:
Execute the following steps to fix this issue.
-
Rename jdk to jdk
[oracle@oralin2 ~]$ echo $ORACLE_HOME
/u01/app/oracle/OracleHomes/agent10g
[oracle@oralin2 ~]$ cd $ORACLE_HOME
[oracle@oralin2]$ ls -ld jdk*
drwxr-xr-x 6 oracle oinstall 4096 Jul 17 09:03 jdk2012-07-17_09-35-41-AM
drwxr-x--- 7 oracle oinstall 4096 Jul 16 20:56 jdk2012-07-17_09-03-00-AM
[oracle@oralin2]$ mv jdk2012-07-17_09-35-41-AM jdk
|
-
Run root.sh from AGENT_HOME.
[oracle@oralin2]$ su -
Password:
[root@oralin2 ~]# /u01/app/oracle/OracleHomes/agent10g/root.sh
Finished product-specific root actions.
|
-
Verify the jdk director at AGENT_HOME and size of the file.
[oracle@oralin2]$ ls -l $ORACLE_HOME/jdk*
/u01/app/oracle/OracleHomes/agent10g/jdk:
total 132
drwxr-xr-x 2 oracle oinstall 4096 Jul 17 09:03 bin
-rwxr-xr-x 1 oracle oinstall 2487 Oct 15 2008 COPYRIGHT
drwxr-xr-x 3 oracle oinstall 4096 Jul 17 09:03 include
drwxr-xr-x 6 oracle oinstall 4096 Jul 17 09:03 jre
drwxr-xr-x 2 oracle oinstall 4096 Jul 17 09:03 lib
-rwxr-xr-x 1 oracle oinstall 18245 Oct 15 2008 LICENSE
-rwxr-xr-x 1 oracle oinstall 20415 Oct 15 2008 README.html
-rwxr-xr-x 1 oracle oinstall 67235 Oct 15 2008 THIRDPARTYLICENSEREADME.txt
/u01/app/oracle/OracleHomes/agent10g/jdk2012-07-17_09-03-00-AM:
total 84
drwxr-x--- 2 oracle oinstall 4096 Jul 16 20:56 bin
-rw-r--r-- 1 oracle oinstall 4431 Apr 20 2005 COPYRIGHT
drwxr-x--- 3 oracle oinstall 4096 Jul 16 20:56 include
drwxr-x--- 6 oracle oinstall 4096 Jul 16 20:56 jre
drwxr-x--- 2 oracle oinstall 4096 Jul 16 20:56 lib
-rw-r--r-- 1 oracle oinstall 17669 Apr 20 2005 LICENSE
-rw-r--r-- 1 oracle oinstall 8986 Apr 20 2005 README
-rw-r--r-- 1 oracle oinstall 16251 Apr 20 2005 README.html
-rw-r--r-- 1 oracle oinstall 10129 Apr 20 2005 THIRDPARTYLICENSEREADME.txt
[oracle@oralin2]$ du -sh $ORACLE_HOME/jdk*
198M /u01/app/oracle/OracleHomes/agent10g/jdk
72M /u01/app/oracle/OracleHomes/agent10g/jdk2012-07-17_09-03-00-AM
|
-
Now start the Agent.
[oracle@oralin2]$ 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.
Agent is already running
[oracle@oralin2]$ 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/OracleHomes/agent10g
Agent binaries : /u01/app/oracle/OracleHomes/agent10g
Agent Process ID : 9178
Parent Process ID : 8519
Agent URL : https://oralin2.oracle.com:3872/emd/main/
Repository URL : https://oralin2.oracle.com:1159/em/upload
Started at : 2012-07-17 09:08:05
Started by user : oracle
Last Reload : 2012-07-17 09:13:19
Last successful upload : 2012-07-17 11:45:16
Total Megabytes of XML files uploaded so far : 12.02
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 46.75%
Last successful heartbeat to OMS : 2012-07-17 11:46:17
---------------------------------------------------------------
Agent is Running and Ready
|
Comments
Post a Comment