Issue with proc-ora-06550 wrong number or types of arguments in call to

Hi....
When i am running the flollwing procedure as
SQL> exec Prc_WA_Default_Currt_flag(15445);
the following error is thrown.......could someone help me and please let me know how this can be corrected.
BEGIN Prc_WA_Default_Currt_flag(15445); END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to
'PRC_WA_DEFAULT_CURRT_FLAG'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
***proc code****
CREATE OR REPLACE procedure Prc_WA_Default_Currt_flag(Instance_Id_Upd_in in number,dummy1 out number) as
Instance_Id_Upd1 number;
dummy2 number;
cursor c1 is select rwid from wa_temp_default;
begin
Instance_Id_Upd1:=Instance_Id_Upd_in;
for i in c1 loop
update default_event_log set current_flag=null,Instance_id_upd=Instance_Id_Upd1
where rowid =i.rwid and load_date<(select currLoadtime from wa_batch where
jobname='Default_event_log') and current_flag='Y';
end loop;
commit;
for i in c1 loop
update default_event_log set current_flag='Y'
where load_date>=(select currLoadtime from wa_batch where
jobname='Default_event_log') and rowid=i.rwid;
end loop;
commit;
select to_number(Instance_Id_Upd1) into dummy1 from dual;
end;
/

Hi,
Since it contains an out parameter it has to run this way
declare
dummy_out number;
begin
prc_wa_default_currt_flag(15445,dummy_out);
end;Regards
Anurag

