oracle - Split CSV columns in CTL file SQL Loader -


i have 1617 columns in 1 of csv files. oracle has limit of 1000 columns per table, created 2 tables.

table 1: 900 columns table 2: 717 columns

i have 1 csv file , 7 gb big file. need use sql loader load file on database.

i want control file can above me i.e. use first 900 columns , load table 1 , next 717 columns table 2.

i don't think can 1 control file. may have use 2 control files. first columns 901 1617 set filler loads table 1, other columns 1 900 set filler loads table 2. run sqlldr twice, once each control file pointing same data file. make sure have primary key column(s) on both in order join them later.

either or type of pre-processing wrapper program split file needed.

or load via program can read file row row , insert necessary.

whatever going maintenance nightmare, dealing many columns. seems proper data normalization needed here have had deal vendor data not change sympathize if case , loading staging table further processing.

see post stored procedure generates control files. little tweaking circumstances, should lot: 46 control files sql loader


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -