.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  

comments in line
On 7/11/05, Vlad Sadilovskiy <vlovsky@(protected)> wrote:
>
> I wonder if you know why this person needs what he/she asks for? And
> of course you can and will use any undocumented means if you are in
> need.

Hmm, but I didn't see any note that said that your method ran
Oracle.exeunder different credentials to normal , at a different cpu
priority and
requires the server to be left logged on at the console for the database to
continue.

For instance, Oracle puts start up script/link in /etc/rc*.d
> folders on *ix boxes. Will you always consider starting/shutting
> Oracle instances with those scripts? Why is the Windows any different?

I don't really care where the startup *scripts* go[1], but would you run
oracle as root on unix? or as an end-user account.

In this (software,hardware) world you can do anything if you know how
> it works. The only question whether it is really necessary to use
> undocumented means.

Well I'd first ask the question does a documented and supported method
allow for the business need to be met. I'd likely if the answer were no then
ask questions about the business need before hacking around on a production
system. Here there are at least two supported and documented ways of
scripting service control in general and a further oracle specific utility
for the task.
 
- Vladimir
>
> On 7/11/05, Niall Litchfield <niall.litchfield@(protected)> wrote:
> > 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 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
> > >
>



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

comments in line<br>
<div><span class="gmail_quote">On 7/11/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">I wonder if you know why this person needs
what he/she asks for? And<br>of course you can and will use any undocumented
means if you are in
<br>need. </blockquote>
<div>&nbsp;</div>
<div>Hmm, but I didn't see any note that said that your method&nbsp;ran Oracle
.exe under different credentials to normal ,&nbsp;at a&nbsp;different cpu
priority and requires the server to be left logged on at the console for the
database to continue.
</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">For instance, Oracle puts start up script
/link in /etc/rc*.d<br>folders on *ix boxes. Will you always consider starting
/shutting
<br>Oracle instances with those scripts? Why is the Windows any different?<
/blockquote>
<div>&nbsp;</div>
<div>I don't really care where the startup *scripts* go[1], but would you run
oracle as root on unix? or as an end-user account. </div>
<div>&nbsp;</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">In this (software,hardware) world you can do
anything if you know how<br>it works. The only question whether it is really
necessary to use
<br>undocumented means.</blockquote>
<div>&nbsp;</div>
<div>Well I'd first ask the question does a documented and supported method
allow for the business need to be met. I'd likely if the answer were no then
ask questions about the business need before hacking around on a production
system. Here there are at least two supported and documented ways of scripting
service control in general and a further oracle specific utility for the task.
</div>
<div>&nbsp;</div>
<div>&nbsp;</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">- Vladimir<br><br>On 7/11/05, Niall
Litchfield &lt;<a href="mailto:niall.litchfield@(protected)">niall.litchfield
@(protected)
</a>&gt; wrote:<br>&gt; I've been watching all this with some incredulity.<br>
&gt;<br>&gt; services are the appropriate technological approach to use for
background<br>&gt; processes (like the Oracle.exe process) on the win32
platform. You should
<br>&gt; use them where provided, and encourage your third party vendors that
write<br>&gt; for the win32 platform to use them as well.<br>&gt;<br>&gt;
thomas' approach is certainly the most common way to script the startup and
<br>&gt; shutdown of services on the windows platform.<br>&gt;<br>&gt;
generically you have another approach which is to use the windows management<br
>&gt; instrumentation interface, start here for information<br>&gt; for oracle
you also have the option of calling
oradim.exe to start and stop<br>&gt; the database.<br>&gt;<br>&gt;<br>&gt;<br>
&gt; On 7/8/05, Vlad Sadilovskiy &lt;<a href="mailto:vlovsky@(protected)">vlovsky
@(protected)</a>&gt; wrote:<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; Actually
you can run it without the starting the service. If you can
<br>&gt; &gt; peek inside the service you'd see what command line it uses to
start<br>&gt; &gt; Oracle. The command is:<br>&gt; &gt;<br>&gt; &gt; %ORACLE_
%HOME%\bin\ORACLE.EXE &lt;ORACLE_SID&gt;<br>&gt; &gt;<br>&gt; &gt; Wait for
&quot;Hit any key to exit server:&quot;
<br>&gt; &gt;<br>&gt; &gt; If it finds corresponding registry key and you have
autostart<br>&gt; &gt; configured, then it'll bring your DB up. Otherwise, you
'll need to do<br>&gt; &gt; following from the other CMD window.
<br>&gt; &gt;<br>&gt; &gt; set ORACLE_SID=&lt;ORACLE_SID&gt;<br>&gt; &gt;
sqlplus &quot;/ as sysdba&quot;<br>&gt; &gt; startup<br>&gt; &gt; exit<br>&gt;
&gt;<br>&gt; &gt; - Vladimir<br>&gt; &gt;<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>