cfstoredproc: PL/SQL: Statement ignored

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default cfstoredproc: PL/SQL: Statement ignored

    Hoping someone can tell me what I'm doing wrong. I'm getting the error:

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

    The error occurred in D:\www\website\Scheduled\API_pay_citations.cfm: line 28

    26 : <cfprocparam type="out"
    dbvarname="o_re_id" variable="o_re_id" cfsqltype="cf_sql_numeric">
    27 : <cfprocparam type="out"
    dbvarname="o_error_code" variable="o_error_code" cfsqltype="cf_sql_numeric">
    28 : <cfprocparam type="out" dbvarname="o_error_msg"
    variable="o_error_msg" cfsqltype="cf_sql_varchar">
    29 : </cfstoredproc>
    30 :


    --------------------------------------------------------------------------------

    SQL { (param 1) = call p_reg_pay_cites( (param 2) , (param 3) , (param 4) ,
    (param 5) , (param 6) , (param 7) , (param 8) )}
    DATASOURCE TAPSTest
    VENDORERRORCODE 6550
    SQLSTATE 65000

    Please try the following:
    <<snip>>

    I've established default vaules for testing purposes.: Code included



    Thanks.

    <cfparam name="citations" default="I050012421">
    <cfparam name="amount" default="30.00">
    <cfparam name="pmid" default="">
    <cfparam name="o_re_id" default="">
    <cfparam name="o_error_code" default="">
    <cfparam name="o_error_msg" default="">
    <cfparam name="return_receipt" default="">
    <cfparam name="return_error" default="">
    <cfparam name="return_message" default="">

    <cfset return_receipt = o_re_id>
    <cfset return_error = o_error_code>
    <cfset return_message = o_error_msg>


    <cfstoredproc procedure="p_reg_pay_cites" datasource="dbname"
    username="APIuser" password="xxxxxxx" dbtype="dynamic" returncode="yes">
    <cfprocparam type="in"
    dbvarname="i_citation_list" value='#citations#' cfsqltype="cf_sql_varchar">
    <cfprocparam type="in"
    dbvarname="i_amt_paid" value="#amount#" cfsqltype="cf_sql_decimal" scale="2">
    <cfprocparam type="in"
    dbvarname="i_itid" value="1" cfsqltype="cf_sql_numeric">
    <cfprocparam type="in"
    dbvarname="i_pm_id" value="9" cfsqltype="cf_sql_numeric">

    <cfprocparam type="out"
    dbvarname="o_re_id" variable="o_re_id" cfsqltype="cf_sql_numeric">
    <cfprocparam type="out"
    dbvarname="o_error_code" variable="o_error_code" cfsqltype="cf_sql_numeric">
    <cfprocparam type="out" dbvarname="o_error_msg"
    variable="o_error_msg" cfsqltype="cf_sql_varchar">
    </cfstoredproc>

    cscottucd Guest

  2. Similar Questions and Discussions

    1. CF MX7 <cfstoredproc> with Oracle
      O.k. I am getting the following error using CF MX7 when I create a new record, but update works fine. However, this works fine on CF MX6.1 ERROR:...
    2. cfstoredproc error and db2
      Hi All, I need help on the Stored Procedure badly. I tried to conduct research on this issue but did not get much luck. I am sure I am not the...
    3. Help with cfstoredproc
      OK I have huge problem with my cfstored proc I have stored procedure which retrieve lost password when you provide email. Stored procedure is...
    4. cfquery vs cfstoredproc
      In my experience, the SPs execute a little faster then the queries. you can use to test on your own. <CFSET start=GetTickCount()> ... some CFML code...
    5. cfstoredproc
      Any chance you're interested in emailing with me about CF coding related to a Informix db back-end? Please email me off-list at...
  3. #2

    Default Re: cfstoredproc: PL/SQL: Statement ignored

    First off, you might need to make sure that your CFPROCPARAMs are declared in
    the same order as the parameters in your PL/SQL procedure declaration, as
    dbvarname has been deprecated since MX 6.x and has no effect whatsoever. In
    other words, you can't use dbvarname to match up your CF parameters with your
    stored procedure parameters. Also, the parameters need to match in number and
    type. What does your PL/SQL procedure declaration (header) look like?

    Phil



    paross1 Guest

  4. #3

    Default Re: cfstoredproc: PL/SQL: Statement ignored

    A application I will be working on need to use PL/SQL in my Coldfusion
    development, could anyone recommend any reference book on this? Or something
    like using Oracle procedure in Coldfusion developemnt will be very helpful as
    well.

    Thanks a lot.
    Bill

    s6868 Guest

  5. #4

    Default Re: cfstoredproc: PL/SQL: Statement ignored

    There is no PL/SQL specifically for ColdFusion or PL/SQL for Dummies:). But
    you can choose from big variaty on
    [url]http://www.amazon.com/gp/search.html/ref=pd_lpo_k2k_3/104-7117063-5508729?%5Fenc[/url]
    oding=UTF8&keywords=oracle%20pl%2Fsql&index=blende d. Any of them would be
    usefull. I would recommend O'reily series. Also, free online documentation is
    available:
    [url]http://download-west.oracle.com/docs/cd/A91202_01/901_doc/appdev.901/a89856/toc[/url].
    htm

    CF_Oracle Guest

  6. #5

    Default Re: cfstoredproc: PL/SQL: Statement ignored

    I've got the 2nd and 3rd editions of this book
    [url]http://www.amazon.com/gp/product/0596009771/qid=1142457131/sr=2-3/ref=pd_bbs_b_2[/url]
    _3/104-3020004-4357542?s=books&v=glance&n=283155 and they are excellent. Steven
    Feuerstein is the PL/SQL guru, as far as I'm concerned.

    As for the ColdFusion end, just study up on using CFSTOREDPROC, CFPROCPARAM,
    and CFPROCRESULT tags. There are a few quirks regarding returning result sets
    by having to use reference cursors, etc., especially with different versions of
    ColdFusion and different Oracle drivers, and some CF books have sections about
    using stored procedures, like the various Forta ColdFusion Constructin Kit
    books. Happy hunting.

    Phil

    paross1 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139