Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to startup oracle9i without using windows services

Re: How to startup oracle9i without using windows services

From: Niall Litchfield <niall.litchfield_at_gmail.com>
Date: Mon, 11 Jul 2005 13:58:45 +0100
Message-ID: <7765c89705071105581c7d7ea0@mail.gmail.com>


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_at_gmail.com> 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_at_labor.state.ny.us> 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_at_freelists.org [mailto:
> oracle-l-bounce_at_freelists.org] On Behalf Of Vajrala, Madhusudana R.
> > Sent: Friday, July 08, 2005 10:43 AM
> > To: 'GBA-DBA '; 'oracle-l-bounce_at_freelists.org '; '
> oracle-l_at_freelists.org '
> > 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_at_freelists.org
> > To: oracle-l_at_freelists.org
> > 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: 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

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Jul 11 2005 - 08:00:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US