Similar Messages

  • PLS-00306: wrong number or types of arguments in call to 'P_MAIN' ORA-06550

    I have 2 environments: a development environment and a production environment. Both have the same package.
    Calling the package from APEX in the production environment it gives a error:PLS-00306: wrong number or types of arguments in call to 'P_MAIN' ORA-06550.but the data is stille be saved.
    But calling the package in development environment nothing happened.
    What can be the problem???
    regards,
    ekas

    That's not what he asked: is it possible that a package with the same name exists in another schema on the production server - also is it possible that an synonym for the package exists in the production server which doesn't exist in the development? =>All synonym that exist in the production database also exist in the developmenst database.
    Also, you haven't provided details of how you performed these tests to establish that one works where the other doesn't. Are you testing the package within the context of an apex application or have you isolated any test case to the PL/SQL code only - could you run a test of the package within something like SQL*Plus (or your favourite IDE)? Are you feeding in identical test data? Indeed, do you have a unit test script which you can run on both development and production?
    => I have test the package in the content of a apex application, and the data in the production enviroment is not the same as in the developement enviroment due to real data in production.

  • Getting issue while running the SP - wrong number or types of arguments in

    CREATE OR REPLACE PROCEDURE TestSPForOracle
    (cv_1 IN OUT SYS_REFCURSOR)
    AS
    BEGIN
    DELETE FROM tt_abc;
    INSERT INTO tt_abc (SELECT * FROM tblPrdCatMstr_TT);
         OPEN cv_1 FOR
    SELECT * FROM tt_abc;
    END;
    above mentioned sp code compile with warning, and when I try to run this SP getting below error -
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'TESTSPFORORACLE'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Here I already created a temp table using below code -
    CREATE GLOBAL TEMPORARY TABLE tt_abc
    AS (
    SELECT *
    FROM tblPrdCatMstr_TT
    Any suggesstions?
    Edited by: 835891 on Feb 11, 2011 3:20 AM

    In that case we need to write all SPs again in the oracle mannerOf course, otherwise why do the migration.
    In my opinion, it's an utter waste of time and money migrating to Oracle if you're not going to accomodate the fundamental differences between different vendors and also play to their relative strengths.
    You can get what you've done to work.
    The issue is how you're calling it probably - you've not answered that question above.
    But it's crazy not to migrate away from temp table usage. It really is.
    Just do a search on the forum:
    http://forums.oracle.com/forums/search.jspa?threadID=&q=sql+server+temp+table&objID=f75&dateRange=lastyear&userID=&numResults=15&rankBy=10001

  • ORA-06553: PLS-306: wrong number or types of arguments in call to 'EDN_DEQU

    Hi,
    I have installed Oracle fusion 11g on windows vista SP1 system. I have followed all the steps provided in the Oracle fusion installation guide.
    After installation when i tried to start the SOA server i'm continously getting the below warning message in the log file.
    [2009-11-27T03:18:23.203+05:30] [soa_server1] [WARNING] [SOA-31013] [oracle.integration.platform.blocks.event.saq] [tid: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@291d84] [userId: <anonymous>] [ecid: 0000IKmTpBfB5Ewr0CyWMF1B3jQf00000B,0] [APP: soa-infra] Error handling message (rolling back).[[
    java.sql.SQLException: ORA-06553: PLS-306: wrong number or types of arguments in call to 'EDN_DEQUEUE_OAOO_DELIVERY'
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
         at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1223)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
         at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
         at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:98)
         at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.readOAOODelivery(SAQBusinessEventBus.java:1222)
         at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.handleSingleOAOODelivery(SAQBusinessEventBus.java:690)
         at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.handleQueueEvents(SAQBusinessEventBus.java:614)
         at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.access$000(SAQBusinessEventBus.java:76)
         at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus$1.run(SAQBusinessEventBus.java:279)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:171)
         at java.lang.Thread.run(Thread.java:619)
    I have restarted everything and tried again which resulted in the same scenario.
    Anyone,Please help me to troubleshoot this and walk me through this issue.Thanks in advance!.

    Hi to all,
    I have the same problem after a fresch installation of the SOA SUite on a Windows XP.
    After both the admin server and the SOA Server for the domain started correctly then the huge amount of errors
    <ORA-06553: PLS-306: ....>
    is preventing any work on the dual core PC.
    Who can help ?
    best regards
    ############## traces SOA_server console ###############
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Dec 16, 2009 10:09:10 AM CET> <Warning> <Server> <BEA-002611> <Hostname "venus", maps to multiple IP addresses: 192.168
    .0.52, 192.168.0.41>
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.0.41:800
    1 for protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.0.52:8001 f
    or protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:8001 f
    or protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:09:10 AM CET> <Notice> <WebLogicServer> <BEA-000330> <Started WebLogic Managed Server "soa_server1" for
    domain "domain1" running in Production Mode>
    INFO: WLSFabricKernelInitializer$1.handleNotification ......received server running notification. proceeding with compo
    site deployments
    INFO: WLSFabricKernelInitializer$2.run --------->deploying composite model: default/HelloWorldComposite!1.0*53efe7eb-0cc
    6-4fd4-a4c7-72429e842d89
    <Dec 16, 2009 10:09:13 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Dec 16, 2009 10:09:13 AM CET> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    INFO: SSLSocketFactoryManagerImpl.getKeystoreLocation SOA Keystore location: C:/Oracle/MIDDLE~1/HOME_1~1/USER_P~1/domain
    s/domain1/config/fmwconfig/default-keystore.jks
    INFO: SSLSocketFactoryManagerImpl.getKeystorePassword Obtained null or empty keystore password
    INFO: SSLSocketFactoryManagerImpl.getKeyPassword Obtained null or empty key password
    INFO: SSLSocketFactoryManagerImpl.getSSLSocketFactory SOA-20160
    INFO: DeploymentEventPublisher.invoke Publishing deploy event for default/HelloWorldComposite!1.0*53efe7eb-0cc6-4fd4-a4c
    7-72429e842d89
    INFO: WLSFabricKernelInitializer$2.run -------> Done deploying composites. took 1 seconds.
    Dec 16, 2009 10:09:16 AM oracle.integration.platform.blocks.event.saq.SAQBusinessEventBusMessages errorHandlingMessage
    WARNING: Error handling message (rolling back).
    java.sql.SQLException: ORA-06553: PLS-306: wrong number or types of arguments in call to 'EDN_DEQUEUE_OAOO_DELIVERY'
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1223)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:98)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.readOAOODelivery(SAQBusinessEventBus.java:12
    22)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.handleSingleOAOODelivery(SAQBusinessEventBus
    .java:690)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.handleQueueEvents(SAQBusinessEventBus.java:6
    14)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.access$000(SAQBusinessEventBus.java:76)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus$1.run(SAQBusinessEventBus.java:279)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:171)
    at java.lang.Thread.run(Thread.java:619)
    ################ traces WebLogic admin server ######################
    starting weblogic with Java version:
    java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\HOME_1~1\JDK160~1\bin\java -client -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m -Dweblo
    gic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~1\HOME_1~1\WLSERV~1.3\server\lib\weblogic.policy -Xverify:
    none -da -Dplatform.home=C:\Oracle\MIDDLE~1\HOME_1~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\HOME_1~1\WLSERV~1.3\serve
    r -Dweblogic.home=C:\Oracle\MIDDLE~1\HOME_1~1\WLSERV~1.3\server -Ddomain.home=C:\Oracle\MIDDLE~1\HOME_1~1\USER_P~1\doma
    ins\domain1 -Doracle.home=C:\Oracle\Middleware\home_11gR1\Oracle_SOA1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.
    Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\Middleware\home_11gR1\Oracle_SOA1\modules\or
    acle.jrf_11.1.1\jrocket_optfile.txt -Doracle.security.jps.config=C:\Oracle\MIDDLE~1\HOME_1~1\USER_P~1\domains\domain1\co
    nfig\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.alternateTypesDirectory=C
    :\Oracle\Middleware\home_11gR1\Oracle_SOA1\modules\oracle.ossoiap_11.1.1,C:\Oracle\Middleware\home_11gR1\Oracle_SOA1\mod
    ules\oracle.oamprovider_11.1.1 -Dsso.filter.enable=true -Doracle.security.jps.policy.migration.validate.principal=false
    -Dsoa.archives.dir=C:\Oracle\Middleware\home_11gR1\Oracle_SOA1\soa -Dsoa.instance.home=C:\Oracle\MIDDLE~1\HOME_1~1\USE
    R_P~1\domains\domain1 -Dtangosol.coherence.clusteraddress=227.7.7.7 -Dtangosol.coherence.log=jdk -Djavax.xml.soap.Messag
    eFactory=oracle.j2ee.ws.saaj.soap.MessageFactoryImpl -Dcom.sun.management.jmxremote -Djava.protocol.handler.pkgs="oracle
    .mds.net.protocol|oracle.fabric.common.classloaderurl.handler|oracle.fabric.common.uddiurl.handler" -Dweblogic.transacti
    on.blocking.commit=true -Dweblogic.transaction.blocking.rollback=true -Dem.oracle.home=C:\Oracle\Middleware\home_11gR1\O
    racle_SOA1 -Djava.awt.headless=true -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.lo
    gErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\HOME_1~1\patch_wls1031\profiles\default\sysext_manifest_classpa
    th;C:\Oracle\MIDDLE~1\HOME_1~1\patch_oepe1031\profiles\default\sysext_manifest_classpath weblogic.Server
    <Dec 16, 2009 10:02:02 AM CET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Clie
    nt VM Version 11.0-b16 from Sun Microsystems Inc.>
    <Dec 16, 2009 10:02:03 AM CET> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.1.0 Thu Jun 11 00:26:56
    EDT 2009 1227385 >
    <Dec 16, 2009 10:02:07 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Dec 16, 2009 10:02:07 AM CET> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Dec 16, 2009 10:02:08 AM CET> <Notice> <Log Management> <BEA-170019> <The server log file C:\Oracle\Middleware\home_11g
    R1\user_projects\domains\domain1\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be
    written to this file.>
    <Dec 16, 2009 10:02:17 AM CET> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Dec 16, 2009 10:02:34 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Dec 16, 2009 10:02:34 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Dec 16, 2009 10:02:47 AM CET> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.se
    curity.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application em is not versioned.>
    Dec 16, 2009 10:03:12 AM org.apache.beehive.netui.util.logging.Logger error
    SEVERE: ServletContainerAdapter manager not initialized correctly.
    Dec 16, 2009 10:03:30 AM org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl init
    WARNING: Configurator services already initialized.
    ADF Library non-OC4J post-deployment (millis): 78
    <Dec 16, 2009 10:03:42 AM CET> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Do
    main level Diagnostic Service successfully.>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Dec 16, 2009 10:03:43 AM CET> <Warning> <Server> <BEA-002611> <Hostname "venus", maps to multiple IP addresses: 192.168
    .0.52, 192.168.0.41>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7001 f
    or protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.0.41:700
    1 for protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.0.52:7001 f
    or protocols iiop, t3, ldap, snmp, http.>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for d
    omain "domain1" running in Production Mode>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Dec 16, 2009 10:03:43 AM CET> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    ###############################################################################################

  • 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 ignored

    Please 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

  • 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.

  • Wrong number or types of arguments in call to 'P_RETRIEVE_OPPTY_ORDER_STATU

    I have been strucK at a point in invoking the procedure which has a boolean parameter which when called from java program get error saying that "wrong number or types of arguments in call to 'P_RETRIEVE_OPPTY_ORDER_STATUS'". the procedure is given below along with the calling java code , and the Errors.
    If i change the parameter data type to VARCHAR2 (the parameter hilighted in red) in the in the procedure and invoke it with the same method it works fine, even if i change the "callableStatement.setBoolean(1, true); to callableStatement.setInt(1, 1); it works fine.When i call it with setting the boolean to the procedure from my java i get a error. Im really confused whether is this a issue with oracle? or with java code.
    Please can any body suggest me any kind of solution! to over come this scenario.
    ///// java code
    public void testThePackage() throws ClassNotFoundException { Connection connection = null; connection = (Connection) getConnection(); CallableStatement callableStatement = null; try { callableStatement = connection .prepareCall("{call L_test.p_retrieve_oppty_order_status(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}"); callableStatement.setBoolean(1, true); // callableStatement.setString(1, "YES"); // callableStatement.setInt(1, 1); // callableStatement.setLong(1, 1L); callableStatement.setString(2, "SFA"); callableStatement.setString(3, "123421"); callableStatement.setLong(4, 1L); callableStatement.setLong(5, 123L); callableStatement.setLong(6, 345L); callableStatement.setInt(7, 10); callableStatement.setInt(8, 2435); callableStatement.setInt(9, 5675); callableStatement.registerOutParameter(10, Types.NUMERIC); // on_return_status callableStatement.registerOutParameter(11, Types.VARCHAR); // os_duns_no callableStatement.registerOutParameter(12, Types.VARCHAR); // os_hq_duns_no callableStatement.registerOutParameter(13, Types.NUMERIC); // on_approval_id callableStatement.registerOutParameter(14, Types.NUMERIC); // on_approval_amt callableStatement.registerOutParameter(15, Types.VARCHAR); // os_message callableStatement.registerOutParameter(16, Types.VARCHAR); // os_approval_cd callableStatement.registerOutParameter(17, Types.VARCHAR); // os_security_term_cd callableStatement.registerOutParameter(18, Types.VARCHAR); // action // code callableStatement.registerOutParameter(19, Types.VARCHAR); // action // message // txt callableStatement.execute(); connection.commit(); } catch (SQLException e) { System.out.println(e.getMessage()); } } [/code] /////procedure  CREATE OR REPLACE PACKAGE BODY cust.L_test IS  PROCEDURE p_retrieve_oppty_order_status          (isNonAttilaAttempt boolean          , is_system_cd VARCHAR2          , is_order_id VARCHAR2          , in_oppty_id NUMBER          , in_company_id VARCHAR2          , in_acct_id NUMBER          ,in_local_rev NUMBER          ,in_switched_rev NUMBER          ,in_dedicated_rev NUMBER          , on_return_status  OUT NUMBER          , os_duns_no OUT VARCHAR2          , os_hq_duns_no OUT VARCHAR2          , on_approval_id OUT NUMBER          , on_credit_balance OUT NUMBER            , os_message OUT VARCHAR2      , os_approval_cd OUT VARCHAR2      , os_security_term_cd OUT VARCHAR2      ,os_action_cd  OUT VARCHAR2      ,os_action_txt_msg OUT VARCHAR2) IS      io_return l_cdt_util.return_data_t;            action_cd VARCHAR2(20):= NULL;      flag boolean:=false;  BEGIN  if isNonAttilaAttempt =[color=red]true[/color]  then --'YES'  true  flag:=true;  end if;  insert into example (id,data,deleted) values(1,'Test','YES');        END p_retrieve_oppty_order_status;    END cust.L_test;      CREATE OR REPLACE PACKAGE BODY cust.L_test IS PROCEDURE p_retrieve_oppty_order_status         (isNonAttilaAttempt boolean         , is_system_cd VARCHAR2         , is_order_id VARCHAR2         , in_oppty_id NUMBER         , in_company_id VARCHAR2         , in_acct_id NUMBER         ,in_local_rev NUMBER         ,in_switched_rev NUMBER         ,in_dedicated_rev NUMBER         , on_return_status  OUT NUMBER         , os_duns_no OUT VARCHAR2         , os_hq_duns_no OUT VARCHAR2         , on_approval_id OUT NUMBER         , on_credit_balance OUT NUMBER         , os_message OUT VARCHAR2     , os_approval_cd OUT VARCHAR2     , os_security_term_cd OUT VARCHAR2     ,os_action_cd  OUT VARCHAR2     ,os_action_txt_msg OUT VARCHAR2) IS     io_return l_cdt_util.return_data_t;        action_cd VARCHAR2(20):= NULL;     flag boolean:=false; BEGIN if isNonAttilaAttempt =[color=red]true[/color]  then --'YES'  true flag:=true; end if; insert into example (id,data,deleted) values(1,'Test','YES');       END p_retrieve_oppty_order_status; END cust.L_test;    /////error ORA-06550: line 1, column 7:  wrong number or types of arguments in call to 'P_RETRIEVE_OPPTY_ORDER_STATUS'  line 1, column 7:  PL/SQL: Statement ignored                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi YoungWinston,
    I realy appriciate your comments on the standard of the code , i also accept procedure and code may not be readable,
    but the problem is not because of bloated call its just beacause of the Boolean parameter being passed throught the java code, and where as the SQL/PL does not allow BOOLEAN as paramater, please refer the below link for justification.
    what am expecting is , is there any solution to this problem (not a work arround solution).
    Please provide me with some sort of solution/hints or suggestions in achieving this solution,
    I would realy your effort
    Thanks
    ud
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/datatypes.htm#CJACJGBG
    Predefined PL/SQL BOOLEAN Data Type
    The BOOLEAN data type stores logical values, which you can use in logical operations. The logical values are the Boolean values TRUE and FALSE and the value NULL.
    The syntax for specifying an BOOLEAN data item is:
    BOOLEAN
    SQL has no data type equivalent to BOOLEAN; therefore you cannot use BOOLEAN variables or parameters in the following:
    SQL statements
    Built-in SQL functions (such as TO_CHAR)
    PL/SQL functions invoked from SQL statements
    You cannot insert the value TRUE or FALSE into a database column. You cannot retrieve the value of a database column into a BOOLEAN variable.
    To represent BOOLEAN values in output, use IF-THEN or CASE constructs to translate BOOLEAN values into another type (for example, 0 or 1, 'Y' or 'N', 'true' or 'false').

  • PLS-00306: wrong number or types of arguments in call to 'myStoredProc'

    I don't understand why I get the below error when I run my stored proc like this (here is the signature of my stored proc
    PROCEDURE myStoredProc(thisCursor OUT MyRefCur);
    exec myStoredProc
    Error starting at line 1 in command:
    exec myStoredProc
    Error report:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'myStoredProc'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    Suzie wrote:
    I don't understand why I get the below error when I run my stored proc like this (here is the signature of my stored proc
    PROCEDURE myStoredProc(thisCursor OUT MyRefCur);So the procedure requires 1 argument.
    exec myStoredProcand you're calling it with 0 arguments. That's the wrong number. Call the procedure with 1 arguement:
    VARIABLE  c  REFCURSOR
    EXEC myStoredProc (:c);

  • PLS-00306: wrong number or types of arguments in call to 'GET_CUST_ID'

    i've created the below procedure, whenever i'm trying excuting its giving the following Error.
    Please guide me how to solve this issu...........
    SQL> create or replace procedure get_cust_id(in_source in varchar2,
    2 in_reference_7 in varchar2,
    3 cus_name out varchar2)
    4 is
    5 begin
    6 if in_source ='Receivables' then
    7 if in_reference_7 is null then
    8 cus_name := '';
    9 else
    10 select cu.customer_name
    11 into cus_name
    12 from ra_customers cu
    13 where cu.customer_id = to_number(in_reference_7);
    14 fnd_file.put_line(100, cus_name);
    15 end if;
    16 end if;
    17 end;
    18 /
    Procedure created.
    SQL> exec get_cust_id('Receivables',1000) ;
    BEGIN get_cust_id('Receivables',1000) ; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'GET_CUST_ID'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Thanks in Advance.
    Srinivas.P

    Vivek L wrote:
    Vitor M.A. Rodrigues wrote:
    If it has 3 varchar2 parameters then you should give 3 ... It should be something like this:
    exec get_cust_id('Receivables','1000','1000') ;
    Slight modification Victor.
    If you see the signature of procedure, it has 2 IN params and 1 OUT param :
    SQL> create or replace procedure get_cust_id(in_source in varchar2,
    2 in_reference_7 in varchar2,
    3 cus_name out varchar2)
    4 isSo for parameter cus_name (which is an out parameter) value can not be assigned , but has to be captured in some local vaiable.
    Something like this :
    SQL> var t_out varchar2(4000);
    SQL> exec get_cust_id(in_source  => 'Receivables', in_reference_7 => 1000,cus_name => :t_out );
    Sorry didn't see the OUT : (
    edit: Vivek L Put the 1000 with '' ;) . Will edit my response : )

  • 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
    Thelak                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi 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 to 'SHOW'

    Statement : declare
    rc__ number;
    begin
    owa.init_cgi_env(:n__,:nm__,:v__);
    htp.HTBUF_LEN := 255;
    null;
    null;
    wwv_flow.show(p_request=>:p_request,p_instance=>:p_instance,p_flow_id=>:p_flow_id,p_flow_step_id=>:p_flow_step_id,p_arg_names=>:p_arg_names,p_arg_values=>:p_arg_values);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    :rc__ := rc__;
    end;
    Did someone ever see this ?
    My database throws it every time i use an ajax validation with javascript. The application is NOT affected in any way, means the validation is done correct:
    function validate(pNumber,i){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=validate_number',100);
    get.add('F500_VALID_NUMBER', pNumber);
    gReturn = get.get();
    html_GetElement('err'+i).innerHTML=gReturn;
    The validate_number Application Process then uses a Stored Function for the "real" validation.
    Thanks for help,
    Jochen

    Jochen,
    yes when you trace modplsql, I can see this and I also have an error I don't know why.
    <360294694 ms>(wppr.c,497) Pl/sql block parsed...
    <360294694 ms>(wpdenv.c,1531) CGI Environment has 31 vars. Max name len 128, Max Value Len 128
    <360294694 ms> PLSQL_GATEWAY(14)=(6)WebDb
    <360294694 ms> GATEWAY_IVERSION(17)=(2)2
    <360294694 ms> SERVER_SOFTWARE(16)=(60)Oracle-Application-Server-10g/10.1.2.2.0 Oracle-HTTP-Server
    <360294694 ms> GATEWAY_INTERFACE(18)=(8)CGI/1.1
    <360294694 ms> SERVER_PORT(12)=(5)7779
    <360294694 ms> SERVER_NAME(12)=(10)net-srv05
    <360294694 ms> REQUEST_METHOD(15)=(5)POST
    <360294694 ms> PATH_INFO(10)=(15)/wwv_flow.show
    <360294694 ms> SCRIPT_NAME(12)=(10)/pls/apex
    <360294694 ms> REMOTE_ADDR(12)=(14)172.20.100.77
    <360294694 ms> SERVER_PROTOCOL(16)=(9)HTTP/1.1
    <360294694 ms> REQUEST_PROTOCOL(17)=(5)HTTP
    <360294694 ms> REMOTE_USER(12)=(17)APEX_PUBLIC_USER
    <360294694 ms> HTTP_CONTENT_LENGTH(20)=(4)149
    <360294694 ms> HTTP_CONTENT_TYPE(18)=(34)application/x-www-form-urlencoded
    <360294694 ms> HTTP_USER_AGENT(16)=(51)Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
    <360294694 ms> HTTP_HOST(10)=(11)172.18.2.5
    <360294694 ms> HTTP_ACCEPT(12)=(4)*/*
    <360294694 ms> HTTP_ACCEPT_LANGUAGE(21)=(18)en-us,ar-lb;q=0.5
    <360294694 ms> HTTP_COOKIE(12)=(105)LOGIN_USERNAME_COOKIE=usr1234; WWV_CUSTOM-F_941322186522444_101=725E6950E8DF04E5; oracle.uix=0^^GMT+2:00
    <360294694 ms> HTTP_REFERER(13)=(53)http://172.18.2.5/pls/apex/f?p=101:1:950664913516045
    <360294694 ms> HTTP_ORACLE_ECID(17)=(14)89781163291,1
    <360294694 ms> HTTP_ORACLE_CACHE_VERSION(26)=(7)10.1.2
    <360294694 ms> WEB_AUTHENT_PREFIX(19)=(1)
    <360294694 ms> DAD_NAME(9)=(5)apex
    <360294694 ms> DOC_ACCESS_PATH(16)=(5)docs
    <360294694 ms> DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
    <360294694 ms> PATH_ALIAS(11)=(1)
    <360294694 ms> REQUEST_CHARSET(16)=(9)AL32UTF8
    <360294694 ms> REQUEST_IANA_CHARSET(21)=(6)UTF-8
    <360294694 ms> SCRIPT_PREFIX(14)=(5)/pls
    <360294694 ms>StrArrPosBind pos 2 Charset Id : 873
    <360294694 ms>StrArrPosBind pos 3 Charset Id : 873
    <360294694 ms>StrArrPosBind pos 11 Charset Id : 873
    <360294704 ms>Execute: ORA-06550: line 33, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 33, column 3:
    PLS-00306: wrong number or types of arguments in call to 'SHOW'
    ORA-06550: line 33, column 3:
    PL/SQL: Statement ignored
    apex team comments are highly appreciated.
    one more thing I can see for each ajax request I have in my page a hard parse is happening .
    Omar

  • PLS-00306: wrong number or types of arguments in call to 'XMLAGG'

    Hello,
    I have a procedure that creates an xml file and I need to order by an admission date using XMLAGG. When I run the query on it's own, with it not being inside a procedure it runs fine. When I try to run it within a procedure it throws back the above error message, unless I comment out the 'order by'. Does anyone know how I can get this to run with the order by within a procedure?
    We are using Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production.
    Thanks.
    SELECT XMLELEMENT("Stakeholder", XMLELEMENT("ULI", a.ULI),
                                            XMLELEMENT("Gender",a.GENDER),
                                  XMLELEMENT("BirthDate", XMLATTRIBUTES(a.BIRTH_DATE_TYPE AS "type"), a.BIRTH_DATE),
                                            XMLELEMENT("HealthCareNumberInformation",XMLELEMENT("HealthCareNumber",a.HCN),
                                                                                              XMLFOREST((a.PROV_ISSUING_HCN) AS "ProvinceTerritoryIssuingHCN")),
                                            XMLELEMENT("SubmissionType",a.SUBMISSION_TYPE),
                                            (SELECT XMLAGG(XMLELEMENT("ServiceEpisode", XMLELEMENT("AdmissionDate", a2.ADMISSION_DATE )) ORDER BY a2.ADMISSION_DATE)
                                                      FROM admissions a2
                                                                , discharge d2
                                            WHERE a.uli = a2.uli
                                                      AND a.uli = d2.uli
                                                           AND a2.encounter_number = d2.encounter_number
                        )).getClobVal() AS "result"
    FROM Admissions a
         , Discharge d3
         , Diagnosis d
    WHERE a.ULI = d3.ULI
    AND a.ENCOUNTER_NUMBER = d3.ENCOUNTER_NUMBER
    AND a.ULI = d.ULI
    AND a.ENCOUNTER_NUMBER = d.ENCOUNTER_NUMBER
    GROUP BY a.ULI
         , a.GENDER
         , a.BIRTH_DATE_TYPE
         , a.BIRTH_DATE
         , a.HCN
         , a.PROV_ISSUING_HCN
         , a.SUBMISSION_TYPE

    create table mytab (a number,b number);           
    insert into mytab values (1,100);                 
    insert into mytab values (2,200);                 
    SVIL>SELECT xmlelement("A",XMLAGG(XMLELEMENT("B", b ) ORDER BY b)) FROM mytab;
    XMLELEMENT("A",XMLAGG(XMLELEMENT("B",B)ORDERBYB))
    <A><B>100</B><B>200</B></A>
    SVIL>create or replace function getx return xmltype is
      2  r xmltype;
      3  begin
      4  SELECT xmlelement("A",XMLAGG(XMLELEMENT("B", b ) ORDER BY b))
      5  into r
      6  FROM mytab;
      7  return r;
      8  end;
      9  /
    Avvertimento: funzione creata con errori di compilazione.
    SVIL>sho err
    Errori in FUNCTION GETX:
    LINE/COL ERROR
    4/1      PL/SQL: SQL Statement ignored
    4/23     PLS-00306: wrong number or types of arguments in call to 'XMLAGG'
    4/23     PL/SQL: ORA-00904: "XMLAGG": invalid identifier
    SVIL>
    SVIL>ed a
    SVIL>select * from v$version where rownum=1
      2  ;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit ProductionThe same code works on 10.2.0.4 and 11.1.0.6, don't have other versions to test
    Testing your code
    SVIL>declare                                                                                              
      2   d integer;                                                                                          
      3   x xmltype;                                                                                          
      4  begin                                                                                                
      5     select deptno, xmlagg (xmlelement (e, ename || ',') order by ename)                               
      6     into d, x                                                                                         
      7     from emp                                                                                          
      8    where deptno = 10                                                                                  
      9   group by deptno;                                                                                    
    10  end;                                                                                                 
    11  /                                                                                                    
       select deptno, xmlagg (xmlelement (e, ename || ',') order by ename)                                    
    ERRORE alla riga 5:                                                                                       
    ORA-06550: line 5, column 19:                                                                             
    PLS-00306: wrong number or types of arguments in call to 'XMLAGG'                                         
    ORA-06550: line 5, column 19:                                                                             
    PL/SQL: ORA-00904: "XMLAGG": invalid identifier                                                           
    ORA-06550: line 5, column 4:                                                                              
    PL/SQL: SQL Statement ignored                                                                             
    SVIL>select deptno, xmlagg (xmlelement (e, ename || ',') order by ename) from emp group by deptno;        
        DEPTNO XMLAGG(XMLELEMENT(E,ENAME||',')ORDERBYENAME)                                                   
             1 <E>mike,</E><E>tom,</E>                                                                        
             2 <E>carl,</E>                                                                                    Max
    Edited by: Massimo Ruocchio on Dec 7, 2009 11:11 PM
    Corrected return type

  • 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 ?
    Thanks

    user10940202 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

  • PLS-00306: wrong number or types of arguments in call to 'IS NULL'

    Hello
    in a nutshell, the following script doesn't work as expected:
    DECLARE
    v_Flight CORE.T_Flight%RowType := NULL;
    BEGIN
    IF (v_Flight IS NULL) THEN
    DBMS_OUTPUT.PUT_LINE('v_Flight is null');
    END IF;
    END;
    whereby 'CORE.T_Flight' is an existing DB table.
    When running the script, the following error is printed:
    IF (v_Flight IS NULL) THEN
    FEHLER in Zeile 4:
    ORA-06550: line 4, column 6:
    PLS-00306: wrong number or types of arguments in call to 'IS NULL'
    ORA-06550: line 4, column 2:
    PL/SQL: Statement ignored
    In other words: it seams that a 'rowtype' cannot be compared against NULL. Replacing the direct comparision with the statement
    IF (NVL(v_Flight, 0) = 0) THEN ...
    produces the same error.
    Who can help me?
    (I hope I'm not boring the experts - I'm a beginner)
    thanks
    Daniel

    Hi,
    It's just a limitation of PL/SQL that we have to deal with... from the documentation: "Records cannot be tested for nullity, or compared for equality, or inequality".
    If you really need to do this check you may want to create a function for it:
    function t_flight_rec_is_null (
       p_rec in t_flight%rowtype
    ) return boolean
    is
    begin
       return p_rec.field1 is null and p_rec.field2 is null ... and p_rec.fieldN is null;
    end;cheers,
    Anthony

  • PLS-00306: wrong number or types of arguments in call to 'ACCEPT'

    The users of my app get an error that happens only occasionally.
    The page on which this error occurs has a few tabs and when the user clicks on a tab to go to another page, the following error appears when using Firefox.
    Fri, 19 Jun 2009 01:24:27 GMT
    ORA-06550: line 24, column 3:
    PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
    ORA-06550: line 24, column 3:
    PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
    ORA-06550: line 24, column 3:
    PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
    ORA-06550: line 24, column 3:
    PLS-00306: wrong number or types of arguments in call to 'ACCEPT'
    ORA-06550: line 24, column 3:
    PL/SQL: Statement ignored
    When using Internet Explorer, the error returned is a 404 page not found error.
    This error does not occur in debug mode
    The Apex version we are using is 2.2.1.00.04
    I'm sure there were some other threads on this topic but cannot find them despite searching...

    Hi,
    Advise 1:
    Migrate to version 3.2 when possible
    Advise 2:
    You are probably facing a Rdbms issue. ( So version Rdbms important here )
    maybe
    Note 429261.1
    After upgrading database to 10.2.0.X, getting ORA-06502: PL/SQL: numeric or value error relevant
    Check if flush shared pool helps for a while .....
    Kind regards,
    Iloon

Maybe you are looking for

  • Filter Date Table (SSAS Tabular)

    Hi Guys, I'll try to define my issue as clear as possible. Am creating a model for SSAS Tabular but I have following problem. I have a Date Table that I want to filter depending on what the user select from another table with values like: Today, Yest

  • New Line Item to be created in sale order

    Hi, Client requires a new line item to be created in sale order for particular regions only.. Scenario 1 : For a particular region Additional Tax shud be calculated on Basic Price . Scenario 2 : For a particular region Cess on Vat need to incorporate

  • "A new folder for every project file"

    Aha!!  Right, from now on ... (thanks Steve) From the Muvipix.com Guide to Adobe PE11 by Steve Grisetti (p 36) [on starting and saving a new project] 2     Click the Browse button to choose a location to save your new project file. We at Muvipix reco

  • Import from Hard Drive Not Working?

    I've just upgraded to iPhoto '11 and am, so far, not happy about it. Latest issue is with importing. It works fine for the iPhone and camera, but when I download photos from Shutterfly/Facebook and try the regular ways to import (using Import functio

  • Payment terms 45 days from month end

    Hi, Any one has configured the payment terms above. If yes, pelase let us know how to do the same. Thanks Aravind