Check the last time database was shutdown

how do I check to see the last time the database was shutdown?

alert log is good source
you can first create a external table base on alert log
something like this
CREATE TABLE alert_ext
text_line varchar2(255)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY bdump_dir
ACCESS PARAMETERS
records delimited by newline
fields
REJECT ROWS WITH ALL NULL FIELDS
LOCATION
'alert_etest.log'
Then run this query (credit to Tom)
SQL> l
1 select last_time, start_time, start_time-last_time days
2 from (
3 select to_date(last_time, 'Dy Mon DD HH24:MI:SS YYYY') last_time,
4 to_date(start_time,'Dy Mon DD HH24:MI:SS YYYY') start_time
5 from (
6 select text_line,
7 lag(text_line,1) over (order by r) start_time,
8 lag(text_line,2) over (order by r) last_time
9 from (
10 select rownum r, text_line
11 from alert_ext
12 where text_line like '___ ___ __ __:__:__ 20__'
13 or text_line like 'Starting ORACLE instance %'
14 )
15 )
16 where text_line like 'Starting ORACLE instance %'
17* )
SQL> /
LAST_TIME START_TIME DAYS
SEP 07 2005 15:38:09
OCT 12 2005 17:46:08 OCT 12 2005 17:47:47 .001145833
MAY 16 2006 14:30:22 MAY 16 2006 14:30:39 .000196759
MAY 31 2006 16:25:17 MAY 31 2006 17:22:05 .039444444
JUN 21 2006 18:50:45 JUN 21 2006 18:50:56 .000127315
JUL 10 2006 12:07:53 JUL 10 2006 12:08:00 .000081019
JUL 10 2006 12:08:07 JUL 10 2006 12:23:06 .010405093
7 rows selected.

