nerdexam
Oracle

1Z0-067 · Question #68

Examine the commands: SQL> ALTER SESSION SET RECYCLBIN = ON; Session altered. SQL> DROP TABLE emp; --(First EMP table) Total dropped. SQL> CREATE TABLE emp (id NUMBER CONSTRAINT emp_id_idx PRIMARY…

The correct answer is D. It recovers the structure, data, and indexes of the second emp table. Flashback before drop restores latest table if no object_name is provided.

New Features for Availability

Question

Examine the commands:

SQL> ALTER SESSION SET RECYCLBIN = ON; Session altered. SQL> DROP TABLE emp; --(First EMP table) Total dropped. SQL> CREATE TABLE emp (id NUMBER CONSTRAINT emp_id_idx PRIMARY KEY, name VARCHAR2 (15), salary NUMBER(7,2) ); Table created. You then execute multiple INSERT statements to insert rows into EMP table and drop the table again:

SQL> DROP TABLE emp; -- (Second EMP table) Table dropped. SQL> FLASHBACK TABLE emp TO BEFORE DROP; Which statement is true about the FLASHBACK command?

Options

  • AIt recovers the structure, data, and indexes of the first emp table.
  • BIt recovers only the structure of the second emp table.
  • CIt returns an error because two tables with the same name exist in the recycle bin.
  • DIt recovers the structure, data, and indexes of the second emp table.

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    7% (2)
  • C
    10% (3)
  • D
    79% (23)

Explanation

Flashback before drop restores latest table if no object_name is provided.

Topics

#Flashback Table#recycle bin#multiple same-name tables#FLASHBACK TABLE

Community Discussion

No community discussion yet for this question.

Full 1Z0-067 Practice