Solved

need help with SQLLDR.exe

Posted on 2009-04-09
2
869 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.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Oracle 12c 10 100
Format Number Field 10 39
apply oracle patches on windows error 2 42
statspack purge automate 7 29
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video shows how to recover a database from a user managed backup
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

758 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

17 Experts available now in Live!

Get 1:1 Help Now