Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Best way to transfer data using PL/SQL between 2 DB's?
I am having to transfer large amounts of data from one Oracle database
to another with some major data scrubbing on the primary key. The
following is how I have it working right now and I am wondering if I can
change it to improve speed.
first I run a SQL statement:
delete from DestTable
where PK1 = pk1 -- pk1 is a variable
then I run the procedure:
Procedure DL(PK1 varchar2) is
OldPK2 varchar2;
NewPK2 varchar2;
cursor c1 is
select
pk1, pk2, data1, data2
pk1 = PK1; -- getting PK1 from passed parameter
begin
for rec in c1 loop
begin
OldPK2 = rec.pk2;
Thanks,
Sean Received on Thu May 28 1998 - 00:52:24 CDT