473,396 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Oracle Package and Procedure

I don't know if this is the right place to make this question, so, if
isn't, let me know...

I have an oracle package with some procedures, and i need to access one
procedure using vb.net. The problem is that i really don't know what
this oracle procedure will return to vb.net. If I execute this normally,
like ADO.NET Store Procedure, i'll get a DataSet/DataTable? What should
i pass as parameter to "cC1" (in out - procedure
P_G_CLI_I8)?

Thanks,
André Nobre

Here's my oracle code:

create or replace package oraims.K_G_CLI_I8
as
--------------------------------------------------------------------------------------------------------------------
xDATAHORA date;
sCGC_BASE_CLI_AUX varchar2(9);
cursor C1 is select A.sCGCCPF_CLI,
A.sNOME_CLI,
A.sFAX_CLI,
A.nCODDOCFALTA,
A.nCLSCRD_CLI,
A.bINDCOR,
A.xDATAULTALT,
A.yHORAULTALT,
A.sEND_CLI,
A.sNROEND_CLI,
A.sCOMEND_CLI,
A.sBAI_CLI,
A.sCEP_CLI,
A.sCID_CLI,
A.sUF_CLI,
A.sENDTLX,
A.sIDFCLSCRD_CLI,
A.sDESCLSCRD_CLI,
B.nCODBCO,
B.nCODAGE,
B.nCONTACOR,
B.nREGIAO,
B.nDICOM,
B.nSEGMER,
B.sSEGMER
from TBCDCLI8 A,
TBCDRCL8 B;
type tC1 is ref cursor return C1%rowtype;
--------------------------------------------------------------------------------------------------------------------
procedure P_G_CLI_I8
(
nTIPO_IO in number,
cC1 in out tC1
);
end K_G_CLI_I8;
Nov 21 '05 #1
2 2983
Andre,

The ones who like to give answers on Oracle problems are almost all more or
less active in this newsgroup.

Adonet
news://msnews.microsoft.com/microsof...amework.adonet

Web interface:
http://communities2.microsoft.com/co...amework.adonet

With what I don't say that all who are active in that newsgroup like to give
answers on Oracle questions.

I hope this helps,

Cor
Nov 21 '05 #2
On Fri, 06 May 2005 15:59:16 -0300, André Nobre <no@spam.com> wrote:
I don't know if this is the right place to make this question, so, if
isn't, let me know...

I have an oracle package with some procedures, and i need to access one
procedure using vb.net. The problem is that i really don't know what
this oracle procedure will return to vb.net. If I execute this normally,
like ADO.NET Store Procedure, i'll get a DataSet/DataTable? What should
i pass as parameter to "cC1" (in out - procedure
P_G_CLI_I8)?

Thanks,
André Nobre

Here's my oracle code:

create or replace package oraims.K_G_CLI_I8
as
--------------------------------------------------------------------------------------------------------------------
xDATAHORA date;
sCGC_BASE_CLI_AUX varchar2(9);
cursor C1 is select A.sCGCCPF_CLI,
A.sNOME_CLI,
A.sFAX_CLI,
A.nCODDOCFALTA,
A.nCLSCRD_CLI,
A.bINDCOR,
A.xDATAULTALT,
A.yHORAULTALT,
A.sEND_CLI,
A.sNROEND_CLI,
A.sCOMEND_CLI,
A.sBAI_CLI,
A.sCEP_CLI,
A.sCID_CLI,
A.sUF_CLI,
A.sENDTLX,
A.sIDFCLSCRD_CLI,
A.sDESCLSCRD_CLI,
B.nCODBCO,
B.nCODAGE,
B.nCONTACOR,
B.nREGIAO,
B.nDICOM,
B.nSEGMER,
B.sSEGMER
from TBCDCLI8 A,
TBCDRCL8 B;
type tC1 is ref cursor return C1%rowtype;
--------------------------------------------------------------------------------------------------------------------
procedure P_G_CLI_I8
(
nTIPO_IO in number,
cC1 in out tC1
);
end K_G_CLI_I8;


Assuming you are using the Oracle Data provider for your connectivity
I suggest that you read the documentation on using Cursors in the help
files provided, there are too many details to go into here.

Though a quick summary is you should use a command object with a
stored procedure as its type and then set the return parameter as
being a cursor, as I say it is well documented in the Oracle data
provider help files, which I unfortunately don't have installed on
this machine.

Doug Taylor
Nov 21 '05 #3

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

Similar topics

10
by: s_gemberling | last post by:
I am connecting to Oracle 9i via an ASP page using the ORacle OLEdB driver (OraOLEDB). When I try to execute the following vbscript code in ASP my page hangs(no timeouts, no errors, etc.) It just...
2
by: s_gemberling | last post by:
Here is the code that calls the Oracle package: Function b_GetRecords(sTableName, sRecordName) on error resume next dim cmd, objParameter Set conn =...
1
by: Jason Leiser | last post by:
Is there a way to call an Oracle Procedure using the MS OLD DB Provider for Oracle object in a SQL Server 2000 DTS package? If it can't be done this way, is there another way to retrieve data from...
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: Brew | last post by:
Hello, I'm writing an ASP.NET 2005 (VB) Website with an Oracle 9i backend I have an oracle package with stored procedures and functions I need to use from the VB Code, I'm trying to use the...
0
by: george | last post by:
Hi world! Anyone experienced building gridview in Oracle environment using stored procedures, please help! Right now, I have issues using Oracle SP, I spent a whole day on this and still...
2
by: ssp | last post by:
Hello there, I am trying to do very simple thing in trying to return results from an Oracle (10g) Stored Procedure using the Enterprise Library June 2005 Version. The stored procedure first:...
0
by: cetram | last post by:
Hello! I'm trying to fix an appliaction created using ColdFusion MX and Oracle 9i. The application worked fine until our IT department reinstalled the oracle server. As far as I've been able to...
0
by: mh | last post by:
I'm pleased to announce the initial release of OraPIG, the Oracle Python Interface Generator. OraPIG generates Python wrapper classes for Oracle packages. If you use Oracle and Python, this...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.