monitoring Oracle database [message #179380] |
Tue, 27 June 2006 04:28 |
yoann63
Messages: 5 Registered: June 2006
|
Junior Member |
|
|
hi,
firt of all, i would like to say that i'm totally newbie with Oracle...
So, i had to monitor several databases, my boss want to know things like:
- state of Oracle database: opened/closed
- state of the listeneur: opened/closed
- size of file system
- ...
i work with Ciscoworks for Windows and PRTG...The version of Oracle is: 8.1.7 and it works on AIX 5.2 and 4.3
I would like to know some things:
i first thought to monitor oracle and the listeneur using the port number, so my first question is: does these prog listen on different port??? (i found that the listeneur listen on the port 1526, but i don't know for Oracle)
the second way to monitor is to uses the mibs. I downloaded the mibs and compiled them into Ciscoworks... but on the Oracle side i don't know exactly what to do.
so i made these thing o see what was the result:
I first made à 'lsnrctl" with a "status": the message is: "SNMP is on"
then i made a
"dbsnmp_start" and nothing happens or displays...
So i tried a "dbsnmp_status", it tells me that "the dbsubagent is not started"
As i have a lot of thing to monitor, i try to monitor them with these only two products (PRTG and Ciscoworks), without using OEM
Could someone help me to start to monitor Oracle
Thanks a lot
|
|
|
|
Re: monitoring Oracle database [message #179447 is a reply to message #179380] |
Tue, 27 June 2006 08:05 |
yoann63
Messages: 5 Registered: June 2006
|
Junior Member |
|
|
Yes that's why we want to monitor and the listener and the database, to improve the research when there is a problem to connect on a database.
About the query i'm not sur if i can record it in the Ciscoworks windows.
But i can try...
Could you show me how could be this query ?? (because i don't know at all Oracle and sql)
Thanks a lot
|
|
|
|
Re: monitoring Oracle database [message #180366 is a reply to message #179380] |
Mon, 03 July 2006 05:05 |
yoann63
Messages: 5 Registered: June 2006
|
Junior Member |
|
|
Hi,
i'm afraid i cannot use a script to test the listener.
the possibilities are:
- using SNMP OIDs
- DNS request
- NT services
- TCP/IP request (using @IP + port)
The last possibility is what i use actually
i'm not an expert in Oracle, but if the listener listen on a port, does the Oracle database listen on an port too ? If this is, which port could it be ?
Thanks a lot
|
|
|
|
Re: monitoring Oracle database [message #180405 is a reply to message #180366] |
Mon, 03 July 2006 06:59 |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
I don't have a clue about Ciscoworks, but a Google for "ciscoworks perl" gave some hits, including a PERL API reference, so can you use Perl scripts do do some tests?
A check to see if you can log in to the Databse could be done somewhat like :
if ($db = DBI->connect("dbi:Oracle:YOUR_DATABASE","user", "passwort"))
{ print "OK"}
else
{ print "FAIL"}
Other than that, quering Oracie over SNMP might be an option. Haven't done that myself yet in any way, though. Maybe this is of help :
http://lbd.epfl.ch/f/teaching/courses/oracle8i/server.815/a67822/toc.htm
|
|
|
Re: monitoring Oracle database [message #180577 is a reply to message #180405] |
Tue, 04 July 2006 05:25 |
imtj
Messages: 12 Registered: July 2006 Location: Chinese
|
Junior Member |
|
|
I'm thinking that you through SNMP morning Oracle database.
(1)You must configure and open oracle Intelligent Agents.
(2)Configure it's SNMP variable
(3)The CiscoWorking Catch oracle database Snmp variable
|
|
|
|
|
|