473,382 Members | 1,752 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,382 software developers and data experts.

ODP.NET : VB.NET and PLSQLAssociativeArray, hanging webserver

Hello,

I'm trying to use a PLSQLAssociateiveArray as output parameter using the
examples from the ODP.NET client distribution, but when i call
ExecuteNonQuery(), the webserver hangs.

Regards,
Joost Evertse

Here is the code:

-----
VB.NET code
-----
Try
con.Open()

cmd = New OracleCommand
cmd.CommandText = proc
cmd.CommandType = CommandType.StoredProcedure
cmd.Connection = con

'create the IN parameters using the array given
For i = 0 To paramsin.GetUpperBound(0)
fl.write("parameter: " & paramsin(i, 0) & " waarde: " & paramsin(i, 1))
cmd.Parameters.Add(New OracleParameter(paramsin(i, 0),
OracleDbType.Varchar2, ParameterDirection.Input))
cmd.Parameters(paramsin(i, 0)).Value = paramsin(i, 1)
Next

'create the OUT parameter
Dim oracleparam As OracleParameter = cmd.Parameters.Add("oracleparam",
OracleDbType.Varchar2)

'let's make it a PSQLAssociative Array
oracleparam.CollectionType = OracleCollectionType.PLSQLAssociativeArray

'size the number of array elements, let's say 50
oracleparam.Size() = 50

'create an array of integers, only one 'column', set the size of the field
Dim n(0) As Int32
n(0) = 255
oracleparam.ArrayBindSize = n

'set succes?
Dim m(0) As OracleParameterStatus
m(0) = OracleParameterStatus.Success
oracleparam.ArrayBindStatus = m

'print the parameters that are bound
fl.write("number of parameters : " & cmd.Parameters.Count)

'execute the procedure
cmd.ExecuteNonQuery() 'code hangs here
.....exception handling etc..

---
PLSQL package/procedure---
TYPE gegevensLijst is table of VARCHAR(255) index by binary_integer;
---
procedure getStamGegevens(p_pers_nr IN varchar2, tab_id IN varchar2,
resultaten OUT mutatiejobfiller.gegevensLijst)

is

begin
return;
end getStamGegevens;

---

Nov 18 '05 #1
1 2476
"Joost Evertse" <Joost Ev*****@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
Hello,

I'm trying to use a PLSQLAssociateiveArray as output parameter using the
examples from the ODP.NET client distribution, but when i call
ExecuteNonQuery(), the webserver hangs.


Perhaps you would get more help if you posted this question in
microsoft.public.dotnet.framework.adonet? It doesn't look like it has
anything at all to do with ASP.NET. In particular, you have provided no
reason for us to believe that there would be different behavior if the same
code were executed in a console program.

John Saunders
Nov 18 '05 #2

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

Similar topics

6
by: Harlan Messinger | last post by:
A publication style guide indicates that for a table heading like the following, Table 3. Wheat and rye harvest in European countries in years that end in 3 or 7 or when a new prime minister...
25
by: Shannon Jacobs | last post by:
Maybe there is a simple trick here, and I'm not spotting it... Is there a guru of CSS hanging around here who can help out? The page in question has a multi-column table with a list of links in...
0
by: Neil Kimber | last post by:
Hi, I'm using the Cache object to persist some values between pages. I'm setting the expiration for 2 minutes. I'm actually storing Bitmap streams in the cache. In this way, one page can draw an...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
3
by: Jonathan | last post by:
I appreciate anyone's insight on this as I am new to web programming with .NET. I have a simple method which I use to send various HTTP requests to a web server (snippet below). On the first...
1
by: =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?= | last post by:
Hello guys, I was wondering if anybody here had implemented a solution where Tables are aligned according to what the hanging indent tells us when there is a potential for the table overflowing...
5
by: Stanimir Stamenkov | last post by:
I'm trying to style an icon "hanging" below the first line of a heading and I've found interesting difference between Mozilla and the other browsers I'm trying with - Safari 3.1.1, Opera 9.27 and...
3
by: Microsoft | last post by:
Hi I have a c# program that continually runs 24/7 and performs a variety of tasks based on a timer. There is one routine that hangs every Saturday morning without fail. If I restart the...
2
by: kj | last post by:
Hi! I have a Pythonoob question. I have a script that hangs indefinitely at random times; the only thing to do at this point is to kill it. I'm looking for suggestions on how to troubleshoot...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.