Home
  • Home
  • Database
  • Oracle Database 11g Administrator Certified Professional (OCP)
51.
During recovery, you need to know if log sequence 11 is in the online redo logs, and if so, you need to know the names of the online redo logs so you can apply them during recovery. Which view or views would you use to determine this information? (Choose all that apply.)
  • A.
    V$LOGFILE
  • B.
    V$RECOVER_LOG
  • C.
    V$RECOVER_DATABASE
  • D.
    V$LOG_RECOVER
  • E.
    V$LOG
  • Answer & Explanation
  • Report
Answer : [A, E]
Explanation :
The V$LOGFILE view will give you the name of the online redo logs associated with each group. The V$LOG view will provide the current sequence number assigned to each group.
Report
Name Email  
52.
You are trying to recover your database. During the recovery process, you receive the following error:
ORA-00279: change 5033391 generated at 08/17/2008 06:37:40
needed for thread 1
ORA-00289: suggestion :
/oracle01/flash_recovery_area/ORCL/archivelog/2008_08_17
/o1_mf_1_11_%u_.arc
ORA-00280: change 5033391 for thread 1 is in sequence #11
ORA-00278: log file
'/oracle01/flash_recovery_area/ORCL/archivelog/2008_08_17
/o1_mf_1_10_4bj6wnqm_.arc' no longer needed for this recovery
Specify log: {=suggested | filename | AUTO | CANCEL}
ORA-00308: cannot open archived log
'/oracle01/flash_recovery_area/ORCL/archivelog/2008_08_17
/o1_mf_1_11_%u_.arc'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
How do you respond to this error? (Choose two.)
  • A.
    Restore the archived redo log that is missing and attempt recovery again.
  • B.
    Recovery is complete and you can open the database.
  • C.
    Recovery needs redo that is not available in any archived redo log. Attempt to apply an online redo log if available.
  • D.
    Recover the entire database and apply all archived redo logs again.
  • E.
    Recovery is not possible because an archived redo log has been lost.
  • Answer & Explanation
  • Report
Answer : [A, C]
Explanation :
This error will appear if an archived redo log is not available. In this case you need sequence 11. First you would try to restore archived redo log sequence 11. If log sequence 11 is not available as an archived redo log, you might find that it is available in one of the online redo logs.
Report
Name Email  
53.
You have lost datafile 4 from your database. Which is typically the fastest way to restore your database?
  • A.
    Restore and recover the datafile.
  • B.
    Restore and recover the tablespace.
  • C.
    Restore and recover the database.
  • D.
    Restore and recover the control file.
  • E.
    Restore and recover the parameter file.
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
If you have only lost a datafile, you should just restore and then recover the datafile.
Report
Name Email  
54.
What does the SCN represent?
  • A.
    The system change number, which is a point in time relative to transactions within a given database.
  • B.
    A number that represents time. Thus, at 1300 hours, the SCN is the same on all databases.
  • C.
    The security change number, which represents the security code that is needed to access any database structure.
  • D.
    A conversion factor that converts internal database time to external clock time.
  • E.
    UTC time in the database, providing a standardized way of tracking time in Oracle.
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
The SCN is a number that represents a point in time in the database relative to transactions within a given database.
Report
Name Email  
55.
You have lost all your online redo logs. As a result, your database has crashed. You have tried to restart the database and clear the online redo log files, but when you try to open the database you get the following error.
SQL> startup
ORACLE instance started.
Total System Global Area 167395328 bytes
Fixed Size 1298612 bytes
Variable Size 142610252 bytes
Database Buffers 20971520 bytes
Redo Buffers 2514944 bytes
Database mounted.
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '/oracle01/oradata/orcl/redo02a.log'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-00312: online log 2 thread 1: '/oracle01/oradata/orcl/redo02.log'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
SQL> alter database clear logfile group 2;
alter database clear logfile group 2
*
ERROR at line 1:
ORA-01624: log 2 needed for crash recovery of instance orcl (thread 1)
ORA-00312: online log 2 thread 1: '/oracle01/oradata/orcl/redo02.log'
ORA-00312: online log 2 thread 1: '/oracle01/oradata/orcl/redo02a.log'
What steps must you take to resolve the error?
a. Issue the recover database redo logs command.
b. Issue the Startup Mount command to mount the database.
c. Restore the last full database backup.
d. Perform a point-in-time recovery, applying all archived redo logs that are available.
e. Restore all archived redo logs generated during and after the last full database backup.
f. Open the database using the alter database open resetlogs command.
g. Issue the alter database open command.
  • A.
    b, a, f
  • B.
    e, b, a, f
  • C.
    e, b, a, g
  • D.
    b, a, g
  • E.
    c, e, b, d, f
  • Answer & Explanation
  • Report
Answer : [E]
Explanation :
In this situation, you have gotten yourself in real trouble and you will have data loss. First you will need to restore the last full database backup and also all archived redo logs that were generated during the backup and since the backup was completed. You will then issue the startup mount command to mount the database, and then issue the recover database until cancel command. Apply all the archived redo logs you can. Then cancel the recovery and open the database using the alter database open resetlogs command.
Report
Name Email