Solved

need help with SQLLDR.exe

Posted on 2009-04-09
2
871 Views
Last Modified: 2013-12-18
I am using SQLLDr to populate a table from a flat file. I have created the following files:
.CTL  which describes the columns and position to populate

MY SQL statement look like this:

SQLLDR.exe parfile=abc.par

What I dont understand is what the PAR file is supposed to be doing. Can anyone help me with this PAR file?
$ORACLE_HOME/bin/sqlldr.exe parfile=$cmddir/sap_inv.par
 
 

and this is my PAR file
 

USERID=abc/abc

CONTROL=I:/xx/dev/bin/sap_inv.ctl

BAD=I:/xx/sapTOlims/sap_inv.bad

LOG=I:/xx/sapTOlims/sap_inv.log

ERRORS=99999

Open in new window

0
Comment
Question by:joekeri
2 Comments
 
LVL 16

Accepted Solution

by:
Milleniumaire earned 50 total points
ID: 24107136
PAR is short for PARAMETER.

The PAR file contains the PARAMETERS that SQL Loader will use to load the file.

Your PARAMETER file contains the USERID, CONTROL, BAD, LOG and ERRORS parameters.

If you didn't use a parameter file you would have to specify all these parameters on your sqlldr command line e.g.

SQLLDR.exe USERID=abc/abc CONTROL=I:/xx/dev/bin/sap_inv.ctl BAD=I:/xx/sapTOlims/sap_inv.bad LOG=I:/xx/sapTOlims/sap_inv.log ERRORS=99999

The parameter file is simply another way of invoking sqlldr where the parameters are stored in a file instead of specified on the command line.
0
 

Author Closing Comment

by:joekeri
ID: 31568522
EXCELLENT!!! thank you for your time and help... Your reply was exactly what I was looking for....
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now