Advertisement

11.08.2000 at 07:38AM PST, ID: 11799018
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Error while using a Oracle stored Procedure from an ASP Page

Asked by gsoujanya in Active Server Pages (ASP)

Tags: , , , ,

Hi,
I am trying to retrieve data from an oracle database from an ASP page. I have a stored PRocedure on the Oracle db for this purpose. The stored procedure is as follows:
CREATE OR REPLACE PACKAGE employees_orcl
AS
TYPE empcur IS REF CURSOR;
PROCEDURE GetEmpRecords(p_cursor OUT empcur,indeptno IN NUMBER,inename IN varchar2);
END employees_orcl;
/

CREATE OR REPLACE PACKAGE BODY employees_orcl
AS
PROCEDURE GetEmpRecords(p_cursor OUT empcur,indeptno IN NUMBER,inename IN varchar2)
IS
BEGIN
OPEN p_cursor FOR SELECT * FROM emp WHERE deptid = indeptno and empname= inename;
END GetEmpRecords;
END employees_orcl;
/

My ASP page has code similar to this:
strConnection = "Provider=MSDAORA;Password=rain;User ID=rain;Data Source=a.world"
objConn.Open strConnection
objCmd.ActiveConnection = objConn
objCmd.CommandType = adCmdStoredProc
objCmd.CommandText= "employees_orcl.GetEmpRecords"
objCmd.Parameters.Append objCmd.CreateParameter("param2", adVarChar, adParamInput, 10, "100")
objCmd.Parameters.Append objCmd.CreateParameter("param3", adVarChar, adParamInput,10,"s")

Set objRs = objCmd.Execute

I am geting the following error:
Microsoft OLE DB Provider for Oracle error ''80040e14''

ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to ''GETEMPRECORDS'' ORA-06550: line 1, column 7: PL/SQL: Statement ignored

It works fine if i move the OUT parameter to the last position. Is there any specific way of passing arguments. Is there any workaround if i have the OUT parameter in the begining?

Any clue as to how to resolve this.
Thanks a lot
Soujanya

Start Free Trial
[+][-]11.08.2000 at 08:22AM PST, ID: 5186046

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: asp, oracle, number, procedure, stored
Sign Up Now!
Solution Provided By: venkatg76
Participating Experts: 5
Solution Grade: A
 
 
[+][-]11.08.2000 at 12:32PM PST, ID: 5192861

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.08.2000 at 10:23PM PST, ID: 5202980

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2001 at 03:20PM PDT, ID: 6315002

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.16.2002 at 11:26AM PDT, ID: 6945757

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32