by Gregor Kovacic
In this blog I will show how to install and configure Oracle agent delivered in APM agents 8.1.3 bundle. On below page you can find detailed information related to agent configuration:
https://www.ibm.com/support/knowledgecenter/SSHLNR_8.1.3/com.ibm.pm.doc/install/oracle_config_agent.htm
After moving ipm_monitoring_agents_win_8.1.3.zip to my Oracle 11g server I had to Extract the content. I have extracted files under C:\Users\Administrator\Downloads\ipm_monitoring_agents_win_8.1.3\APM_Agent_Install_8.1.3 and start installation using installAPMAgents.bat
C:\Users\Administrator\Downloads\ipm_monitoring_agents_win_8.1.3\APM_Agent_Install_8.1.3>installAPMAgents.bat
The following products are available for installation:
1) Monitoring Agent for Windows OS
2) Monitoring Agent for MySQL
3) Response Time Monitoring Agent
4) Monitoring Agent for Oracle Database
5) Monitoring Agent for WebLogic
6) Monitoring Agent for VMware VI
7) Monitoring Agent for DB2
8) Monitoring Agent for WebSphere Applications
9) Monitoring Agent for Cisco UCS
10) Monitoring Agent for Microsoft Hyper-V Server
11) Monitoring Agent for Microsoft IIS
12) Monitoring Agent for Microsoft SQL Server
13) Monitoring Agent for Active Directory
14) Monitoring Agent for Microsoft .NET
15) Monitoring Agent for Microsoft Exchange Server
16) Monitoring Agent for Microsoft Cluster Server
17) Monitoring Agent for MS SharePoint Server
18) Monitoring Agent for Microsoft Lync Server
19) all of the above
Type the numbers that correspond to the products that you want to install. Type"q" to quit selection.
If you enter more than one number, separate the numbers by a space or comma.
Type your selections here (For example: 1,2): 4
The following agents will be installed:
Monitoring Agent for Oracle Database
Are your selections correct [ 1-Yes, 2-No; default is "1" ]? 1
Specify the installation directory. [Default is C:\IBM\APM] :
The agents will be in installed in C:\IBM\APM.
Do you accept the license agreement(s) found in the directory C:\Users\Administrator\Downloads\ipm_monitoring_agents_win_8.1.3\APM_Agent_Install_8.1.3\licenses?
Please enter [ 1-to accept the agreement, 2-to decline the agreement ] : 1
User has accepted the license agreement(s).
Monitoring Agent for Oracle Database will be installed.
Installing Monitoring Agent for Oracle Database...
The Prerequisite Scanner will be used to check the system.
Preparing the Prerequisite Scanner to run.
Setting Prerequisite Scanner output directory to user defined directory: C:\IBM\APM\InstallITM\prereqscan\20170321_102557\
IBM Prerequisite Scanner
Version: 1.2.0.17
Build: 20150827
OS name: Windows Server 2012 R2 Standard
User name: Administrator
Machine Information
Machine name: W2012TEMA
Serial number: VMware-42 3f 28 ec 31 0e 0a c9-7f ae c3 e2 2f dd d3 9c
OS serial number: 00252-70000-00000-AA535
Scenario: Prerequisite Scan
KRZ - KRZ [version 06030108]:
KJM - KJM [version 08020000]:
Overall result: PASS
Detailed results are also available in: C:\IBM\APM\InstallITM\prereqscan\20170321_102557\result.txt
IBM Monitoring agents installation found in C:\IBM\APM.
Installation destination path: C:\IBM\APM
Installing JRE...
Installing Monitoring Agent for Oracle Database...
Agent installation completed. Configure the agent with the 'oracle_database-agent.bat config' command.
End running cmd /c "C:\IBM\APM\logs\install_agent_RZ.bat"
################################################################################
The following agents were installed successfully into the C:\IBM\APM directory:
Monitoring Agent for Oracle Database
Agent instance status:
No instances
The installation log file is C:\IBM\APM\logs\IM_Agents_install.log.
To configure your agents, use the following detailed instructions:
For Performance Management on Cloud:
http://ibm.biz/kc-ipmcloud-configagent
For Performance Management (on premises):
http://ibm.biz/kc-ipm-configagent
As part of the configuration instructions, you will use the following commands to configure and manage each installed agent:
Monitoring Agent for Oracle Database C:\IBM\APM\bin\oracle_database-agent.bat config or start or stop or status or uninstall
################################################################################
C:\Users\Administrator\Downloads\ipm_monitoring_agents_win_8.1.3\APM_Agent_Install_8.1.3>
When agent is installed you must configure via CLI or IBM Performance Management window. Before I started agent configuration I created Oracle user which will agent use to connect to Oracle database. I created user using sqlplus commands:
C:\IBM\APM\TMAITM6_x64>sqlplus sys/tems1234@orcl as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Let Mar 23 09:09:09 2017
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> CREATE USER gregor IDENTIFIED BY tems1234;
SQL> GRANT CONNECT TO gregor;
After that I created agent instance form Template:

