Solved

Interbase *.db tables to oracle

Posted on 2001-07-12
7
237 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…

832 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