How to startup oracle9i without using windows services 2005-07-11 - By Niall Litchfield
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> </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> </div> <div>thomas' approach is certainly the most common way to script the startup and shutdown of services on the windows platform. </div> <div> </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> </div> <div><br> </div> <div><span class="gmail_quote">On 7/8/05, <b class="gmail_sendername">Vlad Sadilovskiy</b> <<a href="mailto:vlovsky@(protected)">vlovsky@(protected)</a>> ; 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 <ORACLE_SID ><br><br>Wait for "Hit any key to exit server:"<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=<ORACLE_SID ><br>sqlplus "/ as sysdba"<br>startup<br>exit<br><br>- Vladimir<br> <br>On 7/8/05, Mercadante, Thomas F (LABOR)<br><<a href="mailto:Thomas .Mercadante@(protected)"> Thomas.Mercadante@(protected)</a>> wrote:<br>> I don't think this will work. Sqlplus will not work without the services running.<br> ><br>> GBA, another way to do this:<br>><br>> When the database is up, do the following: <br>><br>> Net start | more<br>><br>> Look for the name of the Oracle service that is running. It will be something like OracleServiceSID.<br>><br>> From the Dos prompt, you can:<br>><br>> Net start OracleServiceSID <br>><br>> You can also<br>><br>> Net stop OracleServiceSID.<br>> ;<br>> Hope this helps.<br>><br>> Tom<br>><br>><br>> ---- -Original Message-- --<br>> 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>> Sent: Friday, July 08, 2005 10:43 AM<br>> 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> > Subject: RE: How to startup oracle9i without using windows services <br>><br>> Hi,<br>><br>> 1. Set ORACLE_SID and ORACLE_HOME on command prompt<br>> 2. sqlplus<br>> 3. startup pfile='/path/to/oracle /prameter/file.ora'<br>><br>><br>> Its been a while i worked on windows database, but i guess this should allow <br>> you to start the database.<br>><br>> PS: Try "tnsping < ;tns-alias-to-your-oraclesid>" to see if your TNS setup is fine.<br>> <br>> Regards,<br>> Madhu<br>><br>><br>> -- --Original Message--- -- <br>> From: <a href="mailto:oracle-l-bounce@(protected)">oracle-l-bounce @(protected)</a><br>> To: <a href="mailto:oracle-l@(protected)">oracle-l @(protected)</a><br>> Sent: 7/7/2005 11:56 PM<br>> Subject: How to startup oracle9i without using windows services <br>><br>> Hi list, i would like to know how you guys do to startup oracle9i in<br>> winxp without using the windows services. I'm trying with a cmd window<br>> using:<br>><br>> sqlplus / nolog -- That's ok <br>><br>> connect / as sysdba -- Getting this error<br>> ERROR:<br> > ORA-12560 (See ORA-12560.ora-code.com): TNS:protocol adapter error<br>><br>> I've noticed that once the db is running (started with services) i can<br>> connect īn a cmd window using the above command. <br>><br>> Any clues??<br>><br>> Regards<br>> GBA<br>> --<br> > <a href="http://www.freelists.org/webpage/oracle-l">http://www.freelists .org/webpage/oracle-l</a><br>> --<br>> <a href="http://www.freelists.org /webpage/oracle-l"> http://www.freelists.org/webpage/oracle-l</a><br>><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>
|
|