.ora-code.com

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 to startup oracle9i without using windows services

How to startup oracle9i without using windows services

2005-07-11       - By Niall Litchfield
Reply:     1     2     3  

I've been watching all this with some incredulity.
services are the appropriate technological approach to use for background
processes (like the Oracle.exe process) on the win32 platform. You should
use them where provided, and encourage your third party vendors that write
for the win32 platform to use them as well.
thomas' approach is certainly the most common way to script the startup and
shutdown of services on the windows platform.
generically you have another approach which is to use the windows
management instrumentation interface, start here
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html
/scripting06112002.asp>for
information
for oracle you also have the option of calling oradim.exe to start and stop
the database.

On 7/8/05, Vlad Sadilovskiy <vlovsky@(protected)> wrote:
>
> Hi,
>
> Actually you can run it without the starting the service. If you can
> peek inside the service you'd see what command line it uses to start
> Oracle. The command is:
>
> %ORACLE_%HOME%\bin\ORACLE.EXE <ORACLE_SID>
>
> Wait for "Hit any key to exit server:"
>
> If it finds corresponding registry key and you have autostart
> configured, then it'll bring your DB up. Otherwise, you'll need to do
> following from the other CMD window.
>
> set ORACLE_SID=<ORACLE_SID>
> sqlplus "/ as sysdba"
> startup
> exit
>
> - Vladimir
>
> On 7/8/05, Mercadante, Thomas F (LABOR)
> <Thomas.Mercadante@(protected)> wrote:
> > I don't think this will work. Sqlplus will not work without the services
> running.
> >
> > GBA, another way to do this:
> >
> > When the database is up, do the following:
> >
> > Net start | more
> >
> > Look for the name of the Oracle service that is running. It will be
> something like OracleServiceSID.
> >
> > From the Dos prompt, you can:
> >
> > Net start OracleServiceSID
> >
> > You can also
> >
> > Net stop OracleServiceSID.
> >
> > Hope this helps.
> >
> > Tom
> >
> >
> > -- --Original Message-- --
> > From: oracle-l-bounce@(protected) [mailto:
> oracle-l-bounce@(protected)] On Behalf Of Vajrala, Madhusudana R.
> > Sent: Friday, July 08, 2005 10:43 AM
> > To: 'GBA-DBA '; 'oracle-l-bounce@(protected) '; '
> oracle-l@(protected) '
> > Subject: RE: How to startup oracle9i without using windows services
> >
> > Hi,
> >
> > 1. Set ORACLE_SID and ORACLE_HOME on command prompt
> > 2. sqlplus
> > 3. startup pfile='/path/to/oracle/prameter/file.ora'
> >
> >
> > Its been a while i worked on windows database, but i guess this should
> allow
> > you to start the database.
> >
> > PS: Try "tnsping <tns-alias-to-your-oraclesid>" to see if your TNS setup
> is fine.
> >
> > Regards,
> > Madhu
> >
> >
> > -- --Original Message-- --
> > From: oracle-l-bounce@(protected)
> > To: oracle-l@(protected)
> > Sent: 7/7/2005 11:56 PM
> > Subject: How to startup oracle9i without using windows services
> >
> > Hi list, i would like to know how you guys do to startup oracle9i in
> > winxp without using the windows services. I'm trying with a cmd window
> > using:
> >
> > sqlplus / nolog -- That's ok
> >
> > connect / as sysdba -- Getting this error
> > ERROR:
> > ORA-12560 (See ORA-12560.ora-code.com): TNS:protocol adapter error
> >
> > I've noticed that once the db is running (started with services) i can
> > connect īn a cmd window using the above command.
> >
> > Any clues??
> >
> > Regards
> > GBA
> > --
> > http://www.freelists.org/webpage/oracle-l
> > --
> > http://www.freelists.org/webpage/oracle-l
> >
> --
> http://www.freelists.org/webpage/oracle-l
>



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

