Error when inserting Blob by stored procedure

Hi there and thank you for your time,.

I am running a console application in .NET which resembles a particular file on my hard drive, runs through all files, captures the content via a FileStream, the type (by checking the registry), the name and a foreign key which he rises before insertion. This is my code:

public void Insert (MyFileModel file) information gathered by the System.IO.FileInfo object //contains
{
Con OracleConnection = new OracleConnection (System.Configuration.ConfigurationManager.ConnectionStrings ["Oracle"]. ConnectionString);
con. Open();
OracleCommand cmd = new OracleCommand();
cmd.CommandText = INSERT_FILE;
cmd.CommandType = CommandType.StoredProcedure;
cmd. Connection = con;
cmd. Parameters.Add (": p_in_file_contents", OracleDbType.Blob);
cmd. Parameters.Add (": p_in_filename", OracleDbType.Varchar2);
cmd. Parameters.Add (": p_in_item_num", OracleDbType.Int32);
cmd. Parameters.Add (": p_in_file_content_type", OracleDbType.Varchar2);
cmd parameters [0]. Value = file. FileContents; Byte [], populated from a file stream
cmd parameters [1]. Value = file. File name; string
cmd parameters [2]. Value = file. ItemNum; int?
cmd parameters [3]. Value = file. FileContentType; string
cmd ExecuteNonQuery());
con. Close();
con. Dispose();
}

INSERT_FILE (part of a set with the other working procedures) are:

PROCEDURE INSERT_FILE (p_in_file_contents IN p_in_file_content_type IN varchar2, p_in_item_num in numbers, p_in_filename IN varchar2, blob)

IS

BEGIN

INSERT INTO mytable
(FILE_CONTENTS, FILENAME, CREATE_DATE, ITEM_NUM, IS_DELETED, FILE_CONTENT_TYPE)
VALUES
(p_in_file_contents, p_in_filename, SYSDATE, p_in_item_num, 0, p_in_file_content_type);

END INSERT_FILE;

Here's the code LOB on the table. I do not change no matter what this code, is any of the default:

(STORE AS) LOB (FILE_CONTENTS)
TABLESPACE RECENTES5
ALLOW ONLINE STORAGE
CHUNK 32768
RETENTION
NOCACHE
NOLOGGING
INDEX)
TABLESPACE RECENTES5
STORAGE)
INITIAL OF 160K
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
))
STORAGE)
INITIAL OF 160K
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
))
TABLESPACE RECENTES5
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE)
INITIAL OF 160K
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
)
NOLOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;

This code works fine for all the files and all types (stores and retrieves the document in my web application), with the exception of files whose size is between 32768 and 65535 (2 ^ 15 and 2 ^ 16). On the files that are the size, this error is returned to the insertion:

ORA-01460: dead letter or unreasonable conversion requested

My version 11.1.0.6.0 Oracle Client is installed and the version of the Oracle.DataAccess.dll is 2.111.6.0. I know that this is not the latest version of the software, but software installation is difficult in my organization that we do not have admin privlidges. The .NET web application and this particular application is a 4.0 application web.

I use a similar code of an MVC web application that sees the same results when the files came from an object HttpFileCollectionBase (Request.Files).

What Miss me the code ODP.NET? My table should setting?

Thank you very much for your time and help me with this!

-Sean

Suggestions for your ODP.NET code.
1.
using Oracle.DataAccess.Types;
...
OracleBlob myBlob = new OracleBlob (con);
myBlob.Write (Mon_tableau_octets, 0, count); where Mon_tableau_octets is filled by a file stream and count is the number of bytes to write to myBlob
cmd parameters [0]. Value = myBlob;
...

2. don't check that when he is not null, then have blob object, command object and a connection object. (No need to close the connection before eliminating)
It is not relevant to the question.

Edited by: shsu January 12, 2012 16:16

Tags: Database

