dbTalk Databases Forums  

Environment Variables on NT

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Environment Variables on NT in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
EscVector
 
Posts: n/a

Default Re: Environment Variables on NT - 11-03-2006 , 12:14 PM






Path is loaded at session logon (interactive or batch) from the
following:

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Se ssion
Manager\Environment\Path]

This setting is modifiable in the registry, but only takes effect after
logoff/logon.
The Environment Applet calls Winapi to set this dynamically w/o reboot,
so it's the best place to alter.

What is the exact connection error.


Robbert van der Hoorn wrote:
Quote:
"mike" <hillmw (AT) charter (DOT) net> schreef in bericht
news:1162570461.290106.74580 (AT) b28g2000cwb (DOT) googlegroups.com...
Charles,

I didnt see any of them so I have to regedit.

Mike

Charles Hooper wrote:
mike wrote:
I was trouble connecting to my Oracle database and they asked me to
check the environmentatl variables.

On an NT machine are these settings in the registry?

I'm looking to check some like:
dbms_type=ora
PATH=<oracle_home>\bin;... (<oracle_home>\bin in first position)
dbs_ora_tnsname=<sid

Any help is appreciated.

To check the environment variables:
1. From the Start Menu, select Run..
2. Type CMD and press the Enter key
3. Type SET and press the Enter key

Many of the Oracle related environment variables are stored in the
registry on Windows systems. Take a look in this location (and sub
folders):
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE

To permanently change the environment variable, use the System Control
Panel. Any changes to the environment variables in a command prompt
window are valid only for that command prompt window. A reboot may be
necessary for changes to take effect.

Charles Hooper
PC Support Specialist
K&M Machine-Fabricating, Inc.


Create them using the system control panel. Path is NOT a registry variable
(although deep down somewhere it might be)


Reply With Quote
  #12  
Old   
EscVector
 
Posts: n/a

Default Re: Environment Variables on NT - 11-03-2006 , 12:28 PM






Slight correction:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session
Manager\Environment]
is where the active session's path resides.

TNSless connection test:

cmd
set ORACLE_SID=<sidname>
sqlplus /nolog
connect username/pass

Alternate:
check SQLNET.ORA for the following entry and add if not there.
SQLNET.AUTHENTICATION_SERVICES= (NTS)

Open Local Machines User Manager and add yourself to the ORA_DBA group.
Right-Click My Computer>Manage>Local Users and Groups>Groups>ORA_DBA
Make sure you or the group you are in is in this group then,

cmd
SET ORACLE_SID=<sidname>
Connect / as sysdba


This should work if all is installed correctly and not running 9i and
10g on same box.

ORACLE_SID can be set as an environment variable or it can be created
or set in the Oracle Registry Key associated with the current home.

To make sure, always set at the cmd prompt prior to launching sqlplus
using set ORACLE_SID= just as you'd export in unix/linux.

Hope this helps

EscVector wrote:
Quote:
Path is loaded at session logon (interactive or batch) from the
following:

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Se ssion
Manager\Environment\Path]

This setting is modifiable in the registry, but only takes effect after
logoff/logon.
The Environment Applet calls Winapi to set this dynamically w/o reboot,
so it's the best place to alter.

What is the exact connection error.


Robbert van der Hoorn wrote:
"mike" <hillmw (AT) charter (DOT) net> schreef in bericht
news:1162570461.290106.74580 (AT) b28g2000cwb (DOT) googlegroups.com...
Charles,

I didnt see any of them so I have to regedit.

Mike

Charles Hooper wrote:
mike wrote:
I was trouble connecting to my Oracle database and they asked me to
check the environmentatl variables.

On an NT machine are these settings in the registry?

I'm looking to check some like:
dbms_type=ora
PATH=<oracle_home>\bin;... (<oracle_home>\bin in first position)
dbs_ora_tnsname=<sid

Any help is appreciated.

To check the environment variables:
1. From the Start Menu, select Run..
2. Type CMD and press the Enter key
3. Type SET and press the Enter key

Many of the Oracle related environment variables are stored in the
registry on Windows systems. Take a look in this location (and sub
folders):
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE

To permanently change the environment variable, use the System Control
Panel. Any changes to the environment variables in a command prompt
window are valid only for that command prompt window. A reboot may be
necessary for changes to take effect.

Charles Hooper
PC Support Specialist
K&M Machine-Fabricating, Inc.


Create them using the system control panel. Path is NOT a registry variable
(although deep down somewhere it might be)


Reply With Quote
  #13  
