Which Regsitry Settings Are Used by Windows 2003?

  • Thread starter Thread starter basis_consultant
  • Start date Start date
B

basis_consultant

Hi,

I have worked mainly on Unix, and would appreciate some help
with the following question: On Windows 2003 (I am posting to the
'*win200.registry' group as I cannot find such a Win 2003 group), how
do I display the value of the registry keys and
values actually used by Windows at any given period in time? I know
that 'regedit' displays the registry keys and values, but I am not sure
which ones apply in my situation.

For example, suppose HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE has
2 keys, KEY_HOME1 and KEY_HOME2. ORACLE_HOME is set to D:\HOME1
in KEY_HOME1 and D:\HOME2 in KEY_HOME2.

How can I find out what is the current value of the ORACLE_HOME
variable, and whether or not Oracle currently uses KEY_HOME1, KEY_HOME2
or neither?

I tried 'echo %ORACLE_HOME%', but Windows replied with %ORACLE_HOME%,
though it seemed, judging by Oracle's
functionality, that ORACLE_HOME was either set to D:\HOME1
or D:\HOME2.


Thanks,
DF
 
Possibly use RegRead method of VBScript.

---------somefile.vbs--------------
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo "KEY_HOME1: " &
WshShell.RegRead("HKLM\Software\ORACLE\KEY_HOME1")
WScript.Echo "KEY_HOME2: " &
WshShell.RegRead("HKLM\Software\ORACLE\KEY_HOME2")
-----------------------------------

(watch for line wrap)

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

| Hi,
|
| I have worked mainly on Unix, and would appreciate some help
| with the following question: On Windows 2003 (I am posting to the
| '*win200.registry' group as I cannot find such a Win 2003 group), how
| do I display the value of the registry keys and
| values actually used by Windows at any given period in time? I know
| that 'regedit' displays the registry keys and values, but I am not sure
| which ones apply in my situation.
|
| For example, suppose HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE has
| 2 keys, KEY_HOME1 and KEY_HOME2. ORACLE_HOME is set to D:\HOME1
| in KEY_HOME1 and D:\HOME2 in KEY_HOME2.
|
| How can I find out what is the current value of the ORACLE_HOME
| variable, and whether or not Oracle currently uses KEY_HOME1, KEY_HOME2
| or neither?
|
| I tried 'echo %ORACLE_HOME%', but Windows replied with %ORACLE_HOME%,
| though it seemed, judging by Oracle's
| functionality, that ORACLE_HOME was either set to D:\HOME1
| or D:\HOME2.
|
|
| Thanks,
| DF
|
 
In said:
Hi,

I have worked mainly on Unix, and would appreciate some help
with the following question: On Windows 2003 (I am posting to the
'*win200.registry' group as I cannot find such a Win 2003 group),
how do I display the value of the registry keys and
values actually used by Windows at any given period in time? I
know that 'regedit' displays the registry keys and values, but I
am not sure which ones apply in my situation.

For example, suppose HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE has
2 keys, KEY_HOME1 and KEY_HOME2. ORACLE_HOME is set to D:\HOME1
in KEY_HOME1 and D:\HOME2 in KEY_HOME2.

How can I find out what is the current value of the ORACLE_HOME
variable, and whether or not Oracle currently uses KEY_HOME1,
KEY_HOME2 or neither?

I tried 'echo %ORACLE_HOME%', but Windows replied with
%ORACLE_HOME%, though it seemed, judging by Oracle's
functionality, that ORACLE_HOME was either set to D:\HOME1
or D:\HOME2.

There may be an Oracle method...I don't know.

One tool you may find useful is a registry monitor such as
REGMON
http://www.sysinternals.com/ntw2k/source/regmon.shtml

With REGMON running one could observe which keys/values are
accessed/read/changed during the oracle startup.

Many fine free Windows tools of interest at
http://www.sysinternals.com/index.shtml
 
Back
Top