If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > How to access dBase using PL/SQL?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-14-03, 10:01
Thorsten_Kern Thorsten_Kern is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 1
Question How to access dBase using PL/SQL?

Maybe a quite simple question for professionals...

We've got an Oracle Database (9.2.0.1.0) running on a Windows 2000 Server. I'd like to write a PL/SQL procedure that reads data from dBase files stored on a server drive.
The following code works when I insert it into an MS Access query.

SELECT *
INTO [ODBC;DRIVER={Microsoft ODBC for Oracle}; SERVER=oracleserver;UID=username;PWD=userpass].DestinationTable
FROM [DBASE IV; Database=SourcePath].SourceTable;

So I tried to use the same syntax on the Oracle SQL*Plus console. For example:

SELECT *
FROM [ODBC;DRIVER={Microsoft Dbase driver (*.dbf)};
DriverID=277;DBQ=SourcePath].SourceTable;

I only receive the message: "ORA-00903: invalid table name".

(Necessary ODBC driver is installed. And the dBase file exists in the "SourcePath"-directory.)

Please give me a hint to solve the problem!
Thanks.

Thorsten
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On