Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: how do you find oracle home on windows
At the DOS prompt "SET" shows the environment variables, usually not
"SET whatever", as this causes a syntax error
Programmatically (VB example)
Function GetEnvironmentVar(sName As String) As String
GetEnvironmentVar = String(255, 0)
GetEnvironmentVariable sName, GetEnvironmentVar,
Len(GetEnvironmentVar)
If InStr(1, GetEnvironmentVar, Chr$(0)) > 0 Then GetEnvironmentVar = Left$(GetEnvironmentVar, InStr(1, GetEnvironmentVar, Chr$(0)) - 1)
GetEnvironmentVar = sName + ": " + GetEnvironmentVar End Function
Private Sub Show_oracle_home()
Me.AutoRedraw = True
Me.Print GetEnvironmentVar("ORACLE_HOME")
End Sub
"Steve Rainbird" <steve.rainbird_at_nospam.mssint.com> wrote in message news:<ah1gv6$672$1_at_paris.btinternet.com>...
> On Unix "echo $ORACLE_HOME"
> On Windows "set ORACLE_HOME"
>
>
> --
> Steve Rainbird
> Principal consultant
> MSS International Ltd.
> www.mssint.com
>
> Remove "nospam" from email address to reply
>
> "Joe Bayer" <u705413818_at_spawnkill.ip-mobilphone.net> wrote in message
> news:l.1026833106.1864440917@[64.94.198.252]...
> > *** post for FREE via your newsreader at post.newsfeed.com ***
> >
> > I might be a very easy question, but not for me who only works with unix
> until now.
> >
> > At unix, we can use env | grep ORA
> >
> > but what is the equivalent on Windows?
> >
> > Thanks for your help.
> >
> >
> >
> >
> >
> > --
> > Sent by joebayerii from hotmail part from com
> > This is a spam protected message. Please answer with reference header.
> > Posted via http://www.usenet-replayer.com/cgi/content/new
> >
> >
> > -----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
> > http://www.newsfeed.com - The #1 Newsgroup Service in the World!
> > -----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----
> >
Received on Fri Jul 19 2002 - 10:15:31 CDT