Solved

need help with SQLLDR.exe

Posted on 2009-04-09
2
880 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

734 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