I have two requirements of loading data in Oracle Tables through SQL Loader utility -
Requirement 1
Two .csv files with same headers defined in both the files. Skip the header from both and load the combined data in the table.
What will be the command to load the data by skipping the headers and stop the process if either of files have errors.
Requirement 2
Two files with attributes spread across in both the files i.e.,
Table Primary key - ID,Name
Cols in First file - ID,Name,Attr1
Cols in Second File - ID,Name,Attr2
Columns in the oracle table where the both the files' data will be loaded
ID,Name,Attr1,Attr2
What will be the best way to load the attributes from both the files in this case? How to handle data integrity scenarios ? i.e., notify or do not load attributes from 2nd file if 1st file corresponding records are bad records.
Thanks in Advance.