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

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

  • Trigger compile but the runtime error

    You guys wouldn't like that. Sound on a trigger!

    Below is a trigger, I found in OTN. I have a similar requirement. Compile under triggers. But, while running, I get
    ORA-00936: missing expression during execution
    I have this feeling that the last line of the INSERT statement is the origin of the problem.
    create or replace trigger trg_test
    before insert or update on central_dtls.emp_config
    for each row
    
    declare
    v_schema varchar2(100);
    v_sql_stat varchar2(32767);
    
    
    begin
         
    select schema_name into v_schema from central_dtls.master_config where company_id= :new.id;
    
    
                                  v_sql := 'insert into ' ||v_schema||'..emp_config_local 
                                  (
                                  company_id, 
                                  .
                                  .
                                  .
                                  )
                                  values 
                                  (' 
                                   ||:new.col1||', '
                                   ||:new.col2||', '
                                   .
                                   .
                                   .
                                   .
                                   ||:new.lastcol||  ')';    ----- Potential issue in this line
    
    
    
    
    exception
    when others then ......;
    
    end;
    /
    I tried the things below.

    ||:new.lastcol  ');';   --- Trigger Will not compile
    ||:new.lastcol||  ')';    --- Trigger Will compile , but, will get "ORA-00936: missing expression" during execution
    ||:new.lastcol|| ');';   --- Trigger Will compile , but, will get "ORA-00936: missing expression" during execution

    If: new.col1 is a character column, you must also place them with single quotes.

    The best way would be to print your insert string and see what you found

  • try the consumer on the playbook, but error when compile...

    Hai all, I tried Messaging on SDK Playbook, when I compile appears error like this

    Error: Unable to resolve resource bundle "e-mail" for locale "en_US".

    Error: Could not resolve the "journaling" for locale "en_US" resource group

    Error: Unable to resolve resource bundle "collections" locale "en_US".

    my code is:

    _Consumer = new Consumer();

    _Consumer.channelSet = new ChannelSet();

    _Consumer.channelSet.addChannel (_streamAMF);

    _Consumer.destination = "RTStream";

    _Consumer.selector = "Viewer ="RT"

    _Consumer.addEventListener (MessageEvent.MESSAGE, onMessageHandler);

    _Consumer.subscribe ();

    can someone help me?...

    Continuous support of Playbook SDK?

    Thanks before,

    Rick

    Hi all, after I changed my configuration on Configuration external tool (Run--> external tool--> Configurations of external tool) and added - library-path += "/ Applications/Adobe Flash Builder 4/sdks/blackberry-tablet-sdk-0.9.0/frameworks/locale/en_US" works well.

    Thank you Fabien...

  • 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

  • FPGA - Successful Compilation but error 89: full file system

    Hello friends,

    at the end of my last compilation of the server compile reported an 89 error: complete file system. Anyone know what is the file system?

    Maybe the Flash to the bitfiles? But this will be erased automatically with each new download bitfile.

    Note that the compilation was successful and only 89% of the slices when used. Therefore, it remains the space available (FFs and LUTs).

    Finally are there limitations on the use of IO-nodes or FIFO?

    Material: cRIO 9002 with 9101 FPGA Chassis.

    Thank you for helping.

    Marco

    Hard drive was out of free space. After the liberation on 100Mbytes, there was enough space to compile successfully.

    Thank you

    Marco

  • table name not valid error when inserting values into a table

    I use the following statement to insert values into a table:

    curs. Execute ("INSERT INTO _ * '%s' * _ VALUES ((SELECT MAX (REC_ID) + 1 OF GSAP_MSG_IN), (SELECT MAX (gsap_msg_id) + 1 OF GSAP_MSG_IN), 'SHELLSAP', sysdate, '%s', EMPTY_BLOB(), 1, SYSDATE, EMPTY_BLOB (), SYSDATE)" %(*table_name*,file_extension)) ")

    whence table_name the following statement

    table_name = ' config.staging_db_tablesNames ['in_msgs]

    as I created a configuration file for all parameters that can change. The value of the table in the audit using a print command is correctly, but when put in the query above to run the insert statement gives an error. The following is the summary of comprehensive performance where you can see the table name as

    $ python gsapscnr.py
    Vote for the data files in/home/mh/inbox /...

    GSAP_MSG_IN
    Traceback (most recent call changed):
    File "gsapscnr.py", line 147, in it?
    poll_for_data()
    File "gsapscnr.py", line 86, in poll_for_data
    Sorter = load_details_first)
    File "gsapscnr.py", line 42, survey
    curs. Execute ("INSERT INTO '%s' VALUES ((SELECT MAX (REC_ID) + 1 OF GSAP_MSG_IN), (SELECT MAX (gsap_msg_id) + 1 OF GSAP_MSG_IN), 'SHELLSAP', sysdate, '%s', EMPTY_BLOB(), 1, SYSDATE, EMPTY_BLOB (), SYSDATE)" %(table_name,file_extension)) ")
    cx_Oracle.DatabaseError: ORA-00903: invalid table name

    Can anyone help with this problem please. I'm passing the value of the table in a bad way. Also if anyone can suggest a good tutorial for paythong programming using cx_Oracle.

    Concerning

    Print the SQL string that you establish, cut and paste it this output in SQL * more and see if it runs. This may show you that you should remove the single quotes around the name of the table %s in the Python file.

  • Error when inserting XML Date in the Table

    Hi all

    I am working on Oracle 11 g and trying to insert a date XML in the table but get error - below

    Query - insert into TableName (ID, CREATION, CREATEDBY) VALUES (50, *'2010 - 12-15 T 12: 57:19'*, 'Name')

    Error - java.sql.SQLDataException: ORA-01861: literal does not match the format string

    CREATED column datatype is Date

    When I try to use sysdate instead of hard-coding XML date of obtaining inserted successfully into the table. Please let me know how to pass this XML format date.

    Thanks in advance.

    Concerning
    Nikhil

    I don't see any XML in what you posted. In any case:

    "2010 12-15 T 12: 57:19'.

    is a string, not a date. Use:

    to_date('2010-12-15T12:57:19','YYYY-mm-dd"T"HH24:mi:SS')

    For example:

    SQL> create table tbl(created date);
    
    Table created.
    
    SQL> insert into tbl values('2010-12-15T12:57:19');
    insert into tbl values('2010-12-15T12:57:19')
                           *
    ERROR at line 1:
    ORA-01861: literal does not match format string
    
    SQL> insert into tbl values(to_date('2010-12-15T12:57:19','YYYY-MM-DD"T"HH24:MI:SS'))
      2  /
    
    1 row created.
    
    SQL> 
    

    SY.

  • 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

  • error when insert into the xmltype table

    Hi expert,

    I'm in I'm in Oracle Enterprise Manager 11 g 11.2.0.1.0.
    SQL * more: Production of release 11.2.0.1.0 killed him Feb 22 11:40:23 2011

    I correctly applied several .xml files in the table xmltype DOCUMENT by using this PROCEDURE.
    But only received the error, because he understood "the House of McVay.
    My codes and messages are listed below:

    SQL > CREATE or REPLACE PROCEDURE loadxml IS
    77
    EXCEPTION 78
    79, SO THAN OTHERS THEN
    raise_application_error 80 (-20101, ' Exception occurred in a procedure loadxml :'||) SQLERRM);
    LoadXml END 81;
    82.

    CAUTION: Procedure created with compilation errors.

    SQL > show the error;
    LOADXML PROCEDURAL errors:

    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    18/31 PLS-00103: encountered the symbol "S" when expecting one of the
    Next:
    * & = - + ; <>/ is mod remains not rem
    < an exponent (*) > <>or! = or ~ = > = < = <>and like2 or
    like4 likec between | submultiset of type multiset Member

    Is there someone can help?

    Thank you!

    Cow

    Published by: cow on March 22, 2011 21:50

    Basic SQL/PLSQL: Given that you create a string a single quotation mark is represented by two "characters...

    However, you should probably use & apos; rahther as a single quote

    Published by: mdrake on March 18, 2011 15:44

  • Oracle Thin Client error when inserting

    Cold Fusion 8 fully patched on Windows Server 2008 fully patched
    8.1.7.1 Oracle Linux as DB with network (encryption) Option
    Oracle Client 10.2.0.3 Thin Client (tried with the ojdbc14 and ojdbc12 classes)

    SELECT, DELETE, UPDATE instructions all work fine.

    When an INSERT statement is sent to the DB, it is processed (the insert is done and committed!) but we receive a database error message 'Typlange grosser als Hochstwert', which translates as about type length is greater than the limit.

    Multiple threads show this as a problem when the return of the db is too large, but it is certainly not the case (a simple insertion of a line of small).

    The SQL that is executed to the DB includes a suffix of "ROWID of RETURN", which is not part of our SQL and is apparently added by CF or thin client. We do not handle the return value (we tried but that didn't help either).

    Due to the fact that the INSERT is actually made and committed, we assume that the problem must be at the end of the customer and not in the database.

    This is a blocking problem and seems to be limited to 8 CF with the customer.
    CF 8 with an ODBC to the same DB connection works OK.

    Be very happy for any help we want to go to production with this environment.

    See you soon
    Thomas

    I am able to use the Oracle 10.2 OCI or JDBC 'fat client' driver do updates and deletions to my 8.1.7 database. Only a few changes are needed with the already installed Oracle client. You must update the java.library.path Coldfusion8\runtime\bin\jvm.config to include the dll from the Oracle client directory. For me it was:
    Java.Library.Path=...,E:/Oraclient_10_2
    You must restart coldfusion for all java configuration updates.
    You must also change the JDBC URL of JDBC: thin:... to jdbc:oracle:oci:...

    You can still use the Oracle client where he works, using the OCI driver only if necessary. You could test your SQL with two drivers to see if you notice a significant difference in performance. Use what works the best.

  • Error when inserting Record with GoDaddy hosting

    When I try to insert a recording on a Web page hosted by GoDaddy in SQL server, I get the error:

    Microsoft OLE DB provider for ODBC error «80040e09» drivers

    [Microsoft] [ODBC SQL Server driver] [SQL Server] EXECUTE permission denied on object 'sp_execute', database 'master', owner 'dbo '.

    This error occurs on the line:

    MM_editCmd.prepared = true

    After some research online if I change the line following the error disappears, but the fact the behavior insert record:

    MM_editCmd.prepared = false

    Is it possible to change the behavior so that it will always use false instead of true and always appear as a behavior on the page.

    What happens in Dreamweaver 8.0.2. It happened not in Dreamweaver MX 2004.

    Thank you
    Mike

    After a lot of tinkering, I tried a test with a new table and web page. Dreamweaver has added the code to insert as before--the same code that causes the error. I tried the test and it worked. No error?

    The only difference I could think about was that the original array was created on a local SQL server server, and then I used generate the SQL Script for the create table statement, I then ran in on the SQL of GoDaddy Server Query Analyzer.

    I then removed the table and created through the user interface of GoDaddy and now it works. I don't know what the difference is, but at least it works.

    Thank you.

Maybe you are looking for

  • Qosmio F20-137-DVD-ROM drive disappeared when in Windows

    Hi all, I have an embarrassing problem with my DVD - RAM drive. I do not see it in Windows XP, but it worked fine when I boot from the drive - in fact, I just picked up the laptop using the DVD - RAM drive. In Device Manager, the DVD-RAM is listed as

  • UPGRADE MEMORY ON THE QOSMIO F10

    IN CASE OF... HI, COULD someone EXPLAIN WHY SAME TIME MY LAPTOP (QOSMIO F10 1.7 Mghz, 512 MB RAM), POP-UP WINDOWS LIKE THIS "WINDOWS. INSUFFICIENT VIRTUAL MEMORY. "DO YOU KNOW WHAT THE BEST THING TO DO?I WAS THINK to be upgraded up to 2 GB of RAM, BU

  • Call Of Duty 2

    Is there an any hope of MS do Vista (64 bit) compatible with games such as Call Of Duty 2? My old PC (XP) could not run smoothly as a result of not quite make min req so he sat waiting for a long time for me to play. I bought a new PC recently and th

  • AO725 Netbook - poor youtube / netflix performance

    Hey guys.  Bought a netbook Acer AO725-0826 in November last year and I had some problems with it. There the processor C-70, a dual-core 1.0 (apparently up to 1.3, but I never see on 1.3 GHz).  The problem is that this thing can't even steam netflix

  • I can't get my computer to make appear the email in outlook express after I entered my username and password

    on this site - https://www.brickbodies.com/Citrix/AccessPlatform/auth/login.aspx I can't get my computer to bring up my email in outlook express after I entered my username and password on this site - https://www.brickbodies.com/Citrix/AccessPlatform