exam questions

Exam 1z0-083 All Questions

View all questions & answers for the 1z0-083 exam

Exam 1z0-083 topic 1 question 151 discussion

Actual exam question from Oracle's 1z0-083
Question #: 151
Topic #: 1
[All 1z0-083 Questions]

A schema owner truncated a table in error and must recover the data.
Which Oracle Flashback feature could be used to recover the data?

  • A. FLASHBACK TRANSACTION
  • B. FLASHBACK VERSION QUERY
  • C. FLASHBACK DATA ARCHIVE
  • D. FLASHBACK TABLE
  • E. FLASHBACK DATABASE
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RinD
Highly Voted 3 years, 2 months ago
C correct
upvoted 9 times
...
ObserverPL
Highly Voted 3 years, 1 month ago
E, tested in practice
upvoted 8 times
...
wagihov
Most Recent 1 month ago
Selected Answer: E
I don't understand how C is chosen by the community. Flashback Data Archives definition: "A flashback data archive provides the ability to track and store all transactional changes to a “tracked” table over its lifetime " While documentation is super clear about the Truncate case, that its only solution is Flashback Database. So the only correct answer is E
upvoted 2 times
...
antonica
3 months, 3 weeks ago
C Or E, both with arguements!!!
upvoted 1 times
...
dancymonkey
6 months ago
c Ref: 19.9.6 DDL Statements on Tables Enabled for Flashback Data Archive Flashback Data Archive supports only these DDL statements: ALTER TABLE statement that does any of the following: Adds, drops, renames, or modifies a column Adds, drops, or renames a constraint Drops or truncates a partition or subpartition operation TRUNCATE TABLE statement RENAME statement that renames a table https://docs.oracle.com/en/database/oracle/oracle-database/12.2/adfns/flashback.html#GUID-D01864A9-C642-4EDF-9EB0-796020A26F2D:~:text=NO%20FLASHBACK%20ARCHIVE%3B-,19.9.6%20DDL%20Statements%20on%20Tables%20Enabled%20for%20Flashback%20Data%20Archive,-Flashback%20Data%20Archive
upvoted 1 times
...
_gio_
1 year ago
Selected Answer: C
I think the correct answer is C because, FLASHBACK DATA ARCHIVE is the only flashback option that if it is enabled can flashback some DDLs as TRUNCATE (here the reference https://docs.oracle.com/en/database/oracle/oracle-database/19/adfns/flashback.html#GUID-D01864A9-C642-4EDF-9EB0-796020A26F2D) FLASHBACK TABLE can also flashback truncate ONLY IF RESTORE POINT for Table was created
upvoted 1 times
...
ScottL
1 year, 2 months ago
C or E could be correct
upvoted 1 times
...
oscar1104
1 year, 2 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
G_C
1 year, 9 months ago
Selected Answer: C
@ObserverPL, I think that question assume recover only data from truncated table, so "flashback database" recover data with possible damages in other place. Of course it works, but the "flashback archive" be able to do that without any damages. @Neil107 there are no condition of that we should do as quickly as possible.
upvoted 1 times
...
egore0496
2 years, 6 months ago
FLASHBACK DATA ARCHIVE tested https://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/4421812.pdf SELECT ... AS OF TIMESTAMP... SELECT ... VERSIONS BETWEEN TIMESTAMP and TIMESTAM SELECT * FROM t1 VERSIONS BETWEEN SCN 14759823 AND 14761165 SELECT * FROM t1 AS OF SCN 14759823; truncate SELECT * FROM t1 AS OF SCN 14761249; SELECT current_scn, TO_CHAR(SYSTIMESTAMP, 'YYYY-MM-DD HH24:MI:SS') FROM v$database;
upvoted 2 times
Alvinzzz
2 years, 1 month ago
Although Flashback Data Archive could flashback a truncated table, it can only recover until last flashback archive creation time but not point-in-time before the error occurs. Thus, choose E if point-in-time recovery required.
upvoted 2 times
...
...
Neil107
2 years, 11 months ago
Sorry guys!. It seems my post doesn't get posted. A retry seems to repeat my post.
upvoted 1 times
...
Neil107
2 years, 11 months ago
It's E. Even with FLASHBACK DATA ARCHIVE, truncation of a table is possible, but will be a slow process.A retention time has to be specified. Refer to page 799 of the 12c All-in-one-exam-guide
upvoted 3 times
...
Neil107
2 years, 11 months ago
It's E. Even with FLASHBACK DATA ARCHIVE, truncation of a table is possible, but will be a slow process.A retention time has to be specified. Refer to page 799 of the 12c All-in-one-exam-guide
upvoted 3 times
...
Neil107
2 years, 11 months ago
It's E. Even with FLASHBACK DATA ARCHIVE, truncation of a table is possible, but will be a slow process.A retention time has to be specified. Refer to page 799 of the 12c All-in-one-exam-guide
upvoted 3 times
...
mporislav
3 years, 1 month ago
correct : E Backup and Recovery Workshop - typical scenario for Flashback Database is truncate table. You may use FBDA but in different way (not flashing back): insert into t1_recovered select * from t1 as of timestamp sysdate – 1/24;
upvoted 4 times
...
gon20
3 years, 1 month ago
I'm with RinD. Go with C Database Development Guide
upvoted 2 times
...
Rogazan
3 years, 2 months ago
Correct answer: E
upvoted 3 times
RinD
3 years, 2 months ago
I think E is wrong because it will flashback whole database, we just need to flashback a table
upvoted 3 times
Rogazan
3 years, 2 months ago
It is not possible to do a FlashbackTable to retrieve from Drop Table. Backup and Recovery User's Guide 19c, 18.2.1 Prerequisites for Flashback Table: .... For an object to be eligible to be flashed back, the following prerequisites must be met: .... The structure of the table must not have been changed between the current time and the target flashback time. The following Data Definition Language (DDL) operations change the structure of a table: upgrading, moving, or truncating a table; adding a constraint to a table, adding a table to a cluster; modifying or dropping a column; adding, dropping, merging, splitting, coalescing, or truncating a partition or subpartition (except adding a range partition).
upvoted 1 times
RinD
3 years, 1 month ago
Flashback Data Archive supports only these DDL statements: ... TRUNCATE TABLE statement https://docs.oracle.com/database/121/ADFNS/adfns_flashback.htm#ADFNS640
upvoted 3 times
Rogazan
3 years, 1 month ago
Without Flashback data archive (default configuration): SQL> insert into t1 values (1); 1 row created. SQL> commit; Commit complete. SQL> select current_scn from v$database; CURRENT_SCN ----------- 1754160 SQL> truncate table t1; Table truncated. SQL> flashback table t1 to SCN 1754160; flashback table t1 to SCN 1754160 * ERROR at line 1: ORA-01466: unable to read data - table definition has changed And the same error occurs after creating flashback data archive: SQL> CREATE FLASHBACK ARCHIVE DEFAULT mytest TABLESPACE users Quota 1M Retention 1 Day; Flashback archive created. and modifying t1 table to use it: SQL> alter table t1 flashback archive; Table altered.
upvoted 1 times
...
...
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago