QuestionQ152

VerifiedControlling User Access

Examine the following description of the PRODUCTS table:

Question Image

Rows in this table contain data in every column. You place the PRODUCTS table in read-only mode.

Which three commands run successfully on PRODUCTS?

Choose three
Explanation

Oracle's read-only table restriction prevents statements that would modify or physically purge row data - INSERT/UPDATE/DELETE/MERGE, TRUNCATE TABLE, ALTER TABLE ... DROP COLUMN, and ALTER TABLE ... DROP UNUSED COLUMNS all fail because they change the underlying data segment. CREATE INDEX and ALTER TABLE ... SET UNUSED succeed because they only add metadata objects or mark a column as logically unused without touching existing row data. DROP TABLE also succeeds because it operates on the table as a schema object (renaming it into the recycle bin) rather than performing a data-modifying operation against the read-only segment.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!