Query Oracle 10g, record counts.

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
adhillon
Posts: 8
Joined: Thu Mar 05, 2015 1:25 am

Query Oracle 10g, record counts.

Post by adhillon »

Hi Everyone,

I am unable to figure out that how to connect to Oracle 10g db, and query the COUNT TSQL.
I would like to record the three COUNTs in one graph.

1. select count (*) from tbl_name; (ALL Count)
2. select count (*) from tbl_name where status = 'UP'; (UP Count)
3. select count (*) from tbl_name where status = 'DOWN'; (DOWN Count)

I am running windows version of Cacti 0.8.8b.

Please suggest.
Thank you.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Query Oracle 10g, record counts.

Post by BSOD2600 »

1) http://docs.cacti.net/
2) create a script which runs those queries and outputs the numbers in a format Cacti wants.
3) create the data templates, graphs, etc for the script.
adhillon
Posts: 8
Joined: Thu Mar 05, 2015 1:25 am

Re: Query Oracle 10g, record counts.

Post by adhillon »

Could you share a sample script which connect to Oracle db, and run a simple query. I am not well versed with the scripting. That would be of great help.
Thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests