Solved

Oracle discovery

Posted on 2013-12-18
5
399 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 77

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 77

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 37

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 37

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
oracle differnce between two timestamps 5 38
join a table with user_tab_columns in oracle 3 66
setting local variables in a cursor block 3 27
SQL Query help 3 38
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Creating and Managing Databases with phpMyAdmin in cPanel.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
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.

679 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