How to Start/Stop manually an oracle 9i database with a bat file?

Hi;
I have a manual Start/Stop of the db.
How can i Start/Stop the 9i database all services with a batch file (windows 2000) ?
All in one batch files ( One for Start & one for Stop)(Including listener)
thanks for your answer !

Save the scripts below in a batch file and use the first one to start your services, and the second one to shutdown.
This script will shutdown your database first using SQL*Plus and stop the service later. This way you will avoid the timeout.
Also will ask you for confirmation if you are sure to start Oracle services and database. press Y for yes and N for No.
@echo off
%systemdrive%
REM #
echo.
echo You are about to start Oracle Services and Database
echo.
set /p Input=Do you want to continue? (Y=Yes N=No) =
IF /i "%Input%"=="Y" (goto Proceed)
exit /b
:Proceed
echo Oracle Instance and Services Startup in progress
echo.
Net start OracleOraHome92Agent
Net start OracleOraHome92HTTPServer
Net Start OracleOraHome92TNSListener
Net Start OracleMTSRecoveryService
Net Start OracleServiceORCL
echo.
echo Oracle ORCL Instance and Services Startup completed Successfully
echo Good Bye
echo on
EXIT /BSave this one in a seperate batch, again it will ask for confirmation, and shutdown the database using SQL to avoid timeout
Just replace the connect string with your own and the {SID} with your Database name
@echo off
%systemdrive%
echo.
echo You are about to shutdown Oracle Instance and Services
echo.
set /p Input=Do you want to continue? (Y=Yes N=No) =
if /i "%Input%"=="y" (goto Proceed)
exit /b
:Proceed
echo.
echo Closing and Dismounting ORCL Database
echo.
echo shutdown immediate | sqlplus "/ @ORCL as sysdba"
echo.
echo Shutting down Oracle system services
echo.
Net Stop OracleService{SID}
Net Stop OracleOraHome92HTTPServer
Net Stop OracleOraHome92TNSListener
Net Stop OracleMTSRecoveryService
Net Stop OracleOraHome92Agent
echo.
echo Oracle Instance and Services Shutdown completed successfully
echo Good Bye
echo on
EXIT /bTony Garabedian

