Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 10:45 AM
dougjrs@kc.rr.com
Guest
 
Posts: n/a
Default Accessing Oracle from DB2 Stored Procedure


Good Afternoon,

I have a Java stored procedure on DB2 z/OS and it is using the Type 4
JDBC driver to access an Oracle database. After I get the data from
the Oracle dataabse I try to return it from my SP as a result set, but
I get an -20213 because the result is from Oracle and not DB2. Can you
convert from an Oracle resultset to a DB2 resultset (and how)?


Thanks,
Doug

  #2  
Old November 12th, 2005, 10:45 AM
Larry
Guest
 
Posts: n/a
Default Re: Accessing Oracle from DB2 Stored Procedure

Is the Stored Proc on z/OS? If so, you might be able to use Websphere
INformation Integrator as middleware between z/OS and Oracle.

Larry Edelstein

dougjrs@kc.rr.com wrote:[color=blue]
> Good Afternoon,
>
> I have a Java stored procedure on DB2 z/OS and it is using the Type 4
> JDBC driver to access an Oracle database. After I get the data from
> the Oracle dataabse I try to return it from my SP as a result set, but
> I get an -20213 because the result is from Oracle and not DB2. Can you
> convert from an Oracle resultset to a DB2 resultset (and how)?
>
>
> Thanks,
> Doug
>[/color]
  #3  
Old November 12th, 2005, 10:45 AM
dougjrs@kc.rr.com
Guest
 
Posts: n/a
Default Re: Accessing Oracle from DB2 Stored Procedure

Yes, the SP is on z/OS. I think that II is an extra charge item from
IBM that my company does not license.

I guess that my java program could create a temp table to insert the
data into and then do a select * from that and return the resultset
from that.

Doug

  #4  
Old November 12th, 2005, 10:45 AM
DA Morgan
Guest
 
Posts: n/a
Default Re: Accessing Oracle from DB2 Stored Procedure

dougjrs@kc.rr.com wrote:[color=blue]
> Good Afternoon,
>
> I have a Java stored procedure on DB2 z/OS and it is using the Type 4
> JDBC driver to access an Oracle database. After I get the data from
> the Oracle dataabse I try to return it from my SP as a result set, but
> I get an -20213 because the result is from Oracle and not DB2. Can you
> convert from an Oracle resultset to a DB2 resultset (and how)?
>
>
> Thanks,
> Doug[/color]

How are you returning the result set from Oracle? Querying tables/views
directly? Out parameter from a procedure or package? Ref Cursor? Array?
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
  #5  
Old November 12th, 2005, 10:45 AM
Larry
Guest
 
Posts: n/a
Default Re: Accessing Oracle from DB2 Stored Procedure

Your Java program may need to get pretty sophisicated. You need to
convert all the Oracle datatypes to DB2 data types and also convert
ascii to ebcidic.

Larry Edelstein

dougjrs@kc.rr.com wrote:[color=blue]
> Yes, the SP is on z/OS. I think that II is an extra charge item from
> IBM that my company does not license.
>
> I guess that my java program could create a temp table to insert the
> data into and then do a select * from that and return the resultset
> from that.
>
> Doug
>[/color]
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,174 network members.