Solved

Oracle discovery

Posted on 2013-12-18
5
412 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 38

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 38

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

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

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

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
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.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

634 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