Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
How do I get a value from the windows registry to set a variable

How do I get a value from the windows registry to set a variable

2005-10-11       - By Niall Litchfield

Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Juan

check out the windows scripting centre. (iirc its
msdn.microsoft.com/scripting <http://msdn.microsoft.com/scripting> ) bags of
example scripts to get use registry and envvars - and a good introduction to
appropriate scripting on the windows platform as well.

Niall

On 10/11/05, Juan Carlos Reyes Pacheco <juancarlosreyesp@(protected)> wrote:
>
> Hi I'm trying to get a variable from windows from a bat file but I cant.
>
> I had check the reg.exe utility but this give you more data than needed
>
> reg query KEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb10g_home1 /v
> oracle_home
>
> This returns all this information
> -- ---- ---- ------
> ! REG.EXE VERSION 3.0
>
> HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb10g_home1
> oracle_home REG_SZ D:\oracle\product\10.2.0\db_1
> -- ---- ---- ------
>
>
> I only need somethin that returnsme the value to put it in a variable
>
> Thanks in advance.
> --
> Oracle Certified Profesional 9i 10g
> Orace Certified Professional Developer 6i
>
> 8 years of experience in Oracle 7,8i,9i,10g and developer 6i
> --
> http://www.freelists.org/webpage/oracle-l
>



--
Niall Litchfield
Oracle DBA
http://www.niall.litchfield.dial.pipex.com

Juan<br>
<br>
check out the windows scripting centre. (iirc its
<a href="http://msdn.microsoft.com/scripting">msdn.microsoft.com/scripting</a>
) bags of example scripts to get use
registry and envvars - and a good introduction to appropriate scripting
on the windows platform as well. <br>
<br>
Niall<br><br><div><span class="gmail_quote">On 10/11/05, <b class="gmail
_sendername">Juan Carlos Reyes Pacheco</b> &lt;<a href="mailto:juancarlosreyesp
@(protected)">juancarlosreyesp@(protected)</a>&gt; wrote:</span><blockquote class=
"gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt
0pt 0.8ex; padding-left: 1ex;">
Hi I'm trying to get a variable from windows from a bat file but I cant.<br><br
>I had check the reg.exe utility but this give you more data than needed<br><br
>reg query KEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb10g_home1 /v oracle_home
<br><br>This returns all this information<br>-- ---- ---- ------<br>! REG.EXE
VERSION 3.0<br><br>HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb10g_home1<br>
&nbsp;&nbsp;&nbsp;&nbsp;oracle_home REG_SZ&nbsp;&nbsp;D:\oracle\product\10.2.0
\db_1<br>-- ---- ---- ------
<br><br><br>I only need somethin that returnsme the value to put it in a
variable<br><br>Thanks in advance.<br>--<br>Oracle Certified Profesional 9i 10g
<br>Orace Certified Professional Developer 6i<br><br>8 years of experience in
Oracle 7,8i,9i,10g and developer 6i
<br>--<br><a href="http://www.freelists.org/webpage/oracle-l">http://www
.freelists.org/webpage/oracle-l</a><br></blockquote></div><br><br clear="all">
<br>-- <br>Niall Litchfield<br>Oracle DBA<br><a href="http://www.niall
.litchfield.dial.pipex.com">
http://www.niall.litchfield.dial.pipex.com</a>