oracle stored procedure calling

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

  1. #1

    Default oracle stored procedure calling

    I have two procedures test1 and test2. Resultset is returned by test2.
    My coldfusion code calls test1.


    PROCEDURE test1 (in_eid IN NUMBER, out_rs1 OUTREF_CURSOR)
    IS
    BEGIN

    if eid =5 then
    test2 (out_rs1 OUTREF_CURSOR);
    end if;
    END test1;


    PROCEDURE test2 (out_rs1 OUTREF_CURSOR)
    IS
    BEGIN

    OPEN out_rs1
    FOR
    SELECT *
    FROM table1
    END test2;


    <CFSTOREDPROC PROCEDURE="test1" DATASOURCE="ps-db">
    <cfproc param type="in" dbvarname="in_eid" value="5">
    <CFPROCRESULT NAME="RS">
    </CFSTOREDPROC>


    Error I am getting "Unsupported data conversion". When I call single procedure
    independently it's works fine.
    Please suggest if coldfusion support this type of procedure calling.

    Raju_bhupesh Guest

  2. Similar Questions and Discussions

    1. Calling stored procedure from MysQL 5.0
      I am trying to call stored procedures using <cfquery> in Coldfusion MX 7.0, but I am getting this error: Error Executing Database Query. General...
    2. oracle mx stored procedure
      "Error Executing Database Query. Incorrect parameter bindings for stored procedure call. Check your bindings against the stored procedure's...
    3. oracle, asp, stored procedure
      I am trying to run a stored procedure from an asp page on an oracle 9i db. The stored procedure will take one parameter and should return two...
    4. ASP page calling a stored procedure
      Im trying to call a stored procedure in SQL Server 2000 in ASP.. Heres my code.. ...
    5. Calling stored procedure on connection
      Hello all, I'm having a dickens of a time calling a stored procedure on a connection. Every time I do, it generates an error "Arguments are of the...
  3. #2

    Default Re: oracle stored procedure calling

    Not sure if this is your problem, but are your procedures in a PL/SQL package?
    If you wish to return result sets to ColdFusion using reference cursors, your
    procedures must be in a package because you must declare the reference cursor
    type globally in the package spec.

    Phil

    paross1 Guest

  4. #3

    Default Re: oracle stored procedure calling

    Wow it's works ....
    Thanks a lot Phil
    Raju_bhupesh 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