boondocksaint20
MIS
Hello,
I want to write a java application that pulls multiple records from SQL Server and then updates records onto an Oracle 9i database. What is the best way to do this? Would it be best to call the SQL Server, write it to XML and then somehow iterate through the xml through an Oracle Stored Procedure, or can you call a different datasource within an Oracle Stored Proc?
A first attempt that I know is resource heavy bc it calls the database each time is to pull the results from SQL Server into a struct class, and then save each instance of it into an ArrayList, then iterate through the ArrayList, pull each struct object out and run an update query into the Oracle box for each record. I have successfully done this, but I want to know of a better way to do this.
Thanks in advance!
I want to write a java application that pulls multiple records from SQL Server and then updates records onto an Oracle 9i database. What is the best way to do this? Would it be best to call the SQL Server, write it to XML and then somehow iterate through the xml through an Oracle Stored Procedure, or can you call a different datasource within an Oracle Stored Proc?
A first attempt that I know is resource heavy bc it calls the database each time is to pull the results from SQL Server into a struct class, and then save each instance of it into an ArrayList, then iterate through the ArrayList, pull each struct object out and run an update query into the Oracle box for each record. I have successfully done this, but I want to know of a better way to do this.
Thanks in advance!