Similar Messages

  • How to start manually an oracle 8i database with a bat file?

    Hi all,
    I know it's not the place but it is a really common question: how can i start manually an oracle 8i database on windows 2000 without using a service? I don't remember the command. I tried: oracle start SID without success...
    Thanks
    JMi

    Dear JMD,
    If you would like to startup the Oracle instance using a batch file then first create a SQL file (say ABC.SQL) wherein enter the following two lines:
    connect internal/<INTERNAL_PASSWORD>
    STARTUP
    <INTERNAL_PASSWORD> above is the password for the INTERNAL user account (default password is "oracle")
    Then create a batch file (say START.BAT) and enter the following single line:
    <ORACLE_HOME>\bin\svrmgrl @<ABC_DIR>\ABC.SQL
    where <ORACLE_HOME>\bin\svrmgrl is the full path of the SVRMGRL.EXE executable and <ABC_DIR> is the directory in which you have placed the ABC.SQL file.
    Now you can startup the Oracle database by simply double-clicking on the START.BAT batch file.
    Ciao!
    null

  • How to Start / Stop Oracle Applications

    How to Start / Stop Oracle Applications.
    Oracle Applications Services (TCF, ConcManagers, Metric, Forms, Reports etc...) TnsListner & Oracle Service (DB) are started when the Server is started.
    What is the sequential Order to Start / Shutdown services, Listener & DB.
    Best regards,

    hi
    there is no hard coded rule on which service should be started first.
    the basic thing is concurrent manager uses database for starting, so i advice you the following sequence:
    1. start the database
    2. start the database listener
    3. Apache server
    4. forms server
    5. report server
    6. concurrent manager
    and shutdown in the reverse order
    simple
    regards
    srinivas

  • How do starting/stopping of application services differ in R12 ??

    How do starting/stopping of application services differ in R12 when compared to 11i ??
    Can I start/stop services using opmnctl ??

    Can you plese refer me a document where role of OPMN and OC4J in R12 is mentioned ??? In short:-
    OPMN - Oracle Process Manager & Notification Server is component in Oracle Application Server (10g) to manage (start/stop/status) Application Server components (HTTP, OC4J)
    For more:-
    http://download.oracle.com/docs/cd/B14099_19/core.1012/b13996/intro.htm
    OC4J -- oracle container for java.
    In R12 we have 3 groups of OC4J's.
    oacore OC4J - framework based applications
    forms OC4J - forms based applications
    oafm OC4J - Fusion Middleware - for mapviewer, webservices, ascontrol.
    For more, pls read
    http://download.oracle.com/docs/cd/B10464_05/web.904/b10326/intro.htm
    thanks,
    JD

  • How to Start/Stop from Server Manager

    Hello,
    I am trying to figure out how to start/stop/restart my coldfusion servers from server manager.  I have seen the instruction at this link:
    http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSfd7453be0f56bba4-2a6b48f122a6582c7f-7ff e.html
    However it mentions "place the jrunappstartup.war file under the directory <CF_Home>/runtime/servers/admin"
    I do not know where to get this file from.  Please help!
    I am running ColdFusion standalone.
    Any help is much appreciated,
    Thanks,
    David

    An update to eariler posting. Configure CF9 Enterprise multiserver.
    Likewise unable to find jrunappstartup.war file mentioned.
    If I follow the instructions and try configure the SM Start Stop Details the Start Stop Restart
    does not become an highlighted option.
    Here are a couple screen cuts for interested readers-
    Start Stop Details (are these correct Jrun items to fill in?):
    Unable to restart from SM:
    Regards, Carl.

  • How to start/stop report server?

    Dear memebers,
    when i restart my machine the report don't run. and give the following errro: frm-41213 unbale to connect to the report server.
    how to start/stop the report server?
    i have installed the DS 10g.
    Thanks
    Muhammad Nadeem
    [email protected]

    I try to find same solution from three month , i think first you intsall report server
    and check that if in server/conf folder rep_<hostname> file is there than your report is running with in process method in that you are not able to run report with report server , if you get solution than please give me the same

  • How to start/stop Event Mgr. and RFID information server?

    I take over our form RFID admin (who quit) position.
    I cannot find any document which tells me How to start/stop Event Mgr. and RFID information server.
    Even the "Sun Java System RFID Software 3.0 Administration Guide" does not have this piece of info.
    Would you please help? Points guaranteed. Thanks!

    Ashley you are still not clear to me.
    Please mention what applications are these??
    Is it SAP Event Manager??
    What is the RFID Information server??
    Is it SAP based, or some other vendor??
    How is the integration done?
    Thanks

  • How to start/stop an Xserver?

    Gurus:
    Would you please help tell how to start/stop an Xserver?
    Thanks!

    Hi Linda Li,
    Basically it depends on enviroment and If it's unix then it depends on how you configure your scripts in /etc/init.d
    1. If you are looking for on how to start & stop XServer for environment APO/LiveCache & MaxDB then below are commands
    x_server [<options>] [start]
    x_server stop
    2. If its on general UNIX then
    If you're in X and want to stop it, bring up the terminal window and type:
    init 3
    To start X from the command line, type either:
    startx
    or
    init 5
    I hope this helps you.
    Thanks and best regards
    Sekhar

  • How do I stop Launchpad renaming my App Icons with the wrong name

    How do I stop Launchpad renaming my App Icons with the wrong name (E.G. Evernote is now called Google Chrome). Also, how do I change the name back to what it is supposed to be. 
    Why do some of my app icons dissappear altogether? This feels very buggy to me.

    It sorted itself out. A glitch?

  • How to find encrypted columns in oracle 10g database

    Hi,
    How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
    my question is apart from this is there anyother views or tables?
    Thanks..

    user602872 wrote:
    Hi,
    How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
    my question is apart from this is there anyother views or tables?Hmm not which I could find,
    SQL> select * from dict where lower(table_name) like '%encrypted%';
    TABLE_NAME
    COMMENTS
    DBA_ENCRYPTED_COLUMNS
    Encryption information on columns in the database
    ALL_ENCRYPTED_COLUMNS
    Encryption information on all accessible columns
    USER_ENCRYPTED_COLUMNS
    Encryption information on columns of tables owned by the user
    SQL>HTH
    Aman....

  • Start / Stop your xMII 11.5 Server with a Widget !

    <b><a href="/people/abesh.bhattacharjee/blog/2007/04/23/start-stop-your-xmii-115-server-with-a-widget">Start / Stop your xMII 11.5 Server with a Widget !</a></b>
    Download it <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/b05124b1-70d4-2910-99b7-ab6626d31aac [original link is broken]">here</a>...

    Hi Tim,
    try to open the Java Web Start program (should be in C:\Program Files\Java\j2re1.4.2_07\javaws\javaws.exe), go to File > Preferences and under the 'Proxies' section in the  'General' tab, select 'None'.
    Then close all open browser windows and try again...
    Note that disabling proxy servers in the Java Web Start tool will not affect normal Java Applets, which are handled by the Java browser plugin which comes with its own proxy configuration screen. If you company uses a proxy between its LAN and the net, the above setting will stop your uses from running any Java Web Start applications, such as BLE, but  not very many people use these anyways, so the impact should be minimal.
    Good luck,
    Sascha
    P.S. If your users also have the JDK, then the javaws.exe binary is also found in C:\j2sdk1.4.2_07\jre\javaws.
    Message was edited by:
            Sascha Wenninger

  • How can I STOP Firefox from being a glutton with my virtual memory?

    How can I STOP Firefox from being a glutton with my virtual memory?

    Yes. But, I see from the THOUSANDS of responses here concerning Firefox memory issues that other people have had no more success than I have at trying to STOP Firefox's memory gluttony. The fact that Firefox runs fine (like the good old days) for a while after re-booting and registry cleaning shows that something is going on beyond the trivial/ineffective suggestions offered in the referenced links.
    Having to re-boot several times a day to get Firefox out of the molasses is such a pain, that it's no wonder people are going back to IE, or like me, reluctantly relying more and more on Google Chrome.

  • Installing Oracle 9i Database with Oracle Developer 6i

    I'm trying to install Oracle 9i Database with Developer 6i for study purpose, but I can not connect from Oracle FORM Designer or REPORT Designer to Oracle Database, I would really appreciate if any one of you could tell me how to put them into work together.
    Thanks

    Yes, you can install. Install Oracle 9i DB and D2k on different HOME. Then, configure D2K tnsnames.ora as per 9iDB tnsnames.
    it will work, and works fine for me.
    Pramodu. C. P

  • How to start/stop  oracle 9i databases in aix

    please provide me details steps of start/stop oracle 9i database in aix . we have four nodes .So i would like to know the steps of shutting down database including all nodes & also starting up and any prerequisite?
    Edited by: apusumit on Jun 10, 2011 5:32 AM
    Edited by: apusumit on Jun 10, 2011 5:35 AM
    Edited by: apusumit on Jun 18, 2011 7:01 AM

    apusumit wrote:
    please provide me details steps of start/stop oracle 9i database . we have four nodes .So i would like to know the steps of shutting down database including all nodes & also starting up and any prerequisite?
    Edited by: apusumit on Jun 10, 2011 5:32 AMrefer the link:-
    http://www.puschitz.com/InstallingOracle9iRAC.shtml#StartingAndStoppingOracle9iClusterManager
    also,
    please post the question in
    Forum Home » Grid Computing » Real Application Clusters
    Good Luck.

  • How to start, stop and restart task

    Hello Everyone,
    Need advice on what is the correct way to start, stop and restart a Java task?
    I have tried with Executors.newCachedThreadPool() or fixedThreadPool() however I was only able to submit the task once. My program crashed when i tried to resubmit the task again after a shutdownnow command()

    Tasks are designed to be run once. If you want restart functionality, use a service:
    http://docs.oracle.com/javafx/2/api/javafx/concurrent/Service.html
    The sample service I posted in the following thread demonstrates how to do this:
    Multithreading
    Use of Executors is not necessary as a Service encapsulates the execution thread management (though you can set your own executor on the service if you really needed it). All you need to do is make use of the service start, cancel, restart and reset methods as required. If you do use the cancel method, then you need to make sure that your service is properly interrupt aware for the cancel to function as you expect.

Maybe you are looking for