Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: how to find instances on server ??

Re: how to find instances on server ??

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 28 May 2003 11:21:05 -0700
Message-ID: <92eeeff0.0305281021.1e92d505@posting.google.com>


opnets_at_yahoo.co.uk (Dave) wrote in message news:<c9e9d941.0305270855.796f1c8e_at_posting.google.com>...
> Hi all,
>
> I just need top list out all the instances on the server running oracle.
>
> Pls let me know how to do this??
>
> Thanks in advance
>
> Dave.

  1. Get all running instances.

*nix:
$ ps -ef | grep dbw

WinNT/2K:
C:\> net start | find /i "OracleService"

2) Get all installed instances.

*nix:
$ grep ^[A-Z,a-z] /etc/oratab | awk -F : '{print $1}'

WinNT/2K:
You would need an NT resource kit utility called Reg.exe. Put it somewhere in path and,
C:\> FOR /F "delims=[,]OracleService" %A IN ('REG QUERY HKLM\SYSTEM\CURRENTCONTROLSET\SERVICES^|find /i "OracleService"') DO ECHO %A Regards
/Rauf Sarwar Received on Wed May 28 2003 - 13:21:05 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US