When Using a SELECT Statement in a SQL*Loader EXPRESSION Clause, Data is Loaded When Using Conventional Path But Not When Using Direct Path
(Doc ID 2287819.1)
Last updated on AUGUST 04, 2018
Applies to:Oracle Database - Enterprise Edition - Version 126.96.36.199 and later
Information in this document applies to any platform.
When loading data using the SQL*Loader utility with direct path, and the EXPRESSION clause contains a query that depends upon other database tables than the one being loaded, e.g.
LOAD DATA INFILE '/scratch/truggier/dumps/teams.dat'
INTO TABLE TEAMS
FIELDS TERMINATED BY ','
TEAM_GROUND expression "(SELECT TEAM_GROUND FROM GROUNDS i WHERE i.TEAM_NAME = :TEAM_NAME)",
it is noticed that no data is loaded, and there are no errors. However, if line 'OPTIONS (direct=true)' is removed from the control file (meaning that conventional path is used), then all the data is loaded without issue.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document