Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

need help with SQLLDR.exe

Posted on 2009-04-09
2
Medium Priority
?
918 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 200 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

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…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

810 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