Solved

Interbase *.db tables to oracle

Posted on 2001-07-12
7
236 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
ID: 6278517
You can use the DataPump tool that comes with Delphi...
0
 
LVL 3

Accepted Solution

by:
nnbbb09 earned 25 total points
ID: 6278530
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
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
tbl_notOracleSide.BatchMove(tbl_OracleSide,batCopy);

no ddl/dml is needed

well, not tested by myself, but could work

meikl
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

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

Assisted Solution

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

EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

929 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

12 Experts available now in Live!

Get 1:1 Help Now