Entity Framework stored procedure Mapping - OUT unrecognized parameter

I use the following software:

  • ODP.NET 12 c Release 3
  • Entity Framework 6
  • Visual Studio 2013, SP3
  • Oracle 11g Server

    I created a package containing a stored procedure to update a row in a table.  The procedure is an OUT parameter (named ROWS_AFFECTED) which returns the number of rows affected.

    CREATE OR REPLACE PACKAGE BODY TST. Customer_Procs
    AS
    PROCEDURE Update_Customer
    (
    CUST_ID IN NUMBER,
    WHAT IN VARCHAR2,
    L_NAME IN VARCHAR2,
    EMAIL IN VARCHAR2,
    LAST_UPDATE TIMESTAMP IN
    ROWS_AFFECTED NUMBER
    )
    AS
    BEGIN
    UPDATE
    TST. CUSTOMER
    SET
    NAME = WHAT,.
    LAST_NAME = L_NAME,
    EMAIL_ADDR = EMAIL,
    LAST_UPDT_TIME = CURRENT_TIMESTAMP
    WHERE
    CUSTOMER_ID = CUST_ID
    AND LAST_UPDT_TIME = LAST_UPDATE;

    ROWS_AFFECTED: = NUMBER OF ROWS SQL %;

    END Update_Customer;


    I executed successfully the stored procedure in SQL * more.  The ROWS_AFFECTED OUT parameter is filled with the good

    value.

    I imported the stored procedure in my Entity Framework model using the function successfully import.

    I then traced the parameters of the stored procedure to my entity properties. The ROWS_AFFECTED parameter is shown in the stored procedure mappings, but the "rows affected parameter" check box is cleared.

    Attempt to run my results in the following exception being throw:
    "CustomerModel.msl (22,12): error 2047: a mapping liaison function specifies a function.

    CustomerModel.Store.CUSTOMER_PROCS_UPDATE_CUSTOMER with a parameter not supported: ROWS_AFFECTED. Output parameters cannot

    be mapped through the RowsAffectedParameter property. Use the result links to return values from a function call.

    I am trying to determine what I need to do in order to have the Entity Framework to recognize the ROWS_AFFECTED OUT parameter in the

    stored procedure chart for concurrency control.

    I found a solution: try to declare ROWS_AFFECTED such as 'PLS_INTEGER' instead of 'NUMBER '.  This solved it for me.

    Tags: Database

    Similar Questions

    • Could not import the Pentecost Entity Framework stored procedures

      Hi, I have a problem with Entity Framework 5 and stored procedures. I can add stored procedures to mi with "Update Wizard" solution, but them does not show in the Model Explorer and I can't use my code. I have ODAC 12 c Release 2 installed in my pc.

      There is a bug in the database Oracle 12 c that occurs only with a snap-in database. It is fixed in the next group of patches from database. (bug #17448545)

      There are three workarounds in the meantime:

      (1) to re-create the database without the shared option (no plug-in database)

      (2) install your schema in the database of the container instead of a snap-in database. You will need a user name as C ##HR to do. It is not advisable on a production database.

      Add 3) the section of manually in in the edmx file. Note that this is deleted when you "Generate database from model" or "Update model from database".

      for example:

      ...

      ParameterTypeSemantics = "AllowImplicitConversion" scheme = "SCOTT" >

    • call a stored procedure with OUT VARCHAR2 parameter fails

      Hi all

      I use the Oracle 11.2.0.1 version OLE DB provider. I have a simple stored procedure that contains a VARCHAR2 OUT parameter:

      create or replace procedure TestOut (RESULT_CODE OUT VARCHAR2) is
      Start
      RESULT_CODE: = 'X '.
      TestOut end;

      The following c# code piece fails:

      String ConnStr = "Provider = OraOLEDB.Oracle; User ID = test; Password = test; Data Source = sandbox; « ;
      OleDbConnection Conn = new OleDbConnection (ConnStr);
      Conn.Open ();
      OleDbCommand Cmd new OleDbCommand();
      Cmd.Connection = Conn;
      OleDbParameter Param = Cmd.CreateParameter ();
      Param.ParameterName = "RESULT_CODE ';
      Param.Direction = System.Data.ParameterDirection.Output;
      Param.OleDbType = OleDbType.BSTR;
      Param.Size = 1;
      Cmd.Parameters.Add (Param);

      Cmd.CommandType = System.Data.CommandType.Text.
      Cmd.CommandText = "{TESTOUT (?). CALL} ";
      Cmd.ExecuteNonQuery ();

      If the stored procedure is modified to contain an OUT parameter, the same code works, after you change the type of parameter to appropriate OleDBType (OleDbType.SmallInt).

      What am I doing wrong when handling OUTPUT VARCHAR parameters? Y at - there any limitation on the types of parameters stored procedure using the Oracle OleDB provider?

      Published by: user957565 on 1/Ago/2011 06:31

      I get an access violation, using 11202. What do you get?

      In any case, it works fine for me using OleDbType.VarChar instead of OleDbType.BSTR.

      Hope this helps, comments welcome.

      Greg

    • A stored procedure with input & output parameter as XML

      Hello

      I have a requirement in which I need to have a stored procedure accepts with huge XML from Java and MS a process all the records in the XML file and return the output with a few messages inside XML.

      CurrentY, I have a stored procedure to process the xml code stored in the Oracle database.

      I am using the following SQL statement to read data from the XML column.
      select xmltest1.id,xmltest1.name 
        from xmltest,
             XMLTABLE(
                XMLNamespaces(default 'syncpsna/schemas'),
                '/XMLTestRequest/insert/row'
                      PASSING xmltest.data_xml
                      COLUMNS
                      "ID" number(10) PATH 'id',
                      "NAME" varchar2(50) PATH 'name') xmltest1
      where xmltest.id = 2;
      I want to run similar queries to retrieve data from the XML passed as parameter of entry of JAVA.

      If I could get some examples to read the XML and return the xml to the calling program.

      Concerning

      I can run the query to extract the different sections in the xml file when the XML is stored in a table column. How can do the same thing on XML passed as an input parameter.

      Pretty much the same path, using the clause of PASSAGE.
      Assuming that the input XML is passed as parameter 'p_inputXML', you can do:

      SELECT x.id
           , x.name
      FROM XMLTable(
             XMLNamespaces(default 'syncpsna/schemas'),
             '/XMLTestRequest/insert/row'
             PASSING p_inputXML
             COLUMNS
               "ID"   number(10)   PATH 'id',
               "NAME" varchar2(50) PATH 'name'
           ) x
      ;
      
    • Run the statement in a stored procedure with Out parameters and

      Hi all

      I have a stored procedure that calls a select statement. Here it is...

      CREATE OR REPLACE PROCEDURE BLABLA_VIEW_PROCEDURE

      * (BLABLA_KEY IN NUMBER, *)
      XML_OUTPUT ON VARCHAR)
      AS
      BEGIN
      SELECT SYS. XMLTYPE.getStringVal (OBJECT_VALUE) in XML_OUTPUT FROM BLABLA_VIEW WHERE extractValue (OBJECT_VALUE, ' / BLABLA_TYPE/BLABLA_KEY ') = 2876;
      END;

      Is to have both IN and OUT parameters as described above. I am able to compile and run the procedure.

      The problem I want to share with everyone is...
      I want to run the stored procedure together with a single EXEC command.

      I tried different ways using the EXEC command but of no use.

      Could someone help me?
      Thanks in advance.

      Published by: user10763276 on June 3, 2010 15:47

      Please visit the following...

      sudhakar@ORCL>CREATE OR REPLACE PROCEDURE BLABLA_VIEW_PROCEDURE
        2  (BLABLA_KEY IN NUMBER,
        3  XML_OUTPUT OUT VARCHAR)
        4  AS
        5  BEGIN
        6  XML_OUTPUT := BLABLA_KEY || ' and whatever else...';
        7  END;
        8  /
      
      Procedure created.
      
      sudhakar@ORCL>
      sudhakar@ORCL>var XML_OUTPPUT varchar2(100);
      sudhakar@ORCL>exec BLABLA_VIEW_PROCEDURE (9151, :XML_OUTPPUT);
      
      PL/SQL procedure successfully completed.
      
      sudhakar@ORCL>print XML_OUTPPUT;
      
      XML_OUTPPUT
      --------------------------------------------------------------------------------
      9151 and whatever else...
      
      sudhakar@ORCL>
      

      Post tells you...

      var OUTPUT VARCHAR
      exec BLABLA_VIEW_PROCEDURE (9151, :OUTPUT);
      print OUTPUT
      

      VARCHAR is not a valid TYPe to declare. Use VARCHAR2 (nnn) where nnn is a number.
      VR,
      Sudhakar B.

    • Stored procedure for IN query parameter

      Hello

      Here's the scenario

      The user is allowed to search for a product on multiple values. Interface user can enter value as

      A, B, C, D (all string values)

      This value is passed to a stored procedure as parameter (say v_multipleId). Can I use the v_multipleId directly IN the query?

      Example of

      Select some_value in the une_table where some_colum IN (v_multipleId)?

      If not, then how can I do this?

      Thanks in advance

      N ° you can use dynamic SQL statements. You can also do the following. Just spent a values separated by commas, for example ", A, B, D,' like v_multipleId and use:"

      Select some_value from some_table where v_multipleId like '%,' || some_colum || ',%'
      

      Keep in mind, index on some_colum (assuming there is one) will not be used.

      SY.

    • C# Oracle.DataAccess calling a stored procedure with a date parameter throws formatexception

      C# Oracle.DataAccess CommandType.StoredProcedure is OracleDbType. Date

      I can't get my code to call an oracle procedure that has an order date.

      I receive a System.FormatException occurred in Oracle.DataAccess.dll

      I tried to assign the param. Value = DateTime and also tried assigning as a string formatted with no luck.

      What is the magic formula, I need to call this function?

      Here is a code snippet:

      OracleCommand cmd = new OracleCommand();

      cmd connection group appConn;.

      cmd.CommandText = "mypackage.myprocedure";

      cmd.CommandType = CommandType.StoredProcedure;

      Param = new OracleParameter ("iDateParamter", OracleDbType.Date, ParameterDirection.Input);

      Param. Value = "August 31, 2015."

      Here are other formats I' tried... ved param. Value = myDateValue.ToString ("dd - MMM-yyyy"). ToUpper(); (/ / "MM/dd/yyyy"); 'YYYY-MM-dd'); "MM-dd-yyyy");

      cmd. Parameters.Add (param);

                  BindByName. cmd = true;

                  cmd ExecuteNonQuery());

      Shame on me..., you can close this message

      It was not for the error on my date field, I had another parameter that has been attributed to a string instead of an integer.

      For the record, this has worked well for me:

      Param = new OracleParameter ("iActvyPerDate", OracleDbType.Date, ParameterDirection.Input);

      Param. Value = li. ActvyPerDate.ToString ("dd-MMM-yyyy"). ToUpper();

    • Cannot specify precision of the year in the RANGE of stored procedure parameter

      Version Oracle 10.2.0.3.0

      I write a PL/SQL stored procedure that accepts a parameter of type INTERVAL YEAR TO MONTH. For example...
      CREATE OR REPLACE PROCEDURE INTERVAL_TEST ( pin_Interval IN INTERVAL YEAR TO MONTH )
      Problem with the above is that if I try to call with pin_Interval = 100-00', I get the following error...
      ORA-01873: the leading precision of the interval is too small
      ... but I'm not able to specify the precision of the component 'YEAR' in the following stored procedure definition...
      CREATE OR REPLACE PROCEDURE INTERVAL_TEST ( pin_Interval IN INTERVAL YEAR(4) TO MONTH )
      ... This translates by...
      PLS-00103: Encountered the symbol "(" when expecting one of the following:     to 
      Try as I might, I can't create a stored procedure that will take in an INTERVAL YEAR TO MONTH more precisely 2 on the year.

      I hope that I do just something stupid, and this is not a limitation of PL/SQL.

      Any help is appreciated.

      Hello

      Is the maximum number of decimal digits of the value of each field (YEAR and MONTH) 2, excerpt from [Datetime and Interval examples | http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements001.htm#BABBICGH]

      Kind regards

    • Pass an array of bytes to the oracle stored procedure

      I have a problem with moving from byte array in Oracle stored procedure as an input parameter by using odp.net.

      Here is the signature of the stored procedure:

      SOMEPROCEDURE(session IN NUMBER, data IN RAW)

      Here is c# code, which calls the procedure:

      var cmd = new OracleCommand("SOME_PROCEDURE", _connection);

      cmd.CommandType = CommandType.StoredProcedure;

      var bt = new byte[]{1,68,0,83,128,1};

      OracleParameter sessionId = new OracleParameter("dbSessionId", OracleDbType.Decimal, new OracleDecimal(_dbSessionId), ParameterDirection.Input);

      OracleParameter data = new OracleParameter("statusData", OracleDbType.Raw, new OracleBinary(bt), ParameterDirection.Input);

      cmd.Parameters.Add(sessionId);

      cmd.Parameters.Add(data);

      cmd.ExecuteNonQuery();

      This code does not (stored procedure throws exception, which cannot receive), because in byte array hadou number 128!, if I display 128 on another number, minus 128, it works great!

      What should I do?

      After some tests I found the solution. Initially, you cannot switch to the array of bytes via the odp.net stored procedure, if the table contains 127 large values.

      Yes, solution: 1. create the wrapper procedure

      procedure SOME_PROCEDURE_WRAPPER (p_session_id in number, p_data  in varchar2)
       is v_data raw(1024);
       rawdata raw(1024); 
       rawlen number;
       hex varchar2(32760);
       i number;
       begin
        rawlen := length(p_data);
        i := 1;
        while i <= rawlen-1
        loop 
       hex := substrb(p_data,i,2); 
           rawdata := rawdata || HEXTORAW(hex); 
           i := i + 2; end loop; 
           SOME_PROCEDURE(p_session_id , rawdata); 
       end;
      

      2 then need to modify the code c# in this way:

       var cmd = new OracleCommand("SOME_PROCEDURE_WRAPPER", _connection);
       cmd.CommandType = CommandType.StoredProcedure;
       string @string = statusData.ToHexString();
       OracleParameter sessionId = new OracleParameter("dbSessionId", OracleDbType.Decimal, new OracleDecimal(_dbSessionId), ParameterDirection.Input);
       OracleParameter data = new OracleParameter("statusData", OracleDbType.Varchar2,@string.Length, new OracleString(@string), ParameterDirection.Input);
       cmd.Parameters.Add(sessionId);
       cmd.Parameters.Add(data);
       cmd.ExecuteNonQuery();
      

      where

      public static string ToHexString(this byte[] bytes)
       { 
           if(bytes == null || bytes.Length == null)
                 return string.Empty;
            StringBuilder hexStringBuilder = new StringBuilder();
            foreach (byte @byte in bytes)
            { 
                hexStringBuilder.Append(@byte.ToString("X2")); 
            } 
            return hexStringBuilder.ToString();
       }
      
    • NullPointerException when calling stored procedure

      I have the stored procedure

      create or replace PROCEDURE GREETING_PROC

      (

      TEXT_PARAM IN VARCHAR2

      MSG_TEXT VARCHAR2 OUT

      ) AS

      BEGIN

      MSG_TEXT: = "Hello" | TEXT_PARAM;

      END;

      My stored procedure call method

      public class UserBean {}

      public UserBean() {}

      Super();

      }

      Public Shared Sub main (String [] args) {}

      UserBean userBean = new UserBean();

      userBean.callP ();

      userBean.callStoreProcedure ();

      }

      public void callStoreProcedure() {}

      CallableStatement st = null;

      SysUser SysUserEOImpl = new SysUserEOImpl();

      try {}

      String sql = "BEGIN GREETING_PROC (: TEXT_PARAM,: MSG_TEXT); END; « ;

      St = sysUser.getDBTransaction () .createCallableStatement (sql, sysUser.getDBTransaction (). DEFAULT VALUE);

      st.setObject ("TEXT_PARAM", "Scoot");

      st.registerOutParameter ("MSG_TEXT", Types.VARCHAR);

      St.Execute ();

      System.out.println ((String) St.GetObject ("MSG_TEXT"));

      } catch (SQLException e) {}

      throw new Aexception.getLocalizedMessage (e);

      }

      }

      then I got an exception:

      Exception in thread "main" java.lang.NullPointerException

      at cic.opsi.model.bean.UserBean.callStoreProcedure(UserBean.java:35)

      at cic.opsi.model.bean.UserBean.main(UserBean.java:27)

      Hello

      What statemet is UserBean.java:35)?

      Second, create a new SysUserEOImpl()!

      If you want to call stored proc, put the java code calling stored proc in ViewRowImpl/ViewObjectImpl/ApplicationModuleImpl and export this code in the customer interface. Then put this method in the pageDef as a call him as an OperationBinding

      Zeeshan Baig blog: the PL/SQL procedure call and function in the Oracle ADF application

      Extending the functionality of the components Business

      ADF/OFA for Oracle Techies: ADF call stored procedure with Out parameters

      Latest Oracle technology: call Store procedures for Oracle ADF Application

    • Pass parameters to the box of the HTML form to a stored procedure

      I'm always looking for a solution to my problem of forms. For the record, I don't use Express applications to create my application - I use PL/SQL right. I need to know how to pass parameters from the box to my Web form. I welcome people select one or more checkboxes in a form that calls a remove function to delete the selected records. What I read in Oracle of the "Guide to the developer of database applications - Fundamentals" is not useful to me. If someone could tell me some examples, maybe I could see what I'm doing wrong. Here is what I wrote in "the developer of database applications - fundamentals Guide ':

      All the boxes with the same NAME attribute are a group of checkbox. If none of the boxes in a group is selected, the stored procedure receives a null value for the corresponding parameter.

      If a check box in a group is selected, the stored procedure receives a single parameter of VARCHAR2.

      If more than one check box in a group is enabled, the stored procedure receives a parameter with the type of PL/SQL TABLE OF VARCHAR2. You must declare a type like this, or use a pre-defined as OWA_UTIL. IDENT_ARR. To retrieve the values, use a loop:
      CREATE OR REPLACE PROCEDURE handle_checkboxes ( checkboxes owa_util.ident_arr )
      AS
      BEGIN
      ...
      FOR i IN 1..checkboxes.count
      LOOP
      htp.print('&lt;p&gt;Checkbox value: ' || checkboxes(i));
      END LOOP;
      ...
      END;
      /
      SHOW ERRORS;

      I'm not sure that understand what your question is.

      If your web form has the following defined all with the same name:

      one
      two
      three
      

      You create and save a procedure to manage the sending of a form that contains a parameter with the name of attrib type owa_util.ident_arr for example:

      create or replace procedure handle_form(attrib owa_util.ident_arr) as
        iter number;
      begin
        for iter in attrib.first .. attrib.last loop
          -- do something with attrib(iter)
        end loop;
      end;
      /
      

      Now, the only problem with this Manager (or any other), is that if the user selects any of the boxes, or no value for the parameters expected, the Manager called with parameters missing or with on all of the passed parameters, as well as the call will error.

      To move, you need to provide default values for all parameters passed to your handler such as the settings of ident_arr, but with ident_arr settings, it's hard to do with autonomous procedures. If you place your procedure in a package you can define variables of package-level of the appropriate types that can be used as default values:

      create or replace package my_web as
        empty_arr owa_util.ident_arr;
      
        procedure handle_form(attrib owa_util.ident_arr := empty_arr);
      end my_web;
      /
      create or replace package body my_web as
        procedure handle_form(attrib owa_util.ident_arr := empty_arr) as
          iter number;
        begin
          for iter in attrib.first .. attrib.last loop
            -- do something with attrib(iter)
          end loop;
        end;
      end my_web;
      /
      

      now, when you hit in the situation where the user does not select the checkboxes, the call to handle_form will be no reviewable error on due to missing parameters, and the empty_arr will not have all the elements to iterate over so the loop in the body of the procedure will be fine and you will be able to retrieve each value of the checkbox selected attrib table when you iterate on it.

    • How to pass the content of the table as OUT of the stored procedure parameter

      Hi all

      I am writing a stored procedure where he must accept date as one of the parameters IN and it must interrogate the table of database on this criterion and should address data in a temporary table.

      in the end, he must send all the data from the temporary table as the OUT parameter.

      How to get there? should I create a new TYPE with all the columns in the Temp table and use this Type as a parameter? or SYS_REFCURSOR is the best option.

      Thanks in advance.

      Hello

      The best way to do what you want depends on what you want.  Start by describing what you need to do.  It is best to post some data examples (CREATE TABLE and INSERT statements), and what results you want from this sample data.  (See the FAQ forum: https://forums.oracle.com/message/9362002)

      If you have any ideas on how to do the work (for example, populating a temporary table) it may be useful to include those who, too, but a clear distinction between WHAT you do and HOW you do it.

      Bencol suggested, a SYS_REFCURSOR may be the best way to transmit the results.

      Since you only post your table, or even describe what you wanted to do with it, I will illustrate using scott.emp, which is probably on your system.

      Say you want a procedure that takes a DATE as an argument, then returned a certain designated columns (empno, ename, and hiredate in the example below) for all employees hired from the given DATE.  You can write a procedure like this:

      CREATE OR REPLACE PROCEDURE hired_since

      (IN start_date DATE

      out_data ON SYS_REFCURSOR

      )

      AS

      BEGIN

      OPEN FOR Out_data

      SELECT ename, empno, hiredate

      FROM scott.emp

      WHERE hiredate > = start_date;

      END hired_since;

      /

      DISPLAY ERRORS

      You can test it in SQL * more like this:

      VARIABLE c REFCURSOR

      EXEC hired_since (DATE ' 1982-01-01',: c);

      PRINTING: c

      The output I received this test was:

      ENAME, EMPNO, HIREDATE

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

      7788 SCOTT APRIL 19, 87

      7876 ADAMS MAY 23, 87

      7934 MILLER JANUARY 23, 82

    • Problem with the Entity Framework by using stored procedures

      I am developing a project with Oracle DB and Entity Framework.
      Due to performance issues, for some querys I uses procedures stored instead of LINQ queryies,
      When I try to add my model EF procedure, the procedure is added but the Model Designer
      It does not acknowledge the columns returned by the procedure.
      so I can't create something complex to the user the results of the procedure
      in a domain service

      Here's the relevant readme which has some tips: http://www.oracle.com/technetwork/topics/dotnet/tech-info/default-338300.html#mozTocId610465

      If you do a forum search there is further discussion of the issues, and the readme file provided with version beta has also some information.

      But I agree with the general theme: using stored procedures in the EF is a PITA. :( I really hope they do something to make it easier in the future because this is probably the single most important weakness in the implementation of Oracle EF and establishment of a complex type is your time and picky it's ridiculous. (I found it less problematic if your procedure returns a complete picture that your model has already an entity for, because you can get away with only add the entry to one of the configurations for the cursor rather than one for each column.)

      Even an external tool where direct you to the procedure and it creates the configuration entries to be able to copy and paste would be a huge improvement.

    • Return more than an OUT parameter of the stored procedure called in sql

      I searched for it, but maybe that I did a good job. I would return two parameters of a stored procedure that is called from an sql query. Something like
      select my_proc(in_param) from dual
      When the results of the query will return 2 columns. It is guaranteed in my design in order to return only a single record.

      Is this possible?

      The version of Oracle that I use is:
      Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi
      PL/SQL Release 10.2.0.2.0 - Production
      "CORE     10.2.0.2.0     Production"
      TNS for Linux: Version 10.2.0.2.0 - Production
      NLSRTL Version 10.2.0.2.0 - Production

      Is this possible?

      Laughing out loud
      You can not call a stored SQL procedure. Only functions can be called from SQL.

    • relative to the parameter in a stored procedure returns

      I'm doing a sp sp / sql with select and update, the idea is to return the value assigned in the select, but when I test the procedure about adding the parameter to the method PPerformance does not, in fact I am new to oracle, I searched some tutorials but I have not managed to solve the problem


      my source its:
      create or replace
      PROCEDURE PA_CONSECUTIVO (TipoConsecutivo in  VARCHAR2, AUXI OUT int )
      
      AS
      aux2 int;
      BEGIN
      
       SELECT consecutivo + 1 into aux2 FROM  tbl_consecutivo
          WHERE UPPER(ltrim(rtrim(Tipo_Consecutivo))) = UPPER(ltrim(rtrim(TipoConsecutivo)));
          
          UPDATE tbl_Consecutivo SET consecutivo = aux2 
      WHERE upper(ltrim(rtrim(Tipo_Consecutivo))) = upper(ltrim(rtrim(TipoConsecutivo))) ;
      
       AUXI:=aux2;
          
      
      
      END PA_CONSECUTIVO;
      the table og the request her:
      TIPO_CONSECUTIVO     VARCHAR2(20 BYTE)
      CONSECUTIVO     NUMBER(38,0)
      FECHAULTIMO     DATE
      I appreciate the help.

      Published by: 1008490 on 29-may-2013 07:49

      Your stored procedure has 2 settings while you provide 1. Use something like:

      SET SERVEROUTPUT ON
      DECLARE
          V_AUXI NUMBER;
      BEGIN
          PA_CONSECUTIVO('ENTRADA',V_AUXI);
          DBMS_OUTPUT.PUT_LINE('AUXI = ' || V_AUXI);
      END;
      /
      

      SY.

    Maybe you are looking for