JDBC Not INSERTING Data

Hi All,
I'm having a real problem with the below method titled Not Working:. This method will INSERT data into a MS Access data base all day long, but it will always insert it at the same record. It never actually creates a new record, inserts the data and then saves that record. However, the second code example that I have titled Working: will create a new record, insert the data and then save the record. What is wrong with the Not Working code? I can't figure it out.
Please help!
Thanks,
=================================================================
Not Working:
     public void add(Account account)
          throws DAOException, DAOAddException
          if (account == null)
               throw new DAOAddException("Invalid account on add.");
          Connection dbConnection = MSAccessDAOFactory.getConnection();
            Statement statement = null;
          try
               String strSql = "INSERT INTO Accounts (" +
                    "USERID, PASSWORD, ROLE )" +
                    "VALUES (" +
                    DBUtil.createSqlField(account.getUserID()) + ", " +
                    DBUtil.createSqlField(account.getPassword()) + ", " +
                    DBUtil.createSqlField(account.getRole()) + ")";
               statement = dbConnection.createStatement();                              
               int nResult = statement.executeUpdate(strSql);
               if (nResult != 1)
                     throw new DAOAddException("Account insert failed.");
               else
                    System.out.println("Account added:");
                    account.show();
          catch (SQLException sqlEx)
               throw new DAOException("Account insert failed: " + sqlEx);
          finally
               if (statement != null)
                    try { statement.close(); }
                    catch (SQLException sqlEx) {}
=================================================================
Working:
          try
               Connection con = DriverManager.getConnection(DB_URL);
               System.out.println("got connection");
               Statement s = con.createStatement();
               String sql =
                    "INSERT INTO Accounts"
                         + " (USERID, PASSWORD, ROLE)"
                         + " VALUES"
                         + " ('"
                         + userID
                         + "',"
                         + " '"
                         + password
                         + "',"
                         + " '"
                         + role
                         + "')";
               System.out.println("\n" + sql);
               int i = s.executeUpdate(sql);
               System.out.println("\n" + "executed");
               if (i == 1)
                    message = "Successfully added one user.";
               sql = "SELECT * FROM Accounts";
                    ResultSet rs = s.executeQuery(sql);
               System.out.println("\n" + sql);
               while (rs.next()){
                    System.out.println("");
                    System.out.println("ID: " + rs.getString(1));     
                    System.out.println("UserID: " + rs.getString(2));
                    System.out.println("Password: " + rs.getString(3));
                    System.out.println("Role: " + rs.getString(4));
               rs.close();
               s.close();
               con.close();
          catch (SQLException e)
               message = "Error." + e.toString();
               error = true;
          catch (Exception e)
               message = "Error." + e.toString();
               error = true;
          if (message != null)
          }

If one works and the other doesn't, then they must generate different SQL statements. My idea (blatantly obvious as it may sound) would be to actually look at those statements, rather than wasting time looking at the code that generates them.

