Oracle Database 12c: Advanced Administration — Question 50
Examine the command and its output:
SQL> DROP TABLE EMPLOYEE;
SQL> SELECT object_name AS recycle_name, original_name, type FROM recyclebin;
RECYCLE_NAMEORIGINAL_NAMETYPE -
-------------------------------------------------------------------- binsgk31sj/3akk5hg3j21kl5j3d==$0EMPLOYEE TABLE
You then successfully execute the command:
SQL> FLASHBACK TABLE "BINSgk31sj/3akk5hg3j21kl5j3d==$0" TO BEFORE DROP;
Which two statements are true?
Answer options
- A. It flashes back the employee table and all the constraints associated with the table.
- B. It automatically flashes back all the indexes on the employees table.
- C. It automatically flashes back any triggers defined on the table.
- D. It flashes back only the structure of the table and not the data.
- E. It flashes back the data from the recycle bin and the existing data in the original table is permanently lost.
Correct answer: B, D
Explanation
Option B is correct because executing the FLASHBACK command restores all the indexes associated with the employee table. Option D is also correct as the command restores the structure but does not retain any data. The other options are incorrect because the FLASHBACK command does not automatically restore constraints (A), triggers (C), or cause loss of existing data (E).