nerdexam
Oracle

1Z0-052 · Question #41

Which two operations can be performed on an external table? (Choose two.)

The correct answer is A. Create a view on the table C. Create a synonym on the table. External tables in Oracle are read-only objects mapped to flat files, so only metadata-level operations like views and synonyms are permitted on them.

Managing Schema Objects

Question

Which two operations can be performed on an external table? (Choose two.)

Options

  • ACreate a view on the table
  • BCreate an index on the table
  • CCreate a synonym on the table
  • DAdd a virtual column to the table
  • EUpdate the table using the UPDATE statement
  • FDelete rows in the table using the DELETE command

How the community answered

(59 responses)
  • A
    88% (52)
  • B
    2% (1)
  • D
    3% (2)
  • F
    7% (4)

Why each option

External tables in Oracle are read-only objects mapped to flat files, so only metadata-level operations like views and synonyms are permitted on them.

ACreate a view on the tableCorrect

Views can be created on external tables because a view is simply a stored query definition and does not require the underlying table to support DML or physical storage structures. Oracle allows CREATE VIEW against external tables just as it does for regular tables.

BCreate an index on the table

Indexes cannot be created on external tables because external tables have no segment storage in the database and Oracle has no mechanism to maintain an index structure against externally stored data.

CCreate a synonym on the tableCorrect

A synonym is a database alias and requires no physical storage or DML capability on the target object, so CREATE SYNONYM is fully supported on external tables.

DAdd a virtual column to the table

Virtual columns cannot be added to external tables; the ALTER TABLE...ADD (column AS expression VIRTUAL) syntax is not supported for external table objects.

EUpdate the table using the UPDATE statement

External tables are strictly read-only; the UPDATE statement is not supported and will return ORA-30657.

FDelete rows in the table using the DELETE command

External tables are strictly read-only; the DELETE statement is not supported and will return ORA-30657.

Concept tested: Oracle external table supported DDL operations

Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-external-tables-concepts.html

Topics

#external tables#views#synonyms#schema objects

Community Discussion

No community discussion yet for this question.

Full 1Z0-052 Practice