Oracle OCP 1Z0-053 Q686(Flashback Table)
686. You execute the following FLASHBACK TABLE command:
Which two statements are correct?(Choose two.)
A.The EMP table that was dropped by mistake earlier is restored.
B.The FLASHBACK TABLE statement is executed as a single transaction.
C.The FLASHBACK TABLE statement does not maintain existing indexes on the EMP table.
D.The changes made to the EMP table since the specified time are undone if no constraint is violated
during flashback.
Answer:BD
答案A是錯誤的,驗證如下:
SQL> create table t1 as select rownum rn from dual connect by rownum <= 10000;
Table created.
SQL> select sysdate from dual;
SYSDATE
---------
24-MAR-16
SQL> select to_char(sysdate, 'yyyymmdd hh24:mi:ss') from dual;
TO_CHAR(SYSDATE,'
-----------------
20160324 11:16:57
SQL> drop table t1;
Table dropped.
SQL> flashback table t1 to timestamp to_timestamp('20160324 11:16:57','yyyymmdd hh24:mi:ss');
flashback table t1 to timestamp to_timestamp('20160324 11:16:57','yyyymmdd hh24:mi:ss')
*
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> flashback table t1 to before drop;
Flashback complete.
SQL> select count(*) from t1;
COUNT(*)
----------
10000
參考:http://blog.csdn.net/rlhua/article/details/17417859
Which two statements are correct?(Choose two.)
A.The EMP table that was dropped by mistake earlier is restored.
B.The FLASHBACK TABLE statement is executed as a single transaction.
C.The FLASHBACK TABLE statement does not maintain existing indexes on the EMP table.
D.The changes made to the EMP table since the specified time are undone if no constraint is violated
during flashback.
Answer:BD
答案A是錯誤的,驗證如下:
SQL> create table t1 as select rownum rn from dual connect by rownum <= 10000;
Table created.
SQL> select sysdate from dual;
SYSDATE
---------
24-MAR-16
SQL> select to_char(sysdate, 'yyyymmdd hh24:mi:ss') from dual;
TO_CHAR(SYSDATE,'
-----------------
20160324 11:16:57
SQL> drop table t1;
Table dropped.
SQL> flashback table t1 to timestamp to_timestamp('20160324 11:16:57','yyyymmdd hh24:mi:ss');
flashback table t1 to timestamp to_timestamp('20160324 11:16:57','yyyymmdd hh24:mi:ss')
*
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> flashback table t1 to before drop;
Flashback complete.
SQL> select count(*) from t1;
COUNT(*)
----------
10000
參考:http://blog.csdn.net/rlhua/article/details/17417859
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8520577/viewspace-2063006/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle OCP 1Z0-053 Q385(Flashback Table Recovery)Oracle
- Oracle OCP 1Z0-053 Q252(Flashback Version Query)Oracle
- Oracle OCP 1Z0-053 Q672(Flashback Data Archive)OracleHive
- Oracle OCP 1Z0 053 Q373(Flashback Table)Oracle
- Oracle OCP 1Z0-053 Q271(Purge Table)Oracle
- oracle flashback特性(2.1)--Flashback Table之RECYCLEBINOracle
- Oracle OCP 1Z0-053 Q145(Table Redefinition)Oracle
- Oracle OCP 1Z0-053 Q98(Flashback Database&Resetlogs)OracleDatabase
- 應用oracle flashback--Flashback Table之RECYCLEBINOracle
- 【徵文】應用oracle flashback(2.1)--Flashback Table之RECYCLEBINOracle
- 全面學習oracle flashback特性(2.1)--Flashback Table之RECYCLEBINOracle
- oracle flashback特性(2.2)--Flashback Table之從UNDO中恢復Oracle
- 【徵文】應用oracle flashback(2.3)--Flashback Table之注意事項Oracle
- 【Flashback】Flashback Table功能實踐
- flashback技術之---flashback table
- 全面學習oracle flashback特性(2.3)--Flashback Table之注意事項Oracle
- 【徵文】應用oracle flashback(2.2)--Flashback Table之從UNDO中恢復Oracle
- Oracle OCP 1Z0-053 (ASM)OracleASM
- 全面學習oracle flashback特性(2.2)--Flashback Table之從UNDO中恢復Oracle
- Oracle 1Z0 053 Q666(Flashback Table)Oracle
- Oracle10g New Feature -- 3.Flashback TableOracle
- Oracle OCP 1Z0 053 Q648(Flashback)Oracle
- Flashback database與flashback table使用條件區別Database
- Oracle OCP 1Z0-053 (System Partitioning)Oracle
- Oracle OCP 1Z0-053 Q445Oracle
- flashback drop/query/table/database/archiveDatabaseHive
- 影響flashback table的操作!
- Oracle OCP 1Z0 053 Q83(Flashback Database)OracleDatabase
- Oracle 11G OCP 1Z0-053 600Oracle
- Oracle 11G OCP 1Z0-053 581Oracle
- Oracle 11G OCP 1Z0-053 582Oracle
- Oracle 11G OCP 1Z0-053 583Oracle
- Oracle 11G OCP 1Z0-053 584Oracle
- Oracle 11G OCP 1Z0-053 585Oracle
- Oracle 11G OCP 1Z0-053 586Oracle
- Oracle 11G OCP 1Z0-053 587Oracle
- Oracle 11G OCP 1Z0-053 588Oracle
- Oracle 11G OCP 1Z0-053 589Oracle