exam questions

Exam 1z0-082 All Questions

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

Exam 1z0-082 topic 1 question 134 discussion

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

Examine this command:

SQL> ALTER TABLE ORDERS SHRINK SPACE COMPACT

Which two statements are true? (Choose two.)

  • A. The SHRINK operation causes rows to be moved to empty space starting from the beginning of the ORDERS segment.
  • B. Queries and DML statements are allowed on ORDERS while the SHRINK is executing.
  • C. Dependent indexes become UNUSABLE.
  • D. Only queries are allowed on ORDERS while the shrink is executing.
  • E. The high-water mark (HWM) of ORDERS is adjusted.
  • F. The SHRINK operation causes rows to be moved to empty space starting toward the end of the ORDERS segment.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
psycrotic5
1 week ago
FALSE: F.Contrary to the claim, the SHRINK operation moves rows to empty space starting from the beginning of the segment, not toward the end. E: If you specify COMPACT, then Oracle Database only defragments the segment space and compacts the table rows for subsequent release. The database does not readjust the high water mark and does not release the space immediately. You must issue another ALTER TABLE ... SHRINK SPACE statement later to complete the operation. This clause is useful if you want to accomplish the shrink operation in two shorter steps rather than one longer step. i go for AB also.
upvoted 1 times
...
auwia
5 months, 1 week ago
Selected Answer: BF
Correct answers are B and F, because rows are moved up and free space goes down. For COMPACT clause, watermarks are not updated. DML and queries are both supported in this "phase".
upvoted 2 times
...
nautil2
6 months, 3 weeks ago
Selected Answer: AB
A: TRUE; It wouldn´t make sense if the data were filled from the end of segment, because it could remain some empty space after shrinking. Data are moved to empty space to use maximum of empty space. I could not find any proof in the documentation. If anyone find it, feel free and post it here. B: TRUE, https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/managing-space-for-schema-objects.html#GUID-37DF35E0-116B-4AAB-BFB3-DDBDBAB29BEB DML operations and queries can be issued during the data movement phase of segment shrink. C: FALSE, same URL as B, Indexes are maintained during the shrink operation and remain usable after the operation is complete. D: FALSE, also DML is allowed, see B E: FALSE; https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/ALTER-TABLE.html#GUID-552E7373-BF93-477D-9DA3-B2C9386F2877 F: FALSE; opposite to A
upvoted 1 times
...
RaNik69
7 months, 2 weeks ago
Selected Answer: AB
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/ALTER-TABLE.html#GUID-552E7373-BF93-477D-9DA3-B2C9386F2877
upvoted 2 times
...
piontk
9 months ago
Selected Answer: AB
AB are correct
upvoted 4 times
ahmadkrishan
9 months ago
can u explain
upvoted 2 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