Solved

Oracle discovery

Posted on 2013-12-18
5
405 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Display SQL maintenance plan SQL Code 3 47
How to get data off Lotus Notes server 4 77
Oracle SQL Developer equivalent MS SQL 6 36
When are cursors useful? 8 62
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

752 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