Hi,
I'm trying to figure out if this is possible in Java
OPTION 1
==================
1. Obtain a ResultSet by querying a non-oracle database
2. Cast the resultSet into an OracleResultSet
3. Pass the OracleResultSet into a pl/sql stored procedure for processing
OPTION 2
=================
1. Obtain a ResultSet by querying a non-oracle database
2. Cast the resultSet into an oracle ref cursor
3. Pass the ref cursor into a pl/sql stored procedure
Any thoughts on how to do this would be greatly appreciated.
Thanks.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: 2 &nbspReplies

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Hi - thanks for the answer. To be a little more clear on the problem i've created the following Java pseudocode
String sqlStmtRead = "SELECT COUNT(*) FROM TABLE";
//DBRes is a class that handles database functions
ResultSet rs = DBres.executeSelectQuery(conn, sqlStmtRead);
//Cast the resultset into an OracleResultSet
OracleResultSet ors = (OracleResultSet)rs;
// THE QUESTION
// Can i obtain a reference to the OracleResultSet ors and
// pass it as a parameter (cursor or record type) to a
// plsql procedure for processing. And if so how would I do
// this.
Thanks!

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

Share this item with your network:

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy