QuestionQ147

VerifiedManage Database Performance

You must unload data from the orders, order_items, and products database tables to four files using External Tables.

CREATE TABLE orders_ext -  
(order_id, order_date, product_id, product_name,quantity)  
  
ORGANIZATION EXTERNAL -  
(  
  
TYPE ORACLE_DATAPUMP -  
  
DEFAULT DIRECTORY ext.dir -  
LOCATION (ordersl.dmp','orders2.dmp,orders3.dmp,lorders4.dmp')  
)  
  
PARALLEL -  
  
AS -  
SELECT o.order_id,o.order_date,p.product_id,p.product_name,i.quantity  
FROM orders o,productsp,order_itemsi  
WHERE o.orderjd = i.order_id and i.product_id = p.product_id;  

You execute the command shown in the Exhibit, but only two files are created. Which parameter must be changed so that four files are created?

Explanation

With the ORACLE_DATAPUMP access driver, each parallel I/O server process that populates an external table writes to its own dump file. The number of LOCATION files should match the parallel degree; extra listed files are ignored. Setting PARALLEL to 4 enables four writer processes and four dump files.

Learn more

Community Discussion

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