Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 1:52 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Oracle instances
PostPosted: Sat Oct 02, 2010 12:26 am 
Offline
Contributor
User avatar

Joined: Thu Mar 02, 2006 4:41 am
Posts: 205
Location: Massachusetts
Oracle usually can't be found in the typical places windows installs are found. Do you think there is any interest in add Oracle instance discovery to OA (besides myself or course)?

You can identify Oracle instances running on Windows in Services.msc because for each instance of Oracle, there is a unique oracle service installed.

_________________
Server Info: running on a CentOS 7 vm
OA Version: 2.0.6 @ 500 devices


Top
 Profile  
Reply with quote  
 Post subject: Re: Oracle instances
PostPosted: Fri Oct 22, 2010 1:18 am 
Offline
Contributor
User avatar

Joined: Thu Mar 02, 2006 4:41 am
Posts: 205
Location: Massachusetts
[code]Sub OracleInstances(StrComputer)

Dim objLocator, objWMI
Set objLocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService = objLocator.ConnectServer(strComputer,"root\cimv2",user,pass)

Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Service WHERE DisplayName LIKE 'OracleService%'")

For Each objItem In colItems
str = objItem.DisplayName
instance = Replace(str,"OracleService","")

If objItem.Started = "True" Then
WScript.Echo instance & " - Started"
Else
WScript.Echo instance & " - Not started"
End If

Next

End Sub[/code]

_________________
Server Info: running on a CentOS 7 vm
OA Version: 2.0.6 @ 500 devices


Top
 Profile  
Reply with quote  
 Post subject: Re: Oracle instances
PostPosted: Sat Dec 11, 2010 12:39 am 
Offline
Contributor
User avatar

Joined: Thu Mar 02, 2006 4:41 am
Posts: 205
Location: Massachusetts
Is it safe to conclude that nobody else is interested in discovering Oracle databases?

_________________
Server Info: running on a CentOS 7 vm
OA Version: 2.0.6 @ 500 devices


Top
 Profile  
Reply with quote  
 Post subject: Re: Oracle instances
PostPosted: Sat Dec 11, 2010 8:13 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
I am definitely interested in enumerating Oracle instances / databases for OAv2.
I'd like to get similar data to that currently retrieved for SQL Server.
MySQL is another I want to get info from, as well.

What platform are your Oracle instance running on ?

Are you thinking about querying them in a separate script and essentially ignoring the underlying OS ? I think that might be the best way to go... We could use the same method for other DB's as well.

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
 Post subject: Re: Oracle instances
PostPosted: Fri Dec 17, 2010 7:35 am 
Offline
Contributor
User avatar

Joined: Thu Mar 02, 2006 4:41 am
Posts: 205
Location: Massachusetts
Hi Mark- This is great news. We have some Oracle databases running on Windows and on Red Hat too. I noticed that there are a couple of 3rd party solutions to discover Oracle but overall it seems to be an oddball. Maybe it's possible to use nmap to scan an ip range and identify systems listening on port 1521 and 1523. This might work but won't help with non-standard listening ports.

_________________
Server Info: running on a CentOS 7 vm
OA Version: 2.0.6 @ 500 devices


Top
 Profile  
Reply with quote  
 Post subject: Re: Oracle instances
PostPosted: Sun Jan 02, 2011 11:27 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
If we audit the host that Oracle is running on, we should be able to determine ports...
Then it's just a matter of connecting (with appropriate credentials) and running a script to enumerate the databases. I already do this for SQL Server in OAv2. I plan to do Oracle, MySQL, Postgres and others, too...

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group