<div>I've been watching all this with some incredulity. </div>
<div>&nbsp;</div>
<div>services are the appropriate technological approach to use for background
processes (like the Oracle.exe process) on the win32 platform. You should use
them where provided, and encourage your third party vendors that write for the
win32 platform to use them as well.
</div>
<div>&nbsp;</div>
<div>thomas' approach is certainly the most common way to script the startup
and shutdown of services on the windows platform. </div>
<div>&nbsp;</div>
<div>generically you have another approach which is to use the windows
management instrumentation interface, start <a href="http://msdn.microsoft.com
/library/default.asp?url=/library/en-us/dnclinic/html/scripting06112002.asp">
here </a>for information</div>
<div>for oracle you also have the option of calling oradim.exe to start and
stop the database. </div>
<div>&nbsp;</div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">On 7/8/05, <b class="gmail_sendername">Vlad
Sadilovskiy</b> &lt;<a href="mailto:vlovsky@(protected)">vlovsky@(protected)</a>&gt
; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>Actually you can run it without
the starting the service. If you can<br>peek inside the service you'd see what
command line it uses to start
<br>Oracle. The command is:<br><br>%ORACLE_%HOME%\bin\ORACLE.EXE &lt;ORACLE_SID
&gt;<br><br>Wait for &quot;Hit any key to exit server:&quot;<br><br>If it finds
corresponding registry key and you have autostart<br>configured, then it'll
bring your DB up. Otherwise, you'll need to do
<br>following from the other CMD window.<br><br>set ORACLE_SID=&lt;ORACLE_SID
&gt;<br>sqlplus &quot;/ as sysdba&quot;<br>startup<br>exit<br><br>- Vladimir<br>
<br>On 7/8/05, Mercadante, Thomas F (LABOR)<br>&lt;<a href="mailto:Thomas
.Mercadante@(protected)">
Thomas.Mercadante@(protected)</a>&gt; wrote:<br>&gt; I don't think this
will work.&nbsp;&nbsp;Sqlplus will not work without the services running.<br>
&gt;<br>&gt; GBA, another way to do this:<br>&gt;<br>&gt; When the database is
up, do the following:
<br>&gt;<br>&gt; Net start | more<br>&gt;<br>&gt; Look for the name of the
Oracle service that is running.&nbsp;&nbsp;It will be something like
OracleServiceSID.<br>&gt;<br>&gt; From the Dos prompt, you can:<br>&gt;<br>&gt;
Net start OracleServiceSID
<br>&gt;<br>&gt; You can also<br>&gt;<br>&gt; Net stop OracleServiceSID.<br>&gt
;<br>&gt; Hope this helps.<br>&gt;<br>&gt; Tom<br>&gt;<br>&gt;<br>&gt; ----
-Original Message-- --<br>&gt; From: <a href="mailto:oracle-l-bounce@(protected)
.org">
oracle-l-bounce@(protected)</a> [mailto:<a href="mailto:oracle-l-bounce
@(protected)">oracle-l-bounce@(protected)</a>] On Behalf Of Vajrala,
Madhusudana R.<br>&gt; Sent: Friday, July 08, 2005 10:43 AM<br>&gt; To: 'GBA
-DBA '; '
<a href="mailto:oracle-l-bounce@(protected)">oracle-l-bounce@(protected)</a
> '; '<a href="mailto:oracle-l@(protected)">oracle-l@(protected)</a> '<br>
&gt; Subject: RE: How to startup oracle9i without using windows services
<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; 1. Set ORACLE_SID and ORACLE_HOME on
command prompt<br>&gt; 2. sqlplus<br>&gt; 3. startup pfile='/path/to/oracle
/prameter/file.ora'<br>&gt;<br>&gt;<br>&gt; Its been a while i worked on windows
database, but i guess this should allow
<br>&gt; you to start the database.<br>&gt;<br>&gt; PS: Try &quot;tnsping &lt
;tns-alias-to-your-oraclesid&gt;&quot; to see if your TNS setup is fine.<br>&gt;
<br>&gt; Regards,<br>&gt; Madhu<br>&gt;<br>&gt;<br>&gt; -- --Original Message---
--
<br>&gt; From: <a href="mailto:oracle-l-bounce@(protected)">oracle-l-bounce
@(protected)</a><br>&gt; To: <a href="mailto:oracle-l@(protected)">oracle-l
@(protected)</a><br>&gt; Sent: 7/7/2005 11:56 PM<br>&gt; Subject: How to
startup oracle9i without using windows services
<br>&gt;<br>&gt; Hi list, i would like to know how you guys do to startup
oracle9i in<br>&gt; winxp without using the windows services. I'm trying with a
cmd window<br>&gt; using:<br>&gt;<br>&gt; sqlplus / nolog&nbsp;&nbsp;-- That's
ok
<br>&gt;<br>&gt; connect / as sysdba -- Getting this error<br>&gt; ERROR:<br>
&gt; ORA-12560 (See ORA-12560.ora-code.com): TNS:protocol adapter error<br>&gt;<br>&gt; I've noticed that
once the db is running (started with services) i can<br>&gt; connect īn a cmd
window using the above command.
<br>&gt;<br>&gt; Any clues??<br>&gt;<br>&gt; Regards<br>&gt; GBA<br>&gt; --<br>
&gt; <a href="http://www.freelists.org/webpage/oracle-l">http://www.freelists
.org/webpage/oracle-l</a><br>&gt; --<br>&gt; <a href="http://www.freelists.org
/webpage/oracle-l">
http://www.freelists.org/webpage/oracle-l</a><br>&gt;<br>--<br><a href="http:/
/www.freelists.org/webpage/oracle-l">http://www.freelists.org/webpage/oracle-l<
/a><br></blockquote></div><br><br><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>