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.
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)- A88% (52)
- B2% (1)
- D3% (2)
- F7% (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.
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.
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.
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.
Virtual columns cannot be added to external tables; the ALTER TABLE...ADD (column AS expression VIRTUAL) syntax is not supported for external table objects.
External tables are strictly read-only; the UPDATE statement is not supported and will return ORA-30657.
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
Community Discussion
No community discussion yet for this question.