Oracle Shutdown/Startup Batch

I need to create a batch file where I can shutdown and startup Oracle 10g database on Windows Server 2003.

Is there any reason why you cannot use the services in Windows?
Find the service:
sc query | findstr Oracle
Stop the service:
sc stop <nameOfService>
To see the status:
sc query <nameOfService>
Start the service:
sc start <nameOfService>
You can also see the status in services (services.msc).

Similar Messages

  • Shutdown startup of oracle vm

    Hi experts
    I am new to VM
    Could you let me know the shutdown startup process for oracle vm manager/server on windows and linux
    thanks

    Hi,
    Not sure precisely what you are after here, but....VM Server is your xen based hypervisor that hosts your guest virtual machines. VM manager is the web based tool you use to mange your guests and to some extent you VM Server.
    In my config, I have VM Server running on a machine - it installs as the only OS. In this I have two guest machines installed.
    My VM manager is installed in a OEL5 guest on virtualbox.
    You can start the VM Manager independently of the Server if the manager isn't installed on the Server. Basically it will show the status of all know servers and guests; in my setup, I have to boot the VM Server manually and then I can connect to it from the VM manager and start / stop the guests
    This concepts are clearly shown in the VM v3.x manual.

  • DATABASE SHUTDOWN 후 STARTUP시 ORA-7445가 발생하면서 OS PROMPT로 빠짐

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-10
    DATABASE SHUTDOWN 후 STARTUP시 ORA-7445가 발생하면서 OS PROMPT로 빠짐
    =====================================================================
    Server Platform : Sparc Sunw Ultra Enterprise 10000
    (CPU 44개, Main Memory 9 Megabytes)
    ORACLE RDBMS 7.3.3.4
    ORACLE PARALLEL SERVER 환경
    Sun Cluster Volume Manager 2.0
    DB size : 약 1.2 Terabytes (=1200 Gigabytes)
    관련 TAR : 9168089.7
    조치 내역 :
    1. init.ora에 다음의 event와 hidden parameter를 설정
    1) event="10210 trace name context forever, level 10"
    (Data Block Integrity를 check, Refer to Note 21184.1)
    2) event="10211 trace name context forever, level 10"
    (Data Block Integrity를 check, Refer to Note 21185.1
    3) dbblock_cache_protect = true (Refer to note18144.1)
    corrupt된 block이 memory에 load되는 것을 방지
    2. Startup mount 후 recover database를 실행
    ORA-600[6593] [26]발생 - Detection of block corruption
    3. alter database open 실행
    ORA-1578 file#88 block #172628 발생 하였으나
    ORA-7445 없이 open됨
    (문제가 되는 특정 테이블과 데이타 블럭 발견)
    4. 위의 file block에 data를 확인하기 위하여 block dump를 함
    "Alter session set events 'immediate trace name
    blockdump level xxxxx"
    ( xxxxx는 Data Block Address 값의 decimal 값)
    - Block dump에 있는 hexa값을 ascii로 변환
    5. corrupt된 block을 제외한 data를 recover하기 위하여 새로운
    tablespace를 생성 후 다음 실행.
    "Insert into (TABLEA) select * from (TABLEB)
    where index_column > ' '
    and rowid not like 'corrupt된 row의 rowid들';"
    (TABLEA는 corrupt되지 않은 row들을 제외한 나머지 row들을
    포함할 새로운 테이블이고, TABLEB는 corrupt된 row들을 갖고
    있었던 기존의 테이블)
    6. 새로 생성한 테이블의 데이타 확인한 후 기존의 corrupt된
    테이블 drop시킴
    7. 새 테이블을 rename하여 기존의 테이블 이름과 같게 함.

  • Startup batch file not working on WinXP S.P.2

    I have Oracle database release 10.1.0.2.0. And until recently, it started up and shut down easily from 2 batch files that I used. Luckily, although they don't work now, I can still open Oracle by using the [ Administration Tools | Services ] tabs and manually start the required services. When I click on my startupOracle.bat file now - the dos window that appears seems to zoom by so fast - and nothing gets started. So, of course, I'm relieved that I can still operate
    Oracle software. I'm wondering if the fact that the batch files aren't working is a symptom of another ( general computer ) problem I might have. Here is the startup batch file which used to work , but not now
    startupOracle.bat
    @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 OracleCSService
    Net start OracleDBConsoleorcldata
    Net Start OracleOraDb10g_home1iSQL*PLUS
    Net Start OracleOraDb10g_home1TNSListener
    Net Start OracleServiceORCLDATA
    echo.
    echo Oracle ORCL Instance and Services Startup completed Successfully
    echo Good Bye
    echo on
    EXIT /B

    Hi there,
    Thanks for getting back to me.
    Suddenly everything started working and I hadn't pushed out any fixes to users and it just started to work again.
    Anyway I am just relieved.
    Thanks
    John
     John Mackay | Support Services Manager
     HISTORIC HOUSES TRUST OF NSW
     The Mint | 10 Macquarie Street | Sydney NSW 2000
     t. 02 8239 2347 | f. 8239 2422| www.hht.net.au
      Please consider the environment before printing this email.

  • Oracle shutdown properly

    Please advise. I am properly shutdown oracle with shut immediate and found that pmon process not exist, but when i am start again oracle saying oracle is already running and i check that there is no pmon process, but i am not able to start oracle with startup command then i do shut abroat then startup again then able to start oracle properly, how i can automate this in shell script and validate that oracle process shutdown properly or not. Please reply in detail, so i am able to check it properly and test it and send my feedback on it.

    nomee wrote:
    I wrote mostly technical word that's why. Anyway i can't use dbshut script, because on some servers i have multiple database hosted that's why. Please advise what is the proper way to shutdown Database after shut immediate, should i run any command that will stop other oracle process running with same database name.
    You could at least tell us what OS you are dealing with.
    Assuming *nix ..
    . oraenv   (respond with the name of your database.  THis will set ORACLE_HOME, ORACLE_SID, and PATH).
    sqlplus / as sysdba
    shutdown immediate
    exit
    You don't "shutdown Database after shut immediate," 
    "shutdown immediate"  is what shuts down the database.  What you are asking is the same as "how do I make the light go out after I turn it off".

  • Slow Shutdown & Startup on MacBookPro OS ML 10.8.2

    I have faced slow shutdown & startup on my MacBook Pro Late 2011 , OS X Mountain Lion 10.8.2 for a while.
    I have done searching for solution and had tried some but no luck.
    Could someone please help.
    Thanks!
    Below are the message from console
    Dec 24 23:07:28 --- last message repeated 4 times ---
    Dec 24 23:07:28 com.apple.launchd[1] (com.apple.ShareKitHelper[258]): Exited: Killed: 9
    Dec 24 23:07:28 com.apple.launchd.peruser.501[146] (com.apple.PackageKit.InstallStatus[394]): Exited: Terminated: 15
    Dec 24 23:07:28 com.apple.launchd.peruser.501[146] (com.apple.PackageKit.InstallStatus): Throttling respawn: Will start in 10 seconds
    Dec 24 23:07:28 com.apple.launchd.peruser.501[146] ([0x0-0x11011].com.apple.inputmethod.ironwood[203]): Exited: Killed: 9
    Dec 24 23:07:28 MacBook-Pro.local coreservicesd[26]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=143
    Dec 24 23:07:28 --- last message repeated 1 time ---
    Dec 24 23:07:28 MacBook-Pro com.apple.launchd.peruser.501[146] (com.apple.talagent[159]): Exited: Killed: 9
    Dec 24 23:07:28 MacBook-Pro.local coreservicesd[26]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=243
    Dec 24 23:07:28 MacBook-Pro.local UserEventAgent[11]: Captive: [UserAgentDied:139] User Agent @port=41995 Died
    Dec 24 23:07:28 MacBook-Pro.local coreservicesd[26]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=159
    Dec 24 23:07:28 MacBook-Pro.local coreservicesd[26]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=100
    Dec 24 23:07:28 MacBook-Pro com.apple.launchd.peruser.501[146] ([0x0-0x1a01a].com.apple.AppleSpell[235]): Exited: Terminated: 15
    Dec 24 23:07:28 MacBook-Pro com.apple.launchd.peruser.501[146] (com.apple.UserEventAgent-Aqua[149]): Exited: Killed: 9
    Dec 24 23:07:28 MacBook-Pro com.apple.launchd.peruser.501[146] (com.apple.storeagent[255]): Exited: Killed: 9
    Dec 24 23:07:28 MacBook-Pro com.apple.launchd.peruser.501[146] (com.apple.mdworker.shared.04000000-0000-0000-0000-000000000000[239]): Exited: Killed: 9
    Dec 24 23:07:28 MacBook-Pro com.apple.launchd.peruser.501[146] ([0x0-0xc00c].com.apple.iTunesHelper[185]): Exited with code: 1
    Dec 24 23:07:28 MacBook-Pro.local WindowServer[101]: CGXGetConnectionProperty: Invalid connection 38659
    Dec 24 23:07:28 --- last message repeated 4 times ---
    Dec 24 23:07:28 MacBook-Pro.local loginwindow[48]: DEAD_PROCESS: 48 console
    Dec 24 23:07:28 MacBook-Pro.local airportd[395]: _doAutoJoin: Already associated to “Internet_Mobility”. Bailing on auto-join.
    Dec 24 23:07:28 MacBook-Pro.local coreservicesd[26]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=131
    Dec 24 23:07:28 MacBook-Pro.local WindowServer[101]: CGXGetConnectionProperty: Invalid connection 38659
    Dec 24 23:07:28 --- last message repeated 4 times ---
    Dec 24 23:07:28 MacBook-Pro.local shutdown[396]: halt by Keant:
    Dec 24 23:07:28 MacBook-Pro.local shutdown[396]: SHUTDOWN_TIME: 1356361648 592277

    This fixed mine
    > sys pref
    >network
    >Advanced
    > DNS
    check DNS numbers are correct, mine was showing the router and greyed out so I added my IP specific numbers
    >Restart (not sure if you need this step but I did it)
    Page loading improved significantly from very slow to acceptable on some to blistering fast in others
    AND emails just flew out really quickly
    Also make sure you have the right ports for your IP because I had been given an alternate one to try and that upset the incoming messages
    >Mail
    >preferences
    > advanced
    > port (you can find this by searching your the help section of your IP)

  • Identifying Oracle Shutdown or session errors

    Oracle 11.1.7.0:
    We need to make our application be able to accept user requests or submissions on the queue even if Oracle is down or if Oracle is having some problems. For that purpose I need to identify specific Oracle error codes. I looked up online and found Jboss's exception sorter class. It looks something like this:
       public boolean isExceptionFatal(SQLException e)
          String error_text = (e.getMessage()).toUpperCase();
          /* Check oracle specific errors for broadcasting connectionerror
          return (error_text.indexOf("ORA-00600") > -1) //Internal oracle error
             || (error_text.indexOf("ORA-00028") > -1)  //session has been killed
              || (error_text.indexOf("ORA-01012") > -1)  //not logged on
             || (error_text.indexOf("ORA-01014") > -1)  //Oracle shutdown in progress
             || (error_text.indexOf("ORA-01033") > -1)  //Oracle initialization or shutdown in progress
             || (error_text.indexOf("ORA-01034") > -1)  //Oracle not available
              || (error_text.indexOf("ORA-02396") > -1)  //exceed ed maximum idle time, please connect again
             || (error_text.indexOf("ORA-03111") > -1)  //break received on communication channel
             || (error_text.indexOf("ORA-03113") > -1)  //end-of-file on communication channel
             || (error_text.indexOf("ORA-03114") > -1)  //not connected to ORACLE
              || (error_text.indexOf("ORA-01014") > -1)  //Oracle shutdown in progress
             || (error_text.indexOf("ORA-01033") > -1)  //Oracle initialization or shutdown in progress
             || (error_text.indexOf("ORA-01034") > -1)  //Oracle not available
             || (error_text.indexOf("ORA-03111") > -1)  //break received on communication channel
             || (error_text.indexOf("ORA-03113") > -1)  //end-of-file on communication channel
             || (error_text.indexOf("ORA-03114") > -1)  //not connected to ORACLE
             || (error_text.indexOf("TNS-") > -1)       //Net8 messages
             || (error_text.indexOf("SOCKET") > -1)     //for control socket error
             || (error_text.indexOf("BROKEN PIPE") > -1);
       }I just wanted to check if above error codes are the correct ones. I understand there are tons of Oracle error code but I am in particular interested where Oracle is down or is having some temporary problem for eg: archiver error. I am kind of not sure of how to go about figuring this out.

    I just wanted to check if above error codes are the correct ones. I understand there are tons of Oracle error code but I am in particular interested where Oracle is down or is having some temporary problem for eg: archiver error. I am kind of not sure of how to go about figuring this out.You can simulate these situations by
    1. shutting down the instance.
    2. filling the archive log destination with temporary files (which you need to clean up later).

  • Shutdown/Startup database from java

    Hi,
    I need to execute shutdown/ startup database commands from a java application. I have tried wrapping these in sql / sh file using Runtime.getRuntime().exec("z:\\sql\\shut.sql"), but keep getting:
    java.io.IOException: CreateProcess
    any ideas ?
    thanks,
    Daphna

    Hi,
    I don't see why the 11g Drivers won't work for earlier releases of the DB as long as you follow the steps in the documentation. Have you tried it?

  • Oracle.retail.reim.batch.BatchRunner: FAILED_PROCESS (2) returned from batc

    Hi ,
    I am trying to reconfigure an existing web application (Oracle Retail Invoice matching ) in eclipse.
    While running the app its throwing an error as
    oracle.retail.reim.batch.BatchRunner: FAILED_PROCESS (2) returned from batch process.
    any help would be appriciated.
    If possible tell me the steps to set up the ReIM (oracle retail invoice matching) in eclipse using OC4J server.

    To answer your question you need to indicate what batch you are trying to run. The batch would indicate what is wrong (the reason for failure) on the console. FAILED_PROCESS is just a batch failure state. Also any ReIM batch doesn’t require OC4J to be running.

  • SAPConsole tasks in shutdown & startup

    Hi,
    We are going through an upgrade process and about to go live, can some one tell about SAPConsole tasks in shutdown & startup checklists like.
    1) What needs to be done.
    2) When it needs to be done.  (Before, shutdown, reconnect, initial checks, business validation, after.)
    3) Dependencies on other tasks.
    If there are detailed how-to instructions, please let me know.
    Thanks,
    Mike

    done...no help needed.
    Thanks

  • Power Shutdown/startup Process

    We are going thru building power maintenance activity and my question is, is there any Cisco recommened or process or practicse for shutdown/startup the Telepresence devices and VCS, TCS, MUC.

    Hi Mahesh,
    We need to follow standard procedure as mentioned in the admin guides, like for VCS it is (Maintenance > Restart and then click Restart System )
    HTH
    Manish

  • Oracle shutdown notification (OracleNotification) code sample

    Hi,
    I'm looking for a code sample demonstrating the use of OracleNotification for catching Oracle shutdown events.
    Thanks
    Philippe

    Hi,
    I'm looking for a code sample demonstrating the use of OracleNotification for catching Oracle shutdown events.
    Thanks
    Philippe

  • Automating oracle applications startup and shutdown

    can some one share as to how we can start and stop oracle application automatically in linux

    Check the following thread:
    Automating shutdown and startup procedure in oracle apps
    Re: Automating shutdown and startup procedure in oracle apps

  • Oracle Automatic Startup & Shutdown

    My automatic Database startup/Shutdown script won't work while system reboot. I have Oracle 8.1.7/Sun solaris. When I ran the script by hand it works fine both for startup and shutdown but not while system reboot. I am putting the script in the proper run levels rc0.d and rc3.d.
    even /etc/rc0.d/K01oracle and /etc/rc3.d/S90oracle is working fine.
    Could someone please tell me what am i missing.
    Appreciate your help
    -Jay

    Hi,
    Have you settled your issue? I would think the problem was caused by the environment under which the script was run. Normally the rc scripts are run as root and the PATH will not be set to run Oracle executables. So inside the script if you run the startup script as the user who has execute permission to the Oracle executables and whose path is SET in .profile then it should work.

  • Oracle 9 startup and shutdown

    i have installed oracle9. there is not Svrmgrl file in Bin folder as like Oracle 8 and 8i. how i start and shut down databse in oracle 9.

    use sqlplus utility and connect as sysdba
    example:
    sqlplus sys/pw@sid as sysdba
    startup

Maybe you are looking for

  • Sending/Receiving Picture Texts

    Can someone please help? When I receive a picture text it says "get media content now" but when I tap on that it just dings and displays the same message. Also, I can't send out picture texts. It just says, "unable to send". I had this fixed once but

  • 10.2.0.4 to 11.2.0.1.0 on HP-UX

    Hi, On one HP-UX Server, I have two homes. One home is of 10.2.0.4 and the other is of 11.2.0.1.0. There is one database ORCL in 10.2.0.4 home. I want to upgrade this database to 11.2.0.1.0. I want to use 11.2.0.1.0 home to upgrade the database ORCL.

  • Bought and installing Logic X hope to use all my Pro Tools Stuff with Logic X to reduce the learning curve

    Bought and installing Logic X hope to use all my Pro Tools Stuff with Logic X to reduce the learning curve for my Wife who is not very computer savy All her music  is 96K and degitized with Pro Tools from analoge 16track tape.

  • Working with AVCHD & P2 in FCP6

    Working with AVCHD & P2 in FCP 6.  I brought the P2 in via Log & Transfer.  I converted the AVCHD to ProRes 422 with ClipWrap (renamed the files with NameChanger) & then imported the .mov files into FCP.   I just wanted to make sure this sounded like

  • Cryptotools - Passphrase

    hi experts, to add a credential entry in credentialstore.xml, I use the cryptotools without encrypting the password, everything works well. however, when password is encrypted with Passphrase, there are problems. in these samples, the Passphrase is a