Interbase *.db tables to oracle

Posted on 2001-07-12
Last Modified: 2012-05-04
Does anybody how to convert from *.db tables to oracle tables? Do I have to create the tables first and then load them with data?
I really want to do DDL and DML together if possible.

Thank you.
Question by:sigalos
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
LVL 13

Expert Comment

ID: 6278517
You can use the DataPump tool that comes with Delphi...

Accepted Solution

nnbbb09 earned 25 total points
ID: 6278530

I think *.db files are Paradox tables not Interbase. I'm certainly no Oracle expert but as a general approach you could load the *.db file into a TTable component and then use the Fields property to build up a Create Table script, adding in the column definitions based on the DataType of each field in the Paradox table.  eg :

  for i:=0 to table1.fieldcount-1 do
    Case table1.fields[i].DataType of
      ftString : {add your code to the script}
      ftInteger : {add your code to the script}
      ftDate : {add your code to the script}




Once you've built up a create table script execute and commit it.

Then you can loop through the records in the dataset building up an INSERT statement for each one and firing that off to the server.

LVL 27

Assisted Solution

kretzschmar earned 25 total points
ID: 6278758
the datapump tool would be the easiest method, but comes only with delphi c/s i guess

to do it by hand,
you could simply connect ttables to the databases (databasename),
on oracle-side the table must be allways closed,
now iterate through the tables on the not oracle-side,
set on both the ttables the tablename
open the not oracle-side ttable
use the tbatchmove-method like

no ddl/dml is needed

well, not tested by myself, but could work

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 6281496
I don't have the datapump tool, because I am using the Enterprise Edition.
As of the second answer, I had that in mind too and it looks like the best approach for now.
As of the last one, it looks like easier, but I don't have a test platform yet until the next two months to test it myself.
Does the ADO component provide any easier way to do it?
LVL 13

Assisted Solution

Epsylon earned 25 total points
ID: 6281574
> I don't have the datapump tool, because I am using the Enterprise Edition.

Then you must have the tool.....
LVL 26

Expert Comment

by:Russell Libby
ID: 8702942
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split points between Epsylon, nnbbb09 and kretzschmar

Please leave any comments here within the next seven days.
Thank you,

EE Cleanup Volunteer

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below.…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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