Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> PLS-00306: wrong number or types of arguments

PLS-00306: wrong number or types of arguments

From: Larry Jones <lljo_at_chevron.com>
Date: 1997/08/27
Message-ID: <3404916E.DED@chevron.com>#1/1

I know this seems like an easy problem, but 3 of us have looked at this for a total of about 2 man hours, and we cannot find the problem!

Below is portion of the PL/SQL code we are using to test a new package, just calling, it to make sure it works before we call it from PowerBuilder. I have also included the header and decleration part of the body of the package.

Can anyone look at this code, and tell me what in the world is wrong with the call?????

BTW... Our versions are as follows:
SQL*Plus: Release 3.3.2.0.2
Oracle7 Server Release 7.1.6.2.0
PL/SQL Release 2.1.6.2.0

	rc		REAL;
	sample__type varchar2(1);
	nr number;
	vals StrTabType;
	cols StrTabType;
	errcode number;
	errmsg varchar2(100);
	errline number;
	errkey1 varchar2(60);
	errkey2 varchar2(14);
.
.**************** (assignments to varibles, etc are in here)
.
rc :=util.import(sample__type,nr,cols, vals, errcode, errmsg, errline, errkey1, errkey2);

FUNCTION import (sample__type varchar2, nr in number, cols in StrTabType, vals in StrTabType,

                      errcode out number, errmsg out varchar2, errline
out number, errkey1 out varchar2,
		      errkey2 out varchar2)
                      return real;

END util;
/
CREATE OR REPLACE PACKAGE BODY util AS


FUNCTION import      (sample__type varchar2,
                      nr in number, cols in StrTabType, vals in
StrTabType,
                      errcode out number, errmsg out varchar2, errline
out number,
                      errkey1 out varchar2, errkey2 out varchar2)
                      return real

   IS
********************** End Package creation

The line number (104) is the call statement (rc:=util.import....).

I would appreciate any quick responses that you may have. Oh, one more thing.... we tested this on a 7.3.2 version of Oracle, and got the same problem, so it's not a version problem, per se.

Thanks,

-- 
**********************
Larry Jones
lljo_at_chevron.com
Received on Wed Aug 27 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US