Questions tagged [controlfile]
46 questions
0
votes
0 answers
Error in executing a control file in SQL Loader
This here is my data file Sample1.dat
10013010-05-202212-05-202217-05-2022Not WellS5 A
10113111-04-202112-04-202112-04-2022Fever A365P
10213201-07-202203-07-202206-07-2022VacationC5 R
10313301-03-202201-03-202207-03-2022Not wellS6 …

John Joy
- 7
- 1
0
votes
1 answer
SQL LOADER Control File without fields
I'm working on a task to load Database table from a flat file. My database table has 60 columns.
Now, In SQL LOADER control file, Is it mandatory to mention all the 60 fields ?
Is there a way to tell SQL LOADER that all 60 columns should be treated…

Althaf
- 21
- 2
- 6
0
votes
0 answers
How can I modify Debian control file build depends version?
There is a simple control file:
Source: my-package
Section: non-free
Priority: extra
Maintainer: Some one
Uploaders: Some one
Build-Depends: dh-autoreconf, pkg-config, debhelper, autotools-dev, dh-buildinfo,
…

Barel Elbaz
- 89
- 8
0
votes
1 answer
Oracle SQL Loader Control File: Upload header in different table using WHEN
I receive a file that has:
an header, starting with the string header followed by some columns;
a body: all the other lines after the first one (the header).
I know that only the header will begin with the string 'HEADER' so I thought I could…

antoninus96
- 77
- 12
0
votes
1 answer
Oracle SQL Loader control file to ignore ellipsis
I have an Oracle SQL Loader control file based on position in a text file. One particular field periodically gets an ellipsis '...' from the source, which causes a carriage return in the loading table. No matter how many times I request '...' to…

jc_dollar
- 11
- 3
0
votes
2 answers
SQL LOADER CONTROL FILE
I have this loader control file.
LOAD DATA
REPLACE
INTO TABLE TEST
WHEN TEST_CD != 'A' AND TEST_CD = 'B' AND TEST_TYPE_CD = 15
Currently its loading data when TEST_CD = 'B' AND TEST_TYPE_CD = 15 but now I want to modify it so that when TEST_CD =…

Jack
- 785
- 4
- 12
- 19
0
votes
1 answer
Restrict invalid date format data using sql loader
I want to load data with date format as 'MM/DD/YYYY', but currently facing a challenge with below data in input file.
e.g. As per below code it's allowing 09/01/20 and 09/11/2020. but i want to reject the 09/01/20 as YYYY is not 4 digit.
How can I…

Ganesh
- 486
- 3
- 8
- 18
0
votes
1 answer
How do I load millisecond accuracy dates with SQLLDR
I am trying to load date fields that have six decimal places using sqlldr. For example I have a date: "2020-01-05-16.32.02.070000" in my csv import file.
In my control file for sqlldr I tried: LASTMODIFIED DATE "YYYY-MM-DD-HH24.MI.SS.FF6",
But the…

That Robin
- 75
- 1
- 9
0
votes
1 answer
Have to avoid all records having more than one occurrence using control file of a SQL Loader
I want to avoid all the records to be inserted into a table using SQL Loader. The table in which we are inserting has a primary key over 3 columns. Whenever duplicate occurred, code gets failed with a primary key violation.
I have a requirement to…

Akiee
- 1
0
votes
1 answer
How to run a control file in Oracle
I have a control file to load data from flat file to Table. what's next? How do I run this file to load data? I have Oracle SQL Developer and SQL*PLUS

PythonDeveloper
- 289
- 1
- 4
- 24
0
votes
1 answer
First position of a delimited file is skipped when I read it using SQL LOADER control file
I have a delimited file that I am reading using a Cntrl file. The first position value from all content lines is being skipped.
Data…

Poornima
- 1
- 1
0
votes
1 answer
clear data and then load data
I'm ruuning below script to insert data from .csv file to oracle table A. How I can update code to clear data of table A first and then insert data using one file.
load data
append
INTO TABLE USB.BAS2_AGENCY_TO_RISKRATING_TRAN
fields terminated by…

Sachin Sharma
- 352
- 5
- 18
0
votes
2 answers
BOUNDFILLER with select statement
In an Oracle Control File, can I populate a BOUNDFILLER from a lookup table?
for example:
EMPID BOUNDFILER "SELECT EMPID from employees where refno=refno"
I tried but I get an error msg, I assume because this is not possible?
The error message is:…

Steve
- 1,028
- 7
- 25
- 42
0
votes
1 answer
Columns with leading underscore in Oracle SQL Loader
I want to load data in an Oracle database via SQL Loader.
Here is my control file. I cut out the middle part that its not too long..
OPTIONS (BINDSIZE=512000, ROWS=10000)
LOAD DATA
CHARACTERSET UTF8
APPEND
INTO TABLE EIDESWTDOC
FIELDS TERMINATED…

csnr
- 79
- 1
- 7
0
votes
1 answer
Discarding rows containing empty string in CSV from uploading through SQL Loader control file
I am trying to upload a CSV which may/may not contain empty value for a column in a row.
I want to discard the rows that contain empty value from uploading to the DB through SQL Loader.
How can this be handled in ctrl file:
I have tried below…

Saurabh Mehta
- 91
- 1
- 2
- 9