Failed to open rowset, PLS-00306 Wrong Number of arguments in call to....
Hi,
We currently run Crystal Reports v10 with ODBC (CR Oracle ODBC Driver 4.20) to Oracle 9i database (on solaris) and have some reports which gets data (ref cursors) from stored procedures. So far so good and now we are upgrading our oracle database to 10g on Linux server and during my testing these reports give the following error.
Error Description:
Failed to open rowset
Query Engine Error: HY000:[DataDirect][ODBC Oracle driver]ORA-06550:line 1, column 8:
PLS-00306: wrong number or types of arguments in call to 'MY_STORED_PROCEDURE'
ORA-06550: line1, column 35:
PLS-00363: expression 'MY_PARAM_VALUE' cannot be used as an assignment target
ORA-6550: lin1, column8:
PL/SQL: Stateme'
Any help would be greatly appreciated.
Thanks,
-Venkat Gopalan
Discovered on another post that 4.2 is too old. You need to upgrade to a more current ODBC driver that runs on Solaris.
We have a newer one version 5.3 but it's only for windows. Go to Datadirect.com and see if they have one for that OS.
Otherwise you'll have to configure your reports to use the native Oracle driver.
Thank you
Don
Similar Messages
-
Ora-06550,pls-00306 wrong number of arguments in call to ||
declare
type t_empid is table of empn.empid%type;
type t_ename is table of empn.ename%type;
v_empid t_empid;
v_ename t_ename;
cursor c1 is select empid,ename from empn;
begin
open c1;
fetch c1 bulk collect into v_empid,v_ename;
dbms_output.put_line(v_empid||v_ename);
--end loop;
close c1;
end;If you do want to benchmark bulk processing versus normal processing - you need to ensure that the tests are identical each time around, except for the part that you want to benchmark.
So if you're going to benchmark cursor fetching, that becomes a complex problem. How do you ensure that both tests use the same type of I/O? Logical I/O is faster than physical I/O. Flushing the db buffer cache to force physical I/O, does not flush the operating system's file system buffers. And despite Oracle viewing the I/O as physical I/O, it can be logical I/O from the o/s side.
So cursor fetching is a complex thing to benchmark accurately. And why benchmark that? Bulk processing is about context switching. It is not about cursor fetching or making SQL cursors faster.
So to simply benchmark context switching, we need to eliminate other factors - such as I/O. The following example uses an empty table (no I/O will result) and attempt to only look at the performance of context switching between the PL/SQL engine and SQL engine.
SQL> --// the test table - which we keep empty to eliminate any I/O
SQL> create table footab( id number );
Table created.
SQL> --// the collection data type the test will be using
SQL> create or replace type TNumbers is table of number;
2 /
Type created.
SQL> --// the test: bulk processing and then "normal" processing
SQL> declare
2 numArray TNumbers;
3 t1 number;
4 begin
5 numArray := new TNumbers();
6 numArray.Extend(10000);
7 for i in 1..numArray.Count
8 loop
9 numArray(i) := i;
10 end loop;
11
12 t1 := dbms_utility.get_cpu_time;
13 forall i in 1..numArray.Count
14 delete from footab where id = numArray(i);
15 t1 := (dbms_utility.get_cpu_time - t1)/100;
16 dbms_output.put_line( 'forall='||t1||' sec(s)' );
17
18 t1 := dbms_utility.get_cpu_time;
19 for i in 1..numArray.Count
20 loop
21 delete from footab where id = numArray(i);
22 end loop;
23 t1 := (dbms_utility.get_cpu_time - t1)/100;
24 dbms_output.put_line( 'for='||t1||' sec(s)' );
25 end;
26 /
forall=.06 sec(s)
for=.26 sec(s)
PL/SQL procedure successfully completed.
SQL> So, from this test, one can see that a reduction of context switches improve performance. Nothing more.
The actual benefit in real life processing depends on a number of factors. And many of these will be unique at run-time. So one can say that reducing context switching is better. How much better will be pure speculation as test results like these cannot be applied via a formula of sorts to determine production performance. -
Java Applet in a HTML page: failing with PLS-00306: wrong number of args
We are trying to use a Java Applet in a HTML page. as our system needs to be able to retrieve a predefined set of data from a third party system that uses Dynamic Data Exchange Protocol (DDE) and are encountering errors from APEX and in IE itself.
We are using JavaDde from www.nevaobject.com that enables our Java applet to interact with Windows applications (Third Party System) using DDE.
This functionality is currently used in our Web Form 6i application and we are trying to use the same in the new ApEx application.
We are using ApEx version : 2.1 and actually aer encountering 2 problems:
Problem 1: ApEx failing with PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
Problem 2: IE crashes if Applet used in a complex page with several regions (1 Context, 4 Report Regions, 2 level Tabs, Links)
This problem does not occur in the page where there is only applet and one region. In the case of complex page the IE crashes if the page is reloaded
Test scenario:
1- Create a simple page with the HTML region.
2- Define the Source of the above region as follows
<OBJECT CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
CODEBASE="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#version=1,4,0,0"
WIDTH="1"
HEIGHT="1"
ID="simpleApplet"
NAME="simpleApplet">
<PARAM NAME="code" VALUE="simpleApplet.class" >
<PARAM NAME="archive" VALUE="simpleApplet.jar" />
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
</OBJECT>
3- Create a simple Java applet "simpleApplet" - for the test its enough if the applet will have just the init method printing out the mesage to the console
4- Create a Submit Button (not redirect) in Region Header and create unconditional (do not set When Button Pressed property) Page Branch to navigate to another page (the page without the applet)
6- Run the page and Submit -
The error below is returned by the engine:
In our case our applet is called ddeApplet - I do not know why is ApEx passing the Applet's ID down to the wwv_flow.accept method as a parameter
Tue, 24 Jul 2007 08:15:39 GMT
ORA-06550: line 7, column 2:
PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
ORA-06550: line 7, column 2:
PL/SQL: Statement ignored
DAD name: rbdev2_ax
PROCEDURE : wwv_flow.accept
URL : http://castor:7778/pls/rbdev2_ax/wwv_flow.accept
PARAMETERS :
============
P_FLOW_ID:
147
P_FLOW_STEP_ID:
500
P_INSTANCE:
6986070096861669560
P_PAGE_SUBMISSION_ID:
1005758
P_REQUEST:
CRASH
P_ARG_NAMES:
100380029717786501
P_T01:
147
P_T02:
101
P_T03:
5000044
P_T04:
1
P_T05:
S
DDEAPPLET:
Ddeapplet[panel0,0,0,1x1,layout=java.awt.BorderLayout,rootPane=javax.swing.JRootPane[,0,0,1x1,layout=javax.swing.JRootPane$RootLayout,alignmentX=null,alignmentY=null,border=,flags=385,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
P_MD5_CHECKSUM:
ENVIRONMENT:
============
PLSQL_GATEWAY=WebDb
GATEWAY_IVERSION=2
SERVER_SOFTWARE=Oracle HTTP Server Powered by Apache/1.3.19 (Unix) mod_fastcgi/2.2.10 mod_perl/1.25 mod_oprocmgr/1.0
GATEWAY_INTERFACE=CGI/1.1
SERVER_PORT=7778
SERVER_NAME=castor
REQUEST_METHOD=POST
QUERY_STRING=
PATH_INFO=/pls/rbdev2_ax/wwv_flow.accept
SCRIPT_NAME=/pls
REMOTE_HOST=
REMOTE_ADDR=192.168.66.169
SERVER_PROTOCOL=HTTP/1.1
REQUEST_PROTOCOL=HTTP
REMOTE_USER=
HTTP_CONTENT_LENGTH=661
HTTP_CONTENT_TYPE=application/x-www-form-urlencoded
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
HTTP_HOST=castor:7778
HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_ACCEPT_CHARSET=
HTTP_COOKIE=ISCOOKIE=true; LOGIN_USERNAME_COOKIE=rdanko; ORACLE_PLATFORM_REMEMBER_UN=RDANKO:ngrb; WWV_FLOW_USER2=70FBB00945FE46B9; V6_AUTHENTICATION_COOKIE=70FBB00945FE46B9
Authorization=
HTTP_IF_MODIFIED_SINCE=
HTTP_REFERER=http://castor:7778/pls/rbdev2_ax/f?p=147:500:6986070096861669560:::::
HTTP_SOAPACTION="theArrow",
It looks like whatever HTML you're including on your page is creating HTML input form elements inside the HTML form "wwv_flow". This form is posted to wwv_flow.accept, and of course, the PL/SQL procedure wwv_flow.accept doesn't know anything these additional arguments/form elements you're attempting to POST.
Joel -
PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMI
I am trying to submit the payables open interface import program using BPEL process. BUT I am unable to submit the concurrent program. The invoke function is failing with below message.
[2010/08/25 17:06:22] Faulted while invoking operation "OFAPOPIIMPORT" on provider "OFAPOPIIMPORT".less
-<messages>
-<input>
-<Invoke_1_OFAPOPIIMPORT_InputVariable>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
-<InputParameters xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XX_BPEL_FND_REQUEST_SUBMIT_REQ/FND_REQUEST-24SUBMIT_REQUEST/" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XX_BPEL_FND_REQUEST_SUBMIT_REQ/FND_REQUEST-24SUBMIT_REQUEST/">
<db:APPLICATION>200</db:APPLICATION>
<db:PROGRAM>APXIIMPT</db:PROGRAM>
<db:DESCRIPTION>Test</db:DESCRIPTION>
<db:START_TIME/><db:SUB_REQUEST/>
<db:OperatingUnit>NYSIF</db:OperatingUnit>
<db:Source>DBL</db:Source>
<db:Group/>
<db:BatchName>TESTRAMBPEL1</db:BatchName>
<db:HoldName/>
<db:HoldReason/>
<db:GLDate/>
<db:Purge>N</db:Purge>
<db:TraceSwitch>N</db:TraceSwitch>
<db:DebugSwitch>N</db:DebugSwitch>
<db:SummarizeReport>N</db:SummarizeReport>
<db:CommitBatchSize>1000</db:CommitBatchSize>
<db:UserID>4842</db:UserID>
<db:LoginID>1683090</db:LoginID>
</InputParameters>
</part>
</Invoke_1_OFAPOPIIMPORT_InputVariable>
</input>
-<fault>
-<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
-<part name="code">
<code>6550
</code>
</part>
-<part name="summary">
<summary>
file:/C:/product/10.1.3.1/OraBPEL_1/bpel/domains/default/tmp/.bpel_APOPIIMPORT_1.0_91d4c6c1050ed25d005bc0d396a9db24.tmp/OFAPOPIIMPORT.wsdl [ OFAPOPIIMPORT_ptt::OFAPOPIIMPORT(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'OFAPOPIIMPORT' failed due to: Error while trying to prepare and execute an API.
An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
[Caused by: ORA-06550: line 1, column 13:
PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
; nested exception is:
ORABPEL-11811
Error while trying to prepare and execute an API.
An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
[Caused by: ORA-06550: line 1, column 13:
PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
</summary>
</part>
-<part name="detail">
<detail>
Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 13:
PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Error Code: 6550
</detail>
</part>
</remoteFault>
</fault>
</messages>
[2010/08/25 17:06:22] "{http://schemas.oracle.com/bpel/extension}remoteFault" has been thrown. More...
-<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
-<part name="code">
<code>6550
</code>
</part>
-<part name="summary">
<summary>
file:/C:/product/10.1.3.1/OraBPEL_1/bpel/domains/default/tmp/.bpel_APOPIIMPORT_1.0_91d4c6c1050ed25d005bc0d396a9db24.tmp/OFAPOPIIMPORT.wsdl [ OFAPOPIIMPORT_ptt::OFAPOPIIMPORT(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'OFAPOPIIMPORT' failed due to: Error while trying to prepare and execute an API.
An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
[Caused by: ORA-06550: line 1, column 13:
PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
; nested exception is:
ORABPEL-11811
Error while trying to prepare and execute an API.
An error occurred while preparing and executing the APPS.XX_BPEL_FND_REQUEST_SUBMIT_REQ.FND_REQUEST$SUBMIT_REQUEST API. Cause: java.sql.SQLException: ORA-06550: line 1, column 13:
PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
[Caused by: ORA-06550: line 1, column 13:
PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
</summary>
</part>
-<part name="detail">
<detail>
Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 13:
PLS-00306: wrong number or types of arguments in call to 'FND_REQUEST$SUBMIT_REQUEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Error Code: 6550
</detail>
</part>
</remoteFault>
I thought I am providing the values for the required parameters. But still I am unable to submit. Could some one help me on fixing this issue?
Thanks,That's probably your problem.
Look at http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28351/T430238T430241.htm
Search for "One-time Workaround for Concurrent Programs" in that document. -
PLS-00306: wrong number or types of arguments in call to '(FUNCTION)'
Hi all,
I've spent quite some time trying to get this to work, but is appears that none of the code samples I have tried work with this version of ODP.Net : 2.102.2.20.
It's the most basic thing : return a weak typed resultset from an oracle function using weak typed SYS_REFCURSOR. I got this to work with a procedure, but no way this works with a function.
I'm using the code approach from this source : http://www.oracle.com/technology/pub/articles/mastering_dotnet_oracle/williams_refcursors.html
CREATE OR REPLACE FUNCTION
fn_getItemsByDispNumber(p_Number in varchar2)
return sys_refcursor
IS
resultset sys_refcursor;
begin
open resultset for
....select statement
return resultset;
end;
Exception is : ORA-06550: line 1
PLS-00306: wrong number or types of arguments in call to '(fn_getItemsByDispNumber)'
Using strong types is not an option I have too many columns adn result sets that it makes no sense.
I tried to obtain the sys_refcursor as return value and as output parameters and it's the same results. I also tried adding the return value parameter to the command object first, but with no luck (same error).
Is there some magical trick thet must be done for this simple thing to work ?
Thanksuser10940202 wrote:
The calling code looks like this :
Dim cmd As OracleCommand = New OracleCommand("fn_getItemsByDispNumber", con)
cmd.CommandType = CommandType.StoredProcedure
Dim p_refcursor As OracleParameter = New OracleParameter
p_refcursor.OracleDbType = OracleDbType.RefCursor
p_refcursor.Direction = ParameterDirection.ReturnValue
cmd.Parameters.Add(p_refcursor)
Dim inputparm As OracleParameter = New OracleParameter
inputparm.OracleDbType = OracleDbType.Varchar2
inputparm.Name = "p_Number"
p_refcursor.Direction = ParameterDirection.Input
cmd.Parameters.Add(inputparm)
cmd.Parameters.Add(p_refcursor)
'ExecuteNonQuery() also fails with the same error message
Dim da As OracleDataAdapter = New OracleDataAdapter(cmd)
Dim ds As DataSet = New DataSet
da.Fill(ds)
I also tried to rever the order in which parameters are specified but same the same error persists. I also tried with output parameter of type SYS_REFCURSOR but no luck, same exact error.
Is it possible that weakly typed cursors are not supported with functions ? That would be strange because it's the first use I can think of for the function concept?
Edited by: user10940202 on Sep 14, 2009 12:44 PMHi,
Looks like a few things are jumbled together here...
You have p_refcursor.Direction = ParameterDirection.Input and the parameters added to the collection multiple times, etc...
You should just need something like this:
Dim p_refcursor As OracleParameter = New OracleParameter
p_refcursor.OracleDbType = OracleDbType.RefCursor
p_refcursor.Direction = ParameterDirection.ReturnValue
Dim inputparm As OracleParameter = New OracleParameter
inputparm.OracleDbType = OracleDbType.Varchar2
inputparm.Name = "p_Number"
inputparm.Value = <Some Value>
cmd.Parameters.Add(p_refcursor)
cmd.Parameters.Add(inputparm)Regards,
Mark -
Error PLS-00306: wrong number or types of arguments in call to
I am getting the following Error when calling stored Procedure, I have tried with Last Parameter PRESULT and WITHOUT IT, it fails in both the instance.
=======================================================================
"System.Data.OracleClient.OracleException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'UPDATECOTRACKING'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
=======================================================================
signature of Stored Procedure is as follow
(pmaster_key IN sca_costtrackinglog.master_key%type,
pdoc_master_key IN sca_costtrackinglog.master_key%type,
pfrenumber IN sca_costtrackinglog.fre_number%type,
pnotice1 IN sca_costtrackinglog.notice1%type,
pnotice2 IN sca_costtrackinglog.notice2%type,
padditreceived IN sca_costtrackinglog.additreceived%type,
pfreanticipate IN sca_costtrackinglog.freanticipate%type,
pdateofnot IN sca_costtrackinglog.dateofnot%type,
pdateofmeeting IN sca_costtrackinglog.dateofmeeting%type,
psenttocontractor IN sca_costtrackinglog.senttocontractor%type,
pcouforexecution IN sca_costtrackinglog.couforexecution%type,
pcomments IN sca_costtrackinglog.comments%type,
pcreateby IN sca_costtrackinglog.createby%type,
peditby IN sca_costtrackinglog.editby%type,
presult OUT number) is
This is the Trace of Parameters from actual Call, that fails with above error.
Parameter Name : PMASTER_KEY(Input),Type(AnsiString) Size(26), Value = 000328JYA30008HSWBCK01NYC
Parameter Name : pdoc_master_key(Input),Type(AnsiString) Size(26), Value = 310657KLF30025HSWBCK01NYC
Parameter Name : PFRENUMBER(Input),Type(AnsiString) Size(12), Value = 00015
Parameter Name : PNOTICE1(Input),Type(DateTime) Size(1), Value = 3/25/2010
Parameter Name : PNOTICE2(Input),Type(DateTime) Size(1), Value =
Parameter Name : PADDITRECEIVED(Input),Type(DateTime) Size(1), Value =
Parameter Name : PFREANTICIPATE(Input),Type(DateTime) Size(1), Value =
Parameter Name : PDATEOFNOT(Input),Type(DateTime) Size(1), Value =
Parameter Name : PDATEOFMEETING(Input),Type(DateTime) Size(1), Value =
Parameter Name : PSENTTOCONTRACTOR(Input),Type(DateTime) Size(1), Value =
Parameter Name : pcouforexecution(Input),Type(DateTime) Size(1), Value =
Parameter Name : pcomments(Input),Type(AnsiString) Size(250), Value =
Parameter Name : PCREATEBY(Input),Type(AnsiString) Size(50), Value = NYCSCA\tmpns2
Parameter Name : PEDITBY(Input),Type(AnsiString) Size(50), Value = NYCSCA\tmpns2
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Below is the trace from Data.OracleClient.OracleCommandBuilder.DeriveParameters(Cmd)
Parameter Name : PMASTER_KEY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PDOC_MASTER_KEY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PFRENUMBER(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PNOTICE1(Input),Type(DateTime) Size(0), Value =
Parameter Name : PNOTICE2(Input),Type(DateTime) Size(0), Value =
Parameter Name : PADDITRECEIVED(Input),Type(DateTime) Size(0), Value =
Parameter Name : PFREANTICIPATE(Input),Type(DateTime) Size(0), Value =
Parameter Name : PDATEOFNOT(Input),Type(DateTime) Size(0), Value =
Parameter Name : PDATEOFMEETING(Input),Type(DateTime) Size(0), Value =
Parameter Name : PSENTTOCONTRACTOR(Input),Type(DateTime) Size(0), Value =
Parameter Name : PCOUFOREXECUTION(Input),Type(DateTime) Size(0), Value =
Parameter Name : PCOMMENTS(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PCREATEBY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PEDITBY(Input),Type(AnsiString) Size(2000), Value =
Parameter Name : PRESULT(Output),Type(VarNumeric) Size(0), Value =
******************************************************************************************************************In the Oracle database, the body of the package FWA_PRI API, the procedure ValidatePri declares P_PriREc as being :
PAYMENT_REQUEST_IMPORT%ROWTYPE
As you can see above, the DoPri Procedure expects a type p_PriRec as its second argument.
Therefore in my procedure I do the following:
create or replace procedure spMatchPayment is
BEGIN
DECLARE
CURSOR StageCurs IS SELECT * FROM PAYMENT_REQUEST_IMPORT;
p_payment_req_import PAYMENT_REQUEST_IMPORT%ROWTYPE;
BEGIN
OPEN StageCurs();
LOOP
FETCH StageCurs INTO P_payment_req_import;
EXIT WHEN StageCurs%NOTFOUND;
fwa_pri.DoPri(NULL, fwa_pri.DoPri('M',P_PriRec => p_payment_req_import);
END LOOP;
CLOSE StageCurs;
END;
end spMatchPayment;
Now, when I am trying to compile I am getting the Compilation errors for PROCEDURE IMPACT.SPMATCHPAYMENT
Error: PLS-00306: wrong number or types of arguments in call to 'DOPRI'
Line: 16
Text: fwa_pri.DoPri(NULL,P_PriRec => p_payment_req_import);
I don't see what's wrong on my code......HELP!! -
Hi,
My Problem is when im adding dataset with stored procedure, im getting this error.
I Can access database,
Could not create a list of fields for the query. Verify that you can connect to the data source and that your query syntax is correct.
ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'PROCEDURE_NAME' ORA-06550: line 1, column 7: PL/SQL:
Statement ignored
stored procedure is simple select :
CREATE OR REPLACE PROCEDURE [PROCEDURE_NAME](L_CURSOR out SYS_REFCURSOR)
is
Begin
open L_CURSOR for
SELECT [columnname] FROM
[tablename]
End;
Configuration Details:
DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64biOracle Developer Tools for Visual Studio Copyright (c) 2005,2014 SQL Server Data Tools Type: Oracle , Data Provider : .Net Framework Data Provider For OracleThe answer is of inside question. It is about provider. Change my provider ODTwithODAC for 10g (my database version). And problem resolved.
Thank you for your helps,
Regards,
Arda -
PLS-00306 wrong number or types of arguments in call to 'PUT_LINE'
Hi Guys,
I'm practising the plsql workouts,during a anonymous PL/SQL block i got the below error,what the mistake i did ?
declare
v1 employee_290512%rowtype;
cursor c1 is select * from employee_290512;
begin
open c1;
loop
fetch c1 into v1;
exit when c1% notfound;
dbms_output.put_line(v1);
end loop;
end;
{/code}
And i got the below error
Error:
ORA-06550: line 10, column 1:
PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
ORA-06550: line 10, column 1:
PL/SQL: Statement ignored
/Error.
Please help me on this.
Regards
ThelakHi there,
i got the same error. kindly check what's wrong with my below coding;
SQL> SET SERVEROUTPUT ON
SQL> DECLARE
2 TYPE Type_Tab_Data IS RECORD
3 (
4 ARMZIG_Q2SFX char(3),
5 somme number(20,2),
6 ARMZIG_Q2AN8 number(8),
7 ARMZIG_Q2DOC number(8),
8 ARMZIG_Q2DCT char(2),
9 ARMZIG_Q2CO varchar2(15 char)
10 );
11 TYPE Tab_Data IS TABLE OF Type_Tab_Data INDEX BY BINARY_INTEGER ;
12 t_flexnum5 Tab_Data;
13 v_test pls_integer;
14 v_text_erreur varchar2(200 char);
15 BEGIN
16 SELECT b.ARMZIG_Q2SFX,a.somme,a.ARMZIG_Q2AN8,a.ARMZIG_Q2DOC,a.ARMZIG_Q2DCT,a.ARMZIG_Q2CO
17 BULK COLLECT INTO t_flexnum5
18 from
19 (
20 SELECT sum(ARMZIG_Q2AAP/100)as somme,ARMZIG_Q2AN8,ARMZIG_Q2DOC,ARMZIG_Q2DCT,ARMZIG_Q2CO
21 from ARMAST_ZIG_EUR
22 where ENVZIG_ID = 'E'
23 group by ARMZIG_Q2AN8,ARMZIG_Q2DOC,ARMZIG_Q2DCT,ARMZIG_Q2CO
24 ) a, ARMAST_ZIG_EUR b
25 where a.ARMZIG_Q2AN8 = b.ARMZIG_Q2AN8
26 and a.ARMZIG_Q2DOC = b.ARMZIG_Q2DOC
27 and a.ARMZIG_Q2DCT = b.ARMZIG_Q2DCT
28 and a.ARMZIG_Q2CO = b.ARMZIG_Q2CO
29 and b.ENVZIG_ID = 'E';
30
31 DBMS_OUTPUT.put_line(t_flexnum5);
32
33 END;
34 /
DBMS_OUTPUT.put_line(t_flexnum5);
ERROR at line 31:
ORA-06550: line 31, column 7:
PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
ORA-06550: line 31, column 7:
PL/SQL: Statement ignored -
PLS-00306: wrong number or types of arguments in call
Hi,
Oracle9i
created a procedure which will retrieve the records.
As the procedure is to only retrieve the records so it does not have any IN parameters
But on executing the procedure gets the below error:
PLS-00306: wrong number or types of arguments in call to 'GET_PRODUCT_DETAILS'
I have called the procedure as below:
=======================
Declare
v_cur ...%type;
BEGIN
Package_name.GET_PRODUCT_DETAILS(v_cur);
END;
Procedure Body
==========
create or replace PROCEDURE GET_PRODUCT_DETAILS( v_cur OUT Cursor)
is
begin
end;
/Try creating the procedure with the out parameter as sys_refcursor.
create or replace PROCEDURE GET_PRODUCT_DETAILS( v_cur OUT sys_refCursor)
And declare the variable in your outer block also as sys_refcursor.
Declare
v_cur sys_refcursor;
BEGIN
Package_name.GET_PRODUCT_DETAILS(v_cur);
END;
Of course this would require that your actual procedure GET_PRODUCT_DETAILS should have a statement like
" open V_cur for some select statement that you use to retrieve the records".
You could also create GET_PRODUCT_DETAILS with the same %type decalration which you use in the outer block
eg
create or replace PROCEDURE GET_PRODUCT_DETAILS( v_cur OUT x.y%type)
Declare
v_cur x.y%type;
BEGIN
Package_name.GET_PRODUCT_DETAILS(v_cur);
END;
/ -
ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments
I am getting an error:
"ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'XYZ' ORA-06550: line 1, column 7: PL/SQL: Statement ignored".
Stored Procedure:
PROCEDURE XYZ
(ip_number IN NUMBER,
op_error_code OUT NUMBER,
op_error_text OUT VARCHAR2,
ret_cursor OUT OUT_CURSOR);
In the procedure I am selecting a details from few tables with respect to the input parameter 'ip_number'.
VB Code:
strConnectionString = CONNECTION_STRING
Set objConnection = Server.CreateObject("ADODB.Connection")
objConnection.Open strConnectionString
Set objCommand = Server.CreateObject("ADODB.Command")
With objCommand
.ActiveConnection = objConnection
.CommandType = adCmdStoredProc
End With
With objCommand
.CommandText = "Pkg_1.XYZ"
.Parameters.Append objCommand.CreateParameter_
("ip_ipnumber",adNumeric,adParamInput,8,strIPNumber)
.Parameters.Append objCommand.CreateParameter_
("op_error_code",adNumeric,adParamOutput,10)
.Parameters.Append objCommand.CreateParameter_
("op_error_text",adVarChar,adParamOutput,512)
Set RS = .Execute()
End With
Its working fine with ASP(VB)+ Oracle9i + Windows2000.
But in ASP(VB) + Oracle 8.1.7 + Windows2000, its giving this error:
"ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'XYZ' ORA-06550: line 1, column 7: PL/SQL: Statement ignored".
Please help.Your procedure has 4 parameters 1 in and 3 out parameter
whereas in your VB code
Parameters.Append objCommand.CreateParameter_
("ip_ipnumber",adNumeric,adParamInput,8,strIPNumber)
.Parameters.Append objCommand.CreateParameter_
("op_error_code",adNumeric,adParamOutput,10)
.Parameters.Append objCommand.CreateParameter_
("op_error_text",adVarChar,adParamOutput,512)
There are only 3 parameter added where is the 4 th one ?
With Warm Regards
SSR -
Urgent : ADO / OraOLEDB gives random PLS-00306: wrong number or types of arguments
Hi people,
Using our production environment of Win2K AS, IIS 5.0 --> Win2K AS, COM+ / ADO, Oracle OLE DB 9i --> Solaris Oracle 9i we have a month of trace logs telling us that some calls to our PL/SQL package methods have the "PLS-00306: wrong number or types of arguments".
Closer examination of our development systems also revealed these errors that seem to occur fairly randomly. (No recompiles in the database [at least according to USER_OBJECT.TIMESTAMP] and no invalid packages or schema objects).
One call on a session will succeed (so there aren't any obvious syntax or data range boundary issues) and then with no obvious reason, a second call to the same package method will fail with the error message in the subject.
Anyone else seen this behaviour and know of a fix?
Thanks
Lachlan PittsHi,
The temp in the package and the temp in the anonymous block that calls the package are two different data types. They (coincidentally) have exactly the same number and type of elements, just as they (coincidentally) have exactly the same name, but they are still different.
Since the type is declare in the package head, you can reference it from oputside the package. You don't have to create a similar type in the calling block: just reference the package type, like this:
declare
v_out pkg_1.temp;
begin
pkg_1.DoSomething( 'a', 'b', v_out);
dbms_output.put_line(v_out.val1);
end; -
Strange PLS-00306: wrong number or types of arguments
We have the code in production and in the test. the dbs, the servers are setup the same. And the codes on two are the same (verified).
Now all a sudden the code on production failing sine yesterday afternoon:
BEGIN REQUEST_API.DBSS_process_FUDS; END;
ERROR at line 1:
ORA-06550: line 1, column 93:
PLS-00306: wrong number or types of arguments in call to 'PROCESS_FUDS'
ORA-06550: line 1, column 93:
PL/SQL: Statement ignored
ORA-06512: at "SYS.DBMS_JOB", line 82
ORA-06512: at "SYS.DBMS_JOB", line 140
ORA-06512: at "ER.REQUEST_API", line 1190
ORA-06512: at line 1
Just with the test's , it still runs OK.
Any idea? how can we look?
Thanks a lot!BluShadow wrote:
Check the call to PROCESS_FUDS and check the definition of PROCESS_FUDS and see what's different.
It could be that something has been relying on implicit datatype conversions i.e. strings to dates and someone has entered some data that doesn't comply with the implicit conversion (i.e. you database stores dates as strings and allows people to enter cr@p data).It is 11.2.0.3
PROCESS_FUDS is the job and defined the same on the two db.
I did spool the code of ER.REQUEST_API from dba_source for the two dbs and dff them. Found no different.
In the same sqlplus client on the remote server:
on the test db:
me@cpt1> exec ER.REQUEST_API.DBSS_process_FUDS
PL/SQL procedure successfully completed.
on the prod db:
me@cpp1> exec ER.REQUEST_API.DBSS_process_FUDS
BEGIN REQUEST_API.DBSS_process_FUDS; END;
ERROR at line 1:
ORA-06550: line 1, column 93:
PLS-00306: wrong number or types of arguments in call to 'PROCESS_FUDS'
ORA-06550: line 1, column 93:
PL/SQL: Statement ignored
ORA-06512: at "SYS.DBMS_JOB", line 82
ORA-06512: at "SYS.DBMS_JOB", line 140
ORA-06512: at "ER.REQUEST_API", line 1190
ORA-06512: at line 1 -
PLS-00306: wrong number or types of arguments in call to 'BEFOREREPORTTRIGG
Hello..
Hopefully a quick one for somebody..
Getting following error message..
[052710_034807986][][EXCEPTION] SQLException encounter while executing data trigger....
java.sql.SQLException: ORA-06550: line 4, column 20:
PLS-00306: wrong number or types of arguments in call to 'BEFOREREPORTTRIGGER'
ORA-06550: line 4, column 1:
PL/SQL: Statement ignored....when I'm trying to call a trigger in a XSL script that is used to create a XML PUblisher report to run in ORACLE Financials..
Anyway, Procedure header & Spec at fault is..
CREATE OR REPLACE PACKAGE Subixclt IS
FUNCTION BeforeReportTrigger(p_order_by IN VARCHAR2) RETURN VARCHAR2;
ordered VARCHAR2(50);
raisedby VARCHAR2(50);
status VARCHAR2(50);
claimant VARCHAR2(50);
expense_date_from DATE;
expense_date_to DATE;
END;
CREATE OR REPLACE PACKAGE BODY Subixclt IS
FUNCTION BeforeReportTrigger(p_order_by IN VARCHAR2)RETURN VARCHAR2 IS
BEGIN
DECLARE
ordered VARCHAR2(50);
raisedby VARCHAR2(50);
status VARCHAR2(50);
claimant VARCHAR2(100);
expense_date_from DATE;
expense_date_to DATE;
BEGIN
IF (p_order_by='Expense Report Number') THEN
ordered :='order by 1 asc;';
ELSIF (p_order_by='Person Claiming') THEN
ordered :='order by 2 asc;';
ELSIF (p_order_by='Submit Date') THEN
ordered :='order by 4 asc;';
END IF;
RETURN(p_order_by);
END;
END;
END;PLease ask if yous need any further info..
muchos gracias..
StevenOK people sorry - I trust this is what you'll need..
This is the data template where the call to the trigger is placed..
<?xml version="1.0" encoding="utf-8"?>
<dataTemplate name="UofS_OutstandngExpenses_Report" defaultPackage="SUBIXCLT" dataSourceRef="FINDEV" version="1.0">
<properties>
<property name="xml_tag_case" value="upper" />
<property name="include_parameters" value="true" />
<property name="debug_mode" value="on" />
</properties>
<parameters>
<parameter name="claimant" dataType="character" />
<parameter name="expense_date_from" dataType="date" />
<parameter name="expense_date_to" dataType="date" />
<parameter name="raisedby" dataType="character" />
<parameter name="status" dataType="character" />
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[
SELECT DISTINCT
erh.invoice_num,
pap.full_name EMP_CLAIMING,
DECODE(NVL(erh.expense_status_code, 'Not yet Submitted (NULL)'), 'CANCELLED', 'CANCELLED',
'EMPAPPR', 'Pending Individuals Approval', 'ERROR', 'Pending System Administrator Action',
'HOLD_PENDING_RECEIPTS ', 'Hold Pending Receipts', 'INPROGRESS', 'In Progress', 'INVOICED', 'Ready for Payment',
'MGRAPPR', 'Pending Payables Approval', 'MGRPAYAPPR', 'Ready for Invoicing', 'PAID', 'Paid',
'PARPAID', 'Partially Paid', 'PAYAPPR', 'Payables Approved', 'PENDMGR', 'Pending Manager Approval',
'PEND_HOLDS_CLEARANCE', 'Pending Payment Verification', 'REJECTED', 'Rejected', 'RESOLUTN', 'Pending Your Resolution',
'RETURNED', 'Returned', 'SAVED', 'Saved', 'SUBMITTED', 'Submitted', 'UNUSED', 'UNUSED',
'WITHDRAWN','Withdrawn', 'Not yet Submitted (NULL)') "EXPENSE_STATUS" ,
NVL(TO_CHAR(erh.report_submitted_date,'dd-MON-yyyy'),'NULL') SUBMIT_DATE,
NVL(TO_CHAR(erh.expense_last_status_date,'dd-MON-yyyy'),'NULL') LAST_UPDATE,
erh.override_approver_name ER_Approver,
fu.description EXP_ADMIN,
erh.total,
erh.description
FROM
AP_EXPENSE_REPORT_HEADERS_all erh,
per_all_people_f pap, fnd_user fu
WHERE erh.employee_id = pap.person_id
AND fu.user_id = erh.created_by
AND NVL(erh.expense_status_code, 'Not yet Submitted') NOT IN ('MGRAPPR', 'INVOICED', 'PAID', 'PARPAID')
AND pap.full_name = NVL(:claimant, pap.full_name)
AND TRUNC(erh.report_submitted_date) BETWEEN NVL(:expense_date_from, '01-JAN-1999') AND NVL(:expense_date_to,'31-DEC-2299')
AND fu.description = NVL(:raisedby,fu.description)
AND erh.expense_status_code = NVL(:status,erh.expense_status_code) &ordered]]>
</sqlStatement>
</dataQuery>
<dataTrigger name="beforeReportTrigger" source="SUBIXCLT.beforeReportTrigger"/>
<dataStructure>
<group name="G_XP_CLM_TRACKNG" source="Q1">
<element name="INVOICE_NUM" value="INVOICE_NUM" />
<element name="EMP_CLAIMING" value="EMP_CLAIMING" />
<element name="EXPENSE_STATUS" value="EXPENSE_STATUS" />
<element name="SUBMIT_DATE" value="SUBMIT_DATE" />
<element name="LAST_UPDATE" value="LAST_UPDATE" />
</group>
</dataStructure>
</dataTemplate>..when I try to run the Concurrent Program (ORACLE uses a Java Program to run it somehow..) this is the log file produced (note, I dont use the parameter &ordered that the trigger is for)..
XDO Data Engine Version No: 5.6.3
Resp: 20707
Org ID : 102
Request ID: 2481618
All Parameters: raisedby=:status=:claimant=:expense_date_from=:expense_date_to=:p_order_by=
Data Template Code: SUBIXCLT
Data Template Application Short Name: PO
Debug Flag: N
{raisedby=, p_order_by=, claimant=, expense_date_to=, expense_date_from=, status=}
Calling XDO Data Engine...
[052810_033436415][][STATEMENT] Start process Data
[052810_033436416][][STATEMENT] Process Data ...
[052810_033436418][][STATEMENT] Executing data triggers...
[052810_033436418][][STATEMENT] BEGIN
SUBIXCLT.claimant := :claimant ;
SUBIXCLT.expense_date_from := :expense_date_from ;
SUBIXCLT.expense_date_to := :expense_date_to ;
SUBIXCLT.raisedby := :raisedby ;
SUBIXCLT.status := :status ;
:XDO_OUT_PARAMETER := 1;
END;
[052810_033436421][][STATEMENT] 1: :
[052810_033436421][][STATEMENT] 2:null :
[052810_033436421][][STATEMENT] 3:null :
[052810_033436422][][STATEMENT] 4: :
[052810_033436422][][STATEMENT] 5: :
[052810_033436504][][STATEMENT] Executing data triggers...
[052810_033436504][][STATEMENT] Declare
l_flag Boolean;
BEGIN
l_flag := SUBIXCLT.beforeReportTrigger ;
if (l_flag) then
:XDO_OUT_PARAMETER := 1;
end if;
end;
[052810_033436518][][EXCEPTION] SQLException encounter while executing data trigger....
java.sql.SQLException: ORA-06550: line 4, column 20:
PLS-00306: wrong number or types of arguments in call to 'BEFOREREPORTTRIGGER'
ORA-06550: line 4, column 1:
PL/SQL: Statement ignored
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:590)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1973)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2191)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2064)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2989)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:736)
at oracle.apps.xdo.dataengine.XMLPGEN.executeTriggers(XMLPGEN.java:650)
at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:263)
at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:215)
at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:254)
at oracle.apps.xdo.dataengine.DataProcessor.processDataStructre(DataProcessor.java:390)
at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:355)
at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:348)
at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:293)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
+---------------------------------------------------------------------------+
Executing request completion options...
+------------- 1) PUBLISH -------------+
Beginning post-processing of request 2481618 on node FINDEV at 28-MAY-2010 15:34:37.
Post-processing of request 2481618 failed at 28-MAY-2010 15:34:39 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details... and OPP service log contains..
Template code: SUBIXCLT
Template app: PO
Language: en
Territory: GB
Output type: PDF
[5/28/10 3:34:39 PM] [UNEXPECTED] [46385:RT2481618] java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:566)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:231)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5926)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3458)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:290)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
Caused by: org.xml.sax.SAXParseException: <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
at oracle.xdo.parser.v2.XMLError.flushErrorHandler(XMLError.java:441)
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:303)
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:343)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:285)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
... 16 moreMany thanks for looking..
Steven -
Error : PLS-00306: wrong number or types of arguments
Hi,
I have created a function :
create or replace procedure Test11 AS
x Test.Emp_No%Type;
Begin
select emp_no into x from Test where name = 'Sud';
x := x + 1;
update Test set emp_no = x where emp_no < 100;
commit;
end Test11;
This has compiled successfully in PL/SQL Developer. Now, I have created an executable of this procedure in Front end - 11i. And then I have created a Program of this executable. Then I have added this program to a request group.
Now that I am running this request and I getting this error in the log :
ORACLE error 6550 in FDPSTP
Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'TEST11'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
.Hi,
Your procedure is a little confusing. By the way, this procedure has no parameters and I supose that maybe you are calling it with some parameter. Could you check this please?
Tip: post your code inside tags (start and end tag are the same) to proper formatting :)
Regards,
Edited by: Walter Fernández on Dec 3, 2008 10:53 AM - Adding tip... -
PLS-00306: wrong number or types of arguments in call to 'PROC
I m facing this error in my Package... i have given a small code for my prob...
Plz try to rectify this........
Thank u.
abhilasha.
1 create table tt
2 (ename varchar2(30)
3* )
SQL> /
Table created.
SQL> create table ttt
2 as select * from tt;
Table created.
SQL> insert into tt
2 values('abhi');
SQL> create or replace procedure proc_add(emp_rec tt%rowtype)
2 is
3 begin
4 insert into ttt(ename)
5 values(emp_rec.ename);
6 --commit;
7 end proc_add;
8 /
Procedure created.
SQL> execute proc_add('abhi');
BEGIN proc_add('abhi'); END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'PROC_ADD'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredPlease help me, I don't know waht is the mistake, but I have this error, my mails [email protected]
Thanks
ORA-06550 linea 1, column 7
PLS-00306 wrong number or types of arguments in call to "PRC_CONSULTAR_CLIENTE"
ORA-06550 line1, column 7
PL/SQL Statement ignored
--PL*SQL
CREATE OR REPLACE PACKAGE pkg_cliente IS
TYPE tCursor IS REF CURSOR;
PROCEDURE prc_consultar_cliente (
pCodigoCliente IN VARCHAR2,
pNombreCliente IN VARCHAR2,
cDatosCliente OUT tCursor,
pCodRetorno OUT VARCHAR2,
pMsjRetorno OUT VARCHAR2
END pkg_cliente;
PROCEDURE prc_consultar_cliente (
pCodigoCliente IN VARCHAR2,
pNombreCliente IN VARCHAR2,
cDatosCliente OUT tCursor,
pCodRetorno OUT VARCHAR2,
pMsjRetorno OUT VARCHAR2
IS
exDatosInsuficientes EXCEPTION;
lnRegDevueltos NUMBER;
BEGIN
IF TRIM(pCodigoCliente) IS NULL THEN
RAISE exDatosInsuficientes;
END IF;
pMsjRetorno := 'Error Consultar CLIENTES ';
OPEN cDatosCliente FOR
SELECT * FROM CLIENTE
WHERE CODIGO_CLIENTE = pCodigoCliente;
lnRegDevueltos := SQL%ROWCOUNT;
pCodRetorno := '00000000';
pMsjRetorno := 'Transaccion Exitosa .. Reg.Devueltos ' || lnRegDevueltos;
EXCEPTION
WHEN exDatosInsuficientes THEN
pCodRetorno := '00001400';
pMsjRetorno := 'Uno de los campos de entrada son Nulos o ceros';
WHEN OTHERS THEN
pCodRetorno := SQLCODE;
pMsjRetorno := pMsjRetorno || ' ' || substr(SQLERRM,1,50);
END prc_consultar_cliente;
--VB. NET
Public Function consultarClientes() As DataSet
Dim strSql As String = "pkg_cliente.prc_consultar_cliente"
Dim cCon As New OracleConnection(connectionString)
Dim cMst As New OracleDataAdapter
Dim dst As New DataSet
cCon.Open()
cMst.SelectCommand = New OracleCommand(strSql, cCon)
cMst.SelectCommand.CommandType = CommandType.StoredProcedure
cMst.SelectCommand.Parameters.Add("pCodigoCliente", OracleType.VarChar).Value = "1111"
cMst.SelectCommand.Parameters.Add("pNombreCliente", OracleType.VarChar).Direction = "1"
cMst.SelectCommand.Parameters.Add("cDatosCliente", OracleType.Cursor).Direction = ParameterDirection.Output
cMst.SelectCommand.Parameters.Add("pCodRetorno", OracleType.VarChar, 100).Direction = ParameterDirection.Output
cMst.SelectCommand.Parameters.Add("pMsjRetorno", OracleType.VarChar, 100).Direction = ParameterDirection.Output
cMst.Fill(dst)
cCon.Close()
consultarClientes = dst
End Function
Maybe you are looking for
-
Function Module for open Purchase Order & Sales Order?
Hi, commonly I read the data from tables and calculate the open quantity for sales order and purchase order, but I want to know, are there any standard function modules for getting the list of open "purchase order" and "sales order" respectively? Tha
-
Can't open my .psd file using CS4 windows XP & Mac OSX
I am using photoshop CS4 on windows XP I cannot open my file. the message reads: Could not complete your request because the version is not compatible with this version of photoshop. I did open the file on my mac OSX CS4 as well to try to use some of
-
Efficient way to collect datasources connected to Infosources
Hai i need to <b>collect all the datasources</b> for a list of <b>info sources</b>. Is there any easy way to collect them ? Is there any efficient way to collect them from any tables or metadata? iam not looking for collecting them manually. I appre
-
Having iTunes volume only affect Mac speakers, not those connected with Airport Express
In iTunes Help, it says "To use only the volume controls on your remote speakers, see Adjust the sound quality." Great! At Adjust the sound quality, it says "You can customize the sound for...specific speakers." Also great! But... How do I do that? T
-
Stuck on Bios screen after GPU upgrade
Hello, I own a HP Pavilion HPE h8-1024ch (http://h10025.www1.hp.com/ewfrf/wc/product?cc=us&dlc=en&lc=en&os=4132&product=5144367). I've replaced the GTX 550 ti with a Gigabyte GTX 760 (http://www.gigabyte.com/products/product-page.aspx?pid=4935) and w