473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to skip the bad record and continue with loading in SQL Loader?

Hi,

I am trying to load data file into database in sql loader. How to skip the bad record alone and continue with loading?

For eg. I am trying to load data file which has 100 records.The 50th record encounters an error.At present only 49 records gets loaded and it stops from 50th record. I want first 49 records as well as 51st to 100th record to be loaded at the same time and 50th records should be written in the bad file. how to skip the 50th record alone and continue the same loading process from 51st record?

Please guide me.
Reply asap.

Thanks,

Flora
Sep 22 '10 #1

✓ answered by amitpatel66

try this:

Expand|Select|Wrap|Line Numbers
  1.  
  2. SQLLDR USERID = apps/apps_password CONTROl = x.ctl DATA = dat.txt BAD = dat.bad DISCARD = dat.dsc ERRORS=1000000
  3.  
  4.  
If you note in the above command, I have used ERRORS=1000000 i.e. the complete load will be aborted only when the ERROR count reaches 1,000,000. Until then, the load will ignore the errored record and continue loading from next record.

4 24819
debasisdas
8,127 Expert 4TB
once you specify bad file name in the control file, sql loader should do that for you.
Sep 22 '10 #2
amitpatel66
2,367 Expert 2GB
try this:

Expand|Select|Wrap|Line Numbers
  1.  
  2. SQLLDR USERID = apps/apps_password CONTROl = x.ctl DATA = dat.txt BAD = dat.bad DISCARD = dat.dsc ERRORS=1000000
  3.  
  4.  
If you note in the above command, I have used ERRORS=1000000 i.e. the complete load will be aborted only when the ERROR count reaches 1,000,000. Until then, the load will ignore the errored record and continue loading from next record.
Sep 23 '10 #3
Hi Amit,

Thanks a lot. Its working fine now..

Thanks,
Flora.
Sep 24 '10 #4
Hi Flora,

I have also same question as you had. But i have no idea how to use "SQLLDR USERID = apps/apps_password CONTROl = x.ctl DATA = dat.txt BAD = dat.bad DISCARD = dat.dsc ERRORS=1000000 " in Select statement.

Could you please suggest me.

Thanks,
Snehasis
Nov 21 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Hari Om | last post by:
Here are the details of my error log files: I execute the command and get following message at console: ---------------------------------------------------------------------- ../sqlldr...
1
by: Rakesh Patel | last post by:
Hi All, I want to load XML file data into database. There is seperate XML file for each record (2000 record) and I want to load these records into a single Oracle database table using...
1
by: Mario Horvat | last post by:
Does Oracle Loader tool version 8 support importing dbase (dbf) files?
11
by: JS | last post by:
Dear Group, I have a webpage of small images. At the bottom is a Javascript function. If someone scrolls impatiently to the function link, when the action is complete the html does not continue...
4
by: Adrian MacNair | last post by:
Hi, I created an image gallery which displays 63 images in a slideshow. The problem is that the show was slow because each image loaded one at a time during the show. No problem right? I just...
0
by: dioscuroi | last post by:
When I call OCI (Oracle Call Interface) functions in Debug mode of VC+ 7.0, it takes too much time to load oracle debug symbols, and finall failed. Error messages are printed in output window, just...
9
by: igor.tatarinov | last post by:
Hi, I am pretty new to Python and trying to use it for a relatively simple problem of loading a 5 million line text file and converting it into a few binary files. The text file has a fixed format...
1
by: mirajsen | last post by:
Hello, I am trying to enter records to a table through a Data Access page, which is linked to the table. When I open the page, it is showing the first record which is in the table. Is there...
3
by: Vinarashi | last post by:
Hi, I am trying to load data file into database in sql loader. How to skip the bad record alone and continue with loading? For eg. I am trying to load data file which has 100 records.The 50th...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.