How to check for environment variable?

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.
 
C

Carl Fenley

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
 
F

Fie Fie Niles

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.
 
S

Steve Parry [MVP]

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
 
R

Ricardo M. Urbano - W2K/NT4 MVP

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).
 
F

Fie Fie Niles

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).
 
G

George Hester

Start | Run | cmd | cd\ | set <ENTER>

You'll see all your enviornment variables.
 
Joined
Dec 16, 2010
Messages
1
Reaction score
0
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

  • GEV.zip
    361.3 KB · Views: 578

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top