Find exact time a database was recovered to

Oracle 11gR1
How can I find out the exact time a database was recovered to, assuming I do not know what value was used in the "SET UNTIL TIME" clause?

>Will the resetlogs time show the time I issued the "alter database open resetlogs" command at or will it show the time that the database was actually recovered to
The RESETLOGS_TIME in V$DATABASE shows when the ALTER DATABASE OPEN RESETLOGS was issued.
It does NOT show the time the database was recovered to.
Thus, today, 14-Jun I restore a database backup of 11-Jun and do an Incomplete Recovery to 12-Jun.  My SET UNTIL TIME was 12-Jun.
V$DATABASE.RESETLOGS_TIME shows 14-Jun.
The only way to know the time the database was recovered to is to query a table which you know holds transaction timestamps and would have had a transactions just at or before the SET UNTIL TIME.  (e.g. an audit table  ?)
Hemant K Chitale

Similar Messages

  • Is it possible to find the time a website was visited in safari history?

    Is it possible to find the time a website was visited in safari history?

    See:
    http://www.justanswer.com/computer-programming/7c5qf-iphone-settings-safari-adva nced-website-data.html

  • Find Last time a procedure was called

    Hi DBAs,
    How to find when a procedure or function was called last time in 10g. For that matter even when a table was last accessed. If this can be done without enabling audit ? are there any such views or tricks to find such changes ?
    Thanks!

    Without auditing, this is not possible as a general rule.
    If a procedure has side effects, you could potentially look through the database to find those side effects. If it inserts a new row in a table with a CREATE_DATE of SYSDATE, that would be very helpful. If you're talking about a function that doesn't have side effects, however, that isn't an option. If the function or procedure runs for a relatively long period of time, its executions may be picked up in an AWR/ statspack report. But it's unlikely that every execution would be captured, it's unlikely that the history is kept particularly long, and it's not always trivial to search these reports for the last time a procedure was executed. And if you have a relatively quick procedure, it's unlikely that executions would ever be recorded.
    Segment-level statistics might give you hints about table accesses. But those statistics are cumulative since the last reboot. And there are likely background processes that touch every table at some interval (i.e. statistics gathering), which probably isn't the sort of "access" you're interested in.
    Justin

  • Finding exact time for table drop

    Hi,
    yesterday i dropped one of the important table ...i have rman backup...i want to use until time incomplete recovery method.. but i dont know the exact time of table dropped ..i tried alert and trace files ..but no use...
    is their any method to find out the exact time of table dropped..
    Oracle 9.2
    Redhat 5.3
    Thank u
    selva..

    So the database is not in ARCHIVELOG mode?
    If you don't have the redo from the time in question, you haven't enabled auditing of DDL operations like DROP, and you don't have a DDL trigger that would have recorded the time of the drop, you're probably out of luck. Oracle won't have that information. You'll have to take your best guess.
    If you were on a more recent version of Oracle, the dropped table would be in the recycle bin. But that wasn't available back in the 9.2 days.
    Justin

  • How can I find what time a tab was opened in Safari?

    How can I find out what time a tab was opened in Safari?

    As of Safari 5.1.7 there does not appear to be a way to view the time in the browser, but it is still possbile to find from the raw history file. Open /Users/[yourusername]/library/Safari/History.plist in a text editor. Depending on how your text editor reads the file, you may see a lot of garbled text, but you should still be able to find the URL that you want the time for. After the URL you may see the page's title, but should also see a left square bracket followed by numbers.
    Example:
    _?http://www.apple.com/_Apple[377832904.6o
    The integer is an Apple timestamp (number of seconds since 00:00:00 UTC on 1 January 2001). Find a timestamp calculator online to get the actual time for your timestamp. In the example above, Apple was visited on Dec 21 2012 at 17:35:04 PST.
    Cheers.

  • How can I find the time a site was accessed in Safari's history?

    I know that Safari's "History" list is in reverse order, that is, most recently visited sites at the top of the list.  How can I find the time a particular site was visited?

    As of Safari 5.1.7 there does not appear to be a way to view the time in the browser, but it is still possbile to find from the raw history file. Open /Users/[yourusername]/library/Safari/History.plist in a text editor. Depending on how your text editor reads the file, you may see a lot of garbled text, but you should still be able to find the URL that you want the time for. After the URL you may see the page's title, but should also see a left square bracket followed by numbers.
    Example:
    _?http://www.apple.com/_Apple[377832904.6o
    The integer is an Apple timestamp (number of seconds since 00:00:00 UTC on 1 January 2001). Find a timestamp calculator online to get the actual time for your timestamp. In the example above, Apple was visited on Dec 21 2012 at 17:35:04 PST.
    Cheers.

  • Need to find last time a table was used.

    I am in the process of cleaning out a group of staging tablespaces and I would appreciate some help finding the last time a table was used. (ie: records added, deleted, ect.) Is there an SQL statement that will do it? Any other suggestions?
    I will Appreciate any assistance.

    How can I activate the auditing? http://download-east.oracle.com/docs/cd/B19306_01/network.102/b14266/auditing.htm#i1011984
    Daljit Singh

  • Find the time a drive was disconnected

    This is not your usual case, but if there is an answer to it, this may help others. Recently I had an external drive stolen from my iMac running mountain lion. I was wondering if there is a terminal log, or something I can find that will show me the time that drive was disconnected. This will help me figure out when the theif was in my home and narrow in on the finding who it was. Yes, I believe it is someone I know. This is very important to me, and I hope there is something out there that can help me find the time this drive went offline or was disconnected. It was just removed (pulled out of the computer "disconnected"), and not ejected, so maybe there is a log of this somewhere..?
    Thank you all for your help.

    Use the Console application in Utilities and check the System log. This is the info from my machine for a disk just pulled and a correct unmount, the xxxxx just replace my machine name. Disk names may be different on your machine.
    Sep 29 15:18:07 xxxxxxxxxxxxxxxxxx kernel[0]: disk1s2: media is not present.
    Sep 29 15:19:19 xxxxxxxxxxxxxxx.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.volume.removable.unmount' by client '/usr/sbin/diskarbitrationd'

  • How to find out whether Oracle database was upgraded ??

    Hi,
    I need to find out whether my Oracle database was upgraded, If yes how to find out by SQL query .I know their is database_properties table, but when I try to query that it didnt gave me the output which I required.
    Like in SAP we have uvers table which keep info about the upgrade history, whether such history is avaliable in oracle ?? . Iam looking out for output which is like old database Release 9.2.0.7 and new database release 10.2.0.2.
    Whether similar such history is maintained in Oracle database.
    Awaiting for your feedback.
    Kind Regards
    Neenad

    Hi all,
    After checking all the material,I dont think prior to 10g, oracle register its earlier version.
    The views of v$version show the current version for various components and also dba_registry displays info about catlog/catproc versions.
    In 10g, you can use the following query to know the version when the database was broughtup.
    select startup_time,version,db_name from dba_hist_database_instance.
    Anways thanks to all of you.
    Kind Regards
    Neenad

  • Finding exact time for sequence change

    Hi,
    for incomplete recovery purpose , i want to know the exact timing of sequence number change or SCN change...i tried some of the views like v$loghist, V$log_history..provide only date ..these didnt provide exact time...
    SQL> select * from v$loghist;
    THREAD# SEQUENCE# FIRST_CHANGE# FIRST_TIM SWITCH_CHANGE#
    1 1 944409 31-MAY-09 945995
    1 2 945995 31-MAY-09 947470
    Oracle 9.3
    Redhat 5.3
    Thank u
    selva..

    Connected to:
    Oracle Database 10g Release 10.2.0.4.0 - Production
    SQL> alter session set nls_date_format='dd.mm.yyyy hh24:mi:ss';
    Session altered.
    SQL> select * from v$loghist where rownum < 10;
       THREAD#  SEQUENCE# FIRST_CHANGE# FIRST_TIME          SWITCH_CHANGE#
             1       2035     760254081 28.04.2009 00:45:41      760391689
             1       2036     760391689 28.04.2009 06:30:44      760479542
             1       2037     760479542 28.04.2009 10:18:58      760566251
             1       2038     760566251 28.04.2009 11:18:23      760686034
             1       2039     760686034 28.04.2009 11:33:20      760802082
             1       2040     760802082 28.04.2009 12:00:44      760916445
             1       2041     760916445 28.04.2009 12:18:07      761027875
             1       2042     761027875 28.04.2009 12:33:28      761147250
             1       2043     761147250 28.04.2009 12:49:01      761262830
    9 rows selected.

  • PIT recovery until time when database was in backup mode

    Hello,
    Is it possible to recover database until some point/time which is within "time window" when database tablespaces were still in online backup mode?
    I was basicaly replicatying database from source to target DB by putting DB to online backup mode, then copy all datafiles, after copy of datafiles was finished I started applying redologs generated on source DB afterwards. After I applied tens of redologs with "recover database until cancel using backup controlfile" and then typed "CANCEL" after 10-20 redologs applied I still got an error that opening DB would get an error due to inconsistent datafile. When I ended backup mode on source DB and applied few of redologs after ending backup mode on source DB datafiles were consistent.....
    Thx a lot for answer in advance.

    Hello Hemant K Chitale ,
    thats clear. I probably did not express it clearly, so I will describe it once again:
    Teoreticall scenario 1:
    I put 'source" database to backup mode and start copy datafiles to "target" db. When copy of all datafiles is succesfully finished (lets say it 5:00AM), I don't issue "end backup" on source DB but I keep tablespaces in backup mode until 7:00AM. On target DB I will start recovery and apply redologs from source system.
    Question 1:Is it possible to recover database until time 6:00AM? At this time all datafiles were already succesfully copied, BUT source db was still in backup mode. Or will I be able to get target DB to consistent state only after 7:00AM (end backup issuied on source DB) and not in window 5:00AM-7:00AM?
    Teoreticall scenario 2 (small correction comparing to scenario1):
    I will put source DB to begin backup mode at 5:00AM on 20.february and let it in this state until 7:00AM on 20.february. On target DB I will restore backup from source DB performed day before (or few days before does not matter) that means on 19.february and start to apply redologs generated after this backup.
    Question 2: Will I be able to recover DB until 6:00AM on 20.february and open database after recovery until this time? Or wont I be able to recover and open DB witin window 20.february 5:00AM-7:00AM (source db in backup mode)
    Bear in mind this is just teoreticly (don't ask me why would you do it and why you don't do it this way etc...). I just want to understand how it really works ;)
    Thx a lot!

  • How to determine the last time  a database was used

    Is it possible in to determine the time a CRUD operation occurred on a database?

    How can I activate the auditing? http://download-east.oracle.com/docs/cd/B19306_01/network.102/b14266/auditing.htm#i1011984
    Daljit Singh

  • 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.

  • Find out the group and time a user was added to deleted from specific AD group

    have a project that I need to find anyone that has been added to or removed from an AD selected groups that begins in APP_RMS in the last three hours.  
    I need to product a file the has this information       
    group| sAMAccountName|<ADDED/DELETED>|date and time
    I know very little about AD and just a little more about powershell.  I know this should be written in powershell, do not want to use outside tools like repadmin.

    Hi Cchart3,
    In addition, this function written by Boe Prox is for your reference, which can look at an Active Directory group's metadata using repadmin to determine who was added or removed from a group and the time this modification occurred.
    Find the time a user was add/removed from a group
    Best Regards,
    Anna Wang

  • After a recover database, how can I find the time of the last transaction?

    After doing a restore and recovery. Is there something in the data dictionary that I can query to find the time of the last applied transaction that took place during the recover process?
    restore database ;
    recover database ;
    For example, if I restored from a full backup on 8/3/2008 with archive redologs, I know my last restored transaction is from sometime on that day, but I'd like a way to know the hour:minute:second of the last transaction included in the backup and redologs that was applied to my restore. Is that possible?
    The recover database applies all available redo logs for that day, but I want to know if that includes transaction up to 6PM, or 11:50PM, etc?
    Thanks,
    Jason

    If you did only a "recover database" that would have been a Complete Recovery to the last transaction -- ie the point when the database was shutdown.
    For an Incomplete Recovery, you would have to note the Sequence#, SCN or Timestamp of the recovery point.

Maybe you are looking for

  • How to get the "last changed by" for a set of function modules?

    How to get the "last changed by" for a set of function modules? is there any table to get it??

  • Error while executing Test Web Service

    Hi, I get an error while trying to test the web service deployed on Weblogic 10.3.1 through jdeveloper 11.1.1.1.0. This simple web service is created by following the example in http://www.oracle.com/technology/products/jdev/11/cuecards111/j2ee_set_1

  • Problems with Bluetooth and Mac OS X 10.4.4

    Hello all, I recently installed the the X.4.4 update on my PowerBook, and now it is having problems connecting to my RAZR. When I try to "Rebond" to it, it says an unexpected error has occurred (on the PB), and shows no bluetooth devices. Also, I am

  • When I close the screen...

    When I close the screen on my MBP it goes to sleep. Does the new O.S. enable me to set it so it does nothing? I have my sony vaio set to do nothing when I close the lid with XP Pro. If I'm running parallels with windows can I set my MBP this way? Tha

  • Can't re-install snowleopard operating system

    Hi! Thanks for reading my question and helping me to solve my issue. I have an old macbook pro that was purchased around 2010, and I've been trying to re-install OS snowleopard (the original operating system) before selling this laptop. However, the