How to check for environment variable?

  • Thread starter Thread starter Fie Fie Niles
  • Start date Start date
F

Fie Fie Niles

How can I check environment variable in Window 2000 or Windows NT? I have a
problem connecting to Oracle database, and I was suggested to check
the enviroment variable : TNS_ADMIN. I search for TNS_ADMIN in the registry,
but it could not find it. Thank you.
 
Fie said:
How can I check environment variable in Window 2000 or Windows NT? I
have a problem connecting to Oracle database, and I was suggested to
check
the enviroment variable : TNS_ADMIN. I search for TNS_ADMIN in the
registry, but it could not find it. Thank you.

Right-click "My Computer", select Properties from the Menu, go to the
Advanced tab, and click Environment Variables...

Good Luck!

- carl
 
Thanks a lot.
So, to check for the enviroment variable : TNS_ADMIN, I should check under
"User variable" or "system variable", there is a variable called "TNS_ADMIN"
, right? Thanks.
 
In
Fie Fie Niles said:
How can I check environment variable in Window 2000 or Windows NT? I
have a problem connecting to Oracle database, and I was suggested to
check
the enviroment variable : TNS_ADMIN. I search for TNS_ADMIN in the
registry, but it could not find it. Thank you.

Press Windows Key and Pause key

System properties opens
Advanced tab
Evironment Variables Button

or

Start
Run
type
CMD
press OK

type
set
press enter

env_vars list displayed
 
Steve Parry said:
In

Press Windows Key and Pause key

System properties opens
Advanced tab
Evironment Variables Button

or

Start
Run
type
CMD
press OK

type
set
press enter

env_vars list displayed

Or, instead of typing set (which I agree is good for anyone to know
anyway), you could just type:

echo %TNS_ADMIN%

If the var exist, the command prompt will echo it's value. If it
doesn't exist, it will just echo what your echo is set to (ON or OFF).
 
Thank you all for your replies.


Ricardo M. Urbano - W2K/NT4 MVP said:
Or, instead of typing set (which I agree is good for anyone to know
anyway), you could just type:

echo %TNS_ADMIN%

If the var exist, the command prompt will echo it's value. If it
doesn't exist, it will just echo what your echo is set to (ON or OFF).
 
Tool To Show An Environment Variable

I've Attached a Tool To Check Your Environment Variables.
It was Written and Compiled in Visual Batch.
 

Attachments

Back
Top