Operating System - HP-UX
1752796 Members
6096 Online
108789 Solutions
New Discussion юеВ

find out the date of restored files

 
daniesh
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 company.now i want to know when the database was exactle restored. how can i find the date?
3 REPLIES 3
Rick Garland
Honored Contributor

Re: find out the date of restored files

Check the Oracle logs - alert log would be 1st place to look.
daniesh
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
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SCN scheme 3
Using log_archive_dest parameter default value
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 9.2.0.6.0.
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

Hi,
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 ..."
or
"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
Volker