Old   
Robbert van der Hoorn
 
Posts: n/a

Default Re: Environment Variables on NT - 11-03-2006 , 03:15 PM




"EscVector" <analyze (AT) webthere (DOT) com> schreef in bericht
news:1162577652.595103.303770 (AT) f16g2000cwb (DOT) googlegroups.com...
Quote:
Path is loaded at session logon (interactive or batch) from the
following:

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Se ssion
Manager\Environment\Path]
Yep. But that's NOT where to SET it!!!!!!!

Quote:
This setting is modifiable in the registry, but only takes effect after
logoff/logon.
The Environment Applet calls Winapi to set this dynamically w/o reboot,
so it's the best place to alter.

What is the exact connection error.


Robbert van der Hoorn wrote:
"mike" <hillmw (AT) charter (DOT) net> schreef in bericht
news:1162570461.290106.74580 (AT) b28g2000cwb (DOT) googlegroups.com...
Charles,

I didnt see any of them so I have to regedit.

Mike

Charles Hooper wrote:
mike wrote:
I was trouble connecting to my Oracle database and they asked me to
check the environmentatl variables.

On an NT machine are these settings in the registry?

I'm looking to check some like:
dbms_type=ora
PATH=<oracle_home>\bin;... (<oracle_home>\bin in first position)
dbs_ora_tnsname=<sid

Any help is appreciated.

To check the environment variables:
1. From the Start Menu, select Run..
2. Type CMD and press the Enter key
3. Type SET and press the Enter key

Many of the Oracle related environment variables are stored in the
registry on Windows systems. Take a look in this location (and sub
folders):
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE

To permanently change the environment variable, use the System Control
Panel. Any changes to the environment variables in a command prompt
window are valid only for that command prompt window. A reboot may be
necessary for changes to take effect.

Charles Hooper
PC Support Specialist
K&M Machine-Fabricating, Inc.


Create them using the system control panel. Path is NOT a registry
variable
(although deep down somewhere it might be)




Reply With Quote
  #14  
Old   
EscVector
 
Posts: n/a

Default Re: Environment Variables on NT - 11-03-2006 , 03:45 PM



"Path is NOT a registry variable
(although deep down somewhere it might be) "

I was just showing that Path is a registry "variable" and you can set
it in CurrentControlSet, you just have to log out and log in if you
choose to set it this way.




Robbert van der Hoorn wrote:
Quote:
"EscVector" <analyze (AT) webthere (DOT) com> schreef in bericht
news:1162577652.595103.303770 (AT) f16g2000cwb (DOT) googlegroups.com...
Path is loaded at session logon (interactive or batch) from the
following:

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Se ssion
Manager\Environment\Path]

Yep. But that's NOT where to SET it!!!!!!!


This setting is modifiable in the registry, but only takes effect after
logoff/logon.
The Environment Applet calls Winapi to set this dynamically w/o reboot,
so it's the best place to alter.

What is the exact connection error.


Robbert van der Hoorn wrote:
"mike" <hillmw (AT) charter (DOT) net> schreef in bericht
news:1162570461.290106.74580 (AT) b28g2000cwb (DOT) googlegroups.com...
Charles,

I didnt see any of them so I have to regedit.

Mike

Charles Hooper wrote:
mike wrote:
I was trouble connecting to my Oracle database and they asked me to
check the environmentatl variables.

On an NT machine are these settings in the registry?

I'm looking to check some like:
dbms_type=ora
PATH=<oracle_home>\bin;... (<oracle_home>\bin in first position)
dbs_ora_tnsname=<sid

Any help is appreciated.

To check the environment variables:
1. From the Start Menu, select Run..
2. Type CMD and press the Enter key
3. Type SET and press the Enter key

Many of the Oracle related environment variables are stored in the
registry on Windows systems. Take a look in this location (and sub
folders):
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE

To permanently change the environment variable, use the System Control
Panel. Any changes to the environment variables in a command prompt
window are valid only for that command prompt window. A reboot may be
necessary for changes to take effect.

Charles Hooper
PC Support Specialist
K&M Machine-Fabricating, Inc.


Create them using the system control panel. Path is NOT a registry
variable
(although deep down somewhere it might be)



Reply With Quote
  #15  
Old   
mike
 
Posts: n/a

Default Re: Environment Variables on NT - 11-04-2006 , 10:42 AM



I made the env setting changes, but then I got an error message when
the box came up talking about problems saying to see the "event
viewer".

I've never seen that before. Any idea where that is?

