1Z0-062 · Question #336
What must you use to read data from a table in your database and write it to an external table?
The correct answer is D. Use CREATE TABLE. . ORGANIZATION EXTERNAL command with ORACLE_DATAPUMP. To read data from an existing internal table and export it into an external table file, you must use a specific combination of SQL commands and an external table access driver.
Question
What must you use to read data from a table in your database and write it to an external table?
Options
- AUse SQL* LOADER conventional path load.
- BUse SQL* LOADER direct path load.
- CUse CREATE TABLE. . ORAGANIZATION EXTERNAL command with ORACLE_LOADER
- DUse CREATE TABLE. . ORGANIZATION EXTERNAL command with ORACLE_DATAPUMP
How the community answered
(56 responses)- A9% (5)
- B13% (7)
- C2% (1)
- D77% (43)
Why each option
To read data from an existing internal table and export it into an external table file, you must use a specific combination of SQL commands and an external table access driver.
SQL*Loader is designed for loading data *into* database tables from external files, not for exporting data *to* external tables.
SQL*Loader direct path load is an optimized method for loading data *into* database tables from external files, not for exporting data *to* external tables.
The ORACLE_LOADER access driver for external tables is primarily used for reading data *from* external files *into* database tables, not for writing data *from* internal tables *to* external table files.
The CREATE TABLE with ORGANIZATION EXTERNAL command, when specified with the TYPE ORACLE_DATAPUMP access driver, enables the creation of an external table that can both read data from and write data to an external file. To write data from an internal table, you use a subquery like 'AS SELECT ...' within the CREATE TABLE statement, which then exports the data into the external file managed by the Data Pump driver.
Concept tested: Exporting data using Oracle External Tables with Data Pump
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/CREATE-TABLE.html#GUID-F7F1871C-12A1-4235-9A52-258D1495066D
Topics
Community Discussion
No community discussion yet for this question.