Solved

Interbase *.db tables to oracle

Posted on 2001-07-12
7
234 Views
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.
0
Comment
Question by:sigalos
7 Comments
 
LVL 13

Expert Comment

by:Epsylon
Comment Utility
You can use the DataPump tool that comes with Delphi...
0
 
LVL 3

Accepted Solution

by:
nnbbb09 earned 25 total points
Comment Utility
Sigalos,

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
  begin
    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}

      .
      .
      etc..
      .
      .

    end;

  end;


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.

Jo
0
 
LVL 27

Assisted Solution

by:kretzschmar
kretzschmar earned 25 total points
Comment Utility
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
tbl_notOracleSide.BatchMove(tbl_OracleSide,batCopy);

no ddl/dml is needed

well, not tested by myself, but could work

meikl
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:sigalos
Comment Utility
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?
0
 
LVL 13

Assisted Solution

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

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

Expert Comment

by:Russell Libby
Comment Utility
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.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Thank you,
Russell

EE Cleanup Volunteer
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

10 Experts available now in Live!

Get 1:1 Help Now