Read last shutdown information

Hello.
Where can I read information about last shutdown (a type of shutdown - normal, transactional, immediate, abort ...)?
Thanks.

Hi,
In that case you can write a startup and shutdown trigger on the database.
In the shutdown trigger,
-You would add a record in your table (say log table), all the details which you need to analyze by your client application.
The below is optional if you want to check for abort condition.
In the startup trigger.
-You would add a record about the timing of the startup of the database.
- Moreover you would also check the last inserted record. If the last inserted record was that of startup. This would mean that the last shutdown was not a clear shutdown could be a result of crash/abort (As it does not fire the shutdown trigger). If this is the case you would make a entry of shutdown here (time of shutdown would not be known but you can do approximation from v$log / v$archived_log).
Regards
Anurag Tibrewal.

Similar Messages

  • Missing shutdown information

    Hello guys,
    After system upgraded 2 days ago my archlinux doesn't show shutdown information on screen when I reboot/shutdown the system. The only thing on the screen is the login prompt for vc/1, so I tried to switch to other virtual consoles and found the shutdown information is printed to vc/7.
    How can I get back my shutting down information? I checked rc.shutdown and found it does nothing to do with this problem. I suspect there could be something wrong with gdm configuration?
    Sorry for my English, if anyone understand could you please help?
    Thank you!
    Best regards,
    Kazte
    Last edited by Kazte (2008-10-24 05:45:31)

    To azleifel,
    I just found out why I'm  having this problem.  Getting vc/1 when shutting down/reboot has nothing to do with the bonob-activation-server connection error recorded in the user.log file. They are 2 different problem.
    My getting vc/1 when shutting down is because I added gdm as daemon in the /etc/rc.conf, just as written in the wiki page. It's out of date!  You don't need to add gdm as daemon in the rc.conf file, instead you should remove gdm daemon in the rc.conf file and edit the /etc/inittab,  change default runlevel to 5, and set the login manager to your own. After doing this I no longer get vc/1 when rebooting and can see the shutdown information now.
    As for the bonobo-activation-server error, it's something wrong with dbus but it doesn't do me any harm for now, so I decided not to touch any other parts of the system and leave it there. Hope the developers can fix this issue in the future updates.
    Anyway , thanks for the information on the PolicyKit problem~~
    Last edited by Kazte (2008-10-26 02:58:56)

  • "Error reading reporting point information" message no. RM111

    Hello friends,
    I am doing the Reporting point backflush for a material and getting the error "Error reading reporting point information", message no. RM111.
    i have given the milestone confirmation for the last operation in the rate routing for that material.
    Even in REM Profile, Mandatory Reporting time backflush is activated.
    In the production version of that material i have given the group of rate routing created for that material in Rate Routing field.
    I have created the product cost collector for that material and production version. With costing lot size 1, even i have calculated the cost for that product cost collector. Though regarding costing couple of errors came, than also i saved it.
    I am not sure whether system has created the reporting point while creating the product cost collector.How to check it?
    Now for that material we have created the planned order.
    Now when i am doing the backflush in MFBF t.c  by giving the material code,plant and production version, system is throwing the error " Error reading reporting point information.
    Thanks and Regards,
    Jitendra

    Hello siva,
    i executed the transaction MF30 as suggested by you, there system displayed following costing errors:
    "No control record for Activity type PLVD/1301/ASBY in version 000 / 2010 activity planning/qty planning
    Message no. KL023
    Diagnosis
    No activity planning or quantity planning has been carried out for Activity type PLVD/1301/ASBY in version 000 and fiscal year 2010.
    Procedure
    Activity Type Planning for cost centers or
    Planning Quantities and Prices for business processes.
    Even system is not picking the component prices, system throwing the error NO price could be determined for the material and  batch so and so.
    We are using the Preliminary cost estinmate.
    is because of this system is not able to create reporting point in product cost collector?
    Please Replay

  • When I go to System Preferences Network "Click the lock to make changes",... it ALWAYS UNLOCKED.   That is even if I have locked it before last shutdown. Should it not stay locked until I unlock it again as administrator?

    When I go to
    System Preferences > Network > "Click the lock to make changes",...
    It is ALWAYS UNLOCKED.
    That is even if I have locked it before the last shutdown.
    Should it not stay locked until I unlock it again as administrator?
    PJ  (Pjflyer)

    From the menu bar, select
     ▹ System Preferences... ▹ Security & Privacy ▹ General
    If there's a closed padlock icon in the lower left corner of the preference pane, click it and authenticate to unlock the settings. Enter your login password when prompted.
    Click the Advanced button and check the box marked Require an administrator password to access locked preferences in the sheet that drops down. Then click OK.

  • IPhone not updating "last played" information in ITunes (Mac OS X 10.4.10)

    When I listen to a podcast on my iPhone in its entirety, it doesn't show up as having been played in iTunes, and the "last played" information in iTunes doesn't change. I have iTunes configured to sync all of my podcasts. This works great on my iPod but not on my iPhone. I am using iTunes 7.3 (54). Does anyone know what the issue is and how to fix it? Thanks.

    I don't know what happened, but it started working properly later on.

  • Read "last changed" data from AL11 into BSP page

    Hi all,
    I'm looking for a way to read the following information from the application server
    Last change             Creator     Name
    17.07.2006 09:19:58     cbdadm      file1.csv
    27.05.2003 10:53:11     cbdadm      file2.csv
    13.07.2006 17:01:30     cbdadm      file3.csv
    I want to see for a number of filenames, when it was last changed, but I don't know where to get this data? Is it stored in a table? And how should I read this data?
    I see that a program named RSWATCH0 is generating the required output for transaction AL11...maybe this is helpful?
    The following code works in ABAP, but I need to use this in BSP... is this possible somehow?
    REPORT ZUPLOAD_TIME .
    TABLES epsf.
    PARAMETERS dir  LIKE epsf-epsdirnam.
    PARAMETERS file LIKE epsf-epsfilnam.
    DATA mtime TYPE p DECIMALS 0.
    DATA time(10).
    DATA date LIKE sy-datum.
    CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
         EXPORTING
              file_name              = 'TESTFILE.CSV'
              dir_name               = '/usr/sap/data/'
         IMPORTING
              file_size              = epsf-epsfilsiz
              file_owner             = epsf-epsfilown
              file_mode              = epsf-epsfilmod
              file_type              = epsf-epsfiltyp
              file_mtime             = mtime
         EXCEPTIONS
              read_directory_failed  = 1
              read_attributes_failed = 2
              OTHERS                 = 3.
    PERFORM p6_to_date_time_tz(rstr0400) USING mtime
                                               time
                                               date.
    WRITE: / mtime,
           / date, time.
    thanks in advance! points will be rewarded for usefull answers
    Message was edited by: Joris Hens
    Message was edited by: Joris Hens

    In the TYPES Definition tab :
    types: BEGIN OF t_file,
            date     TYPE d,
            time(10) TYPE c.
            INCLUDE  TYPE epsf.
    TYPES: END OF t_file.
    types: tt_files type table of t_file.
    In the Page attributes tab :
    ta_files TYPE tt_files
    In the OnInitialization Event Handler :
    * event handler for data retrieval
    DATA: epsf      TYPE epsf.
    DATA: mtime     TYPE p DECIMALS 0.
    DATA: time(10)  TYPE c.
    DATA: date      TYPE sy-datum.
    CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
      EXPORTING
        file_name              = 'myfile.csv'
        dir_name               = '/usr/sap/data'
      IMPORTING
        file_size              = epsf-epsfilsiz
        file_owner             = epsf-epsfilown
        file_mode              = epsf-epsfilmod
        file_type              = epsf-epsfiltyp
        file_mtime             = mtime
      EXCEPTIONS
        read_directory_failed  = 1
        read_attributes_failed = 2
        OTHERS                 = 3.
    PERFORM p6_to_date_time_tz IN PROGRAM rstr0400 USING mtime
                                                         time
                                                         date.
    FIELD-SYMBOLS: <fs_file>  LIKE LINE OF ta_files.
    APPEND INITIAL LINE TO ta_files ASSIGNING <fs_file>.
    MOVE-CORRESPONDING epsf TO <fs_file>.
    <fs_file>-time = time.
    <fs_file>-date = date.
    In the Layout :
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = "List files on application server ">
        <htmlb:form>
        <htmlb:tableView id = "tvx"
                         table = "<%= ta_files %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Then, you still have some minor modificaions to perform on the tableView thanks to an Iterator, for instance.
    Best regards,
    Guillaume
    Message was edited by: Guillaume Garcia

  • Curve 8530 -last attemt information will be erased on failure !

    I'm german and my english is not verry good.
    I have the curve 8530 and i forgat my blackberry pin. I'm now on last attemt information will be erased on failure!
    This someone can help me how to get my blackberry pin befor i loose all my data in my curve.
    I'm in germany now and can only use (call) the unit  in U.S-but i need from my phonebook numbers and want to show some on the phon's pictures.
    It would be verry nice if someone can get me help.
    thanks' in advance
    Frank

    frankkonieczny wrote:
    I have the curve 8530 and i forgat my blackberry pin. I'm now on last attemt information will be erased on failure!
    This someone can help me how to get my blackberry pin befor i loose all my data in my curve.
    Hi frankkonieczny
    Welcome to BlackBerry Support Forums
    Device PIN are unique , I think you are refering to Device password that you have set on your device,you are correct it will erase all data if you fail on your last attempt. Don't know if you already tried you last attempt  if not then please try to  recall the password that you have set on that device because there is no other way to retrive the password or to stop the wipe function after your last attempt. I think you might have a mixture of different characters in your password,and you are not able to properly enter those on the BlackBerry  keyboard. For example , if your password is
    frank123
    And you enter  f > r >a >n > k >  alt > 1>2>3
     the actual result will be
    frank1er
    You must enter
    f > r  >  a  >n > k >  alt > 1 > alt > 2 > alt > 3
     to get frank123 on your device.
    So, while on the BlackBerry  keyboard you think you are typing frank123, you are actually typing frank1er . Please try it again and make sure what you are typing .
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Read IDOC WMMBID02 information and compare inventory data with SAP

    Hi All,
    Here is an explanation of the issue:
    I need to read the data from an inbound IDOC, status 64, of standard type WMMBID02 and message type WMMBXY. I do not want to post the IDOC, but only read the IDOC information which is mainly the material number, batch, status(INSMK), quantity and unit. This data I have to compare with SAP data and see if it is same for the selected material numbers. Now to read and process the inbound IDOC we have a program RBDAPP01 (BD20 Transaction) which calls the process code WMMB (WE42 transaction) which in turn calls the function module L_IDOC_INPUT_WMMBXY. This FM posts the IDOC. I have created a function module with the same import, export and tables parameters like this FM and have attached it to a custom process code ZWMMB. This function module should just read the data of the IDOC and put it in the table TB_IDOC_DATA like EDIDD (IDOC data records). I then loop into this table, extract SDATA and split it into the 3 segments of WMMBID02 and then extract my required data, MATNR, CHARG, INSMK, MENGE & MEINS.
    My Question:
    How do I trigger the process code ZWMMB so that I can read the IDOC data when it is fired (status 64), just like program RBDAPP01. Is there any standard code that can be copied and modified or how to do it???
    I have tried to be very clear with the question, please reply if the question is not clear. If I am clear, please help
    Thanks Anirban

    I am able to read the contents of the IDOC, but I need to run the FM when I fire the IDOC of message type ZWMMBXY. I have created a custome FM which will behave as a stndard FM for inbound IDOC processing.

  • I have copied over my music file to a new computer and the music shows on itunes but wont play. When I track where the song is located it is reading the wrong information. How do I change this as Edit Preferences has the right location

    I have copied over my music files to a new computer and the music shows on itunes but wont play. When I track where the song is located it is reading the wrong information. How do I change this as Edit>Preferences has the right location?

    Select one of the tracks with a broken link, press ctrl-i to Get Info. Say No when iTunes asks if you would like to locate the track, then look at the Summary tab for the location expects to find the file in.
    Now try to locate the file in question. The two locations should give a clue as to what to do next.
    Here is an example with a file I've deliberately moved from the new layout to the old pre-iTunes 9 layout.
    This means iTunes is expecting to find the file at:
    D:\iTunes\iTunes Media\Music\a-ha\Take On Me\01 Take On Me.mp3
    but it isn't there because I've moved it to:
    D:\iTunes\iTunes Media\a-ha\Take On Me\01 Take On Me.mp3
    which is where it would have lived back in iTunes 8 (though the media folder would have been called iTunes Music back then as well).
    If you can provide the expected and actual locations of a broken track I should be able to suggest the easiest way to resolve things.
    tt2

  • Which app will read the square information codes?

    which app will read the square information codes?

    Search the playstore for QR code reader - here are a few:
    QR Code Reader - Android Apps on Google Play
    QR Code Scan & Barcode Scanner - Android Apps on Google Play
    QR Code Scan & Barcode Scanner - Android Apps on Google Play

  • Error reading reporting point information

    Dear All,
    While i m  doing backflashing with the tcode mfbf recving a error messge in reporting piont this -
      Error reading reporting point information    kindlly update me how can i resolve this
    regards
    pritpal

    Dear pritpal.
    Check the rem profile at MRP view of Material master (MM02). the correct profile has been selected  sotaht it allows the RP backflush.
    To check  Rem profile allows RP back flush at OPS2.
    For Milestone confirmation  check wth controlkey which has  assigned at Routing operation (CA02)
    For Product cost collecter check with KKF6N.
    Regards
    Pradeep

  • Read SOAP Header Information

    Hello All,
    We want to read SOAP header from incoming message. We followed blog from William to use the option "Do not use SOAP Envelop". However, we are not sure if we need to modify Sender Interface to include Envelope / Header in the message structure itself.
    How to Read SOAP Header Information
    If we modify the message structure , it changes the WSDL as well and generating request message something like below :
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aif="urn://transport.nsw.gov.au/test/poc/aif">
       <soapenv:Header/>
       <soapenv:Body>
          <aif:Envelope>   <------- Added by Modifying the structure
             <Header>
                <FileType>?</FileType>
             </Header>
             <Body>
                <MessageHeader>
                   <!--Optional:-->
    How can we use  "Do not use SOAP Envelop" feature without modifying the WSDL structure?
    If we don't modify the message structure , it is failing to identify the receiver and also we would not be able to see the fields while doing graphical mapping.
    Thanks !!

    Hi,
    Did you check the namespaces in your receiver determination? In interface determination, this could be solved by creating another mapping. Which PI version are you using?
    Regards,
    Mark

  • Reading and extracting information from pdf file

    Hi everybody!
    what am looking for is Java packages which can allow me to read and extract information form pdf file
    I would really appreciate link wtih sample code
    thanks in advance!

    STFW.
    http://www.google.com/search?q=java+read+pdf&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8

  • Display Last Login Information ?

    I would like display the last login information for user after success login. I expect to show it via add a dialog or a separate JSP.
    Where can I get these information and where to add the code ?
    Thanks.

    Hi,
    Here is an SAP note talking about changing the back ground color.
    I will say take this one as starting point and hope it will help you.
    1291807
    This says...
    Go to
    Program Files\Business Objects Enterprise 12.0\warfiles\WebApps\AdminTools\
    Edit the default.css file with desired values and rename to test.css.
    Copy the test.css to
    Program Files\Business Objects\Tomcat55\webapps\InfoViewApp\res\schema.blue\
    Change the properties of the Infoview application from CMC--> Applications to show the test.css as the style sheet
    Leave the rest of the options as the default
    Restart the webi processing server
    Restart Tomcat
    Regards,
    Bashir Awan

  • Read ICC profile information of an image

    Dear community,
    for my further implementation I need some information about the ICC profile used for an actual image edited inside Photoshop. How can I read the ICC informations about an image?
    I am implementing an export plug-in and found some ICC component inside the ExportRecord struct, called:
    Handle iCCprofileData; /**< Handle containing the ICC profile for the image. (NULL if none.)
                                                Photoshop allocates the handle using the Photoshop handle suite.
                                                The handle is unlocked while calling the plug-in.
                                                The handle is valid from  \c ExportSelectorStart to \c ExportSelectorFinish
                                                Photoshop frees the handle after \c ExportSelectorFinish. */
    int32 iCCprofileSize; /**< Size of profile. */
    int32 canUseICCProfiles; /**< Non-zero if the host can accept or export ICC profiles .
                                                If this is zero, the plug-in should not set or dereference \c iCCprofileData. */
    What I am not understand:
    How can I read the iCCprofileData and which information will be delivered by the iCCprofileSize?
    For iCCprofileData I got int values like @179952120 or @179952176. They differ for every loaded image. Seems that I just read the memory address. The "Handle" points to an empty char '\0'. I have no idea how to work with the datatype "Handle" correctly ...
    For the iCCprofileSize I got integer values like 544 for the embedded profile Adobe RGB (1998), 3144 for the working color space sRGB IEC61966-2.1 or also 3144 for the embedded profile without color management:
    embedded profile  = Adobe RGB (1998) -> iCCprofileSize = 544 (or sometimes 560)
    working color space = sRGB IEC61966-2.1 -> iCCprofileSize = 3144
    embedded profile = without color management -> iCCprofileSize = 3144
    embedded profile = SWOP2006_Coated3v2 -> iCCprofileSize = 2747952
    working color space = Coated FOGRA39 (ISO 12647-2:2004) -> iCCprofileSize = 654352
    embedded profile = without color management -> iCCprofileSize = 654352
    The variable canUseICCProfiles delivers always the value 1. As well if I selected the embedded profile without color management.
    Can I infer from the iCCprofileSize which profile will be used by each image?
    Does somebody has more experience with these there members (iCCprofileData, iCCprofileSize and canUseICCProfiles) of the struct ExportRecord?
    I would be grateful for some hints.
    King regards,
    Silver

    hai,
    i paste the java source code for getting each pixel value of an image.i think that this code is usefull to you.
    import java.awt.image.PixelGrabber;
    import java.awt.Toolkit;
    import java.awt.Image;
    class getpixel2
    public static void main(String args[]) throws Exception
    Image image = Toolkit.getDefaultToolkit().getImage("D:\\one.jpg");
    if(image==null)
    System.out.println("NO FIle");
    PixelGrabber grabber = new PixelGrabber(image, 0, 0, -1, -1, false);
    if (grabber.grabPixels())
    int width = grabber.getWidth();
    int height = grabber.getHeight();
    if (isGreyscaleImage(grabber))
    byte[] data = (byte[]) grabber.getPixels();
    else
    int[] data = (int[]) grabber.getPixels();
    for(int i=0;i<data.length;i++)
    int r = (data[i] >> 16) & 0xff;
    int g = (data[i] >> 8) & 0xff;
    int b = (data[i] >> 0) & 0xff;
    System.out.println("(R,G,B)=("+r+","+g+","+b+")");
    public static final boolean isGreyscaleImage(PixelGrabber pg)
    return pg.getPixels() instanceof byte[];
    }

Maybe you are looking for