Skip to Main Content

ODP.NET

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!

no. of rows retrieved from oracledatareader

209838Feb 25 2003 — edited Mar 21 2003
Greetings,
Backgroud: I'm trying to use the most efficient method to copy a set of data from 1 Database to another. Both the target and destination tables have the same schema.

Details: Here's what i've done.. retrieve from Database1 records via oracledatareader. Next loop the reader and assign values to parameter(arraybinding). Lastly, arraybinded values as parameters to insert into Database2.

Question:
1) How do i get the no. of rows returned from the data fetched. I need this figure to allocate the arraybindcount for the insertion to another Database.
2) Is the above way recommended? I di not use dataset method of merge, as i know of the amount of overheads. I've not look into cursor yet.

Thnks.
alvin appreciates it.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2003
Added on Feb 25 2003
4 comments
454 views