Mike

EscVector wrote:
Quote:
"Path is NOT a registry variable
(although deep down somewhere it might be) "

I was just showing that Path is a registry "variable" and you can set
it in CurrentControlSet, you just have to log out and log in if you
choose to set it this way.




Robbert van der Hoorn wrote:
"EscVector" <analyze (AT) webthere (DOT) com> schreef in bericht
news:1162577652.595103.303770 (AT) f16g2000cwb (DOT) googlegroups.com...
Path is loaded at session logon (interactive or batch) from the
following:

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Se ssion
Manager\Environment\Path]

Yep. But that's NOT where to SET it!!!!!!!


This setting is modifiable in the registry, but only takes effect after
logoff/logon.
The Environment Applet calls Winapi to set this dynamically w/o reboot,
so it's the best place to alter.

What is the exact connection error.


Robbert van der Hoorn wrote:
"mike" <hillmw (AT) charter (DOT) net> schreef in bericht
news:1162570461.290106.74580 (AT) b28g2000cwb (DOT) googlegroups.com...
Charles,

I didnt see any of them so I have to regedit.

Mike

Charles Hooper wrote:
mike wrote:
I was trouble connecting to my Oracle database and they asked me to
check the environmentatl variables.

On an NT machine are these settings in the registry?

I'm looking to check some like:
dbms_type=ora
PATH=<oracle_home>\bin;... (<oracle_home>\bin in first position)
dbs_ora_tnsname=<sid

Any help is appreciated.

To check the environment variables:
1. From the Start Menu, select Run..
2. Type CMD and press the Enter key
3. Type SET and press the Enter key

Many of the Oracle related environment variables are stored in the
registry on Windows systems. Take a look in this location (and sub
folders):
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE

To permanently change the environment variable, use the System Control
Panel. Any changes to the environment variables in a command prompt
window are valid only for that command prompt window. A reboot may be
necessary for changes to take effect.

Charles Hooper
PC Support Specialist
K&M Machine-Fabricating, Inc.


Create them using the system control panel. Path is NOT a registry
variable
(although deep down somewhere it might be)



Reply With Quote
  #16  
Old   
Charles Hooper
 
Posts: n/a

Default Re: Environment Variables on NT - 11-04-2006 , 08:17 PM



mike wrote:
Quote:
I made the env setting changes, but then I got an error message when
the box came up talking about problems saying to see the "event
viewer".

I've never seen that before. Any idea where that is?

Mike
That error message may be related to the environment variables that you
created. If one of the environment variables is over-riding a setting
that is in the registry, one of the Oracle related services may fail to
start. This can also be a result of creating or editing the entries in
the registry to invalid or conflicting values. Check to see which
Oracle related services are started. Also check the alert logs for
information.

Note: the error message that you are reporting is very generic. You
may see the same error message if you were using a serial mouse on NT
and decide instead to use a PS/2 mouse. The Windows event viewer will
give you a better idea of the actual error.

Charles Hooper
PC Support Specialist
K&M Machine-Fabricating, Inc.



Reply With Quote
  #17  
Old   
EscVector
 
Posts: n/a

Default Re: Environment Variables on NT - 11-05-2006 , 09:39 AM



Is this a production box?
What is the OS version and path level?
What was posted to the event viewer? Any good error or just junk.

Do you have only one oracle version/home installed? Settings get
tricky when multi-homed with 9i and 10g versions. Grid and OEM don't
play well together.

If you got the error when modifying the path via the windows applet,
there is something outside Oracle wrong with the machine.

Easy enough to fix Oracle, if it's a windows error, that can be more
annoying.





mike wrote:
Quote:
I was trouble connecting to my Oracle database and they asked me to
check the environmentatl variables.

On an NT machine are these settings in the registry?

I'm looking to check some like:
dbms_type=ora
PATH=<oracle_home>\bin;... (<oracle_home>\bin in first position)
dbs_ora_tnsname=<sid

Any help is appreciated.


Reply With Quote
  #18  
Old   
gazzag
 
Posts: n/a

Default Re: Environment Variables on NT - 11-06-2006 , 03:52 AM



mike wrote:
Quote:
I made the env setting changes, but then I got an error message when
the box came up talking about problems saying to see the "event
viewer".

I've never seen that before. Any idea where that is?

Mike
Right click on My Computer and select Manage. The Computer Management
aplet will open. Expand the System Tools branch, then expand Event
Viewer. Any messages from Oracle will be viewable by selecting the
Application category.

HTH

-g



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.