Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamic table copy - commit

425103Sep 23 2004 — edited Sep 24 2004
Here’s the scoop:

I have 1 system that I want to be able to load some tables from a different system over a database link. I can do something like CREATE TABLE XXX AS SELECT * FROM XXX@DBLINK. The problem I have is that I need to COMMIT after about 100 rows since some of the tables I am copying are huge. I am not using SQL*PLUS so autocommit is not an option. This is being implemented in a PRO*C program and I don’t necessarily know the tables to copy in the source code (I get the list from DBA_TABLES where OWNER = XXXX). I was thinking along the line of Dynamic SQL but have not implemented something that could select and insert without specifying the exact column names. Any ideas? I lost my PRO*C book (I think somebody took it!!!)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2004
Added on Sep 23 2004
2 comments
442 views