Re: Database migration



Robert Hicks <sigzero@xxxxxxxxx> writes:

Omega -1911 wrote:
On 10/17/06, Robert Hicks <sigzero@xxxxxxxxx> wrote:

What is the best "Perl" way to migrate?
Honestly, in Perl, the saying is "There is more than one way to do
it"
but without your showing what you have tried, then the "best" way to
try is by writing code. I believe that is why no one has offered their
help.

Ok, I will do that tomorrow. I wanted to try it first. I have most of
what I think will work done. If I hit a snag I will post what I have.

One thing to keep in mind when doing things like this. Most people
would think of doing this in one of two ways. Either:

1) Load all the data from the source db, then update the target db.

or:

2) Load the data from the source db row-by-row, updating the target db
as you go.

For large sets of data, option '1' can use up available memory, and
option '2' can be very slow due to the number of 'round trips' to and
from the databases. So a 'batching' solution might be a good idea. Of
course, if the data set isn't very large, either of the 'obvious'
solutions will work fine.

Good luck.

-RN

--
Robin Norwood
Red Hat, Inc.

"The Sage does nothing, yet nothing remains undone."
-Lao Tzu, Te Tao Ching
.



Relevant Pages

  • Session Data Set disappears on second page load
    ... I have a data set with three data tables. ... the data set is no longer in session state and gives me a null ... I've eliminated all subroutines on the target page except the Page Load. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Session Data Set disappears on second page load
    ... I have a data set with three data tables. ... the data set is no longer in session state and gives me a null ... I've eliminated all subroutines on the target page except the Page Load. ...
    (microsoft.public.dotnet.framework.aspnet)
  • IP/Printway Question.
    ... The target printer is an HP4650. ... ANFM1200I Data set: ... The LPR RECEIVE A PRINT JOB command failed because a print ... Target host: 10.70.234.254 ...
    (bit.listserv.ibm-main)
  • Re: Thieves must have been disappointed
    ... > Picked up a load in Pennsyvania on Thursday and took it to the ... > Target DC south of Dallas, ... > the shipper they put on one of those thick cable seals that wraps ... > said there was no seal on the trailer. ...
    (misc.transport.trucking)
  • Re: Unique sequence number per datafile using SQL Loader
    ... Build a table exactly like the target table. ... Find the next seq number ... Put the seq number value into the load table's seq number. ... Bottom line: use a sequence. ...
    (comp.databases.oracle.tools)