Attached (I hope) is a C prog I slapped together to take the contents of a DBF file and blow it out to a SQL Loader dat file.  I got most of the info from asktom.oracle.com.  He has a package posted there to read a DBF file and insert rows into an oracle table.  It is a robust, general-purpose package, but because it inserts rows one at a time, it's as slow as Christmas.  I use a ksh script to generate a control file (using the print header only option of the C program), start up sql loader and have it suck on a named pipe, generate sql loader dat info using all of the C program, and have it write to the named pipe.
 
You can compile the C program and see if you get what we would expect to get from the DBF files.  The C program works entirely through command line redirection.
 
Example: c_prog [options] < dbf_file > output_file
-----Original Message-----
From: AK [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 4:09 PM
To: Multiple recipients of list ORACLE-L
Subject: Re: dbf and cdx files

Looks like foxpro files . Trying to open using odbc driver .
 
-ak
----- Original Message -----
Sent: Monday, July 14, 2003 11:54 AM
Subject: RE: dbf and cdx files

Are the dbf files dbase files?  If so, I have something that you might be able to use or adapt to your purposes.
-----Original Message-----
From: AK [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 1:29 PM
To: Multiple recipients of list ORACLE-L
Subject: dbf and cdx files

I have got some *.cdx and *.dbf files to load . Any Idea what are these files and how can I open them ?
 
-ak

Attachment: dbf_reader.c
Description: Binary data

Reply via email to