New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Query Oracle Database

Votes:

0

Your Vote:

Up

Down

Hello,

I have been using several monitoring tools for production servers so far and I must admit, I am very satisfied with PRTG. I am still testing it though and we might buy it very soon.

More or less we are interested in Database and WMI Sensors. I have been trying to setup query on oracle database, but without luck so far. Basically, idea for query is to check if there are blocking locks on database with:

select * from v$lock or select * from v$lock where block > 0

Basically, what I did is that I several times produced blocking lock on my test database and used above queries on database SQL-Expression. Tried with all possible options (Process numerical result, Process string result...) But no luck :(

I always receive this alarm which does not satisfy my need. Could not perform query: Could not convert variant of type (Array Byte) into type (Double)

Even, when I produce lock I am able to manually connect to database and query/see blocking locks on database.

Is there any possible solution that you could suggest?

Thank you

blocking-lock oracle query sql

Created on Sep 26, 2011 3:14:44 PM by  comi82 (50) 1 1



Best Answer

Accepted Answer

Votes:

0

Your Vote:

Up

Down

Hello again,

Thank you for you help. I was able to test and produce block with your help.

select block from v$lock where block > 0 Process numerical result Condition "Warning" Above 0

Still need to finish some more testing. Anyway this works like a charm.

Regards

Created on Sep 27, 2011 8:40:01 AM by  comi82 (50) 1 1



3 Replies

Votes:

0

Your Vote:

Up

Down

Hello,

the result from these queries can't be handled by PRTG. You need to use a more precise query which produces one field in order to to use the result as sensor result.

best reagards.

Created on Sep 26, 2011 4:36:42 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Your Vote:

Up

Down

In your case a

select count(*) from v$lock

or

select count(*) from v$lock where block > 0

will do the trick

Created on Sep 27, 2011 7:09:44 AM by  PRTG Tools Family [prtgtoolsfamily.com] (13,163) 3 4



Accepted Answer

Votes:

0

Your Vote:

Up

Down

Hello again,

Thank you for you help. I was able to test and produce block with your help.

select block from v$lock where block > 0 Process numerical result Condition "Warning" Above 0

Still need to finish some more testing. Anyway this works like a charm.

Regards

Created on Sep 27, 2011 8:40:01 AM by  comi82 (50) 1 1



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.