Dear All - We have a requirement to retrieve values from an oracle database (replicated production server version 11.2) to another oracle target database for a reporting purpose.Since the source database is a replicated server it's only read only mode and have restrictions in using DB links(which discussed on another forum).
We have stored procedures to fetch and insert the values into target database and we can make use of callable statement from a JDBC program to invoke and execute the stored procedure .
Since source and target tables are in different database,how do we connect these two databases? Can we link it through stored procedure(as copied insert statement below) or else do we need any middle ware here?
INSERT INTO [LINKEDSERVER\INSTANCE].remoteDATABASE.remoteSCHEMA.remoteTABLE
SELECT * FROM localTABLE
Appreciate your help in advance!
Thanks,
Sen