I named my instance orcl:





After configuration you must grant needed permissions to user using krzgrant.sql script. On below link you can find official documentation:
https://www.ibm.com/support/knowledgecenter/en/SSHLNR_8.1.3/com.ibm.pm.doc/install/oracle_config_run_krz_script.htm
C:\IBM\APM\TMAITM6_x64>sqlplus sys/tems1234@orcl as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Let Mar 23 09:09:09 2017
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> CREATE USER gregor IDENTIFIED BY tems1234;
SQL> GRANT CONNECT TO gregor;
QL> @krzgrant.sql gregor
SQL> set serveroutput on;
SQL> spool &2/krzgrant.log
Enter value for 2:
SQL> declare
2 version integer;
3 userName varchar(20);
4 isExist integer;
5 begin
6
7 userName:='&1';
8 isExist:=0;
9
10 select count(username)
11 into isExist
12 from dba_users where username=upper('&1');
13
14 if isExist = 0 then
15 dbms_output.put_line('The user '||userName||' does not exist, pleasecreate it first!');
16 return;
17 end if;
18
19 execute immediate 'alter session set NLS_NUMERIC_CHARACTERS=''.,''';
20
21 select to_number(substr(banner,instr(banner,'Release')+8,instr(banner,'.',1,2)-8-instr(banner,'Release')))*10
22 into version
23 from V$VERSION
24 where banner like 'Oracle%' and rownum < 2;
25
26 if version >=112 then
27 execute immediate 'grant select on GV_$ASM_DISKGROUP_STAT to '||userName;
28 execute immediate 'grant select on GV_$ASM_DISK_STAT to '||userName;
29 execute immediate 'grant select on GV_$CLUSTER_INTERCONNECTS to '||userName;
30 execute immediate 'grant select on GV_$FLASHBACK_DATABASE_LOGFILE to '||userName;
31 execute immediate 'grant select on V_$DATAGUARD_STATS to '||userName;
32 execute immediate 'grant select on V_$FLASH_RECOVERY_AREA_USAGE to '||userName;
33 execute immediate 'grant select on V_$LOGSTDBY_PROCESS to '||userName;
34 execute immediate 'grant select on V_$LOGSTDBY_PROGRESS to'||userName;
35 execute immediate 'grant select on V_$LOGSTDBY_STATE to '||userName;
36 elsif version =111 then
37 execute immediate 'grant select on GV_$ASM_DISKGROUP_STAT to '||userName;
38 execute immediate 'grant select on GV_$ASM_DISK_STAT to '||userName;
39 execute immediate 'grant select on GV_$CLUSTER_INTERCONNECTS to '||userName;
40 execute immediate 'grant select on GV_$FLASHBACK_DATABASE_LOGFILE to '||userName;
41 execute immediate 'grant select on V_$DATAGUARD_STATS to '||userName;
42 execute immediate 'grant select on V_$FLASH_RECOVERY_AREA_USAGE to '||userName;
43 execute immediate 'grant select on V_$LOGSTDBY_PROCESS to '||userName;
44 execute immediate 'grant select on V_$LOGSTDBY_PROGRESS to'||userName;
45 execute immediate 'grant select on V_$LOGSTDBY_STATE to '||userName;
46 elsif version =102 then
47 execute immediate 'grant select on GV_$ASM_DISKGROUP_STAT to '||userName;
48 execute immediate 'grant select on GV_$ASM_DISK_STAT to '||userName;
49 execute immediate 'grant select on GV_$CLUSTER_INTERCONNECTS to '||userName;
50 execute immediate 'grant select on V_$DATAGUARD_STATS to '||userName;
51 execute immediate 'grant select on V_$FLASH_RECOVERY_AREA_USAGE to '||userName;
52 execute immediate 'grant select on V_$LOGSTDBY_PROCESS to '||userName;
53 execute immediate 'grant select on V_$LOGSTDBY_PROGRESS to'||userName;
54 execute immediate 'grant select on V_$LOGSTDBY_STATE to '||userName;
55 elsif version =101 then
56 execute immediate 'grant select on DBA_LOGSTDBY_PROGRESS to '||userName;
57 execute immediate 'grant select on GV_$ASM_DISK to '||userName;
58