RE: A question on table export
Date: Tue, 1 Jul 2008 09:47:43 -0700 (PDT)
> Can we export a table and import into another table (which has the same
> Both the tables are in the same schema.
No, not into another table. Why not insert directly into the destination table like: insert into dest select * from source;
- On Tue, 7/1/08, Elliott, Patrick <patrick.elliott_at_medtronic.com> wrote: From: Elliott, Patrick <patrick.elliott_at_medtronic.com> Subject: RE: A question on table export To: "Elliott, Patrick" <patrick.elliott_at_medtronic.com>, "anuragdba_at_gmail.com" <anuragdba_at_gmail.com>, "ORACLE-L" <oracle-l_at_freelists.org> Date: Tuesday, July 1, 2008, 7:40 AM
I haven't worked with bulk inserts much, so anyone who
has please feel free to respond with an improved solution using bulk
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Elliott, Patrick
Sent: Tuesday, July 01, 2008 9:28 AM
Subject: RE: A question on table
The only reason that I can think of to import into the
same schema is to maybe prevent the rollback segment from filling up undo or you
are getting snapshot too old. If you are having trouble with too many rows
on the insert, then you just need to code the insert in pl/sql with intermediate
CURSOR c1 IS SELECT * FROM
row_cnt NUMBER := 0;
FOR r1 IN c1 LOOP
VALUES (r1.col1, r1.col2, ...
row_cnt := row_cnt
IF row_cnt > 1000
END IF; END LOOP; COMMIT;
Just change the 1000 to a higher or lower number depending on your requirements. Change source_table and destination_table to the real table names and col1, col2, .. to the real column names.
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Anurag Verma
Sent: Monday, June 30, 2008 6:10 PM
Subject: A question on table export
I have an Oracle 9i (18.104.22.168.0) database.
One question on table export.
Can we export a table and import into another table (which has the same structure)?
Both the tables are in the same schema.
-- Anurag Verma, Database Administrator ERCOT(Electric Reliability Council of Texas), Texas 76574 [CONFIDENTIALITY AND PRIVACY NOTICE] Information transmitted by this email is proprietary to Medtronic and is intended for use only by the individual or entity to which it is addressed, and may contain information that is private, privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please delete this mail from your records. To view this notice in other languages you can either select the following link or manually copy and paste the link into the address bar of a web browser: http://emaildisclaimer.medtronic.com -- http://www.freelists.org/webpage/oracle-lReceived on Tue Jul 01 2008 - 11:47:43 CDT