Similar Questions

  • error when inserting the values too much or miss comma

    Hai All

    during the insertion, I got an error when inserting

    I have a table called T1 and declared as date I need to insert the current date and time in this column


    So I converted a varchar column and concat with time and iam trying to insert when inserting I got error


    insert into dail_att (respondent) values (to_date (to_char (attend_date, 'ddmmyyyy') |)) ("0815',"ddmmyyyy hh24");


    Concerning

    Srikkanth.M

    Hello
    Please let us know

    Desc dail_att;
    

    and the sample values in

    attend_date
    

    (There is also a ')' missing in your SQL, correct SQL would be

    INSERT INTO DAIL_ATT
                (INTIME
                )
         VALUES (TO_DATE (TO_CHAR (ATTEND_DATE, 'ddmmyyyy') || '0815',
                          'ddmmyyyy hh24'
                         )
                );
    

    * 009 *.

    Published by: 009 on March 18, 2010 21:23

  • PLS-00201 error occurs when the batch a stored procedure in SQL * more

    I have a batch file to run a stored procedure and the coil results in file. When I enter orders manually in sql * plus the output works very well and my results are spooling in the output file. But when I run the same commands in the script I get an error batch.


    Any ideas?

    Stored procedure:

    create or replace procedure MMP (p_cursor in the SYS_REFCURSOR)

    as

    Start

    Open p_cursorfor select name, id from table;

    end;

    batch file 1:

    sqlplus-s user/pw@REPORTDV @sp_output_spooled.sql

    sp_output_spooled.SQL script file

    Paste these commands directly on the SQL * more guest wraps the result as expected the value leader.

    the colsep value ' |'

    trigger the echo

    Set feedback off

    termout off Set

    set the position

    set linesize 9000

    set pagesize 0

    Set trimspool on

    headsep off Set

    output of the coil. TXT

    var refcursor rc

    run MMP(:rc)

    print the rc

    spool off

    output

    Errors printed to the output. TXT file after the batch is executed and error occurs:

    BEGIN MMP(:rc); END;

    *
    ERROR on line 1:
    ORA-06550: line 1, column 8:
    PLS-00201: identifier 'MMP' must be declared.
    ORA-06550: line 1, column 8:
    PL/SQL: Statement ignored


    ERROR:
    ORA-24338: statement handle not executed


    SP2-0625: variable printing error "rc".

    Hello

    Your code worked fine for me.

    Procedure MMP is owned by the same user that runs the batch file or does it means and appropriate privileges?

    VR,

    Sudhakar

  • Logic of tip insert - using a stored procedure?

    Here's my use case:

    • I have a table called TAGS that has two columns: id (number key, primary) and text (string)
    • the table has a constraint of database set that each text must be unique
    • the table also has a fixed sequence back next id available
    • I created an entity of the DB object and its default View object
    • I also created a page where I display a table read-only based on the View object
    • Finally, I added a text field and a button to the page
    • What I want to achieve is to insert all tags entered in the entry in the table fields, when the button is clicked. Note, however, that the entry field is a comma-separated list of tags, moreover, I have to insert only those tags that are new (to respect the constraint of database), and finally, I would like to use the sequence in insert or orders. Once completed, the page should also be updated.

    My first question is whether a stored procedure is the right way to perform such a step insert logical. If not, what other means must be used in the ADF.

    My second question is to know how to call the stored procedure and pass it the value of the input as a parameter field. I found this article http://andrejusb.blogspot.cz/2011/04/invoking-stored-procedures-and.html, but miss me a few transition points:

    1. How the callGreetingsFunction method call (I just get it that it's a method of the EO generated Java class?) after that the button is clicked?
    2. How to pass the value of the input field in this method as a parameter?

    Thanks in advance for your help.

    Now, what happens if I run it like this:

    A. the procedure is executed after a click on the button

    (B) the page is not updated (I had to do the research to get the new lines are visible in the table)

    C. the constraint is ignored (after discounting there were several lines with unique identification number, but pr is - empty)

    D. nothing has been committed to the database - if I closed the application window and it start again, the lines have disappeared from the table, but addition of new lines used number of increased seq

    E. Similarly, if I did directly inserts into the database, these lines did not appear until I transferred the application

    B. told it page to refresh. And that's usually enough to refresh your ViewObject with: viewObject.executeQuery)

    C. Si the constraint is not enforced for null values. And this has nothing to do with the adf, this is related to oracle db.

    D. you're calling commit.

    E. you must re-run your view object (viewObject.executeQuery ())

    Nevertheless, here is my rookie questions:

    There there a simple way to refresh the page (or just the table containing the data)?

    -How to validate changes (immediately after execution of the procedure)?

    -How is the constraint has been ignored? I am sure it would fail on validation, but I thought that it will be considered even for adding data to the table.

    -Are there a way to update the original Version of the database every time that the page is opened or refreshed?

    -Drag and drop operation Execute like button on your page (or call vo.executeQuery () by program)

    -Drag and drop the operation of posting as a button on your page (or invoke it by programming on the DBTransaction object)

    -ignored for what values? for null values? It is expected, because each null is "unique."

    -Yes, but you probably shouldn't do that for performance reasons, see this: Andrejus Baranovskis Blog: Cache results for ADF iterator property

    Read also this: Andrejus Baranovskis Blog: job ADF and PL/SQL Invocation changes side effect

    Dario

  • Unexpected token: the error that occur inside a stored procedure

    I get an unexpected token error when you try to compile the following stored procedure. The error occurs on the run pk_proof.pr_ProofAssets inside the stored procedure exec statement. No reason?
    CREATE OR REPLACE PROCEDURE MONTHLY_ASSET (ln_business_dt_num IN NUMBER DEFAULT NULL,
                                               missing_tbl_name OUT NOCOPY VARCHAR2) 
    IS
       ln_business_dt_num NUMBER;
       missing_tbl_name VARCHAR2;
       no_tbl_name_found EXCEPTION;
       bad_date_value EXCEPTION;
       counts_not_matched EXCEPTION;
     BEGIN
       IF ln_business_dt_num < 0 THEN
       RAISE bad_date_value;
       ELSE
         Select MAX(business_dt_num) into ln_business_dt_num
         FROM sasor.dp_ca_proof;
          
       if missing_tbl_name IS NOT NULL then
          raise no_tbl_name_found;
       end if;
       
       exec pk_proof.pr_ProofAssets('SLH_DST_ASSET', ln_business_dt_num, 'sasor_batch');
     

    Remove 'exec '.

  • Error when inserting in dynamically created filename-file

    Howry

    Me get the following error when I try to insert in a file with a dynamic file name (thanks to the declared variable, date etc.).
    I presume that she strives to find the file target with the same name as the dynamic value crossed by the variable, but don't find it: can someone tell me how I can create rather the file as affixes of y to insert a file already created... ?

    Your help in this regard is highly appreciated.

    Here is the error:

    ODI-1217: SAPO_hlr_suburbs Session (1577001) fails with return code 7000.
    ODI-1226: 6_Ins_final step fails after 1 attempt.
    ODI-1240: Debit 6_Ins_final fails during an operation of integration. This flow of charge target table #l_date.unl.
    ODI-1228: 6_Ins_final (integration) task fails on FILES SAPO_HLR_SUBURBS connections target.
    Caused by: java.sql.SQLException: file C:\Files\Gero work\ODI 12:06:13.463.unl in Files\SAPO_HLR_SUBURBS/2012-01-24 has not been found.
    at com.sunopsis.jdbc.driver.file.FileConnection.prepareForWriting(FileConnection.java:339)
    at com.sunopsis.jdbc.driver.file.impl.commands.CommandInsert.execute(CommandInsert.java:50)
    at com.sunopsis.jdbc.driver.file.CommandExecutor.executeCommand(CommandExecutor.java:33)
    at com.sunopsis.jdbc.driver.file.FilePreparedStatement.executeUpdate(FilePreparedStatement.java:138)
    at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java:665)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeUpdate(SnpSessTaskSql.java:3218)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java:1785)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2805)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java:68)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:322)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:237)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:794)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:619)

    Good things - I've had similar when pain started working with varying dates/times - remember that ODI is manipulated as Java dates, you can mark the thread as closed and award marks for correct answers please :-)

  • Get the error when inserting

    I get an "invalid Character" error when I m doing the insert operation foll: -.

    insert into rp_rpt_sql
    Select '1', '6000100', ' 1 ', ' 1',' insert into rn_rpt_data (dt, rpt_id, rpt_row_id, rpt_col_id, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10)
    Select "#as_on_dt #", 6000100, 1, 1, sr_no rownum, v.*
    Of
    (
    Select e.IECD, (e.IMPORTER_NAME |') '|| e.IMPORTER_ADDRESS), (e.IMP_LIC_NO |') '|| e.IMP_LIC_DT), e.IMP_ITEMS, e.IMP_REMIT_DT, e.IMP_REMIT_AMT_CCY_ID, e.IMP_REMIT_AMT_CCY, e.IMP_REMIT_AMT_RS, e.REM
    of e rm_bef
    where e.as_on_dt = ' #as_on_dt # '.
    and e.bef_default_id = '1'
    and e.cust_type = '2'
    ) v ',' select rownum "Sr_No", (IMPORTER_NAME + IMPORTER_ADDRESS) "Name and address of the importer", (IMP_LIC_NO + IMP_LIC_DT) 'no. and the date of any import licenses,"IMP_ITEMS 'Brief Description of goods', IMP_REMIT_DT 'Date of reimittances', IMP_REMIT_AMT_CCY_ID 'Currency', 'Amount' IMP_REMIT_AMT_CCY, IMP_REMIT_AMT_RS 'Rupee equivalent', rem"remarks ".
    Of
    (
    Select e.IECD, (e.IMPORTER_NAME |') '|| e.IMPORTER_ADDRESS), (e.IMP_LIC_NO |') '|| e.IMP_LIC_DT), e.IMP_ITEMS, e.IMP_REMIT_DT, e.IMP_REMIT_AMT_CCY_ID, e.IMP_REMIT_AMT_CCY, e.IMP_REMIT_AMT_RS, e.REM
    of e rm_bef
    where e.as_on_dt = ' #as_on_dt # '.
    and e.bef_default_id = '1'
    and e.cust_type = '2'
    )' double where does not exist (select 1 from rp_rpt_sql where rpt_id = 6000100);

    Kindly help!

    No no not a clue on what you're trying to achieve I just used for the two sqls q rating because they represent for sure an invalid string (single "in literal)

    insert into rp_rpt_sql
    select '1',
           '6000100',
           '1',
           '1',
           q'[insert into rn_rpt_data (dt,rpt_id,rpt_row_id,rpt_col_id,col1,col2,col3,col4,col5,col6,col7,col8,col9,col10)
              select '##as_on_dt##',6000100,1,1,rownum sr_no,v.*
                from (select e.IECD,
                             (e.IMPORTER_NAME||' '||e.IMPORTER_ADDRESS),
                             (e.IMP_LIC_NO||' '||e.IMP_LIC_DT),
                             e.IMP_ITEMS,
                             e.IMP_REMIT_DT,
                             e.IMP_REMIT_AMT_CCY_ID,
                             e.IMP_REMIT_AMT_CCY,
                             e.IMP_REMIT_AMT_RS, e.REM
                        from rm_bef e
                       where e.as_on_dt = '##as_on_dt##'
                         and e.bef_default_id = '1'
                         and e.cust_type = '2'
                     ) v
           ]',
           q'[select rownum "Sr_No",
                     (IMPORTER_NAME+IMPORTER_ADDRESS) "Name and address of the importer",
                     (IMP_LIC_NO+IMP_LIC_DT) "No. and date of import licenses if any",
                     IMP_ITEMS "Brief Description of goods",
                     IMP_REMIT_DT "Date of reimittances",
                     IMP_REMIT_AMT_CCY_ID "Currency",
                     IMP_REMIT_AMT_CCY "Amount",
                     IMP_REMIT_AMT_RS "Rupee Equivalent",
                     rem "Remarks"
                from (select e.IECD,
                             (e.IMPORTER_NAME||' '||e.IMPORTER_ADDRESS),
                             (e.IMP_LIC_NO||' '||e.IMP_LIC_DT),
                             e.IMP_ITEMS,
                             e.IMP_REMIT_DT,
                             e.IMP_REMIT_AMT_CCY_ID,
                             e.IMP_REMIT_AMT_CCY,
                             e.IMP_REMIT_AMT_RS,
                             e.REM
                        from rm_bef e
                       where e.as_on_dt = '##as_on_dt##'
                         and e.bef_default_id = '1'
                         and e.cust_type = '2'
                     )
           ]'
      from dual
     where not exists (select 1
                         from rp_rpt_sql
                        where rpt_id = 6000100
                      )
    

    Concerning

    Etbin

  • OBIEE 10 g rewrite error when inserting

    Hello


    Im getting an error when trying to write a column in the oracle database.

    Error details

    An error occurred writing to the server. Please check that you have entered the proper values. If the problem persists, contact your system administrator.
    ODBC driver returned an error (SQLExecDirectW).
    Error details
    Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 27024] The EXECUTE PHYSICAL statement must specify a physical SQL statement to execute. (HY000)
    Publ. SQL: RUN the POOL of CONNECTIONS PHYSICAL orcl



    XML has published

    <? XML version = "1.0" encoding = "utf-8"? >
    < WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1" >
    < WebMessageTable = lang "" en - us "system ="WriteBack"table = 'Messages' >"
    < name informed = "WriteBack" >
    < XML >
    < writeBack connectionPool = "orcl" >
    Of < insert > INSERT INTO writebackasim (name) values (@{c1}) < / insert >
    < updated > < / update >
    < / writeback >
    < / XML >
    < / Informed >
    < / WebMessageTable >
    < / WebMessageTables >



    Help me please...

    Aswin,

    Remove him postcommit and try again. I think that's the problem
    You DB supports automatic validation if you have to add it.

    Concerning
    Adil

  • Error when inserting XML file into a table in Oracle10g

    Hi team,

    I'm trying to insert an xml file into an Oracle 10g XMLType table. During the insertion, I get following error:

    ERROR on line 1:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS." DBMS_LOB", line 523
    ORA-06512: at "SYS." XMLTYPE", line 287
    ORA-06512: at line 1

    I did following steps.

    (1) create the DIRECTORY xml_dir as 'c:\xmldata ';

    (2) create table xmltab XMLType;

    The following packages are executed by schema 'Sys '.

    (1) dbmslob. SQL;
    (2) prvtlob. PLB;

    A xmldata folder is created under "c:\". "and with data_file.xml file is stored in it.

    After Insert stmt is executed that returns gives above error.

    Insert in xmltab values (XMLType (bfilename('xml_dir','data_file.xml'), nls_charset_id ('AL32UTF8')))


    Can you please give me a solution. It is very urgent.

    Thanks in advance.

    Kind regards
    Murielle

    After selecting the data in table xmltab I just got first line of the file xmldata. That is to say
    http://baro

    This must be a display problem.
    What client tool are you using and what version?

    If SQL * Plus, you won't see all content unless you set some options:
    {code}
    LONG VALUE
    SET LONGCHUNKSIZE
    {code}

    Could you try the following?
    {code}
    THE VALUE OF 10000 LONG

    SELECT t.object_value.getclobval () IN xmltab t;

    -to force printing:
    SELECT extract (t.object_value, ' / *'). getclobval() xmltab t;
    {code}

    Published by: odie_63 on 16 Feb. 2011 08:58

  • Insert table with stored procedure

    Hello

    is it possible to use bind insert table in odp.net that calls a stored procedure, or who loses the point of contact of the table?

    I need to do at once two insertions in a parent table and the child table (get the primary key generated by a sequence in the first table.). Don't know if this can be done without storing seq.next_val somehow?

    Edit: I will extend the question and ask if the table bind sql text can be a block anonymous plsql

    Edited by: KarlTrumstedt 16-jun-2010 02:49

    You can do both. You can table insert a stored procedure and an anonymous block.

    Here's how (these are based on the ArrayBind example provided with the installation of ODP.net/ODT.

    Installation program:

    create table zdept (deptno number, deptname varchar2(50), loc varchar2(50));
    
    CREATE OR REPLACE PROCEDURE ZZZ (p_deptno in number, p_deptname in varchar2, p_loc in varchar2) AS
    begin
        insert into zdept values(p_deptno , p_deptname || ' ' || p_deptname, p_loc );
    end zzz;
    
     /**
     drop table zdept ;
     drop procedure ZZZ ;
     **/
    

    table and link it to the stored procedure call:

       static void Main(string[] args)
        {
          // Connect
          string connectStr = "User Id=;Password=;Data Source=";
    
          // Setup the Tables for sample
          Setup(connectStr);
    
          // Initialize array of data
          int[]    myArrayDeptNo   = new int[3]{1, 2, 3};
          String[] myArrayDeptName = {"Dev", "QA", "Facility"};
          String[] myArrayDeptLoc  = {"New York", "Maryland", "Texas"};
    
          OracleConnection connection = new OracleConnection(connectStr);
          OracleCommand    command    = new OracleCommand (
            "zzz", connection);
          command.CommandType = CommandType.StoredProcedure;
    
          // Set the Array Size to 3. This applied to all the parameter in
          // associated with this command
          command.ArrayBindCount = 3;
          command.BindByName = true;
          // deptno parameter
          OracleParameter deptNoParam = new OracleParameter("p_deptno",OracleDbType.Int32);
          deptNoParam.Direction       = ParameterDirection.Input;
          deptNoParam.Value           = myArrayDeptNo;
          command.Parameters.Add(deptNoParam);
    
          // deptname parameter
          OracleParameter deptNameParam = new OracleParameter("p_deptname", OracleDbType.Varchar2);
          deptNameParam.Direction       = ParameterDirection.Input;
          deptNameParam.Value           = myArrayDeptName;
          command.Parameters.Add(deptNameParam);
    
          // loc parameter
          OracleParameter deptLocParam = new OracleParameter("p_loc", OracleDbType.Varchar2);
          deptLocParam.Direction       = ParameterDirection.Input;
          deptLocParam.Value           = myArrayDeptLoc;
          command.Parameters.Add(deptLocParam);
    
          try
          {
            connection.Open();
            command.ExecuteNonQuery ();
            Console.WriteLine("{0} Rows Inserted", command.ArrayBindCount);
          }
          catch (Exception e)
          {
            Console.WriteLine("Execution Failed:" + e.Message);
          }
          finally
          {
            // connection, command used server side resource, dispose them
            // asap to conserve resource
            connection.Close();
            command.Dispose();
            connection.Dispose();
          }
        }
    

    "anonymous plsql block.
    Well Yes

        static void Main(string[] args)
        {
          // Connect
          string connectStr = "User Id=;Password=;Data Source=";
    
          // Setup the Tables for sample
          Setup(connectStr);
    
          // Initialize array of data
          int[]    myArrayDeptNo   = new int[3]{1, 2, 3};
          String[] myArrayDeptName = {"Dev", "QA", "Facility"};
          String[] myArrayDeptLoc  = {"New York", "Maryland", "Texas"};
    
          OracleConnection connection = new OracleConnection(connectStr);
          OracleCommand    command    = new OracleCommand (
            "declare dnumber number; dname varchar2(50) ; begin dnumber := :deptno;dname := :deptname;insert into zdept values (:deptno, :deptname, :loc); update zdept set deptname=dname || :loc where deptno = :deptno; end;", connection);
    
          // Set the Array Size to 3. This applied to all the parameter in
          // associated with this command
          command.ArrayBindCount = 3;
          command.BindByName = true;
          // deptno parameter
          OracleParameter deptNoParam = new OracleParameter("deptno",OracleDbType.Int32);
          deptNoParam.Direction       = ParameterDirection.Input;
          deptNoParam.Value           = myArrayDeptNo;
          command.Parameters.Add(deptNoParam);
    
          // deptname parameter
          OracleParameter deptNameParam = new OracleParameter("deptname", OracleDbType.Varchar2);
          deptNameParam.Direction       = ParameterDirection.Input;
          deptNameParam.Value           = myArrayDeptName;
          command.Parameters.Add(deptNameParam);
    
          // loc parameter
          OracleParameter deptLocParam = new OracleParameter("loc", OracleDbType.Varchar2);
          deptLocParam.Direction       = ParameterDirection.Input;
          deptLocParam.Value           = myArrayDeptLoc;
          command.Parameters.Add(deptLocParam);
    
          try
          {
            connection.Open();
            command.ExecuteNonQuery();
            Console.WriteLine("{0} Rows Inserted", command.ArrayBindCount);
          }
          catch (Exception e)
          {
            Console.WriteLine("Execution Failed:" + e.Message);
          }
          finally
          {
            // connection, command used server side resource, dispose them
            // asap to conserve resource
            connection.Close();
            command.Dispose();
            connection.Dispose();
          }
        }
    
  • Run error in inserting blob

    Hi good Eve everyone,

    I'm trying to insert a blob in a table. I created a c:\images directory that contains all the images including Afghanistan.gif

    I then created

    my table

    Looks like that

    Name of Type Null

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

    COUNTRY VARCHAR2 (30)

    COUN_IMG BLOB

    then the procedure to insert as below

    create or replace

    PROCEDURE insert_Blob (Country1 IN varchar2, p_filename IN VARCHAR2)

    AS

    l_blob BLOB;

    l_bfile BFILE.

    BEGIN

    INSERT INTO ex_countryflag

    VALUES (COUNTRY1, EMPTY_BLOB ())

    return COUN_IMG IN l_blob;

    l_bfile: = BFILENAME ('images', p_filename);

    DBMS_LOB. FileOpen (l_bfile);

    DBMS_LOB. LoadFromFile (l_blob, l_bfile,

    DBMS_LOB. GetLength (l_bfile));

    DBMS_LOB. FileClose (l_bfile);

    commit;

    END insert_blob;

    When I'm compiling there is no error

    DECLARE

    COUNTRY1 VARCHAR2 (200);

    P_FILENAME VARCHAR2 (200);

    BEGIN

    COUNTRY1: = 'AFGHANISTAN ';

    P_FILENAME: = "Afghanistan.gif";

    () INSERT_BLOB

    Country1 = > countries1.

    P_FILENAME = > P_FILENAME

    );

    END;

    When I run it I get errors of

    ORA-30687: session terminated by the debugger

    ORA-22285: non-existent directory or file for FILEOPEN operation

    Running PL/SQL: CALL the DBMS_DEBUG_JDWP. DISCONNECT()

    No more data to read from socket

    Process is complete.

    Disconnection from the dataaudit database.

    Debugger disconnected from the database.

    but I'm sure that all the images are present in the images directory

    thanking you in advance

    Prakash

    l_bfile: = BFILENAME ('images', p_filename);

    Try 'IMAGES' (uppercase).

  • Multiple WHEN MATCHED in Oracle STORED PROCEDURE

    Hi all
    I use Oracle version 10.1.0.4.2. Can I use several "WHEN MATCHED' for my procedure stored as below in SQL SERVER:

    WHEN put in CORRESPONDENCE AND target. Quantity - source. OrderQty < = 0
    THEN DELETE
    WHEN MATCHED
    THEN UPDATE the target VALUE. Quantity = target. Quantity - source. OrderQty,
    target. ModifiedDate = GETDATE()


    Thanks in advance

    ==========================================

    Copy the SQL Code
    USE AdventureWorks2008R2;
    GO
    IF OBJECT_ID (no Production.usp_UpdateInventory', P') IS NOT NULL DROP PROCEDURE Production.usp_UpdateInventory;
    GO
    CREATE PROCEDURE Production.usp_UpdateInventory
    DateTime @OrderDate
    AS
    MERGE Production.ProductInventory as target
    USING (SELECT ProductID, SUM (OrderQty) FROM Sales.SalesOrderDetail AS sod
    JOIN Sales.SalesOrderHeader AS soh
    ON grass. SalesOrderID = soh. SalesOrderID
    AND soh. OrderDate = @OrderDate
    GROUP BY ProductID) AS source (ProductID, OrderQty)
    (TARGET. ProductID = source. ProductID)
    WHEN put in CORRESPONDENCE AND target. Quantity - source. OrderQty < = 0
    THEN DELETE
    WHEN MATCHED
    THEN UPDATE the target VALUE. Quantity = target. Quantity - source. OrderQty,
    target. ModifiedDate = GETDATE()
    OUTPUT $action, Inserted.ProductID, Inserted.Quantity, Inserted.ModifiedDate, Deleted.ProductID,
    Deleted.Quantity, Deleted.ModifiedDate;
    GO

    EXECUTE Production.usp_UpdateInventory ' 20030501'

    Use:

    WHEN MATCHED
    THEN UPDATE SET target.Quantity = target.Quantity - source.OrderQty,
    target.ModifiedDate = GETDATE()
    DELETE WHERE target.Quantity <= 0
    

    SY.

  • Trigger compiles but error when INSERT

    I wrote this trigger
    --Name: SampleTrigger.sql
    --Version: 0.1
    --Description: This trigger is for Sample Learning Purpose
    --
    CREATE OR REPLACE TRIGGER SampleTrigger
    BEFORE INSERT ON TAB65
    FOR EACH ROW
    DECLARE
    newchar VARCHAR2(1);
    actualissue VARCHAR2(3);
    BEGIN
    IF :new.col7 IS NULL THEN
    :new.col7 := '';
    SELECT ltrim(max(lpad(col7, 3, ' ')),' ') INTO actualissue FROM TAB65 WHERE col1 = :new.col1 AND col2 = :new.col2 AND nvl(col6, 'XXX') = nvl(:new.col6,'XXX');
    IF actualissue IS NULL THEN
    :new.col7 := 'A';
    ELSE
    WHILE LENGTH(actualissue) >= 1 LOOP
    newchar := TRANSLATE(SUBSTR(actualissue, LENGTH(actualissue), 1), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'BCDEFGHIJKLMNOPQRSTUVWXYZA');
    :new.col7 := newchar||:new.col7;
    IF newchar = 'A' THEN
    IF LENGTH(actualissue) = 1 THEN
    :new.col7 := 'A'||:new.col7;
    END IF;
    actualissue := SUBSTR(actualissue, 1, LENGTH(actualissue) - 1);
    ELSE
    :new.col7 := SUBSTR(actualissue, 1, LENGTH(actualissue) - 1)||:new.col7;
    actualissue := '';
    END IF;
    END LOOP;
    END IF;
    END IF;
    END SampleTrigger;
    /
    ALTER TRIGGER SampleTrigger ENABLE;
    I stored this code in the file called trg.sql and then executed as
    sqlplus>@trg.sql
    
    Trigger Created.
    Trigger Altered.
    I even checked the user_triggers tables and my SampleTrigger is there for the table_name TAB65.

    But then, when I try to insert a row into TAB65, it gives the error
    ORA-04088: error during execution of trigger 'SampleTrigger'(ORA-01858: a non-numeric character was found where a numeric was expected
    ORA-06512: at "SampleTrigger", line 8
    ORA-04088: error during execution of trigger 'SampleTrigger')
    No idea what could be the problem? Please help me. Thanks for your time

    EDIT

    If in the case of the TAB65 / / DESC of the table might help you...

    Col1 Number (30)
    Col2 Varchar2(50)
    Col3 Varchar2(30)
    Col4 TIMESTAMP
    Col5 Varchar2 (6) - Not Null
    Col6 Date (DD.MM.YYYY)
    Col7 Varchar2 (5)
    Col8 Number(1)
    Col35 Varchar2(500)
    Col10 Varchar2(3)
    Col11 Varchar2(50)
    Col12 Varchar2(92)
    Col13 Number(4)
    Col14 Varchar2(30) - Not Null
    Col15 Varchar2(100)
    Col16 Varchar2(100)
    Col17 Varchar2(80) - Not Null
    Col18 Varchar2(92) - Not Null
    Col19 Varchar2 (20)
    Col20 Varchar2 (20)
    Col21 Number(5)
    Col22 Number (20)
    Col23 Varchar2 (20)
    Col27 Varchar2 (30)
    Col28 Varchar2(20)
    Col29 Varchar2(20)
    Col31 Number(1)
    Col33 Number(6)
    There are other fields in the TAB65 table as version, PrimaryID, etc.. But I didn't mention them because I have not used these fields in my trigger. So, there must be a problem with the trigger and the table.

    Published by: TuX4EvA on February 1st, 2010 19:38

    Hi TuX4EvA,

    :)

    .... AND nvl(col6, sysdate+1000) = nvl(:new.col6,sysdate+1000);
    

    or

    .... AND decode(col6,NULL,'XXX',to_char(col6,'yyyymmdd')) =  decode(:new.col6,NULL,'XXX',to_char(:new.col6,'yyyymmdd'));
    

    Best regards
    Zhxiang

  • Error when inserting a record - a feature not taken in charge with clause RETURNING ORA-06512: at line 1

    Hello

    I have a created an EO based on a synonym (synonym is created for a Table by using binding remote Db)

    I created a from VO of the EO above and added to an AM. When I run the AM and try to insert a record I get following error

    [164] BEGIN INSERT INTO TRACK_TRANSACTION_STATUS_BIZ (TRANS_NO, TRANS_ID, START_DATE, LOGIN_USER_ID, SESSION_ID, REFUND_APPLICABLE_IND) VALUES (: 1,: 2,: 3,: 4:5:6) TRANS_STATUS, ISHOP_LOGIN_IND, EMAIL_ADDR_AT_SIGN, TEL_NO_INT_PREFIX, REFUND_APPLICABLE_IND, REFUNDED_IND, CSP_IND RETURNING: 7: 8: 9,: 10,: 11,: 12,: 13; END;

    [165] insert link param 1: test

    [166] insert link param 2: you

    [167] insert link param 3: 2014-10-16 21:37:09.0

    [168] insert link param 4: your

    [169] insert link param 5: you

    [170] insert link param 6: N

    OracleSQLBuilderImpl.doEntityDML [171] failed...

    [172] X / Open SQL State is: 99999

    [173] java.sql.SQLException: ORA-22816: feature not supported with RETURNING clause

    ORA-06512: at line 1

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)

    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)

    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9417)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)

    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)

    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)

    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)

    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)

    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)

    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)

    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)

    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)

    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)

    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)

    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)

    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)

    at java.awt.Component.processMouseEvent(Component.java:6289)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

    at java.awt.Component.processEvent(Component.java:6054)

    at java.awt.Container.processEvent(Container.java:2041)

    at java.awt.Component.dispatchEventImpl(Component.java:4652)

    at java.awt.Container.dispatchEventImpl(Container.java:2099)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

    at java.awt.Container.dispatchEventImpl(Container.java:2085)

    at java.awt.Window.dispatchEventImpl(Window.java:2478)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)

    in java.awt.EventQueue$ 2.run(EventQueue.java:617)

    in java.awt.EventQueue$ 2.run(EventQueue.java:615)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    [174] OracleSQLBuilder: ROLLBACK WORK point registration "BO_SP".

    [175] DCBindingContainer.reportException: oracle.jbo.DMLException

    oracle.jbo.DMLException [176]: Houston-26041: could not publish data from database in "Insert": SQL statement ' BEGIN INSERT INTO TRACK_TRANSACTION_STATUS_BIZ (TRANS_NO, TRANS_ID, START_DATE, LOGIN_USER_ID, SESSION_ID, REFUND_APPLICABLE_IND) VALUES (: 1,: 2,: 3,: 4: 5:6) TRANS_STATUS, ISHOP_LOGIN_IND, EMAIL_ADDR_AT_SIGN, TEL_NO_INT_PREFIX, REFUND_APPLICABLE_IND. , REFUNDED_IND, CSP_IND INTO TURNING: 7: 8: 9: 10: 11:12:13; END; ».

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:583)

    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)

    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)

    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)

    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)

    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)

    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)

    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)

    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)

    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)

    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)

    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)

    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)

    at java.awt.Component.processMouseEvent(Component.java:6289)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

    at java.awt.Component.processEvent(Component.java:6054)

    at java.awt.Container.processEvent(Container.java:2041)

    at java.awt.Component.dispatchEventImpl(Component.java:4652)

    at java.awt.Container.dispatchEventImpl(Container.java:2099)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

    at java.awt.Container.dispatchEventImpl(Container.java:2085)

    at java.awt.Window.dispatchEventImpl(Window.java:2478)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)

    in java.awt.EventQueue$ 2.run(EventQueue.java:617)

    in java.awt.EventQueue$ 2.run(EventQueue.java:615)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Caused by: java.sql.SQLException: ORA-22816: feature not supported with RETURNING clause

    ORA-06512: at line 1

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)

    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)

    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9417)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)

    ... 52 more

    # # 0 in detail

    java.sql.SQLException: ORA-22816: feature not supported with RETURNING clause

    ORA-06512: at line 1

    Ask for help in this regard

    ADF will generate default DML statement with RETURNING clause, and it is not applicable to your use case: ORA-22816: feature not supported with RETURNING clause

    Instead, you can try with setUseReturningClause (false): http://docs.oracle.com/middleware/1213/adf/develop/adf-bc-entity-objects.htm#BABJAJCA

    Dario

  • error when inserting file oam (edge animate) in dreamweaver

    Hi all

    Program version: CC 2015

    Created an animation of edge and published it in a .oam file.

    In dreamweaver: when I go to insert-> media-> composition animate edge and then selecting my file oam. Dreamweaver gives encountered the following error:

    AncXwAmVAggkQwMJo9LJhkICLl0NesjgdkVPz6HzLThb.jpg

    The oam file name is: header.oam

    someone has an idea? TNX in advance

    I know what the problem is.

    First of all, I had to create a root of site and set my oam file in this directory. I can select my file oam without any error.

