Solved

Oracle discovery

Posted on 2013-12-18
5
365 Views
Last Modified: 2013-12-23
Are there any tools that will do a discovery of all roacle databases in your network, regardless of the OS they are installed on? Our admins have provided a list that seems very out of date, i just wondered how such a list could be compiled?
0
Comment
Question by:pma111
  • 2
  • 2
5 Comments
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 250 total points
ID: 39726455
I've never heard of a tool or product that would do this.

Many reasons this would be next to impossible:
A database could be down.
Any listener could be on a non-default port.
A listener could have hard-coded instances that don't even exist.
etc...
0
 
LVL 3

Author Comment

by:pma111
ID: 39726474
Are there any manual ways of doing this per server?

The oracle databases are installed on either windows server or AIX IBM.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39726498
There might be other ways other Experts can think of but off the top of my head here is what I have.

You can look for Oracle Software installs.  Once found look in common database folders like dbs (Unix) or database (Windows) for config files like the spfile or init configuration files.  This will tell you that a database existed at one time but not the current status of it.

You can look at services or running processes to see what is running at that specific moment.  This won't show databases that are down (although Windows Services will show what databases are available to be started).
0
 
LVL 36

Accepted Solution

by:
Geert Gruwez earned 250 total points
ID: 39727434
for windows you can find them by using the sc command together with find
Oracle databases are typically installed as OracleService<SID>

sc \\servername query|findstr  /C:"DISPLAY_NAME: OracleService"
DISPLAY_NAME: OracleServiceDB1UT11
DISPLAY_NAME: OracleServiceDB2UT11
DISPLAY_NAME: OracleServiceDB2UQ11
DISPLAY_NAME: OracleServiceDB3UT11

you'll need to run this command with a user with admin priviliges to the remote server
> for all servers this will require the list of all servers (from active directory) and a domain admin user
0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 39727482
i use something like this to list the databases i manage
in servers.txt file i add the names of all the servers i'm interested in :

ORASRVTST01
ORASRVTST02
ORASRVPRD01

Open in new window


this script checks every servername and lists all the databases (services) per server in file databases.txt
set serverfile=servers.txt

set dbfile=databases.txt

echo.List of databases per server >%dbfile%

for /f %%G in (%serverfile%) do  (
  echo.Databases on server "%%G">>%dbfile%
  sc \\%%G query|findstr /C:"DISPLAY_NAME: OracleService">>%dbfile%
  echo.---------------->>%dbfile%
)

pause

Open in new window

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
This video shows how to recover a database from a user managed backup
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now