Hi Folks,
I have a data file with three comma delimited columns. I am trying to load just the first column from the file into an Oracle table. The remaining table columns should contain hardcoded values.
My table looks as follows
Name Null? Type
---------- -------- ----------------------------
ADDRESS VARCHAR2(12)
IP VARCHAR2(15)
UPDATED_DATE DATE
My sql loader control file looks as follows
LOAD DATA
APPEND INTO TABLE T1
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
(
address CHAR "upper(replaceaddress, '.',''))",
ip CHAR "10.10.0.0",
updated_date SYSDATE
)
Sample Data:
============
0019.5ed2.02de,12480000,3145728
0019.5ed7.0ac4,12480000,3145728
0013.7189.e530,18000000,3145728
The sql loader spits the following error
Record 50: Rejected - Error on table T1, column IP.
ORA-00917: missing comma
Record 51: Rejected - Error on table T1, column IP.
ORA-00917: missing comma
Can somebody point out any errors?
Thanks in advance
rogers42
I have a data file with three comma delimited columns. I am trying to load just the first column from the file into an Oracle table. The remaining table columns should contain hardcoded values.
My table looks as follows
Name Null? Type
---------- -------- ----------------------------
ADDRESS VARCHAR2(12)
IP VARCHAR2(15)
UPDATED_DATE DATE
My sql loader control file looks as follows
LOAD DATA
APPEND INTO TABLE T1
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
(
address CHAR "upper(replaceaddress, '.',''))",
ip CHAR "10.10.0.0",
updated_date SYSDATE
)
Sample Data:
============
0019.5ed2.02de,12480000,3145728
0019.5ed7.0ac4,12480000,3145728
0013.7189.e530,18000000,3145728
The sql loader spits the following error
Record 50: Rejected - Error on table T1, column IP.
ORA-00917: missing comma
Record 51: Rejected - Error on table T1, column IP.
ORA-00917: missing comma
Can somebody point out any errors?
Thanks in advance
rogers42