473,725 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Asp using the Oracle procedure call error

My system is on a NT4 (w/SP6a) running IIS 4.
I am developing a page that query one record from my Oracle DB 8.1.6 on
a separate machine. I am using the MS ODBC for Oracle drive. In my
ASP page I have
(Connection object has been crreated.)
then..

LnDetail = "{ call IPV$po.getPOLin e(?,?, {resultset 1, "& _
" p_orderType, p_orderID, p_reqNum, p_nsn, "& _
" p_reqStatus, p_priceStatus, p_errFlag, p_errMsg})}"

Set poComm = Server.CreateOb ject("ADODB.Com mand")
Set poComm.ActiveCo nnection = connect
poComm.CommandT ext = Lndetail
poComm.CommandT ype = adCmdText
poComm.Paramete rs.Refresh
set poDetail = Server.CreateOb ject("ADODB.Rec ordset")
poDetail.Cursor Type = adOpenStatic
poDetail.LockTy pe = adLockReadOnly
set poDetail.Source = poComm
poComm(0) = Trim(poID)
poComm(1) = Trim(poLine)
poDetail.Open

And my PL/SQL procedure called

PROCEDURE GetPOLine (p_poID IN VARCHAR2,
p_poLine IN VARCHAR2,
p_orderType OUT po_lines.order_ type%TYPE,
p_orderID OUT po_lines.order_ id%TYPE,
p_reqNum OUT po_lines.req_nu m%TYPE,
p_nsn OUT VARCHAR2,
p_reqStatus OUT
po_lines.shippi ng_status%TYPE,
p_priceStatus OUT po_lines.price_ status%TYPE,
p_errFlag OUT NUMBER,
p_errMsg OUT VARCHAR2);

While I run, I got the error of
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC driver for Oracle][Oracle]ORA-02005: implicit (-1)
length not valid for this bind or define datatype
/asp/POLnEdit.asp, line 150 <-- is the line of poDetail.Open
According to the Tom Kyte (Expert One-on-One), the oracle side is
perfectly accepting the datatype assignment and the error was likely
caused by the binding variable from the client side and have not set
some kind of length attribute. Since i am not using the PRO*C, his
suggestion is no help. Does anyone use such syntax and what did I miss
on ASP site? If I change the variable datatype in table typs reference
such as "p_orderID OUT NOCOPY tbl_orderID", where tbl_orderID is
a TYPE tbl_orderID IS TABLE OF po_lines.order_ id%TYPE
INDEX BY BINARY_INTEGER; then there is no error.

Thanks.

C Chang

Jul 19 '05 #1
0 3076

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

Similar topics

0
2215
by: aychai | last post by:
Hi all, I am trying to make use Oracle9i db to call an external .Net Web Service from a JAva Stored Procedure. I created the .Net Web Service and use JDeveloper 9.0.3.4Build(1247) to create the Client Stub Java class(ie: serviceClientStub.java). Following the instruction from the article"Calling External Web Service from Java Stored Procedure",
3
4728
by: Steph | last post by:
Hi, On my first oracle instance, I have a global type 'productarray' (CREATE OR REPLACE TYPE productarray AS TABLE OF VARCHAR(30)), I have a package procedure having myArray OUT productarray as parameter. No problem to manage this OUT parameter from a function or procedure in the same instance, even if schemas are different. But if I try to use this package procedure from procedure in another instance, I have the error : PLS-00306 :...
0
11294
by: stephane.traumat | last post by:
Hello, I already succeed to call a stored procedure in Oracle but only simple ones with one output value and several inputs. I don't any idea left so any help would be great :) Thanks But on one procedure, i'm having a prb: I get an error: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too smalljava.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
0
1908
by: Error while executing SP | last post by:
Hi, I am getting an error while executing a sp from Oracle database. Can you let me know what could be the problem? here is the code using(System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection()) { cn.ConnectionString="Provider=OraOLEDB.Oracle;Password=STORED_OBJ;User ID=STORED_OBJ;Data Source=PDCDGL1.NA.HPFS.COM;Extended Properties=;Persist Security Info=False;PLSQLRSet=1;"; cn.Open(); //String strProcName =...
1
1659
by: Chetan | last post by:
Hi We have Oracle 8.1.7.4 and using .net framework 1.1 with Microsoft client. While executting the stored procedure we are getting an error message. Here is our code. here is the code that executes the Stored procedure. Dim connstr As String Dim conn As OracleConnection Dim comm As New OracleCommand
0
2218
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? First, looking at this from the stored procedure side, I see a few things the procedure can do: 1) receive a CLOB/BLOB 2) receive a user defined data type 3) receive multiple params, one for each distinct data element
1
10006
by: jobs | last post by:
PLS-00221: is not a procedure or is undefined error I have a very simple oracle function I'm trying to call from ado.net. The code works fine for a stored procedure but I get the error when calling the function... PLS-00221: is not a procedure or is undefined when I try to call the function. here's my code: I've manually tested both the function and stored procedure and they
1
4830
by: C#_Beginner | last post by:
I was wondering if someone can help me out. I'm getting the following error: Message: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'GET_RIGHTS2' ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'GET_RIGHTS2' ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'GET_RIGHTS2' ORA-06550: line 1, column 7: PLS-00306: wrong number...
0
5883
debasisdas
by: debasisdas | last post by:
This thread contains some of the sample code showing the method of executing Oracle stored procedures and functions from VB . Hope the user finds them useful. Oracle Procedure with only IN type as parameter mode. ======================================== CREATE OR REPLACE PROCEDURE DEPTINS ( DNO DEPT.DEPTNO%TYPE, DN DEPT.DNAME%TYPE,
0
8888
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
8752
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
9257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8096
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...
1
6702
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4517
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...
0
4782
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.