Probelm regarding insert into long datatype column

hi all ,
in one of my table one column's datatype is long and i want to insert a value into this column but getting following error
ora-1461 :- can bind a LONG value only for insert into a long column
please help me
any help appriciated

Show us the code...?
Looks like you are trying to insert into the wrong column.

Similar Messages

  • Inserting into long raw column type

    Hello,
    We tried to insert into a bmp file into the a column of type long raw and got the following error: "invalid value stored in pcbValue". There was no ORA message code assign to this error.
    Willy

    Thanks !
    JDeveloper Team (guest) wrote:
    : Hi,
    : You need to use streams to do this. In the JDBC User's Guide
    and
    : Reference, there is a whole chapter on using streams. Here is
    : some example code from the 8.1.5 JDBC User's Guide:
    : The following Java code snippet writes the data from the
    LESLIE
    : LONG RAW column into a file called
    : leslie.gif:
    : ResultSet rset = stmt.executeQuery ("select GIFDATA from
    : streamexample where
    : NAME='LESLIE'");
    : // get first row
    : if (rset.next())
    : // Get the GIF data as a stream from Oracle to the client
    : InputStream gif_data = rset.getBinaryStream (1);
    : try
    : FileOutputStream file = null;
    : file = new FileOutputStream ("leslie.gif");
    : int chunk;
    : while ((chunk = gif_data.read()) != -1)
    : file.write(chunk);
    : } catch (Exception e) {
    : String err = e.toString();
    : System.out.println(err);
    : } finally {
    : if file != null()
    : file.close();
    : In this example the contents of the GIFDATA column are
    : transferred incrementally in chunk-sized pieces between
    : the database and the client. The InputStream object returned
    by
    : the call to getBinaryStream() reads the data
    : directly from the database connection.
    : Zvonimir Vukovi (guest) wrote:
    : : Zvonimir Vukovic (guest) wrote:
    : : : Hi !
    : : : I have a problem when inserting an image (eg. GIF file)
    : into
    : : : Long Raw column. I am using JDeveloper 1.1, and I need to
    : read
    : : : images from my local hard drive and insert them into
    Oracle
    : : : DBMS. I've done a reverse thing (copying image from Long
    Raw
    : : : column to my HDD). I would be very thankful for a piece of
    : : JDBC
    : : : code which would solve my problem.
    : : : Thanks,
    : : : Zvonimir Vukovi
    : : I've forgotten to say that I need to use na Applet to do
    the
    : : job. I can read the image into AWT Image control, but I
    don't
    : : know how to get it into the Long Raw column
    : : Thanks again.
    : : Z.V.
    null

  • Update LONG datatype columns

    Can anyone point me to a description on how I can update a column of datatype LONG.
    I will be using a stored procedure/cursor and need to be able to append a string variable to the end of a LONG datatype column that will have other text.
    Thanks in advance,
    Miller

    The use of LONG has several limitations. Please refer to the SQL Reference for details.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/toc.htm
    From the documentation:
    You can reference LONG columns in SQL statements in these places:
    n SELECT lists
    n SET clauses of UPDATE statements
    n VALUES clauses of INSERT statements
    The use of LONG values is subject to some restrictions:
    n A table cannot contain more than one LONG column.
    n You cannot create an object type with a LONG attribute.
    n LONG columns cannot appear in integrity constraints (except for NULL and NOT
    NULL constraints).
    n LONG columns cannot be indexed.
    n A stored function cannot return a LONG value.
    n Within a single SQL statement, all LONG columns, updated tables, and locked
    tables must be located on the same database.
    LONG columns cannot appear in certain parts of SQL statements:
    n WHERE clauses, GROUP BY clauses, ORDER BY clauses, or CONNECT BY clauses or
    with the DISTINCT operator in SELECT statements
    n The UNIQUE operator of a SELECT statement
    n The column list of a CREATE CLUSTER statement
    n The CLUSTER clause of a CREATE MATERIALIZED VIEW statement
    n SQL functions (such as SUBSTR or INSTR)
    n Expressions or conditions
    n SELECT lists of queries containing GROUP BY clauses
    n SELECT lists of subqueries or queries combined by the UNION, INTERSECT, or
    MINUS set operators
    Note: Oracle Corporation strongly recommends that you convert
    LONG columns to LOB columns. LOB columns are subject to far
    fewer restrictions than LONG columns. See "TO_LOB" on page 4-111
    for more information.

  • ORA-22275 inserting into the CLOB column using ODBC input parameters

    Hi all,
    I'm having problem with INSERT into the CLOB column via bound input parameters.
    After calling SQLExecDirect() I'm getting following error:
    [Oracle][ODBC][Ora]ORA-22275: invalid LOB locator specified
    Adding defaults to the table definitions does not help. If I embed parameter values into the SQL statement - everything works just fine.
    I use Oracle 9.2 with latest Oracle ODBC driver 9.2.0.4 under Windows XP.
    Any ideas appreciated...
    Vlad
    Code looks like this:
    SQLBindParameter(hstmt,1,...);
    SQLBindParameter(hstmt,2,...);
    SQLBindParameter(hstmt,3,...);
    SQLExecDirect(hstmt,...);
    SQL statement looks like this:
    insert into tst_table (id,str_fld,clob_fld1,clob_fld2) values (50, ? , ? , ?)
    Table looks like this:
    CREATE TABLE tst_table (
         id          number (10,0)     NOT NULL ,
         str_fld          nvarchar2 (50)     NOT NULL ,
         clob_fld1     nclob          NOT NULL ,
         clob_fld2     nclob          NOT NULL ,
         CONSTRAINT PK_tst_table PRIMARY KEY
              id
    I tried to add defaults to the table, but result is the same:
    CREATE TABLE tst_table (
         id          number (10,0)               NOT NULL ,
         str_fld          nvarchar2 (50)               NOT NULL ,
         clob_fld1     nclob     default EMPTY_CLOB()     NOT NULL ,
         clob_fld2     nclob     default EMPTY_CLOB()     NOT NULL ,
         CONSTRAINT PK_tst_table PRIMARY KEY
              id

    You need to provide the data at execution time (i.e. SQL_LEN_DATA_AT_EXEC(0) in the SQLBindParameter followed by a series of SQLPutData calls). If you go to Metalink
    Top Tech Docs | Oracle ODBC Driver | Scripts & Sample Code
    has some sample code that shows you how to do this.
    Justin

  • Oracle Personal Edition, data corruption in Long datatype column

    Oracle Personal Edition, data corruption in Long datatype column
    DATA Corruption in Oracle 8i Personal edition
    I am using a Long data type column to store a big text. In oracle Enterprise edition the data stored correctly. But in the Oracle Personal Edition, the Long data type column data corrupted. Some letters in the text are replaced by special character chr(0).
    The following data has been taken from a column (Which is of data type LONG).
    1. In the first one column name Template_ID stored correctly but in the second one T is missing. Some special characters has stored in that place. (Difference is in 6th Line)
    CREATED_DATE####09-21-2001 16:02:00$$LANGUAGE_ID####99$$LOWER_LIMIT####$$MEASURE
    ID####810200082001000004$$MODIFIEDDATE####09-21-2001 16:02:00$$SERVICE_RECEIVED####I$$SERVICE_RECORD####PO:F$$STEP_CODE####8$$STEP_RESULT####Failed$$STEP_ROW_
    ID####2$$TEMPLATE_ID####M116XX$$TEXT####$$UNIQUE_ID####810200082001$$UPPER_LIMIT
    CREATED_DATE####09-21-2001 16:02:00$$LANGUAGE_ID####99$$LOWER_LIMIT####$$MEASURE
    ID####810200082001000004$$MODIFIEDDATE####09-21-2001 16:02:00$$SERVICE_RECEIVED####I$$SERVICE_RECORD####PO:F$$STEP_CODE####8$$STEP_RESULT####Failed$$STEP_ROW_
    ID####2$$TEMPLA E_ID####M116XX$$TEXT####$$UNIQUE_ID####810200082001$$UPPER_LIMIT
    2. In the first one column name Template_ID stored correctly but in the second one E is missing. Some special characters has stored in that place. (Difference is in 6th Line)
    CREATED_DATE####09-21-2001 16:01:19$$LANGUAGE_ID####99$$LOWER_LIMIT####$$MEASURE
    ID####810200082001000002$$MODIFIEDDATE####09-21-2001 16:01:19$$SERVICE_RECEIVED####U$$SERVICE_RECORD####P:F$$STEP_CODE####7$$STEP_RESULT####Failed$$STEP_ROW_I
    D####2$$TEMPLATE_ID####78580A$$TEXT####$$UNIQUE_ID####810200082001$$UPPER_LIMIT#
    CREATED_DATE####09-21-2001 16:01:19$$LANGUAGE_ID####99$$LOWER_LIMIT####$$MEASURE
    ID####810200082001000002$$MODIFIEDDATE####09-21-2001 16:01:19$$SERVICE_RECEIVED####U$$SERVICE_RECORD####P:F$$STEP_CODE####7$$STEP_RESULT####Failed$$STEP_ROW_I
    D####2$$TEMPLAT ID####78580A$$TEXT####$$UNIQUEID####810200082001$$UPPER_LIMIT#

    See if this helps you any:
    Re: Google Maps

  • ORA-07445 (solaris 9.0.) when inserting into LONG column

    i am getting a core-dump when inserting into a table w/ long column. running 9.0.1 on solaris.
    ORA-07445: exception encountered: core dump [kghtshrt()+68] [SIGSEGV] [Address not mapped to object] [0x387BBF0] [] []
    if anyone has ANY input - please provide it ... i am desperate at this point.
    i am trying to avoid upgrading to 9.2.0 to solve this problem.
    regards -
    jerome

    You should report this in a service request on http://metalink.oracle.com.
    It is a shame that you put all the effort here to describe your problem, but on the other hand you can now also copy & paste the question to Oracle Support.
    Because you are using 10.2.0.3; I am guessing that you have a valid service contract...

  • How to select data(first 10 charcters) from a LONG datatype column.?

    Hi,
    I am getting below error wile i am trying to select forst 10 charcter from a log datatype column. May be I am using it in a wrong way using SUBSTR function.
    I dont know whether SUBSTR works for LONG columns or not as it's char function.
    I am not able to find any inbuild conversion function which will work like TO_CHAR.Please revert.
    My steps:-
    =================================================
    SQL> create table long_varchartest(
    2 nirav long, sangram varchar2(30));
    Table created.
    SQL> insert into long_varchartest values('ns89027','sd22712');
    1 row created.
    SQL> insert into long_varchartest values('Nirav Shah', 'Sangram Dash');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from long_varchartest;
    NIRAV SANGRAM
    ns89027 sd22712
    Nirav Shah Sangram Dash
    SQL> insert into long_varchartest(sangram)
    2 select nirav from long_varchartest;
    select nirav from long_varchartest
    ERROR at line 2:
    ORA-00997: illegal use of LONG datatype

    declare
    l_text varchar2(4000) ;
    begin
      select nirav into l_text from  long_varchartest where sangram = 'sd22712';
      dbms_output.put_line(substr(l_text,1,10)); 
    end ;you could also follow this link [http://www.oracle.com/technology/oramag/code/tips2003/052503.html]

  • Updating and inserting on Long Raw column

    Hi All,
    My source table contains LONG RAW column in XX databse. I have to fetch the data from this table in YY Databse using DB link and insert into same structured table. The problem is, i can not access the LONG RAW data for some rows which the size exceeding above 32k.
    My requirement is, i have to fetch and insert or update the record(Source and target table structure is same and dtabase is different).
    Please suggest the best way of handle this problem.
    Please let me know if you need more information.
    Thanks
    Ram
    Edited by: ram on Oct 19, 2008 2:11 PM
    Edited by: ram on Oct 19, 2008 2:12 PM

    We using the procedure to insert and update. Procedure will called to update or insert only one record at a time from XX databse to YY database.
    We are not using SQL * PLUS for this operation.
    Thanks
    Ram

  • Loading Images into LONG RAW column using SQL or PL/SQL

    Hi!
    I am trying to load images into a LONG RAW column. Can anybody tell me how to do this using SQL or PL/SQL. I do not want to use Forms to do this. And, I have a limitation using BLOBs.
    Thanks in Advance,
    Kotesh.

    You wrote that you cannot use a java class to insert a picture. We are working on a school project and HAVE to use java as a client and Oracle 7 as a server.
    Can you tell us how this is to be done?
    Thank you in advance,
    Bart van der Heijden

  • Require sum value of one table to be inserted into another table column

    Hi
    I have a table which contains a list of parts and their prices required for an assembly.
    I am trying to calculate the total from this part lists and put into the total price column for the assembly (another table column).
    My method was to calculate the total in a page process ( eg, once all parts in the assembly have been entered the page process calculates the total price (the sum of the part prices at that time) and puts the result (total) in the assembly total column)
    In the process I capture the total using either
    SELECT SUM(TOTAL_COST) Total INTO B from CC_REQ_BOM WHERE RID = :P5_RID;
    or
    SELECT SUM(TOTAL_COST) INTO B from CC_REQ_BOM WHERE RID = :P5_RID;
    Both the above sql statements are allowed ( one with alias and one without alais) by the page process but they dont seem to be working as no total is returned to the table when the page process is run.
    to insert the calculation(variable B) into the required table I have used
    INSERT INTO CC_REQ(TOTAL_COST)
    VALUES(B);
    I have used this method a few times with no problems for standard sql statements but this is the first time I have used it with the sum SQL function. For some reason it doesn't seem to like the SUM function even though the code below works in SQL Command window.
    SELECT SUM(TOTAL_COST) from CC_REQ_BOM WHERE RID = :P5_RID;
    Any help welcome.
    PGJ

    Hi
    In that case, I would do something like this then...
    CREATE TABLE crt_crates
    (ccr_id   INTEGER        CONSTRAINT ccr_pk PRIMARY KEY,
    ccr_name VARCHAR2(4000) CONSTRAINT ccr_nam_nn NOT NULL);
    CREATE TABLE crt_requests
    (cre_id        INTEGER        CONSTRAINT cre_pk PRIMARY KEY,
    cre_reference VARCHAR2(4000) CONSTRAINT cre_ref_nn NOT NULL,
    --I've skipped the requester as this would probably refernce a different table
    --I've skipped request details as it's not necessary for this example
    cre_ccr_id    INTEGER        CONSTRAINT cre_ccr_fk REFERENCES crt_crates);
    CREATE TABLE crt_materials
    (cma_id   INTEGER        CONSTRAINT cma_pk PRIMARY KEY,
    cma_name VARCHAR2(4000) CONSTRAINT cma_nam_nn NOT NULL,
    cma_cost NUMBER(12,2)   CONSTRAINT cma_cos_nn NOT NULL);
    CREATE TABLE crt_crate_bom
    (ccb_id       INTEGER CONSTRAINT ccb_pk PRIMARY KEY,
    ccb_ccr_id   INTEGER CONSTRAINT ccb_ccr_fk REFERENCES crt_crates,
    ccb_cma_id   INTEGER CONSTRAINT ccb_cma_fk REFERENCES crt_materials,
    ccb_quantity INTEGER DEFAULT 1 CONSTRAINT ccb_qua_nn NOT NULL);
    INSERT INTO crt_crates
    VALUES(1, 'Crate 1');
    INSERT INTO crt_requests
    VALUES(1,'Request 1',1);
    INSERT INTO crt_materials
    VALUES(1,'Material 1', 1000);
    INSERT INTO crt_materials
    VALUES(2,'Material 2', 500);
    INSERT INTO crt_crate_bom
    VALUES(1,1,1,5);
    INSERT INTO crt_crate_bom
    VALUES(2,1,2,3);
    COMMIT;
    --So crate cost totals would be...
    SELECT cre_reference              request,
           ccr_name                   crate,
           SUM(cma_cost*ccb_quantity) crate_cost
    FROM   crt_requests,
           crt_crates,
           crt_materials,
           crt_crate_bom
    WHERE  cre_ccr_id = ccr_id
    AND    ccb_ccr_id = ccr_id
    AND    ccb_cma_id = cma_id
    GROUP BY cre_reference,
             ccr_name;
    --And request cost totals would be...
    SELECT cre_reference              request,
           SUM(cma_cost*ccb_quantity) crate_cost
    FROM   crt_requests,
           crt_crates,
           crt_materials,
           crt_crate_bom
    WHERE  cre_ccr_id = ccr_id
    AND    ccb_ccr_id = ccr_id
    AND    ccb_cma_id = cma_id
    GROUP BY cre_reference; Do you see what I mean - you don't store the derived values as they could get out of sync with the component parts that make then up. You derive them from the underlying data instead.
    Hope this makes sense.
    Cheers
    Ben

  • How to insert into a blob column

    hello,
    i want to insert data ina blob column.
    table is like :
    create table test(id number(1), blolcolumn blob);
    now i want to insert the value as specified below in blobcolumn using a pl/sql block.
    can anyone help in doing this using a pl/sql block?
    value to insert: 0x8000000025CE9B0483A7ECDE8DA5EA20C681841A091BF453EF33D6F58B3F0B5A2B869F48EF2C4A1A383C00FCAA8783FC16AF6E4C9F621C6EE07C4DA9B99EB914B101E46E4BB3EDECA29242B06DD600DF2577740A5C46F3C1D937EA9D090361B1FAA40E52CC3062A1C69420802A8CC68D4F16E9717F323D335611FCBE31CB18242E67E98940000000B1372A26C661D84C565B82C4BB6FDC4B2302A58E19588F99B55F84AF31DCB950C38725A69766D7B8B651464BBC81474A2AD5ECB8F5330CECBB059C35AE725C11400000003E86D68CD30617E9912A6B685F463D06B33079920BB64EE2768564273E98E621FA2841E6CEDB5EDB17E804C810EB552AF24EC359F35B4C7A34331EFBEE71B5B5030000000100014000000023CAC269B0DB17C47B0697AECF2EA8959EAB7F87C6B9273D4C8909A15A714D1D09DFA3E7F42EE3B8345A404EEA569A86CE29C5B204AF71C29C2344500BA2989080000000941810D14BEA288632783B39A5F946E1E4174787BA39695E3DDAFB1B6306453EC968E078F970771CDD8F744409C906039B2D9424BC7EB9824E9F81F8F681CDF989403F586B86091EBF573F911E8E8285FA09B6DD996B0B28E49F64E107526597F82BD0423EA6AD55B17A85B97BAD5BD6839EE72BA5B6DE3DD9C4E21D2DF4EDF740000000C35077FBCCED395621944ECD545DA4D8F9B0109A91067A9EA81CA11C075A51686089AA705578B6428815C08BFAF57165064D97FBBCD2A67CA44B2E70CE4471F340000000C21BA30F306E87FB299AFE849F52E32FDD8D134CA463B5D82B758C96BD70A69A52E6162E10B024F14CC91CBA79D07734A893D101BE1ED2C01D43D01D1276D0ED

    I think it may give an opinion:
    SELECT to_blob( utl_raw.cast_to_raw('0x8000000025CE9B0483A7ECDE8DA5EA20C681841A091BF453EF33D6F58B3F0B5A2B869F48EF2C4A1A383C00FCAA8783FC16AF6E4C9F621C6EE07C4DA9B99EB914B101E46E4BB3EDECA29242B06DD600DF2577740A5C46F3C1D937EA9D090361B1FAA40E52CC3062A1C69420802A8CC68D4F16E9717F323D335611FCBE31CB18242E67E98940000000B1372A26C661D84C565B82C4BB6FDC4B2302A58E19588F99B55F84AF31DCB950C38725A69766D7B8B651464BBC81474A2AD5ECB8F5330CECBB059C35AE725C11400000003E86D68CD30617E9912A6B685F463D06B33079920BB64EE2768564273E98E621FA2841E6CEDB5EDB17E804C810EB552AF24EC359F35B4C7A34331EFBEE71B5B5030000000100014000000023CAC269B0DB17C47B0697AECF2EA8959EAB7F87C6B9273D4C8909A15A714D1D09DFA3E7F42EE3B8345A404EEA569A86CE29C5B204AF71C29C2344500BA2989080000000941810D14BEA288632783B39A5F946E1E4174787BA39695E3DDAFB1B6306453EC968E078F970771CDD8F744409C906039B2D9424BC7EB9824E9F81F8F681CDF989403F586B86091EBF573F911E8E8285FA09B6DD996B0B28E49F64E107526597F82BD0423EA6AD55B17A85B97BAD5BD6839EE72BA5B6DE3DD9C4E21D2DF4EDF740000000C35077FBCCED395621944ECD545DA4D8F9B0109A91067A9EA81CA11C075A51686089AA705578B6428815C08BFAF57165064D97FBBCD2A67CA44B2E70CE4471F340000000C21BA30F306E87FB299AFE849F52E32FDD8D134CA463B5D82B758C96BD70A69A52E6162E10B024F14CC91CBA79D07734A893D101BE1ED2C01D43D01D1276D0ED')) FROM dual

  • How to insert into a nvarchar2 column

    Dear all,
    I am using a UTF8 database and I like to create a table with nvarchar2 datatype. However, when I insert data into the table, no matter what character, error prompts.
    ERROR at line 1:
    ORA-12704: character set mismatch
    Any parameters I need to set?
    null

    I think it may give an opinion:
    SELECT to_blob( utl_raw.cast_to_raw('0x8000000025CE9B0483A7ECDE8DA5EA20C681841A091BF453EF33D6F58B3F0B5A2B869F48EF2C4A1A383C00FCAA8783FC16AF6E4C9F621C6EE07C4DA9B99EB914B101E46E4BB3EDECA29242B06DD600DF2577740A5C46F3C1D937EA9D090361B1FAA40E52CC3062A1C69420802A8CC68D4F16E9717F323D335611FCBE31CB18242E67E98940000000B1372A26C661D84C565B82C4BB6FDC4B2302A58E19588F99B55F84AF31DCB950C38725A69766D7B8B651464BBC81474A2AD5ECB8F5330CECBB059C35AE725C11400000003E86D68CD30617E9912A6B685F463D06B33079920BB64EE2768564273E98E621FA2841E6CEDB5EDB17E804C810EB552AF24EC359F35B4C7A34331EFBEE71B5B5030000000100014000000023CAC269B0DB17C47B0697AECF2EA8959EAB7F87C6B9273D4C8909A15A714D1D09DFA3E7F42EE3B8345A404EEA569A86CE29C5B204AF71C29C2344500BA2989080000000941810D14BEA288632783B39A5F946E1E4174787BA39695E3DDAFB1B6306453EC968E078F970771CDD8F744409C906039B2D9424BC7EB9824E9F81F8F681CDF989403F586B86091EBF573F911E8E8285FA09B6DD996B0B28E49F64E107526597F82BD0423EA6AD55B17A85B97BAD5BD6839EE72BA5B6DE3DD9C4E21D2DF4EDF740000000C35077FBCCED395621944ECD545DA4D8F9B0109A91067A9EA81CA11C075A51686089AA705578B6428815C08BFAF57165064D97FBBCD2A67CA44B2E70CE4471F340000000C21BA30F306E87FB299AFE849F52E32FDD8D134CA463B5D82B758C96BD70A69A52E6162E10B024F14CC91CBA79D07734A893D101BE1ED2C01D43D01D1276D0ED')) FROM dual

  • Using UPPER function with LONG datatype column

    Hi,
    Can anyone tell that how can I use UPPER function on a column which has data type as-- LONG?
    For ex--
    SELECT * FROM TABLE WHERE UPPER(LONG_COL) LIKE 'MYTEXT%';
    thanks,
    Abhijeet
    Edited by: @bhijeet ☻☻☻ on Nov 18, 2009 5:20 AM

    @bhijeet ☻☻☻ wrote:
    Yes I know that that's why I am asking about an alternate solution for it. Could you please let me know if you have any solution to do it?
    Thanks,
    AbhijeetI think you'll have to write a function to do this for you. You can use DBMS_SQL to break a LONG into pieces and work with 32K segments. I am not sure how to put the converted data back into the LOB at that point, though DBMS_SQL might provide a way to do this.

  • ORA-01461: can bind a LONG value only for insert into a LONG colu

    Hello - I have a variable defined in a package as VARCHAR2(32720). This is not a table column. I am building a string inside the vairable, loading in invoice data in sections one at a time. It seems that once I get a larger number of invoices (say 100+) to load in, I get the "ORA-01461: can bind a LONG value only for insert into a LONG column" error. I am not trying to insert into a table column; just stringing together data in this large variable.
    Why would I be getting this error ? And is there a workaround ? The variable is read back out iin 80 byte strings which are then loaded to a table column that is varchar2(80).
    Thanks !!
    Jim Ernst
    Invacare Corporation

    Here is the definition of the field:
    l_EDI820_Data VARCHAR2(32720);
    And here is the loop used to populate the field. As i mentioned, it seems that once the process gets over 100 invoices coming in that the field hits the error; seems as if we are hitting say 4000 characters or near it at that point...
    FOR r_INVOICE_DETAIL IN cr_INVOICE_DETAILS LOOP
    l_EDI820_Data := l_EDI820_Data
    ||l_RMR_Statement
    ||r_INVOICE_DETAIL.INVOICE_NUM
    ||'*PI*'
    ||LTRIM(TO_CHAR(NVL(r_INVOICE_DETAIL.PAYMENT_AMOUNT,0))) -- Net Amount to be applied
    ||'*'
    ||LTRIM(TO_CHAR(r_INVOICE_DETAIL.INVOICE_AMOUNT,'999999.99')) -- Gross Amount
    ||l_Delimiter;
    l_TOTAL_SEGMENTS := l_TOTAL_SEGMENTS + 1;
    END LOOP; -- r_INVOICE_DETAIL
    There are some other statements that are adding additional data onto l_EDI820_Data ; this one is the loop that is basedon the invoices coming in.
    This code writes it to the table (field EDI820_DATA in the table is VARCHAR2(94)):
    l_EDI820_String_Length := LENGTH(RTRIM(l_EDI820_Data));
    l_EDI820_SUBSTR_START := 1;
    l_RECORD_SEQ_NO := 1;
    WHILE SUBSTR(l_EDI820_Data, l_EDI820_SUBSTR_START, 80) <> ' ' LOOP
    INSERT INTO XXAP_NACHA_EDI820_GTEMP_TBL
    SELECTED_CHECK_ID
    ,EDI820_SEQ
    ,EDI820_DATA
    VALUES (
    r_CHECK_IDS.SELECTED_CHECK_ID
    ,l_RECORD_SEQ_NO
    ,'705'||SUBSTR(l_EDI820_Data, l_EDI820_SUBSTR_START, 80)
    -- * Increment starting point for substring and also record sequence number
    l_EDI820_SUBSTR_START := l_EDI820_SUBSTR_START + 80;
    l_RECORD_SEQ_NO := l_RECORD_SEQ_NO + 1;
    END LOOP; -- WHILE Loop

  • How to select for insert a long column through database link?

    How may a long column (for example a sql server 2000 text column) be selected for insert into a clob column in table in 10g over a database link without invoking ora-00997?
    I've tried using dbms_metadata_util.long2clob without success over a database link.

    Is the remote database an Oracle database? Or are you selecting data from SQL Server 2000 over a database link via Heterogeneous Services? What is the data type of the column in the remote database (LONG? TEXT? Something else?)?
    Justin

Maybe you are looking for

  • ZEN X-Fi song lengthened

    I got some problem with one of my mp3 songs. When I fast forward, the part that is supposed to be at 3 mins is found at 7.30 mins. And the total length is supposed to be 7mins, it becomes 9+ mins o.0 And if I select music, then Artists, the songs wit

  • How do i build an internet browser?

    i want to build an internet browser, with the following options... - the only graphics it displays are those on the google (or other specified search engine) page - all other pages, it returns only text, and the html used to build that page can anyon

  • Screen Capture and Key logging

    I understand this server software allows user workstations to act like Dumb Terminals, in that the operating system doesnt run anything on the particular users workstation hard drive. My main interest is some security feature Ive heard that allows ei

  • HT1338 how do i update leopard to mountain lion

    how do i update leopard to mountain lion

  • Pick Up Call on Hold with Pickup Softkey

    On CME if you put a call on hold on your extension, you can use the call pick and dial the extension number and it will pull the call to another phone. Does CUCM have that featue with out parking the call? I want to be able to put a call on hold...wa