Similar Messages

  • BDC not inserting data in mandatory fields of MM01

    Suddenly My BDC for sales maintenance View is not working as it is not inserting data in Mandatory fields.?can any one tell me the reason

    Hi Satyanarayan,
    1. Check ur code in debug to see if your internal table contains value in mandatory fields
    2. Try executing BDC program online to figure out the problem....
    3. Check ur code to see whether u r assigning values to this fields...
    Let me know if these things are ok in ur code...
    Enjoy SAP.

  • Can not insert Data

    Hi all ;
    when tryiing to call a stored procedure from java session bean ,i am getting this error message:
    [BEA][Oracle JDBC Driver][Oracle]ORA-20000: Records are not inserted into the stagging table
    ORA-06512: at "APPS3_MTNAOL.MTN_INV_MANAGER", line 2529
    ORA-06512: at line 1
    but when i am calling the same stored procedure from sql developper for test ,with the same input data, it is working fine. what can be the issue?

    ORA-20000 is a user-defined Error in the database. Please check with whoever developed the code within your organization on what that means.
    but when i am calling the same stored procedure from sql developper for test ,with the same input data, it is working fine. what can be the issue?Obviously, you are not able to recreate the error from 'sql developer'.
    Edited by: RPuttagunta on Dec 7, 2010 3:06 PM

  • SQLJ with EJB. Do not insert data in the database

    Hi All!
    I4m developing an application using SQLJ and EJB (session beans,
    container managed transactions), and when I try to insert data
    in the database it doesn't work. All goes well (apparently), but
    the changes do not have effect in the DB.
    I've tried to use bean managed transactions, but when I try to
    insert data, I get the error: NOT IN A TRANSACTION. The code of
    the client in the bean managed is the following:
    public class MiEJBCLiente {
    public static void main(String[] args) {
    String namespaceURL
    = "jdbc:oracle:thin:@rabinf56:1521:prinpal";
    String ejbUrl
    = "sess_iiop://rabinf56:2481:prinpal/test/Bean";
    String username = "xxx";
    String password = "xxx";
    // Setup the environment
    Hashtable environment = new Hashtable();
    // Tell JNDI to speak sess_iiop
    environment.put
    (javax.naming.Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    // Tell sess_iiop who the user is
    environment.put(Context.SECURITY_PRINCIPAL, username);
    // Tell sess_iiop what the password is
    environment.put(Context.SECURITY_CREDENTIALS, password);
    // Tell sess_iiop to use credential authentication
    environment.put(Context.SECURITY_AUTHENTICATION,
    ServiceCtx.NON_SSL_LOGIN);
    environment.put
    (jdbc_accessURLContextFactory.CONNECTION_URL_PROP, namespaceURL);
    UserTransaction ut = null;
    // Lookup the URL
    hello.MiBeanHome homeInterface = null;
    try {
    Context ic = new InitialContext(environment);
    DriverManager.registerDriver (new
    oracle.jdbc.driver.OracleDriver());
    ut = (UserTransaction)ic.lookup
    ("jdbc_access://test/BeanTrans");
    homeInterface = (hello.MiBeanHome) ic.lookup(ejbUrl);
    catch (SQLException e) {
    // That's it!
    try {
    System.out.println("Creating a new EJB instance");
    hello.MiBean remoteInterface = homeInterface.create();
    ut.begin ();
    remoteInterface.inserta();
    ut.commit();
    catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    I4m waiting for suggests.
    Thanks in advance...

    Hi,
    Are you sure it's a front-end bug? Try to double check your back-end code.
    If you still believe the bug is in the front-end, try to debug the insertHandler function to see if you are attaching the UserVO properly into the UserEvent.
    Best regards,
    Pablo Souza

  • Could not insert Data in to the table

    hello friends
    I have some pbm in inserting values in to sqlserver database table.I could not insert values to the
    table having varchar datatype fields.partyType is a field name of varchar type.when i try to insert
    "LCL" for that field it throws following exception.
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]The name 'LCL'
    is not permitted in this context. Only constants, expressions, or variables allowed here. Column
    names are not permitted.
    sometime it throws
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not
    implemented
    If i give only numeric values to those fields it accepts.ie table accepts only integer values for all the fields.I use prepared statement for inserting data.I am inserting data to 4 tables at a time.I use ODBC driver.can u tell me where would be the problem??</p>
    with regards
    devi

    Hmmmm...
    ssniazi does nothing but ask for contact information or recommend Oracle products.
    Based on this I consider it likely that this person is some sort of sales representative either directly or indirectly associated with Oracle.
    I personally wouldn't provide any contact information to this person. Nor would I accept any advice until this person starts to actually provide some solutions or at least correctly reveals any financial interests that they might have.
    In addition I believe ssniazi is in violation of the conduct code of this website because ssniazi is requesting information which will be used by a business entity without telling the users that it will be used in that way. And I expect that Oracle itself would frown on such activities.
    2.3 You agree that You will not use the Website to:...(g) collect or store personal data about other users unless specifically authorized by such users.

  • Not inserting date field-very urgent

    thanks in advance any help appreciated
    im getting all the datas in csv as an array and inserting using the insert method, the date(not datetime) field is not inserting (vb.net), and not showing any error
    im getting the datas as array string wat iv to do while inserting ive used all the conversion techniques but still not inserting

    Hi,
    You must indicate the "specified" attribute in order to inset or update any field that is not string type.
    For example, I guess that your program do something like:
    obj.date=%%date expression%%
    but you must do also:
    obj.date_specified=true
    That is for any field like number, date, boolean, etc...that is not a string.
    Hope it helps.
    Kim.

  • Can not Insert data to Microsoft Access successfully

    I am using Microsoft Access database, and trying to insert some data into a table with a "while" loop, but every time, the last row can not be inserted although the return value of the "executeUpdate()" is 1, can anyone tell what's wrong with that? thank you very much

    http://forums.java.sun.com/thread.jsp?forum=48&thread=147704
    Sounds like it may be the same "glitch"
    Jamie

  • Concurrent program Do not Insert Data Into Interface Tables!

    Hi there:
    I am facing a problem with my concurrent program whenever I execute my stored procedure in SQL/PLUS it's work fine data load into the AP_INTERFACE/LINES.
    Whenever I try to load data through my concurrent programs it doesn't load into AP_INTERFACE/LINES and concurrent request successfully completed but don't load data.
    This is code query take a look.
    CREATE OR REPLACE PROCEDURE CINDNOTE(errbuff OUT VARCHAR2,
    retcode OUT NUMBER,
    p_org IN VARCHAR2,
    p_from_date IN VARCHAR2,
    p_to_date IN VARCHAR2)
    --p_org_id IN NUMBER,
    *Module Name AP DEBIT NOTE INTERFACE
    *Description This Package contains PL/SQL to support the
    * the DEBIT NOTE Inward Interface to AP
    *Author Zeeshan Hussain Siddiqui
    *Date 15 May, 2007
    *Modification Log
    *Developer Version Date Description
    *Zeeshan Hussain Siddiqui 1.0.0.1 15-MAY-2007 This interface integrated to AP
    AS
    ap_sequence NUMBER;
    reject_debit CHAR:='D';
    --v_invoice_lookup_code VARCHAR2(25):='Debit Memo';
    --v_negative_amt1 CHAR:='(';
    --v_negative_amt2 CHAR:=')';
    v_code VARCHAR2(250):='01.01.000.10450.00.00000';
    v_description VARCHAR2(250);
    V_rma_no VARCHAR2(10):='RMA#';
    from_date DATE;
    to_date DATE;
    CURSOR rejected_cur
    IS
    SELECT HR.full_name,ORG.organization_code InvOrg,
    ROUND(NVL((CR.unit_price*quantity_rejected*-1)+NVL(CR.gst_amount*-1,0),0),2)
    Invoice_Amt,ROUND(NVL(CR.unit_price*quantity_rejected*-1,0),2) AMT,ROUND(NVL(CR.gst_amount*-1,0),2) GST_AMT,
    POS.vendor_site_code,CR.date_of_disposition disposition_date,POS.vendor_site_id,CR.organization_id,
    (CASE WHEN CR.organization_id =305 THEN '01' WHEN CR.organization_id =304 THEN '01'
    WHEN CR.organization_id =450 THEN '07' WHEN CR.organization_id =303 THEN '02' ELSE '00' END)||'.'||
    (CASE WHEN CR.organization_id=305 THEN '02' ELSE '01' END)||'.000.'||(CASE WHEN CR.disposition=4
    THEN '10430' WHEN CR.disposition=6 THEN '10433' WHEN CR.disposition=3 THEN '10430'
    ELSE '00000' END)||'.'||'00.00000' Distribution_Code,
    PO.vendor_id,CR.reject_number,CR.disposition,CR.po_number,CR.unit_price,CR.rework_po_no,
    CR.shipping_memo, PO.vendor_name,
    CR.debit_note_number Invoice_Number,CR.account_number,CR.currency_code,
    CR.shipped_via,CR.vendor_rma,POC.first_name||' '||POC.last_name Contact,POS.phone,
    SUBSTR(POS.Fax_Area_Code,1,10)||'-'||SUBSTR(POS.Fax,1,20) Fax_Number,
    SUBSTR(POS.Address_Line1,1,100) Address,
    SUBSTR(POS.City,1,25)||' '||SUBSTR(POS.State,1,20)||' '||SUBSTR(POS.Province,1,20)"City/State/Prov"
    FROM apps.hr_employees hr,apps.mtl_system_items mtl,
    apps.org_organization_definitions ORG,
    apps.cin_rejects CR,apps.po_headers_all POH,
    apps.po_vendors PO,apps.po_vendor_contacts POC,apps.po_vendor_sites_all POS
    --WHERE TRUNC(CR.date_of_disposition) BETWEEN from_date AND to_date
    WHERE To_char(CR.date_of_disposition,'j') BETWEEN to_char(from_date,'j') AND to_char(to_date,'j')
    AND CR.organization_id =p_org_id ORG.organization_id
    AND ORG.organization_code =p_org
    AND POH.segment1 =CR.po_number
    AND HR.employee_id =MTL.buyer_id
    and CR.organization_id =MTL.organization_id
    AND CR.INVENTORY_ITEM_ID =MTL.INVENTORY_ITEM_ID
    AND PO.vendor_id =POH.vendor_id
    AND POH.vendor_contact_id =POC.vendor_contact_id
    AND POH.vendor_site_id =POS.vendor_site_id
    AND POS.invoice_currency_code =CR.currency_code
    AND CR.disposition IN(3,4,6);
    BEGIN
    from_date:=FND_CONC_DATE.STRING_TO_DATE(p_from_date);
    to_date:=FND_CONC_DATE.STRING_TO_DATE(p_to_date);
    FOR rejected_rec IN rejected_cur
    LOOP
    IF rejected_rec.vendor_rma IS NULL THEN
    v_description:=rejected_rec.shipping_memo||' '||rejected_rec.full_name;
    ELSIF rejected_rec.shipping_memo IS NULL THEN
    v_description:=v_rma_no||rejected_rec.vendor_rma||' '||rejected_rec.full_name;
    ELSIF rejected_rec.vendor_rma IS NULL AND rejected_rec.shipping_memo IS NULL THEN
    v_description:=rejected_rec.full_name;
    ELSIF rejected_rec.vendor_rma IS NOT NULL AND rejected_rec.shipping_memo IS NOT NULL
    AND rejected_rec.full_name IS NOT NULL THEN
    v_description:=v_rma_no||rejected_rec.vendor_rma||' '||rejected_rec.shipping_memo||'
    '||rejected_rec.full_name;
    END IF;
    SELECT AP_INVOICES_INTERFACE_S.NEXTVAL
    INTO ap_sequence
    FROM DUAL;
    INSERT INTO AP_INVOICES_INTERFACE
    INVOICE_ID
    ,VENDOR_ID
    ,INVOICE_CURRENCY_CODE
    ,DESCRIPTION
    ,INVOICE_NUM
    ,VENDOR_NAME
    ,VENDOR_SITE_ID
    ,VENDOR_SITE_CODE
    ,INVOICE_DATE
    ,SOURCE
    ,INVOICE_AMOUNT
    ,INVOICE_TYPE_LOOKUP_CODE
    VALUES
    ap_sequence
    ,rejected_rec.vendor_id
    ,rejected_rec.currency_code
    ,v_description
    ,reject_debit||rejected_rec.reject_number
    ,rejected_rec.vendor_name
    ,rejected_rec.vendor_site_id
    ,rejected_rec.vendor_site_code
    ,rejected_rec.disposition_date
    ,'REJECTS'
    ,rejected_rec.Invoice_Amt
    ,'CREDIT'
    IF rejected_rec.GST_AMT <0 THEN
    INSERT INTO AP_INVOICE_LINES_INTERFACE
    INVOICE_ID
    ,LINE_TYPE_LOOKUP_CODE
    ,DIST_CODE_CONCATENATED
    ,ITEM_DESCRIPTION
    ,AMOUNT
    VALUES
    ap_sequence
    ,'TAX'
    ,v_code
    ,v_description
    ,rejected_rec.GST_AMT
    END IF;
    INSERT INTO AP_INVOICE_LINES_INTERFACE
    INVOICE_ID
    ,LINE_TYPE_LOOKUP_CODE
    ,DIST_CODE_CONCATENATED
    ,ITEM_DESCRIPTION
    ,AMOUNT
    VALUES
    ap_sequence
    ,'ITEM'
    ,rejected_rec.Distribution_Code
    ,v_description
    ,rejected_rec.AMT
    COMMIT;
    END LOOP;
    END;
    Please reply me ASAP.
    Thanks,
    Zeeshan

    Hi All,
    I have created a package with a procedure. This procedure is used for inserting records into the custom tables created by me. When I am running the script in back end, it is running in reasonable time and giving back the desired output.
    But, as per requirement, I have to run this package-procedure via a concurrent program. When I am submitting the request, it is taking hours to complete. Also I am using BULK COLLECT and FORALL(Since the number of records are more than 3 lacs) and firing COMMIT after every FORALL. But when I am quering the table, after an hour or so, no rows are returned.
    Please help and reply asap.
    Thanks in Advance....!!

  • Not inserting data eam_assetattr_value_pub.insert_assetattr_value

    pl. suggest

    Hai Aveek
    try this example:
    =====================================
    REPORT zmaschl_create_data_dynamic .
    TYPE-POOLS: slis.
    DATA: it_fcat TYPE slis_t_fieldcat_alv,
          is_fcat LIKE LINE OF it_fcat.
    DATA: it_fieldcat TYPE lvc_t_fcat,
          is_fieldcat LIKE LINE OF it_fieldcat.
    DATA: new_table TYPE REF TO data.
    DATA: new_line  TYPE REF TO data.
    FIELD-SYMBOLS: <l_table> TYPE ANY TABLE,
                   <l_line>  TYPE ANY,
                   <l_field> TYPE ANY.
    Build fieldcat
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
               i_structure_name = 'SYST'
           CHANGING
               ct_fieldcat      = it_fcat[].
       LOOP AT it_fcat INTO is_fcat WHERE NOT reptext_ddic IS initial.
            MOVE-CORRESPONDING is_fcat TO is_fieldcat.
            is_fieldcat-fieldname = is_fcat-fieldname.
            is_fieldcat-ref_field = is_fcat-fieldname.
            is_fieldcat-ref_table = is_fcat-ref_tabname.
            APPEND is_fieldcat TO it_fieldcat.
       ENDLOOP.
    Create a new Table
    CALL METHOD cl_alv_table_create=>create_dynamic_table
           EXPORTING
            it_fieldcatalog = it_fieldcat
           IMPORTING
            ep_table        = new_table.
    Create a new Line with the same structure of the table.
    ASSIGN new_table->* TO <l_table>.
    CREATE DATA new_line LIKE LINE OF <l_table>.
    ASSIGN new_line->* TO <l_line>.
    Test it...
       DO 30 TIMES.
          ASSIGN COMPONENT 'SUBRC' OF STRUCTURE <l_line> TO <l_field>.
          <l_field> = sy-index.
          INSERT <l_line> INTO TABLE <l_table>.
       ENDDO.
       LOOP AT <l_table> ASSIGNING <l_line>.
          ASSIGN COMPONENT 'SUBRC' OF STRUCTURE <l_line> TO <l_field>.
          WRITE <l_field>.
       ENDLOOP.
    Thanks & regards
    Sreenivasulu P

  • Can not insert data to MS Access

    Hi All,
    I have create a table by manual in Access , in which I defined souch fields:
    SORTCODE(text type),FOODNAME(text type)..., and then I use follow statement to insert value :
    private DefaultTableModel model = new DefaultTableModel();
    Vector collectData = new Vector(50,20);
    String sqlStatement = "INSERT ������(SORTCODE,FOODNAME,MEASUREUNIT,QUANTITY,UNITPRICE,BUYDATE,SUPPLIER,BUYER,HOTELNUM,HOTELNAME,REMARK) VALUES (?,?,?,?,?,?,?,?,?,?,?)";
    try
    PreparedStatement insertData = dbConnection.prepareStatement(sqlStatement);
    for(int i=0;i<rowsFlag;i++)
    for(int j=1;j<cols;j++)
    collectData.add(model.getValueAt(i,j));
    insertData.setString(1,collectData.get(0).toString());
    int update = insertData.executeUpdate(); //an Exception throwed
    catch(Exception ex)
    ex.printStackTrace();
    when run the code , it always reports Access field not correct error , how to solve the problem ?

    Hi Liwei,
    Apart from what marych said, according to the code you posted, you are only supplying one value to your "PreparedStatement", namely:
    insertData.setString(1,collectData.get(0).toString());You need to supply eleven values (in total), since your "sqlStatement" contains eleven question-mark ("?") characters.
    Also note that if one of the values you supply is null, then you need to use the "setNull()" method (of "PreparedStatement") and not the "setString()" method.
    Hope this helps.
    Good Luck,
    Avi.

  • Process Flow - mapping not inserting data

    I have a process flow that executes three mappings in sequence i.e Map1 -> Map2 -> Map3.
    However, sometimes the process flow will execute and no data will be inserted by MAP2, other times it runs ok. If I run the mappings directly data is always inserted.
    The only workaround I've found is to add a WAIT of 10sec between Map1 and Map2 in the process flow.
    Has anyone come across anything like this and how did you work around or fix it?
    OWB 10.2.0.3 btw.
    Cheers
    Si
    PS. transitions are ok.

    Hi
    If you have any map inputs make sure they are also declared in the processflow map - you basicly need to bind them.
    You probably need to investigate from the beginning to understand your result of incoherent data.
    What I would to first is.
    1. Generete an intermediete code - choose your table as outgroup.
    2. Review the code - are there any loading hints ?
    3. Debug the map
    Check your locations.
    If everything seems right then the problem should lay on your workflow manager.
    Remember that the workflow manager has only one namespace, so watchout for mapping name. I had strange executions on my PF because one of my maps had a "½" in the name.
    Check the settings of the map - if you have enterd a set based run in your map and a row based run in the processflow.
    Remember the setting in the processflow is the "superior" one
    Just ideas what you can do.
    Cheers

  • Help please !!  Need to insert date automatically in form

    I have been trying unsuccessfully for a week to automatically
    capture today's date on a form. I can display a date on screen but
    it will not insert date into mySQL db. All other information is
    inserted as expected.
    Am I just whistling in dark? Is there no way to eliminate
    user input for the order date field?
    I have looked throughout the forums and no luck.
    Anyone have any ideas about how to do?
    Thanks,
    Dale :-)

    You can use a timestamp function within your MySQL table, but
    remember you can only use the timestamp function ONCE in a table.
    Using the timestamp Function:
    Set the field type to TIMESTAMP. You can also set the default
    to CURRENT_TIMESTAMP and the attributes to ON UPDATE
    CURRENT_TIMESTAMP if you want the timestamp to change when the
    record is updated.
    If you want to record times more than the one time you are
    using the timestamp and you are using PHP/MySQL or PHP/MySQL ADODB
    (InterAKT's PhAKT Extension), then try this:
    http://chuckomalley.net/help/insert_date_help.php
    That gets the time into the MySQL Database. Next thing you'll
    want to do is to have it display the time the way you want it. The
    default will display it as yyyy-mm-dd hh:mm:ss and you may not want
    it that way. To display it the way you want it try this:
    http://chuckomalley.net/help/display_formatted_date.php
    For the specific syntax on using this, refer to the online
    MySQL Manual and search for DATE_FORMAT() at
    http://dev.mysql.com/doc/mysql/en/index.html
    Cheers
    Chuck

  • Rec JDBC - data not inserted to DB

    Hi,
    In Proxy to JDBC scenario, data is not inserted to DB (Sqlserver).
    From proxy, xi could able to get data; in moni it is showing success flag. But data is not inserted to DB. Connectivity is there from XI to DB.
    We are using SP to insert the data.
    When checking in Message monitoring, it is showing as success but when checking in CC monitoring, the channel status is showing as Functioning. No other data is provided.
    Please share your ideas where it went wrong.
    Regards,
    Anil.

    Hi
    Ur target structure should be like this for SP - Is it the same?
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    http://help.sap.com/saphelp_erp2004/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
    Use asinput and type
    Instead of SP u can directly use the INSERT action and table name which will also serve the same purpose.
    chirag

  • Insert data 32K into a column of type LONG using the oracle server side jdbc driver

    Hi,
    I need to insert data of more than 32k into a
    column of type LONG.
    I use the following code:
    String s = "larger then 32K";
    PreparedStatement pstmt = dbcon.prepareStatement(
    "INSERT INTO TEST (LO) VALUES (?)");
    pstmt.setCharacterStream(1, new StringReader(s), s.length());
    pstmt.executeUpdate();
    dbcon.commit();
    If I use the "standard" oracle thin client driver from classes_12.zip ("jdbc:oracle:thin:@kn7:1521:kn7a") every thing is working fine. But if I use the oracle server side jdbc driver ("jdbc:default:connection:") I get the exception java.sql.SQLException:
    Datasize larger then max. datasize for this type: oracle.jdbc.kprb.KprbDBStatement@50f4f46c
    even if the string s exceeds a length of 32767 bytes.
    I'm afraid it has something to do with the 32K limitation in PL/SQL but in fact we do not use any PL/SQL code in this case.
    What can we do? Using LOB's is not an option because we have client software written in 3rd party 4gl language that is unable to handle LOB's.
    Any idea would be appreciated.
    Thomas Stiegler
    null

    In rdbms 8.1.7 "relnotes" folder, there is a "Readme_JDBC.txt" file (on win nt) stating
    Known Problems/Limitations In This Release
    <entries 1 through 3 omiited for brevity >
    4. The Server-side Internal Driver has the following limitation:
    - Data access for LONG and LONG RAW types is limited to 32K of
    data.

  • Can not insert/update data from table which is created from view

    Hi all
    I'm using Oracle database 11g
    I've created table from view as the following command:
    Create table table_new as select * from View_Old
    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)
    Anybody tell me, what's happend? cause?
    Thankyou
    thiensu
    Edited by: user8248216 on May 5, 2011 8:54 PM
    Edited by: user8248216 on May 5, 2011 8:55 PM

    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)so what is wrong with the GUI tools & why posting to DATABASE forum when that works OK?

Maybe you are looking for

  • How can I install CS6 Production Premium upgrade without re-installing CS5.5?

    I need to reinstall Adobe Creative Suite CS6 Production Premium on my OSX 10.9.5 (Mavericks). I bought CS6 as an upgrade to my CS5.5. I can't reinstall CS5.5 because it doesn't seem to be supported on the new OSX (the installer won't run). CS6 seems

  • Mat.is in unrestrictd status in MMBE but its not showin in vl10i unrestrctd

    Hello Experts, we are facing a very strange issue. we have material in an unrestricted status in MMBE - but it is not showing in unrestricted in VL10I .  This was not picked and shipped due to this issue. Suppose i am making Sales order for make to o

  • MOVED: Problem with changing 1333 to 1600

    This topic has been moved to Overclockers & Modding Corner. https://forum-en.msi.com/index.php?topic=142224.0

  • Mavericks install problems - repeatable

    I have attempted to install Mavericks on my iMac 7,1 twice now with the same result.  The software will download and install until the progress bar reaches one minute, at which point it may take 5-15 minutes to complete.  Following that the system re

  • Front Row refusing to load trailers

    I've never had a problem with front row, but for the first time in a few weeks I thought i'd browse the trailers only to find that front row just stalled on the "loading theatrical trailer" screen. Itunes movie and tv show trailers load without issue