Here, I will install the 10g agent on a new host and than add the host to EM Grid Control.
export ORACLE_SID=agent
[oracle@target10g oracle]$ export ORACLE_HOME=/oracle/product/10.2.0.5/agent/
Database is allready up adn running:
[oracle@target10g linux]$ ps -aef|grep smon
oracle 5638 1 0 09:07 ? 00:00:00 ora_smon_agent10g
oracle 5831 5203 0 09:32 pts/1 00:00:00 grep smon
It's a 11.2.0.3 database.
Listener is configured and started:
[oracle@target10g linux]$ ps -aef|grep tns
oracle 5606 1 0 09:06 ? 00:00:00 /oracle/product/11.2.0.3/db_1/bin/tnslsnr LISTENER -inherit
ping to the grid server is working:
[oracle@target10g linux]$ ping grid10g
PING grid10g.localdomain (192.168.209.148) 56(84) bytes of data.
64 bytes from grid10g.localdomain (192.168.209.148): icmp_seq=1 ttl=64 time=0.414 ms
First attempt was unsuccessfull:
[oracle@target10g agent]$ ./runInstaller
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-12-01_09-35-20AM. Please wait ...[oracle@target10g agent]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2011-12-01_09-35-20AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
I have to install the xorg-x11-deprecated-libs package:
[root@target10g etc]# yum install xorg-x11-deprecated-libs
[oracle@target10g oracle]$ [oracle@target10g oracle]$ export ORACLE_HOME=/oracle/product/10.2.0.5/agent/
Database is allready up adn running:
[oracle@target10g linux]$ ps -aef|grep smon
oracle 5638 1 0 09:07 ? 00:00:00 ora_smon_agent10g
oracle 5831 5203 0 09:32 pts/1 00:00:00 grep smon
It's a 11.2.0.3 database.
Listener is configured and started:
[oracle@target10g linux]$ ps -aef|grep tns
oracle 5606 1 0 09:06 ? 00:00:00 /oracle/product/11.2.0.3/db_1/bin/tnslsnr LISTENER -inherit
ping to the grid server is working:
[oracle@target10g linux]$ ping grid10g
PING grid10g.localdomain (192.168.209.148) 56(84) bytes of data.
64 bytes from grid10g.localdomain (192.168.209.148): icmp_seq=1 ttl=64 time=0.414 ms
First attempt was unsuccessfull:
[oracle@target10g agent]$ ./runInstaller
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-12-01_09-35-20AM. Please wait ...[oracle@target10g agent]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2011-12-01_09-35-20AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
I have to install the xorg-x11-deprecated-libs package:
[root@target10g etc]# yum install xorg-x11-deprecated-libs
Agent is up and running. Connection to the grid control is OK:
[oracle@target10g agent]$ /oracle/product/10.2.0.5/agent/agent10g/bin/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 : /oracle/product/10.2.0.5/agent/agent10g
Agent binaries : /oracle/product/10.2.0.5/agent/agent10g
Agent Process ID : 12875
Parent Process ID : 12847
Agent URL : https://target10g.localdomain:3872/emd/main/
Repository URL : https://grid10g.localdomain:1159/em/upload
Started at : 2011-12-01 09:56:45
Started by user : oracle
Last Reload : 2011-12-01 09:56:45
Last successful upload : 2011-12-01 09:58:22
Total Megabytes of XML files uploaded so far : 9.27
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 48.20%
Last successful heartbeat to OMS : 2011-12-01 09:58:56
---------------------------------------------------------------
Agent is Running and Ready
[oracle@target10g agent]$ /oracle/product/10.2.0.5/agent/agent10g/bin/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 : /oracle/product/10.2.0.5/agent/agent10g
Agent binaries : /oracle/product/10.2.0.5/agent/agent10g
Agent Process ID : 12875
Parent Process ID : 12847
Agent URL : https://target10g.localdomain:3872/emd/main/
Repository URL : https://grid10g.localdomain:1159/em/upload
Started at : 2011-12-01 09:56:45
Started by user : oracle
Last Reload : 2011-12-01 09:56:45
Last successful upload : 2011-12-01 09:58:22
Total Megabytes of XML files uploaded so far : 9.27
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 48.20%
Last successful heartbeat to OMS : 2011-12-01 09:58:56
---------------------------------------------------------------
Agent is Running and Ready
Now, I will deploy the EM agent to th egrid control:
As you can see, there is no target (database) configured right now.
As you can see, there is no target (database) configured right now.
Click on the "Search list" and you will see, that there are 2 not configured targets.
Click on the number "2" of uncofigured hosts and you will see the database instances. Than choose which target you want to configure and click on "Configure button".
Here, fill the columns and click on the "Test Connection" button.
If the connection was OK, you will see this:
Click on the "Next" button:
Agent was deployed successfully.
Aa you can see, there is only one unconfigured instance.
I can administer the agent10g database via the Grid Control.