Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Showing results for 
Search instead for 
Did you mean: 

find out the date of restored files

Occasional Contributor

find out the date of restored files

Hi Experts,
one of the database was deleted by one of our colleague.we had RMAN backup for that database.
now the person who has restored the database has left the i want to know when the database was exactle restored. how can i find the date?
Rick Garland
Honored Contributor

Re: find out the date of restored files

Check the Oracle logs - alert log would be 1st place to look.
Occasional Contributor

Re: find out the date of restored files

yes i check the alert log
please find below the alert log file details
Tue Jun 24 01:13:30 2008
Starting ORACLE instance (normal)
Disable cache advisory with old cache parameters
SCN scheme 3
Using log_archive_dest parameter default value
SYS auditing is disabled
Starting up ORACLE RDBMS Version:
System parameters with non-default values:

I am attaching the whole alert log file.
I think the above one is sufficient.
if not then check the attached file.
please let me know how it will help us in looking in alert log.
Volker Borowski
Honored Contributor

Re: find out the date of restored files

Well I hope that this is not the entire alert-file.
Check if a logrotation tool has created a versioned file that has the recovery statements you need to search for.

Usually you should find at least
"Alter database recover ..."
"recover database ..."
Statements in the log.

In case of an incomplete recovery you'll
find a statement "... OPEN ... RESETLOGS"

In case a cold backup has been restored it might be more tricky. In this case you should
find doubles or at least a set back of the log sequence numbers may be like
Logswitch from #7411 to #4712
and after the next startup you find a switch
from #4635 to #4636 indicating that an old
controlfile has been restored as well.

This will give you the time, when the restore and recovery has been executed.

To find the timestamp of the last committed transaction inside the DB after the recovery, you might be lucky finding
a statement "... recover until time ..."
which gives you the exact answer.
If not, you need to detect, which backup was restored and then mine the recovery database
for the timestamp when the backup was taken.

Good hunting