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.

Similar Messages

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

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

    OK 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

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

    Hi,
    This code call a procedure which takes a VARRAY type as parameter. I face this error
    when i compile the code.
    java.sql.SQLException: ORA-06550: Line 1, column 7 :
    PLS-00306: wrong number or types of arguments in call to 'p_proc'
    ORA-06550: Line 1, column 7 :
    PL/SQL: Statement ignored
    someone can tell what's wrong. Below, you have the source code used in this test case
    a sample code is welcome.
    import java.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.oracore.Util;
    import oracle.jdbc.*;
    import java.math.BigDecimal;
    public class ArrayExample3 {
    public static void main(String args[]) throws Exception {
    // Register the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    // Connect to the database
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@Anais:1521:BLB",
    "candide", "candide");
    // It's faster when auto commit is off
    conn.setAutoCommit(false);
    // create a new ARRAY object
    int elements[] = {300, 400, 500, 600};
    ArrayDescriptor desc = ArrayDescriptor.createDescriptor
    ("NUM_VARRAY", conn);
    ARRAY newArray = new ARRAY(desc, conn, elements);
    CallableStatement cs = conn.prepareCall("{call pe_cl2.p_proc(?)}");
    ( (OracleCallableStatement) cs).setArray(1, newArray);
    cs.executeUpdate();
    // Close all the resources
    cs.close();
    conn.close();
    CREATE OR REPLACE TYPE num_varray_t AS VARRAY(10) OF NUMBER;
    CREATE TABLE varray_table2 (col1 number);
    create or replace package candide.PE_CL2 is
    PROCEDURE p_proc(Id_clt IN num_varray);
    end PE_CL2;
    create or replace package body candide.PE_CL2 is
    PROCEDURE p_proc(Id_clt IN num_varray) IS
    BEGIN
    FORALL i IN Id_clt.FIRST .. Id_clt.LAST
    INSERT INTO varray_table2 VALUES (Id_clt(i));
    COMMIT;
    END;
    end PE_CL2;
    thanks Peter

    You create type num_varray_t, but in procedure your input parameter is of type num_varray. How this type is specified?

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

  • 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 '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);

  • RE: PLS-00306 wrong number or types of arguments in call to...

    Hello,
    Just a small problem regarding procedure execution.
    I create a procedure in the following manner. The procedure is created without any errors however when I try to execute I receive the following error;
    SQL> EXECUTE validVaccination;
    BEGIN validVaccination; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'VALIDVACCINATION'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Code to create procedure
    CREATE OR REPLACE procedure validVaccination (Year in NUMBER) AS
    vPid patient.pid%type;
    vName patient.pname%type;
    vDob patient.dobirth%type;
    vCurrentDate date;
    vAge number;
    vVaccinated vaccinations.vaccinated%type;
    vVacdate vaccinations.vdate%type;
    vYearLeft number;
    BEGIN
    SELECT patient.pid,
    trim(upper(pname)) "Name",
    to_char(dobirth) "DOB",
    to_char(sysdate) "Date",
    trunc((sysdate-dobirth)/365.25) "Age in Years",
    vaccinations.vaccinated,
    to_char(vaccinations.vdate) "Vacc Date",
    (lasting_years-((sysdate-vaccinations.vdate)/365.25)) as "# Years Left"
    INTO vPid,
    vName,
    vDob,
    vCurrentDate,
    vAge,
    vVaccinated,
    vVacdate,
    vYearLeft
    FROM patient, vaccinations, valid_for
    WHERE trunc((sysdate-dobirth)/365.25) < 30
    AND upper(vaccinations.vaccinated) = 'TYPHOID'
    AND extract(year from vdate) >= 2001
    AND patient.pid = vaccinations.pid
    AND upper(vaccinations.vaccinated) = upper(valid_for.vaccinated)
    AND ((sysdate-vaccinations.vdate)/365.25) < lasting_years;
    END;
    Any ideas how to fix this error?

    assuming that you want to display the rows in in sql*plus
    CREATE OR REPLACE procedure validVaccination (Year in NUMBER) AS
      Cursor c1 Is
       SELECT patient.pid,
              trim(upper(pname))              pName,
              to_char(dobirth,'dd-mon-yyyy')  dob,
              to_char(sysdate,'dd-mon-yyyy')  todaysdate,
              trunc((sysdate-dobirth)/365.25) Age,
              vaccinations.vaccinated,
              to_char(vaccinations.vdate,'dd-mon-yyyy') VaccDate,
              (lasting_years-((sysdate-vaccinations.vdate)/365.25)) as years_left
         FROM patient, vaccinations, valid_for
        WHERE trunc((sysdate-dobirth)/365.25)       < 30
          AND upper(vaccinations.vaccinated)        = 'TYPHOID'
          AND extract(year from vdate)             >= 2001
          AND patient.pid                           = vaccinations.pid
          AND upper(vaccinations.vaccinated)        = upper(valid_for.vaccinated)
          AND ((sysdate-vaccinations.vdate)/365.25) < lasting_years;
    BEGIN
      For c1_rec In c1 Loop
        dbms_output.put_line('********************');
        dbms_output.put_line('   patient id: '||to_char(c1_rec.patient_id));
        dbms_output.put_line(' patient name: '||c1_rec.pname);
        dbms_output.put_line('          DOB: '||c1_rec.dobirth);
        dbms_output.put_line(' Current Date: '||c1_rec.todaysdate);
        dbms_output.put_line('          Age: '||to_char(c1_rec.age));
        dbms_output.put_line('   Vacination: '||c1_rec.vaccinated);
        dbms_output.put_line('Vacination dt: '||c1_rec.VaccDate);
        dbms_output.put_line('   Years left: '||c1_rec.years_left);
      End Loop;
    END;
    /after you have compiled the procedure in sql*plus. at the command line enter this
    SQL> set serveroutput on;
    then execute the procedure validVaccination()

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

    Can anybody tell me what is the error. thanks
    Wrote file afiedt.buf
    1 declare
    2 v_jobno integer;
    3 ---------------------- date;
    4 -- Declare program variables as shown above
    5 BEGIN
    6 sys.DBMS_JOB.SUBMIT(job => v_jobno,
    7 what => 'job(''P'');',
    8 next_date => TRUNC('08-FEB-2007') + 19/24 ,
    9 interval => 'next_day(next_day(last_day(sysdate), ''THURSDAY''), ''THURSDAY'' )');
    10 COMMIT;
    11* end;
    SQL> /
    sys.DBMS_JOB.SUBMIT(job => v_jobno,
    ERROR at line 6:
    ORA-06550: line 6, column 1:
    PLS-00306: wrong number or types of arguments in call to 'SUBMIT'
    ORA-06550: line 6, column 1:
    PL/SQL: Statement ignored

    Now i am getting this error .
    Wrote file afiedt.buf
    1 declare
    2 v_jobno integer;
    3 get_date date;
    4 --
    5 BEGIN
    6 sys.DBMS_JOB.SUBMIT(v_jobno,
    7 job(''P'');',
    8 next_date => TO_DATE('08-FEB-2007') + 19/24 ,
    9 'next_day(next_day(last_day(sysdate), ''THURSDAY''), ''THURSDAY'' )');
    10 COMMIT;
    11* END; -- Procedure
    SQL> /
    'next_day(next_day(last_day(sysdate), ''THURSDAY''), ''THURSDAY'' )');
    ERROR at line 9:
    ORA-06550: line 9, column 16:
    PLS-00312: a positional parameter association may not follow a named
    association
    ORA-06550: line 6, column 1:
    PL/SQL: Statement ignored

  • PLS-00306: wrong number or types of arguments in call to . Error Help

    I have create a algorithm which The member function at the end, returns xc and yc.
    ERROR at line 9:
    ORA-06550: line 9, column 63:
    PLS-00306: wrong number or types of arguments in call to 'o'
    ORA-06550: line 9, column 2:
    PL/SQL: Statement ignored

    Guess your function has: RETURN NUMBER
    If so, the statement RETURN 'True' will give you exactly that error.
    Also:
    Return xc;
    Return yc;
    does not work as intended. The function will end by returning xc. (If it ever makes it that far)

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

    Hi, i need execute a store procedure but the error is :
    ORA-06550: line 1, column 13:
    PLS-00306: wrong number or types of arguments in call to 'ELIMINA_GPRS'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
       try{
            cstmt = conn.prepareCall("{ ? = call elimina_gprs(?) }");
            cstmt.registerOutParameter(1,Types.NUMERIC);
            StringTokenizer lt = getStringTokenizer(stringBuffer.toString(), getSeparatorLine());
             while (lt.hasMoreTokens()) {
                 DN = lt.nextToken().trim();
                 oranum = new oracle.sql.NUMBER(lt.nextToken().trim(),0);
                 ((OraclePreparedStatement)cstmt).setNUMBER(2,oranum);
                 cstmt.execute();
                 result = cstmt.getInt(1);
    }The Procedure is
    CREATE OR REPLACE PROCEDURE elimina_gprs
    (p_dn IN ga_aboamist.num_celular%TYPE,
    p_resultado OUT NUMBER)
    IS
    ga_aboamist.num_celular%TYPE IS NUMBER LENGTH 22 PRECISION 15
    any Idea?

    From the procedure I would have thought you call
    "{ call elimina_gprs(?, ?) }"
    You should set argument 1 (type IN)
    and get argument 2 (type OUT)

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

    i'm trying to pass multiple value to stored procedure and getting below error
    CREATE OR REPLACE TYPE STRINGTABLE AS TABLE OF VARCHAR2(4000);
    CREATE OR REPLACE
    PACKAGE  PKG_CUSTOMER  AS
    TYPE L_CURSOR IS REF CURSOR;
    PROCEDURE PROC_GET_CUSTOMER( P_SEARCH in STRINGTABLE, SELECTALL OUT L_CURSOR);
    END PKG_CUSTOMER  ;
    CREATE OR REPLACE
    PACKAGE BODY PKG_CUSTOMER  AS
    PROCEDURE PROC_GET_CUSTOMER( P_SEARCH IN STRINGTABLE, SELECTALL OUT L_CURSOR) IS
    BEGIN
         OPEN SELECTALL FOR
          SELECT  PTNR_COUNTRY_CODE, COUNT(*) NOS FROM TAB_MHD_PARTNER
          WHERE PTNR_COUNTRY_CODE in (SELECT * FROM TABLE (P_SEARCH))
          GROUP BY PTNR_COUNTRY_CODE
    END;
    END PKG_CUSTOMER;
    EXEC PKG_CUSTOMER.PROC_GET_CUSTOMER('GB','DE');
    Error starting at line 30 in command:
    EXEC PKG_CUSTOMER.PROC_GET_CUSTOMER('GB','DE')
    Error report:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'PROC_GET_CUSTOMER'
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'PROC_GET_CUSTOMER'
    ORA-06550: line 1, column 43:
    PLS-00363: expression 'DE' cannot be used as an assignment target
    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:Edited by: RamiahRAGU on Apr 15, 2012 11:08 AM

    The way you are calling the packaged procedure is entirely wrong.
    1. You have one IN parameter which is of table type, and you are trying to pass it as VARCHAR2.
    2. You have an out parameter, and not passing it.
    Moreover, what are you trying to achieve by this code? If you explain teh actual issue, we will be able to help.
    You should call the procedure as below:
    SQL> declare
      2   lc_csr PKG_CUSTOMER.L_CURSOR;
      3  begin
      4   PKG_CUSTOMER.PROC_GET_CUSTOMER(STRINGTABLE('GB','DE'),lc_csr);
      5  end;
      6  /
    PL/SQL procedure successfully completed.

Maybe you are looking for