1.What is the difference between cold and hot backup?
a.COLD backup will be taken by shutting down the database, where as HOT backup will be taken while database is up and running
What happens when a database or tablespace is placed in begin backup mode?
Datafile header will get freezed i.e CKPT will not update latest SCN
DBWR still will write data into datafiles
When end backup, CKPT will update the latest SCN to datafile header
Why more redo will generate during hot backup?
It is to avoid fractured block as oracle will copy entire block as redo entry
What is fractured block?
A block which might contain inconsistent data. This happens because the speed of DBWR is different than OS copy during hot backup
What is the difference between complete and incomplete recovery?
No data loss in complete recovery whereas some data loss is observed in incomplete recovery
What will happen if we use resetlogs?
It will create new redolog files (if not already there)
It will reset log sequence number to 1,2…etc
Out of 100 datafiles, I lost 29 files. How you will identify which files to recover?
a.Using the view v$recovery_file
How to check if incomplete recovery is performed in the database?
SQL> select RESETLOGS_TIME,RESETLOGS_CHANGE from v$database;
I placed a tablespace in hot backup mode and datafile which is being backup is lost. How you will recover it?
We can restore from old backup and apply all the archives till now
Yesterday night backup is successful. Today morning we added a datafile at 11 AM. After noon 3’o clock the newly added datafile is lost. Can I recover that datafile? If so, how?
Yes we can recover it. We need to create that datafile using “alter database create datafile ‘path’;” command and then apply all the archives
What is the importance of archives during recovery process?
As they will store all the changes happened in the database, always we can do complete recovery if we have a perfect backup
How you will recover database when all copies of control file are lost?
We can do a complete recovery if we have a latest trace of it. Or else, we need to do incomplete recovery by restoring controlfile from last successful backup
Application team informed that an important table is dropped. How you will recover it?
We can recover it by doing until time recovery. But this will affect other user transactions, so we need to get approval for this first
What are the pre-requisite factors you will consider before performing until time recovery?
We need to see if other users are not getting any affect by doing this
You need to restore the database and then realized there are no control files. How you will proceed?
Either we can resotre controlfiles first and do recovery (but a data loss is there as its incomplete recovery) or we can create new controlfile if we have a latest trace
No comments:
Post a Comment