473,473 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

Nov 12 '05 #1
4 1884
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

do*****@kc.rr.com wrote:
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

Nov 12 '05 #2
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

Nov 12 '05 #3
do*****@kc.rr.com wrote:
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


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
da******@x.washington.edu
(replace 'x' with 'u' to respond)
Nov 12 '05 #4
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

do*****@kc.rr.com wrote:
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

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
1
by: robin via SQLMonster.com | last post by:
I've tried several different way to execute a oracle stored procedure from a DTS package but to no avail. I have a Linked Server setup which does bring back Oracle tables from the server when I...
0
by: totierne | last post by:
comp.databases.ms-access, I want to know how to use Oracle views with session variables in Access. The parameterised views in access, are migrated to views with per session variables. The...
0
by: Chan | last post by:
Hi, I am trying to send set of rows from my c# web service to Oracle stored procedure. I think I can get this done using OpenXML in SQL Server. How to implement this in Oracle Stored...
1
by: Chad | last post by:
Hi, I am a SQL Server programmer using Oracle for the first time. In our .NET client apps which use a SQL Server back end, we would use Stored Procedure exclusively for all database access for...
0
by: Tom | last post by:
Looking for some help with stored procedure call issues. Conceptually, I need to pass a data structure as the sole parameter to the Oracle stored procedure. Sounds simple enough....but how? ...
0
by: thedoctor | last post by:
I have a stored procedure which has a table as one of its "out" parameters. I'm not able to call this procedure from c# .net. please let me know how i can access it. The procedure has been called...
14
by: jehugaleahsa | last post by:
Hello: I am working with Oracle .NET Stored Procedures. I would like to know how to return the results of a SELECT statement. I have tried returning a OracleRefCursor and a DataTable, but...
23
by: Gloops | last post by:
Hello everybody, Is anyone able to give me some indications about how to develop an Access interface for an Oracle database ? I dispose of Access 2003 (11.6566.8107) SP2, Oracle 9i 9.2.0.1.0...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.