| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Listing Oracle Databases on Windows
Since each database in Windows has its own service, you can search for
service names. There's a command line utility in the Windows 2000 Resource
Kit called Service List (sclist.exe). I can email it to you off list if you
like, size is only 6KB. One caveat - depending on how you shut down your
databases it's possible for the database to be down even though its service
is still running.
Finding the Oracle home for each DB is trickier, I think the only answer is
to pull it out of the registry. There are probably some add-on Perl
packages you can download for this. On Windows 2000 I think you're looking
for
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleService<your_sid>
\ImagePath. There's another windows resource kit tool called regdmp.exe
that you can use instead of Perl, but it spits out everything under
OracleService<your_sid>, so you'd have more output than you want.
Here are the details on sclist:
usage: SCLIST [-?] [-r] [-s] [MachineName]
[-?] Display this message
[-r] Display only running services
[-s] Display only stopped services
[-MachineName] Machine name to list services
Output looks like this (only have the listener and one database running on this machine):
C:\>sclist -r
<dan1999a_at_attbi.com> wrote in message
news:yVj8a.310694$HN5.1353446_at_rwcrnsc51.ops.asp.att.net...
> Hi Oracle DBAs,
>
>
>
![]() |
![]() |