473,626 Members | 3,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Oracle Stored Procedures with Enterprise Library June 2005 Version

ssp
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:
=============== =============== ==============
CREATE OR REPLACE PROCEDURE AGENCYSELECTALL (p_cursor OUT
SelectPackage.S electCursor)
as
begin
open p_cursor for select * from sa.agency;
end AGENCYSELECTALL ;
/
=============== =============== ==============

The cursor is defined in a package called SelectPackage as
=============== =============== =============
CREATE OR REPLACE PACKAGE SelectPackage AS

TYPE SelectCursor IS REF CURSOR;

END SelectPackage;
/
=============== =============== ==============

The code for executing the stored procedure looks a like this:
=============== =============== ==============
public AgencyEntityCol lection SelectAll()
{
DBCommandWrappe r dbCommandWrappe r =
this.Db.GetStor edProcCommandWr apper("AGENCYSE LECTALL");

OracleParameter prms = new OracleParameter ();

prms = new OracleParameter ("P_CURSOR", OracleType.Curs or, 30000,
ParameterDirect ion.Output, Convert.ToBoole an(1), 0, 0, "",
DataRowVersion. Default, null);

dbCommandWrappe r.AddOutParamet er(prms.Paramet erName, prms.DbType,
prms.Size);
return
(AgencyEntityCo llection)this.E xecuteSPMultipl e(typeof(Agency EntityCollectio n),
typeof(AgencyEn tity), dbCommandWrappe r);
}
=============== =============== ==============

Now, everytime I run this, I get the error:
=============== =============== ==============
Message: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to
'AGENCYSELECTAL L'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
=============== =============== ==============

Could anyone shed some light, as to what I maybe doing wrong?

Thanks

Nov 3 '06 #1
2 4918
Try to stick to ANSI SQL than PL/SQL for your Oracle is safe. Make sure you
do not have 2 version of Oracle in your machine.

chanmm

"ssp" <sa****@gmail.c omwrote in message
news:11******** **************@ m7g2000cwm.goog legroups.com...
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:
=============== =============== ==============
CREATE OR REPLACE PROCEDURE AGENCYSELECTALL (p_cursor OUT
SelectPackage.S electCursor)
as
begin
open p_cursor for select * from sa.agency;
end AGENCYSELECTALL ;
/
=============== =============== ==============

The cursor is defined in a package called SelectPackage as
=============== =============== =============
CREATE OR REPLACE PACKAGE SelectPackage AS

TYPE SelectCursor IS REF CURSOR;

END SelectPackage;
/
=============== =============== ==============

The code for executing the stored procedure looks a like this:
=============== =============== ==============
public AgencyEntityCol lection SelectAll()
{
DBCommandWrappe r dbCommandWrappe r =
this.Db.GetStor edProcCommandWr apper("AGENCYSE LECTALL");

OracleParameter prms = new OracleParameter ();

prms = new OracleParameter ("P_CURSOR", OracleType.Curs or, 30000,
ParameterDirect ion.Output, Convert.ToBoole an(1), 0, 0, "",
DataRowVersion. Default, null);

dbCommandWrappe r.AddOutParamet er(prms.Paramet erName, prms.DbType,
prms.Size);
return
(AgencyEntityCo llection)this.E xecuteSPMultipl e(typeof(Agency EntityCollectio n),
typeof(AgencyEn tity), dbCommandWrappe r);
}
=============== =============== ==============

Now, everytime I run this, I get the error:
=============== =============== ==============
Message: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to
'AGENCYSELECTAL L'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
=============== =============== ==============

Could anyone shed some light, as to what I maybe doing wrong?

Thanks

Nov 3 '06 #2
ssp
The oracle stored procedure works fine. I am still experimenting with
trying to read results into my form.

chanmm wrote:
Try to stick to ANSI SQL than PL/SQL for your Oracle is safe. Make sure you
do not have 2 version of Oracle in your machine.

chanmm

"ssp" <sa****@gmail.c omwrote in message
news:11******** **************@ m7g2000cwm.goog legroups.com...
Hello there,
Nov 5 '06 #3

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

Similar topics

2
11473
by: Suresh Tri | last post by:
Hi all, I am interested in extracting the class or jar files which are stored as java stored procedures in Oracle. But I want to know if these are stored as references to external files in Oracle database or directly inside the database. In case if it is directly stored inside the database is there any way to extract it?. If I can extract these java files, can these be used in non Oracle applications? Please help,
1
3273
by: Suresh Tri | last post by:
Hi all, I am in search of any Enterprise level Opensource Project that uses Java Stored Procedures supported by Oracle. I could not find any by googling. Can any one plese point me to any such projects? Actually i'm intereseted in knowing to what extent java stored procedures are used in enterprise applications. A opensource project will let me look into the code to get better idea.
1
4121
by: Chandra Mohan | last post by:
Hi, We need help on following things, 1. Inputs on creating comments on the columns & Tables of a SQL Database & generating the sql script of that. 2. Is it possible to call a .exe file in SQL server like following code in ORACLE create procedure CERT_VERIFY_PROCEDURE ( in :X Y by value )
7
1609
by: Douglas Buchanan | last post by:
I can't seem to open SQLS2k Stored Procedures in the IDE I am running MDE 2003 Version 7.1.3088 I have a MSDN professional subscription and did a complete install of vs.net Help explains how to do it: 1. In Server Explorer, expand the Stored Procedures folder. 2. Double-click the name of the stored procedure you want to open.
11
10744
by: jrefactors | last post by:
I want to know the differences between SQL Server 2000 stored procedures and oracle stored procedures? Do they have different syntax? The concept should be the same that the stored procedures execute in the database server with better performance? Please advise good references for Oracle stored procedures also. thanks!!
0
1243
by: Mythran | last post by:
I have installed NDoc and VSHIK2003. If I install a clean Enterprise Library June 2005, how can I go about getting the exact same documentation that is installed with the release (in the <installdir>\Docs folder)? My goal is to update the documentation with the changes I made, and getting an NDoc project to output the exact same files the the documentation that comes with the Enterprise Library is becoming a pain. Once I can get this...
42
6732
by: Paul | last post by:
Anyone know where I can find some good resources to help us choose between SQL and Oracle ( Progress Openedge as well ) . Any comments on what you would choose ?? We are creating a new Warehouse Management System which wil manage our very large inventory. Anyway comments suggestions welcome Thanks Paul
6
4662
by: hegyvari | last post by:
Hi, I have a few apps written in PHP, running on Fedora Core. After porting these applications from PostgreSQL to Oracle a bug appeared: sometimes, not in a reproducable manner, the web page does not appear in the browser and after examining the html source in the browser I notice that the code is cut in half, somewhere after about the first 3-4 kbytes. It happens quite often, once in every two minutes. The problem was not
1
1557
by: GaryDean | last post by:
I now have installed (from the same install) Enterprise Library - January 2006 and Enterprise Library - June 2005. The install for these two was called Enterprise Library for .Net 2.0. (not Enterprise Library 2.0). I then discovered that there is an Enterprise Library 3.1 - May 2007. So I want to install that because it is the latest. The instructions, however, say that if I already have Enterprise Library 3.0 installed, I must...
0
8262
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8701
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8364
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7192
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4090
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1807
muto222
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.