Maybe you are looking for

  • I did all the patches, but shockwave Crash

    I did everything one "fix" but none of them prevent shockwave from crashing. I has been a year now and still no progress. the answers here are redundant and simply not true.

  • delete or rename custom loops added to the loop library

    Is it possible to delete or rename a loop added to the library of the loop? I misspelled a loop while creating and now it is saved, but it seems I can't rename it. I tried to look for the "My curls" folder in the apple loops folder, but I don't the h

  • How can I create VI with inputs that run immediately when the update?

    I'm using LabView for controlling stepper motors. I would create a VI with a front panel that has 4 arrows, 2 per engine. My goal is to be able to run the VI and then press a button to move the engine. I created separate VI for each funcition of engi

  • Windows continues to if crush/blue screen mentions stdriver32.sys and bios updates

    My computer crashes, a blue screen with lots of text flashes up briefly before the restart of the it, I took a photo of the last time so I could read: says: "A problem has been detected and windows has shut down to prevent damage to your computer. It

  • CSR1000v - Extra return in telnet line/transport

    I'm running a weird question with a few CSR1000v routers circula 5.1 ESXi.  I created 10 virtual machines and of these 10 cases, I have 1 router which seems if insert an extra line (or a carriage return) in the CLI whenever I hit him "enter."  This q