Home » RDBMS Server » Server Utilities » Issue with SQL LOADER Control file [merged two by jd]
icon1.gif  Issue with SQL LOADER Control file [merged two by jd] [message #668868] Tue, 20 March 2018 02:33 Go to previous message
sp_siva
Messages: 3
Registered: March 2018
Junior Member
I have a issue with SQL Control file

Here is my feed file which I am trying to load into oracle table using sqlldr
No|Name|ID|Location|value
12|simple||Singapore|gold
34|barate|TEST|London|siler
45|sdfsdfs||America|diamond

Now the requirement on the column 3 (ID)
Option#1 ==> if the column3 (ID) is empty and then we can update the oracle sequence number --> its working with with below codes
ID "Sequence.NEXTVAL",

Option#2 ==> if the column3 (ID) is having some values for few records and then we can skip the values and update the oracle sequence number --> its not working

The output would be like this, where 123,124,125 is the sequence no Mad

No|Name|ID|Location|value
12|simple|123|Singapore|gold
34|barate|124|London|siler Mad
45|sdfsdfs|125|America|diamond

Kindly help me out on this.
 
Read Message icon1.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SQL*Loader-350: Syntax error at line 9. Expecting "(" WHEN clause
Next Topic: Moving entire DB
Goto Forum:
  


Current Time: Fri Apr 19 13:36:55 CDT 2024