nerdexam
Oracle

1Z0-062 · Question #335

You create a locally managed tablespace ORDERS_TBS with automatic segment management. You then create the table DAILY_ORDS_LST in the ORDERS_TBS tablespace using the command. CREATE TABLE…

The correct answer is A. It allows only 80% of space to be occupied in all data blocks of this table. The PCTFREE storage parameter influences data storage by reserving a specified percentage of free space in each data block for future updates. A PCTFREE 20 setting means that only 80% of a data block can be initially filled with new rows.

Managing Schema Objects

Question

You create a locally managed tablespace ORDERS_TBS with automatic segment management. You then create the table DAILY_ORDS_LST in the ORDERS_TBS tablespace using the command. CREATE TABLE daily_ords_1st(ordno NUMBER, ord_date DATE) PCTFREE 20; How does the PCTFREE storage parameter influence data storage for this table?

Options

  • AIt allows only 80% of space to be occupied in all data blocks of this table.
  • BIt minimizes row chaining during row insertion.
  • CIt minimizes row migration during existing row data updation.
  • DIt automatically coalesces free space of a data block when it reaches 20% of available space.

How the community answered

(28 responses)
  • A
    71% (20)
  • B
    4% (1)
  • C
    18% (5)
  • D
    7% (2)

Why each option

The `PCTFREE` storage parameter influences data storage by reserving a specified percentage of free space in each data block for future updates. A `PCTFREE 20` setting means that only 80% of a data block can be initially filled with new rows.

AIt allows only 80% of space to be occupied in all data blocks of this table.Correct

The `PCTFREE 20` parameter dictates that once a data block's available space for new rows drops below 20%, Oracle stops inserting new rows into that block. This effectively means that for initial row insertions, only 80% of the block's space will be occupied, reserving the remaining 20% for updates to existing rows in that block.

BIt minimizes row chaining during row insertion.

`PCTFREE` reserves space for future updates to existing rows to prevent row migration, not to primarily minimize row chaining during initial row insertion.

CIt minimizes row migration during existing row data updation.

Minimizing row migration during existing row data updates is the *purpose* and *benefit* of `PCTFREE`, but choice A describes the direct influence on data storage itself.

DIt automatically coalesces free space of a data block when it reaches 20% of available space.

`PCTFREE` does not automatically coalesce free space; it simply controls the threshold for new row insertions into a block.

Concept tested: Oracle PCTFREE parameter functionality

Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/CREATE-TABLE.html#GUID-F92C3ECF-1216-4358-97B2-C613D995554D

Topics

#PCTFREE#Data Blocks#Table Storage#Automatic Segment Space Management

Community Discussion

No community discussion yet for this question.

Full 1Z0-062 Practice