Similar Messages

  • How to check the last time a package has been compiled?

    How to check the last time a package has been compiled from sqlplus?

    LAST_DDL_TIME column in DBA_OBJECTS.

  • My iPad was either stolen or lost and was in my luggage.  Is there a way to tell the last time it was turned on.  If so this will tell me if anyone has it.

    My iPad was either stolen or lost and was in my luggage.  Is there a way to tell the last time it was turned on.  If so this will tell me if anyone has it.

    If you have an iCloud account and Find My Device was enabled on the iPad, you could try to find it using the iCloud.com web site. Otherwise there is no way to find it.
    You need to change all your online passwords immediately; notify the airport at which it went missing from your luggage (assuming it was at an airport); notify the police; notify your insurance company so you can get reimbursed and buy a new one; move on.

  • I bought an iPhone at september 2011 but it has been replaced twice, and the last time it was replaced was on February 2012... My question is till when is my warranty activated ???

    I bought an iPhone at september 2011 but it has been replaced twice, and the last time it was replaced was on February 2012... My question is till when is my warranty activated ???

    Your 1 year warranty starts the date of purchase of the original device. If the device is replaced that original warranty stays the same on the new device. Each replacement does come with a 90 day warranty. So if you're out of that original 1 year warranty... you will be covered for atleast 90 days on your replacement device.

  • Firefox comes up at the last page I was at the last time I was on

    When I start firefox the page it comes up on is the last page I viewed the last time I was on the internet. It doesn't come up to the home page I selected. I have Windows XP Home Edition

    Go to '''TOOLS''' then''' OPTIONS''' then in '''GENERAL''' panel in '''STARTUP '''session choose '''Show my home page''', then click '''OK''' to save it, exit firefox and restart-it.
    see for more info: [https://support.mozilla.org/en-US/kb/Options%20window%20-%20General%20panel Options window - General panel]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • HT4910 my iPhone is not backing up to iCloud. On iTunes on the computer, i have set it to back-up to iCloud and after each connection to the computer it shows the last time it was backed up, but on the phone itself it shows it hasn't been backed up for we

    My iphone is not backing up to icloud even though on itunes i have set it to back up to icloud. whenever i do a cable connection between my iphone and mac at the end of the exercise it indicates the last time the iphone was backed up i.e. "last back: 9.08a.m. but on the iphone itself it says it hasn't been backed up since March and on icloud there hasn't been any back up because the latest additions to the iphone are not there.
    Periodically i get this message "This iphone has not been backed up ... weeks" I have followed through with all the steps and still no joy. I did however notice that my icloud email account on the iphone is different to the one i have on the computer. It would apear that I am using the two interchanagably but i have been trying to correct this so that i"ll use the same one right through.
    Might this be the problem and how can i resolve it? Pls help

    If this is your first time backing up your phone then yeah it might take several hours. It's definitely something you want to do before you head to bed. So try that but also make sure that your contents that are to be backed up are less than 5GB since iCloud only has 5GB of space. Usually photos are what would take up the most space so check how many photos in terms of GB you have by going into settings->general->usage then look at photos and camera.
    Hope this works!

  • Just upgraded to iOS 7 and messages are showing up on multiple phones within our family.  We all use the same iCloud account. I believe this happened the last time there was a major iOS upgrade but I can't remember what the fix was!  Help!

    The four members of my family just upgraded to iOS 7 last night.  We now find that we are receiving each other's text messages.  It's possible that during the installs, a few members may not have "unckecked" the multiple phone numbers they can be reached on.  I know that I had to uncheck my husbands work mobile number and work email address as they came up as choices for contacting me.  So now I am receiving some of my daughter's text messages on my phone - she's not impressed!  My husband is receiving my texts etc...  It's a mess!  I appreciate any help anyone can offer!

    I had this problem last night as well.  Only my daughter upgraded to iOS7 and she had an old phone of mine.  When she upgraded, the phone asked for my apple ID and then continued as normal.  However, after the upgrade, any text message that I recieved, she also recieved.  I am pretty sure my wife thought I was hammered when she started texting me and my daughter began answering her not having any clue what she was texting about.  Anyway, this only occurred with texts from other family members, not from texts I received from friends who are obviously not on our account (we have Verizon BTW).  To resolve this issue, and it isn't a short resolution.... there are two options...   One, simply erase everyting on the phone.... I don't like iTunes 11, so we were unable to back up her phone.  I made her go through her 600 photos, delete the ones she didn't want and email the ones she wanted to herself, and then we wiped the phone clean and rebooted it... go into Settings, General, Reset, Erase All Content and Settings.  The second option, if you have iTunes 11 is to back up the phones one at a time,  and then go into Settings, General, Reset, Erase All Content and Settings.  Either of these options wipes the phone clean of all information, text contacts pictures etc and then you have to re-enter all of your individual information.  When you do that, make sure that no one is on the same iTunes account.  Theoretically, after you do this, you plug back into your computer and SYNC your phone from the last back-up.  This resolved the problem for us.  I don't know if there is an easier solution, be we tried logging in and out of our iTunes Accounts, turning the power on and off, and nothing changed.  So, we had to go the more difficult route to avoid mass confusion with family texting.

  • My Iphone won't back up to my itunes account on my computer when I plug it in, It syncs but when it tries back up I get an error message. I have tried to restore it to the last time it was backed up but still it didn't work.

    Hi,
    I got my iphone last year and It was working just fine until June of this year and I didn't notice it until I tried plugging my iphone into my computer to get more songs on it. Error message came up saying that it was unable to backup iphone because an error occurred. So I did some research and tried to delete old backups and restore to the last one. After all that it still won't back up and some of my apps just don't work, thought the new ios would help but it did not. Everything works fine its just that I want to be able to back my phone up and I haven't been able to sync June. Any help would be appreciated.

    For your computer first get iTunes to see it by:
    iOS: Device not recognized in iTunes for Windows
    or
    iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X
    - The transfer iTunes purchases
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    - Or redownload them by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    - Transfer other music by using a third-party program like one of those discussed here:
    newer copy
    - Connect the iPod to your compute and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup
    Note that the backup that iTunes makes does not included synced media like apps and music.

  • I cannot get into the iTunes store on my computer.  The last time I was able to do so was in February. The website doesn't help me. I authorized it on my Security Settings and it still doesn't work.

    I need help configuring my computer for the iTunes store. What can I do?

    You don't have the iPad connected to the computer with the cable while you are trying to download apps on the iPad do you?
    I'm running out of ideas here. Try this, reboot your iPad and then try again. If you are connected to the computer, disconnect the iPad first.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • HT201412 i cant get my ipod touch to charge or turn on ive tried everything it says but it is still black all the time  the last time it was turned on it was just about to go dead but i cant charge it. how do i get it to turn on again??

    how do i get my ipod to turn on after i tried everything  i cant even get it to charge

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Check last time schema was accessed 10g

    Oracle 10.2.0.4.0
    I am validating a list of used/unused schema in a Oracle 10g database. I have a list of schema that I think do not have any dependencies on anything in the database( Not sure why it was created) . Just to make doubly sure, is there a view in Oracle to check the last time a schema was accessed by a user in the database?.
    Thanks

    Use Oracle Auditing for the same. No such direct views are available.
    How to view the List of statements executed in Oracle 11G database
    Regards
    Rajesh

  • HT5796 I restored my phone after resetting all settings for an international unlock.  I had backed up everything under Gail-PC as the device name Itunes.  After I restored the device and went to sync my phone it now says the last time i backed it up was M

    I had Sprint unlock my phone for international use.  I backed up my phone to Gail-PC on Itunes and then reset the iphone 4S.  When i went to resync the phone after the reset my computer now says the last time it was backed up was March 2013.  I backed it up prior to and had no computer error.  Now it shows the divice Gail-PC no longer exists in Itunes and only Gail's Iphone shows up.  I upgraded to IOS 7 recently, I don't know if this could be an issue.  Help what do I do know? I have lost all my messages and data from the last year.  This computer does not have a backup.  I only have 5 Gb space on Icloud so the Imessages did not get saved there.  Is there any help for me now?

    Thanks for the reply!  Yeah that's pretty much what I figured.... I just find it upsetting that it didn't tell me the reset had anything to do with backing up data and made it sound like it would save everything on my phone regardless.  Thanks again for your response

  • Is there a way to see the last time my ipad was online?

    I lost my ipad and I can't use the locate my iphone app because the ipad is offline.  I am wondering if there is a way to see when the last time it was connected to the internet and where it was the last time it was connected. 

    No.  Find My iPad doesn't keep any history of that.  Also, it it's a wifi-only model, it will only be online if it is connected to a known wifi network.  The best strategy is to put it in lost mode and change your iCloud password so someone can't take over your account.
    You might also want to read this: http://support.apple.com/kb/HT5668.

  • Last time database accessed

    How to find out when the last time database is accessed either select or update?
    Thanks in advance!
    Tina

    A small correction which was required (and none did), in oracle you dont access schema for select,dmls,you access tables for all this. The options givenearlier to enable fga, database wide auditing are not so correct as tats too much to do for a small task.
    If you are interested in finding the number of times plus timings when an object went for a select, dmls, the best is to enable allllthe auditing for it byaudit all on tabnameThe tab
    modifictions view wont be refreshed immediately. It will be done at next flush done by you or by oracle. but this option is Not required in 10g as the monitoring is on for all the objects in this version out of the box by statisticss
    level parameter. I wont recommebnd to use orarowscn, triggers,one being non reliable and second beinb performance degrader.
    HTH
    Aman....

  • IN NEED OF A SCCM 2012 QUERY THAT SHOWS LAST TIME SOFTWARE WAS USED OR OPENED

    Hello
    I am in need of an SCCM 2012 query that shows PCs that have Visio , Adobe Professional and Visual Studio and the last time each was used or opened. I have the query below which give me the PC name and the product. Any assistance will be very helpful
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%adobe acrobat%pro%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%viewer%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service pack%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security
    update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hydra%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%MUI%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%amd%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%microsoft visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%vision%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%add-in%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    = "Microsoft Visual studio 2012 devenv" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hotfix%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service%"

    Did you create a software metering rule for each software title? if not then you need you do that first and it will take over a week before you see results.
    Also keep in mind that your query will only find x86 software titles.
    http://www.enhansoft.com/

Maybe you are looking for