How to monitor the success of database shutdown command

Sometimes , the "shutdown immediate" command can fail on one of our databases. We want to monitor the success of the shutdown command. If it fails, then we will issue a "shutdown abort" command. My question is: how can I monitor the success of database shutdown command?
sqlplus / as sysdba <<EOF
shutdown immediate
EOF
if failed ???? ;then
sqlplus / as sysdba <<EOF
shutdown abort
EOF
Thanks in advance for your help!

No version, no platform. How do you expect help?
And what does 'fail' mean?
A few remarks:
You can have sqlplus error out to the O/S by using whenever sqlerror exit failure
Shutdown immediate usually doesn't fail but just doesn't complete.
One would usually monitor the alert log as to check what is going on, and issue the shutdown abort in a different session.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • How to monitor the successful archive log shipment to the standby database

    Hello,
    From the primary database, which data dictionary do I view to get information whether the standby database has received and processed the archive logs from the primary database. Both databases are 11202 on linux. Another question, which views on the primary database contain a flag sent by the standby database to the primary database to let the primary database knows that the standby database is up and functional? My purpose is to query the primary database for infomation that tell me the standby database is alive and functioning. I want to only query the primary database for these information about the standby database. Thank you in advance.

    watson2011 wrote:
    Hello,
    From the primary database, which data dictionary do I view to get information whether the standby database has received and processed the archive logs from the primary database. Both databases are 11202 on linux. Another question, which views on the primary database contain a flag sent by the standby database to the primary database to let the primary database knows that the standby database is up and functional? My purpose is to query the primary database for infomation that tell me the standby database is alive and functioning. I want to only query the primary database for these information about the standby database. Thank you in advance.You can troubleshoot standby by views as
    v$managed_standby (standby)
    v$dataguard_status
    v$dataguard_stats
    Some of the new views are introduced from 11g, check below link too
    http://docs.oracle.com/cd/B28359_01/server.111/b28294/views.htm#i79129

  • How to monitor the update of database in Java

    The situation:
    if the database on the server side is updated, i need to dump the changed files to the client side immediately.
    my question:
    if only a table is changed, how can i know the specific table in the database immediately?
    thank you.

    if the database on the server side is updated, i need to dump the changed files to the client side immediately.Changed files? Hopefully you are not talking about the database files. If so then you would have to lock the database before do that.
    There are only two ways that you can be notified. The database does it or you poll. If you poll you need an indicator of some sort to indicate that an update has occurred like a record count or a field with a timestampt. The record count is risky because it presumes records will never be deleted.
    The database side solution is to add a trigger that sends a notification to you. The type of possible notifications depends on the database. A mixed mode solution is possible with this as the trigger can add a update record to a specific table which your app is polling on.
    Polling/triggers are expensive operations. They should never be used in situations where multiple clients are notified. Instead snapshots should be used.

  • How to monitor the database growth?

    Dear All,
    How to monitor the database growth in SAP.
    Is there any t.code available to check the same.
    advance thanks,
    Sundar  C
    Note: suitable answers will get maximum reward points.

    Hai,
          You can check the database growth using tcode -db02.
    and also use tcode-db02old(if the SAP is Netweaver2004s version)  and click on space statistics for monitoring the datbase growth,
    Thanks and Regards,

  • How to Find the number of Databases in a server.

    HI,
    Please tell me how to find the number of Databases are in a server . when the DB is not up.
    ps -ef | grep ora_
    This i know whether our DB is up or not. But i want to know how many databases are in a server .If the database is down .
    Cheers,
    Gobi.

    Hi,
    [oracle@oralinux admin]$ lsnrctl status
    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 01-DEC-2006 16:25:41
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    TNS-01169: The listener has not recognized the password
    [oracle@oralinux admin]$
    Plz give me the solution.
    Cheers ,
    Gobi.

  • How to get the list of database Views modifying the DB tools list tables.vi

    Hi,
    I have a problem, I just started using LabVIEW and in particular the LabVIEW connectivity toolkit and I am lookig fgor suggestion regarding how to get the list of database Views modifying the DB tools list tables.vi...
    Thanks in advance,
    Michela

    Hi Michela,
    since the VI you want to modify is part of a Toolkit, I suggest you to copy the whole block diagram in a new VI and then save it in a new location.
    Place the DB List Tables.vi on a block diagram, double click on it and go to the tab "Window -> Show Block Diagram "
    Select "Edit -> Select All" to select the whole block diagram and select "Edit -> Copy"
    Open a new VI and select "Edit -> Paste"
    Save the new VI
    In this way you can modify everything you want without overwriting the Toolkits VIs.
    Hope this can help.
    Regards, 
    Andrea N.
    Systems Engineer ATE & RF - Mediterranean Region
    National Instruments Italy

  • How to extract the Physical Query(database Query)

    Hi ,
    How to extract the Physical Query(database Query) from obiee which was fired in obiee
    Regards
    Ranga

    Hi Ranganath,
    Have a look the following links.
    Setting Logging level:
    http://gerardnico.com/wiki/dat/obiee/loglevel
    How to see physical query:
    http://gerardnico.com/wiki/dat/obiee/manage_session_log
    If you are new to OBIEE, spend some hours on the following blog to learn from basics to advanced level.
    http://gerardnico.com/wiki/
    http://obiee101.blogspot.com/
    http://www.rittmanmead.com/blog/
    Hope it helps you.
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • How to change the   Success Message  for Personal Data Screen in ESS

    Hi,
           While saving the Personal Data in the ESS  I want to chage the Success message.When I check the DC , Message Class  i am not able to find the  the particular string.Can any  one please  guide how to find the Success Message String   for this Personal Data Screen or Which BAPI  I  have to check .
    Regards
    Alexi

    Hi  iidhya ,
      Please find the code below
        public boolean onEvent( )
        //@@begin onEvent()
        String event = fpm.getEventData().getEventName();
              if (event.equals(IFPM.EVENT_ADD)){
                   wdThis.wdGetFcPersInfoInterface().setModeForCreate(selectedSubtype);
              }else if(event.equals(IFPM.EVENT_EDIT)){
                   wdThis.wdGetFcPersInfoInterface().setModeForEdit(wdThis.wdGetFcPersInfoInterface().getSubtypevalue(selectedRecord));                              
              }else if(event.equals(IFPM.EVENT_REMOVE)){
                   wdThis.wdGetFcPersInfoInterface().setModeForDelete(wdThis.wdGetFcPersInfoInterface().getSubtypevalue(selectedRecord));                              
              return true;
        //@@end
    Regards
    Alexi

  • How to restart the Successfully processed messages

    Hi,
    I have IDOC to File Scenario
    we posted the idoc from R/3 and it has processed successfully.
    Now again i want to process that idoc again with out going to R/3.
    How to restart the Successfully processed message from MONI.
    we have one option in MONI Restart. this is not working for Successfully processed messages.
    How to achieve this
    Regards
    Suman

    Hello Suman..
    XI: Restarting successfully processed messages..
    Go through this : Michal Krawczyk Blog This will really helpful to you..
    /people/michal.krawczyk2/blog/2005/11/09/xi-restarting-successfully-processed-messages
    Reward Points If it is Helpful...
    Thanks,
    Satya Kumar..

  • How to access the ms access database in the JApplet?

    I am New here.
    Please help me.
    I am create one java file to access MS access the database in the JApplet.
    It say "Access denied".
    How to access the ms access database in the JApplet?
    Message was edited by:
    SVPRM

    Hi,
    First of all, were u successfull in creating the connection with the .mdb file.Like settting the DSN and configuring the .mdb file path in control panel.
    If yes then one option might be that the file ur trying to access is in Read-only mode.
    regards

  • How to monitor the performances of VMs & Hyper-v Cluster host node running on SCVMM Cluster.

    hello...,
    How to monitor the performances of VMs & Hyper-v Cluster hosts node running on SCVMM Cluster from SCOM so that we can
    Identify the highest utilized(CPU and Memory ) VM on that from cluster  hyper-v host.
    Identify the lowest utilized (CPU and Memory )Hyper-v Host in the Cluster .
    After identifies VMs and Hyper-v cluster  host on SCVMM , so that we  can  proceed to do migrate the Highest Utilized VM to Lowest Utilized
    Hyper-v cluster host. 
    To identified and implement above ,what are the things I need to do or configured on SCOM.
    Thanks
    RICHA KM

    hello...,
    How to monitor the performances of VMs & Hyper-v Cluster hosts node running on SCVMM Cluster from SCOM
    so that we can
    Identify the highest utilized(CPU and Memory ) VM on that from cluster  hyper-v
    host.
    Identify the lowest utilized (CPU and Memory )Hyper-v Host in the Cluster .
    After identifies VMs and Hyper-v cluster  host on SCVMM , so that we  can  proceed
    to do migrate the Highest Utilized VM to Lowest Utilized Hyper-v cluster host. 
    To identified and implement above ,what are MPs i need to installed on SCOM for implementing
    this.
    Thanks
    RICHA KM

  • How to maintain the data  into database table

    Hi,
    experts,
    how to maintain the data  into database table

    There are several ways to maintain data in the database
    1. Use table maintanance generator . You can create this using SE11 and data can be edited through SM30.
    2. Loginto  SE11 with the specified table and check the ATTRIBUTES tab. There you can set some parameters for maintaining the database. When you set Maintain database, you edit the data thorugh SE11 it self
    3. Through Se16 as well.
    4. A small abap program can do the above task as well.
    Thanks,
    Raj
    Edited by: Rajanya Kolavennu on Feb 5, 2008 8:33 PM

  • How to display the data from database(MS access) to a textbox

    anyone know ?

    how to display the data from database(MS access) to a
    textboxThe reply hasn't changed over these years. Read the tuutorial on how to fetch the data. You can display it anywhere you feel like. :)
    http://java.sun.com/docs/books/tutorial/jdbc/

  • How to monitor the performance of EBS iAS?

    Hello All,
    I am looking for your advise on how to monitor the performance of EBS (11i/R12) iAS
    How to measure iAS worload during a certain period?
    How to know the number of iAS hits/requests?
    How to the iAS response time?
    Regards,
    Tareq

    Thanks EBSDBA and Helios for your time.
    Are there any scripts/reporting tool that helps me monitor iAS performance other than OEM for EBS?
    Note:370583.1 is very helpful in monitoring JDBC connections. Are there any similar Notes/scripts that can answer my questions:
    How to measure iAS workload during a certain period?
    How to know the number of iAS hits/requests?
    How to the iAS response time?
    Appreciating your cooperation,
    Tareq

  • How to check the success/failure of e-mail sending from Sharepoint?

    Dear Expert,
    I connect Exchange 2010 and SharePoint 2010. When user create workflow in sharepoint, it will send the email to confirm. if it's done. but I checked from user they didn't get the email. I would like to know how to check the success/failure of e-mail
    sending from Sharepoint? 
    Thank you

    By default, there is no logging mechanism in SharePoint for outgoing mails.
    Mails in SharePoint are sent by giving an SMTP sever IP address in Central Administration. SharePoint never sends email directly. It relays or routes mails to the SMTP server. So, logging should be done in the SMTP server itself.
    There is also another way of doing it. You can enable SMTP service of IIS for sending emails from SharePoint, which would also just relay the mails to an SMTP Server. But in this case, you can enable logging in your IIS SMTP Service. Please visit this blog
    for more details.
    In your case you need to check your exchange server for any failure for relaying mails.
    Regards, Vikas Patel

Maybe you are looking for

  • Selling third party products

    Hi! We are a bunch of engineering students . Our aim is innovation. Initially we are planning to design, produce and market cases for iPhone. Would you please guide us in the procedure to sell in apple store. Thank you.

  • Multiple AIR apps with the same local cache?

    Hi guys, Is it possible to create multiple AIR apps (for mobile & desktop) that can use the same local cache? For example: 2 apps for iPad will use the same data store (local cache). If we synchronize (with LCDS) and get all the data for 1 applicatio

  • I bought a new camera - Its very nice, but you can not take any pictures

    Thats how I feel about Apple TV. I have talked to Apple support a couple of times about slideshows no longer work with settings from iPhoto. (Q-movie is NOT an option). The apple people tells me they never heard about the problem. I bought my ATV jus

  • Undeliverable Mail \ Unknown Exception

    I am seeking assistance in identifying the cause of an issue that results in undeliverable email when using cfmail.   On occasion (4 to 12 times in a 24 hour period) an email will be determined to be undeliverable and will be transferred to the /Unde

  • Can an unactivated Apple Id account be deleted?

    AN activation email has been sent to me other email account but I don't want another apple I'd it has the link to confirm it but I can't report te email and now I cant use my other email in my main account because it says "this email is already taken