Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> (Fwd) RE: SQLLoader and DBF files

(Fwd) RE: SQLLoader and DBF files

From: Eric D. Pierce <>
Date: Tue, 13 Jun 2000 11:59:00 -0700
Message-Id: <>

(came in after I sent the last thing previously)


Thank you for the information. Unfortunately, the application that we are using is a highly specialized piece of software that for some reason doesn't support ODBC. What we are currently doing is what you describe; dumping to text and loading that. This would work OK but the software is really flaky and the order of the columns in the dbf file is not always the same so the use of any predefined ctl file is not practical.

As for the older method, it sounds like it won't work for NT.

Thanks anyway.


-----Original Message-----
Sent: Monday, June 12, 2000 8:09 PM
To: Multiple recipients of list ODTUG-DEV2K-L


If .dbf=dBase (and descendants), read on.

The standard answer (I've never used it, maybe someone that has can give more detail): ODBC connectivity to Oracle from the Foxpro (etc.) application. You don't need SQL*Loader.

If you don't want to do that, dump the .dbf file to text, and then use SQL*Loader on the text dump. Problem: you need to manually do the DDL first (create table...), then manually build a regular .ctl file for each .dbf file.

The previous standard answer: the Netware version of Oracle (v6/ &v7?) DOS client had a .dbf file "prep" utility, called, amazingly, DB3PREP.exe. IIRC, it created *both* a .sql (DDL) file, and the .ctl file.

You can't use DB#PREP.exe in Win9x because it required a special Oracle DOS memory manager that was incompatible with Win9x memory management (and is probably incompatible with SQL*Net v2 & Net8 anyway).

(If you want to look at them for some reason, I still have the example .dbf/.sql/.ctl files that Oracle provided with DB3PREP.exe, and I can provide them off-list.)

I even have a small legacy app still running with a DOS client and Oracle 7.3 (*gasp*), so theoretically, if you sent me an empty copy of one of your .dbf files, I could run DB3PREP.exe on it, and send you the .sql/.ctl output files back. I don't know for sure that they would run on "modern" versions of SQL*Loader.


Date sent:      	Mon, 12 Jun 2000 12:45:34 -0800
To:             	Multiple recipients of list ODTUG-DEV2K-L
Send reply to:

> Does anyone know if there is an option in SQLLoader to read in DBF files?
> If so, an example of a CTL file would be great.

ODTUG 2000 - Your Lifesaver for Oracle Tools! 165+ technical sessions!
Marriott Harbor Beach Resort, Ft. Lauderdale, FL - June 11-15, 2000
*Sign up now to be an ambassador and win prizes!  Visit:
Author: May, Kevin

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
To REMOVE yourself from this mailing list, send an E-Mail message
to: (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ODTUG-DEV2K-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Jun 13 2000 - 13:59:00 CDT

Original text of this message