Updating VARRAYs usin PrepareStatement

I have the folling code:
// Read array from recordset
ARRAY x =
ttProvider.rs.getARRAY( ttProvider.X );
String b[] = (String[])x.getArray();
My problem is that I want to use the OraclePrepereStatement.setARRAY(index, ARRAY) but I dont know how to manipulate the ARRAY type. There is no setArray method.
Please respond asap.
Claus Christensen, Autocom Aps
null

i went through a lot of that wiki article but it
didnt tell me how i can make 1. im using a derby
database
http://db.apache.org/derby/docs/10.2/ref/rrefsqlj37836.html
That a good life lesson as well. The Wiki article was the general background,
but if you want specific information about product X, consider reading
the documentation for product X.

Similar Messages

  • ClassCastException in updateClob

    Hi there!
    I've a Weblogic 8.1 Server running my application. That server has a DataBase connection pool to an oracle database.
    I changed the jdbc driver of the server to ojdbc14.jar
    My client is calling a session bean that gives access to the serverside DataAccessObject.
    In that DAO I try to update a clob in the database.
    The code looks like that:
        private void updateFilter(ScenarioSsimFile file, Connection con)
                throws COSMASystemException, SQLException,
                NoImplementationException, SerializerException {
            PreparedStatement ps = null;
            ResultSet rs = null;
            ObjectTransformer trans = ObjectTransformerFactory.getInstance()
                    .getImplementation();
            con.setAutoCommit(false);
            String query = "UPDATE " + FileTable.NAME + " SET "
                    + FileTable.FILTER_SETTING + " = EMPTY_CLOB() WHERE "
                    + FileTable.FILE_KEY + " = " + file.getMetaData().getKey();
            ps = con.prepareStatement(query);
            ps.executeUpdate();
            ps.close();
            con.commit();
            query = "SELECT " + FileTable.FILTER_SETTING + " FROM "
                    + FileTable.NAME + " WHERE " + FileTable.FILE_KEY + " = "
                    + file.getMetaData().getKey() + " FOR UPDATE";
            ps = con.prepareStatement(query, ResultSet.TYPE_FORWARD_ONLY,
                    ResultSet.CONCUR_UPDATABLE);
            rs = ps.executeQuery();
            if (rs.next()) {
                // OracleResultSet ors = (OracleResultSet) rs;
                // CLOB clob = ors.getCLOB(FileTable.FILTER_SETTING);
                Clob clob = rs.getClob(FileTable.FILTER_SETTING);
                Writer w = clob.setCharacterStream(0);
                trans.serialize(file.getFilter(), new StreamResult(w));
                rs.updateClob(FileTable.FILTER_SETTING, clob);
                // rs.updateClob(6, clob);
                rs.updateRow();
            con.commit();
            con.setAutoCommit(true);
            rs.close();
            ps.close();
        }I tried to use oracle objects and java objects but both leads to a classCastException:
    [exception]
    Caused by: java.lang.ClassCastException
         at oracle.jdbc.driver.UpdatableResultSet.updateClob(UpdatableResultSet.java:1912)
         at oracle.jdbc.driver.OracleResultSet.updateClob(OracleResultSet.java:1246)
         at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_UpdatableResultSet.updateClob(Unknown Source)
         at com.lsy.cosma.common.scenariohandler.persistency.ScenarioSsimFileDAOImpl.updateFilter(ScenarioSsimFileDAOImpl.java:392)
         at com.lsy.cosma.common.scenariohandler.persistency.ScenarioSsimFileDAOImpl.update(ScenarioSsimFileDAOImpl.java:289)
         at com.lsy.cosma.scenariohandler.SsimFileDataAccessBean.updateSsimFile(SsimFileDataAccessBean.java:119)
         at com.lsy.cosma.scenariohandler.SsimFileDataAccessBean_m187jw_EOImpl.updateSsimFile(SsimFileDataAccessBean_m187jw_EOImpl.java:202)
    [exception]
    Does anybody know if that is a well known ORA bug or a mistake of my code?
    Does any workaround exist?
    Greetings
    Marcel

    I could fix the problem with the help of a coleague.
    The solution is to simply avoid the updateClob method.
    just close the writer and everything will work fine!
            if (rs.next()) {
                Clob clob = rs.getClob(FileTable.FILTER_SETTING);
                Writer w = clob.setCharacterStream(0);
                trans.serialize(file.getFilter(), new StreamResult(w));
                w.close();
    //            rs.updateClob(FileTable.FILTER_SETTING, clob);
    //            rs.updateRow();

  • Cannot enable auto commit within JTS using websphere

    i suddenly encountered some exceptions like this yet the process seems to be ok. i am pretty new to websphere, help please:
    java.lang.IllegalStateException: Cannot enable auto commit within JTS transaction
         at com.ibm.ejs.cm.pool.ConnectO.setAutoCommit(ConnectO.java:2085)
         at com.ibm.ejs.cm.proxy.ConnectionProxy.setAutoCommit(ConnectionProxy.java:594)

    I'm setting autoCommit to false in some of my code and it works. Here is the example:
    //This code works for the Oracle Thin Driver
                   conn.setAutoCommit(false); // <- required!
                 // initialize LOB reference
                 GDate curDate = new GDate();
                 ps = conn.prepareStatement("insert into Calculated_Rate_Import values (empty_clob(), ?)");
                 //conn.createStatement().executeUpdate("insert into Calculated_Rate_Import values (empty_clob(), TO_DATE('" + GDate.getSafeSqlDate(curDate) + "'))");
                 ps.setTimestamp(1, GDate.getSafeTimestamp(curDate));
                 ps.executeUpdate();
                 ps = conn.prepareStatement("select Calculated_Rate_Import from Calculated_Rate_Import where Import_Date = ? for update");
                 ps.setTimestamp(1, GDate.getSafeTimestamp(curDate));
                   results = ps.executeQuery();
                 results.next();
                 // get lob reference from write lock
                     //oracle.sql.CLOB clob = ((oracle.jdbc.driver.OracleResultSet)results).getCLOB(1);
                   oracle.sql.CLOB clob = (oracle.sql.CLOB)results.getClob("Calculated_Rate_Import");
                 // create statement for update
                 ps = conn.prepareStatement("update Calculated_Rate_Import set Calculated_Rate_Import = ? where Import_Date = ?");
                 // stream data into lob
                 java.io.OutputStream os = ((oracle.sql.CLOB)clob).getAsciiOutputStream();
                 try{
                      os.write(fileContents.getBytes());
                           os.close();
                 }catch(IOException e){
                      e.printStackTrace();
                 // execute update
                 //((oracle.jdbc.driver.OraclePreparedStatement)ps3).setCLOB(1, clob);
                 ps.setClob(1, clob);
                 ps.setTimestamp(2, GDate.getSafeTimestamp(curDate));
                 ps.executeUpdate();
                 // close lock
                 results.close();
                 conn.commit();
                 //finished inserting CLOB
                 //set the auto commit back to true, required!
                   conn.setAutoCommit(true);

  • Problem inserting into tables

    Hello All, I hope that someone out there may be able to shed some light on my problem!!
    I have developed a series of JSP pages for my web site (using Tomcat 4.1)to allow a Customer to register themselves with the site. I have developed 3 corresponding JavaBeans to hold the details that the customer enters; a Customer bean, an Address bean and a Payment bean. In my database (MySQL) i have tables corresponding to each of these beans, which simply take the data inserted into a field by the user and create a new instance of each.
    Now, the above is all working fine and the database tables populate themselves exactly as they should; however, to allow a customer to add more than one address, or more than one payment method, I have developed the relationship tables 'hasaddress' and 'haspaymentdetails' to store the relevant id numbers in the database (i.e. hasaddress stores a customerid from the customer bean and an addressid from the address bean).
    Finally, i get round to my question!!..
    I am using the following jsp code to insert data into one such table:
    <------------------------------------------------------------------->
    <jsp:useBean id="registration" class="projectBeans.RegistrationBean" scope="session"/>
    //set the connection
    registration.setConnection(c);
    //retrieve the customer attribute
    projectBeans.Customer customer = (projectBeans.Customer)session.getAttribute("newCust");
    //retrieve the address attribute
    projectBeans.AddressBean address = (projectBeans.AddressBean)session.getAttribute("newAddr");
    //use the addCustomer method in the bean to create a new customer     
    registration.addCustomer(customer);
    //ditto for address
    registration.addAddressDetails(address);
    //populate the hasaddress table with the correct ids
    String table = "hasaddress";
    int customerid = customer.getCustomerId();
    int addressid = address.getAddressId();
    registration.updateRelationship(table, customerid, addressid);Both the addCustomer and addAddressDetail methods work fine, so below is just the code for updateRelationship method in the registrationBean:
    public void updateRelationship(String table, int id1, int id2) throws SQLException
       sta = c.prepareStatement("INSERT INTO "+table +" VALUES(?,?)");
       sta.setInt(1, id1);
       sta.setInt(2, id2);
       sta.executeUpdate();
    }I would expect this method to retrieve the newly assigned customer and address ids and enter them into the hasaddress table; however, when the page compiles and i look at the table it enters 0 for each of the fields (when it should, for example be entering 14 and 16):
    ----------+
    | cid | aid |
    ----------+
    | 0 | 0 |
    ----------+
    so my question is: does anyone have an idea as to why this is happening, or what may be wrong with my code for this to occur?
    Alternatively, am i being dumb and is there some way of getting MySql to handle the updates to the relationship table internally?
    Thanks in advance for any ideas,
    Cheers

    Try to specify you database field as SQL need field names to do updating
    sta = c.prepareStatement("INSERT INTO "+table + "("+ id1+","+id2+ ")"+ VALUES(?,?)");

  • ClassCastException when inserting CLOB

    Hi
    I am trying to insert into a CLOB column. The method works fine when run standalone but when I use it inside weblogic 8.1 it throws ClassCastException.
    sql="select XML_MSG from MSG_IN where MSG_ID=? for update";
    pstmt=conn.prepareStatement(sql); pstmt.setString(1,msgid);
    rs=pstmt.executeQuery();
    if(rs.next()){
    Clob xmlClob=rs.getClob(1);
    Writer clobWriter = ((oracle.sql.CLOB)(xmlClob).getCharacterOutputStream();
    // Last line throwing Class Cast Exception
    clobWriter.write(string);
    clobWriter.flush();
    clobWriter.close();
    Appreciate any pointers. Thanks

    Hi,
    I have the same problem.
    I'm using the java.sql.clob instead of oracle.*.CLOB.
    This works, but I think it is very much slower the the Oracle class.
    Therefore I wanted to run a test with the oracle CLOB -
    ClassCastException.
    I've an external file which is using CLOB - this works?!?!?
    If you are interested in an java.sql.clob implementation, ask me.
    If you have a solution for the classCastException - please tell me!
    Greetings Marcel

  • Updating one varray  column in a table

    Hi ,
    We are using 10gR2 on AIX . I have one varray column in a table which has be updated ..To update this column , data is fetched in a query by using 2 tables.Is there any way to reduce the update time?
    Edited by: Minu on 25-Apr-2011 20:24

    HOW TO: Post a SQL statement tuning request - template posting

  • Update of varray columns

    Hi all,
    Can I update a varray column.Oracle version we are using is 9.2.0.8.
    In the below given table structure and sample data, in second insert statement, email column is having null values.In the actual table we have around 200 - 300 columns where email value is null, i want update those columns where email is null.Is it possible to update only one column in a varray column.
    CREATE TABLE XXEACCESS_IMPL
    ( REQUEST_ID VARCHAR2(20 BYTE),
    STATUS CHAR(1 BYTE),
    SYSTEM_IMPL VARCHAR2(50 BYTE),
    ART_REQUEST_ID NUMBER,
    CALL_DATA WF_PARAMETER_LIST_T,
    LAST_UPDATED_DATE DATE DEFAULT sysdate);
    CREATE OR REPLACE type SCOTT.WF_PARAMETER_T as object
    ( NAME VARCHAR2(30), VALUE VARCHAR2(2000),
    MEMBER FUNCTION getName return varchar2,
    MEMBER FUNCTION getValue return varchar2,
    MEMBER PROCEDURE setName (pName in varchar2),
    MEMBER PROCEDURE setValue(pValue in varchar2));
    CREATE OR REPLACE
    type body SCOTT.WF_PARAMETER_T as
    MEMBER FUNCTION getName return varchar2 is
    begin
    return name;
    end getName;
    MEMBER FUNCTION getValue return varchar2 is
    begin
    return value;
    end getValue;
    MEMBER PROCEDURE setName(pName in varchar2) is
    begin
    name := pName;
    end setName;
    MEMBER PROCEDURE setValue(pValue in varchar2) is
    begin
    value := pValue;
    end setValue;
    end;
    Insert into XXEACCESS_IMPL
    (REQUEST_ID, STATUS, SYSTEM_IMPL, ART_REQUEST_ID, CALL_DATA, LAST_UPDATED_DATE)
    Values ('EA39050', 'Y', 'CONTACT_MANAGEMENT_REQUEST', 27084, wf_parameter_list_t(
    wf_parameter_t('EMAIL', '[email protected]'), wf_parameter_t('DOMICILE', 'US')), TO_DATE('05/03/2006 16:45:18', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into XXEACCESS_IMPL
    (REQUEST_ID, STATUS, SYSTEM_IMPL, ART_REQUEST_ID, CALL_DATA, LAST_UPDATED_DATE)
    Values
    ('EA39045', 'Y', 'CREATE_ACCOUNT', 27089,
    wf_parameter_list_t(
    wf_parameter_t('EMAIL',''),WF_PARAMETER_T('DOMICILE','US')),
    TO_DATE('05/03/2006 17:13:08', 'MM/DD/YYYY HH24:MI:SS'));
    Please help me in this regard.
    Thanks
    Raghu

    You can use this statement:
    UPDATE xxeaccess_impl x
       SET call_data =
           CAST (MULTISET (SELECT CASE WHEN temp_tab.name = 'EMAIL' AND temp_tab.value IS NULL THEN
    wf_parameter_t ('EMAIL', '[email protected]')
    ELSE
    VALUE (temp_tab)
    END CASE
                             FROM TABLE (SELECT call_data
                                           FROM xxeaccess_impl
                                          WHERE x.ROWID = ROWID
                                         ) temp_tab
                 AS wf_parameter_list_t
                );But, better way is to use PL/SQL: retrieve the entire varray, update its elements, and then store the changed varray back in the database.
    Regards,
    Zlatko

  • HT4623 Here's the thing guys. I want to update my iphone 5 from 6.1.4 to ios7 using OTA. I have backed up on icloud. I just want to know that if i update then will all the music stored on my iphone will stay there after update or do i hav to sync it usin

    I want to update my iphone from 6.1.4 to ios7 using OTA but i'm not sure if my content will stay in the phone after the update especially the music cuz rest of it is backed up on icloud.

    Updating is not suppose to wipe any media or apps.
    It may happen because sometimes things just go wrong.
    I would back everything up first.

  • Error while installing Device Software Update usin...

    I have installed Nokia Suite 3.2.100 on my Win XP-SP3 machine.
    Upon signing in, Nokia Suite indicated that I have an update available for my device (Nokia N8-00 running Symbian Anna, Type RM-596).
    The application available for update was Nokia Maps - with enhanced Drive navigation ver. 3.8.105.
    When I tried to install, I get the following error message : "Something's Gone Wrong - There was a problem with the software update service".
    The error message further suggests that if the problem persists, I should uninstall Nokia Suite and and download the latest version.
    Nokia Suite is otherwise working perfectly fine for me and I believe ver 3.2.100 is the latest version.
    Do I still need to uninstall Nokia Suite and reinstall again. Could you please help me with this.
    Thanks and regards.

    3.2.100 is the latest, so you cannot update it. Are you able to see the same app on your phone update section? You can also try from there.
    If the problem still occurs with some other app, you can try to repair the Nokia Suite and PC connectivity solution installation from Programs list of Windows.

  • Fire fox 14 is crashing every 15 minutes. Usining win7 .This is after updating from FF13. require a solution.

    FF14 is crashing randomly after every 15 minutes. Is this problem a general problem after updating from FF13. All plugins are up to date. No virus on system. Does any one have any solutions?
    Thanks

    More information, from the crash report for the first Crash ID listed in "More system details":
    https://crash-stats.mozilla.com/report/index/63e76a0f-b807-4eab-a83c-4d14c2120719 Firefox 14.0.1 Crash Report [@ StrChrIA ]
    .....the crash report links to a related bug,
    [https://bugzilla.mozilla.org/show_bug.cgi?id=530074
    Bug 530074 - Crash [@ StrChrIA ] from winsock and shlwapi.dll (LSP, evil *x86.dll module, or BitDefender)]
    So, your crash seems to be related to Bit Defender antivirus software or one if its components (BdProvider.dll). I did a google search and according to [http://systemexplorer.net/filereviews.php?fid=11324853 this page], the file BdProvider.dll is the Bitdefender parental provider plugin.
    If Firefox no longer crashes when you [[Safe Mode|restart with add-ons disabled]], look in the Firefox Add-ons Extensions list for any BitDefender add-on and disable it (see [[Disable or remove add-ons]] for details), then restart Firefox to see if the crashes stop.
    You could also contact BitDefender support or ask for help on the [http://forum.bitdefender.com BitDefender forums].

  • Not able to update Nokia X2-02 phone software usin...

    I have got a Nokia X2-02. Since past six months I am trying to update the software of my phone using Nokia PC Suite, Nokia Suite and Nokia Software Updater. But its not working. This problem started when I updated my Windows 7 to Windows 8.
    Attached is a PDF file with screen shots of the error messages.
    Please help me out.
    Attachments:
    Nokia software not updating.pdf ‏504 KB

    You don't mention whether 32 or 64-bit but have no issues with any Nokia Software using Windows 8 Pro on 64-bit machine. Nokia Suite should certainly be compatible as here: http://www.nokia.com/ng-en/support/product/x2-02/
    Once a Nokia software installation goes wrong it can take a lot of sorting out sometimes necessitating removing redundant key entries in registry and may be quicker to try to get access to another PC.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Runtime error while updating entries of infotype usin HR_INFOTYPE_OPERATION

    Hi,
    I uploading entries of customized infotype using HR_INFOTYPE_OPERATION function module.
    It is giving me run-time error as,
    ShrtText
        An exception that could not be caught occurred.
    What happened?
        The exception 'CX_HRPA_VIOLATED_PRECONDITION' was raised but was not caught at
         any stage in the
        call hierarchy.
        Since exceptions represent error situations, and since the system could
        not react adequately to this error, the current program,
         'CL_HRPA_INFOTYPE_FACTORY======CP', had to
        be terminated.

    Hi,
    Refer to this link..Re: CX_HRPA_VIOLATED_PRECONDITION using HR_INFOTYPE_OPERATION to insert rec

  • I'm usin windows XP nd i updated firefox 13.0.1 version on tat i day i dwnloaded a file after tat my firefox is nt opennin and my other browers r also nt wrk?

    my mozilla firefox and other browsers are not working please help me

    Which file did you download?
    See also:
    *http://kb.mozillazine.org/Browser_will_not_start_up
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    You can use one of these to start Firefox in <u>Safe mode</u>:
    *Help > Restart with Add-ons Disabled
    *On Windows, hold down the Shift key while starting Firefox with a double-click on the Firefox desktop shortcut
    *On Mac, hold down the Options key while starting Firefox
    *https://support.mozilla.org/kb/Safe+Mode

  • Query update on each iteration problem (MS SQL Sever / ODBC / Native Driver

    Hello,
    I�ve been working to learn some Java and now JDBC over the past 10 or so months.
    I think I have a general understanding of how to perform queries and work with data using JDBC. However, I�ve run into a problem. I�m trying to do a query of a set of data in a database based on the value of a status column. I want to loop over the messages and perform various functions with the data then update their status in the database. It�s preferable to do these 250 to 1000 rows at a time, but no more and no less.
    I�m connecting to MS SQL Server 2000, currently with ODBC. I�ve also tried it with the Java SQL Server 2000 drivers provided by Microsoft with the same results.
    I�ve found that I can do a one table query and loop though it with a while (rs.next()) {�} and run an Update statement with executeUpdate on each iteration without any problems, no matter the number of rows returned in query.
    I have not been able to use the updateString and updateRow inside the while loop. I keep getting errors like this at the line with the updateRow():
    Exception in thread "main" java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Row update failed.
    This occurs no mater how many rows I select, 1 or more.
    The real problem I�ve been having is that the query I need to loop though joins across several tables and returns some rows from some of those tables. This only seems to work when I query for 38 or less selected rows and I use an Update statement with executeUpdate on each iteration. The updateString and updateRow methods never work. Any number of rows selected greater than 38 causes a deadlock where the Update is waiting for the select to compete on the server and the Update can�t proceed until the Select is complete.
    As I stated above I�ve tried both ODBC and the native SQL Server driver with the same results. I have not tried any other databases, but that�s moot as my data is already in MS SQL.
    Questions:
    How can I avoid or get around this 38 row limit without selecting each row, one at a time?
    What am I doing wrong with the updateString and updateRow?
    Is there a better approach that anyone can suggest?
    Here�s some sample code with the problem:
    import java.sql.*;
    public class db1{
         public static void main(String[] args) throws Exception{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              String url = "jdbc:odbc:eBrochure_live";
              Connection con = DriverManager.getConnection(url, "sa", "d3v3l0p");
              Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
              Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://dcm613u2\\dcm613u2_dev:1433", "sa", "d3v3l0p");
              Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
              Statement stmt2 = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
              stmt.executeUpdate("USE [myDatabase]");
              stmt2.executeUpdate("USE [myDatabase]");
              String qGetMessages = "SELECT TOP 250 t1.messageUUID, t1.subjectHeader, t2.emailAddress as toAddress " +
              "FROM APP_Messages as t1 JOIN APP_addressBook_contacts as t2 " +
              "     On t1.toContactID = t2.contactID " +
              "WHERE t1.statusID = 'queued'";
              ResultSet rs = stmt.executeQuery(qGetMessages);
              while (rs.next()) {
                   String messageUUID = rs.getString("messageUUID");
                   String subjectHeader = rs.getString("subjectHeader");
                   System.out.println(messageUUID + " " + subjectHeader);
                   String updateString = "UPDATE APP_Messages " +
                        "SET statusID = 'sent' " +
                        "WHERE messageUUID = '" + messageUUID + "' ";
                   stmt2.executeUpdate(updateString);
              con.close();
    Thanks for the help,
    Doug Hughes

    // sorry, ps.close() should be outside of if condition
    String sql = "UPDATE APP_Messages SET statusID = 'sent' WHERE messageUUID = ?";
    Statement statement = con.createStatement();
    PreparedStatement ps = con.prepareStatement(sql);
    ResultSet rs = statement.executeQuery("your select SQL");
    if ( rs.next() )
    ps.clearParameters();
    ps.setString(1, rs.getString("your column name"));
    ps.executeUpdate();
    ps.close();
    rs.close();
    statement.close();

  • ORA-01002-Error in Select ... for update

    I would like to insert CLOB in a table (VP_EVENTS) with a primary key (eventid) with the following code:
    String content = "AAAAAAAAAAAAABBBBBBBBBBXXX";
    PreparedStatement cs = this.con.prepareStatement("INSERT INTO vp_events (eventid,term,participant)
    VALUES (?,?,empty_clob())");
    //Register IN-Parameter
    cs.setInt(1, 1);
    cs.setInt(2, 1);
    cs.setTimestamp(3, new java.sql.Timestamp( System.currentTimeMillis() ));
    //Execute statement
    cs.execute();
    cs.close();
    Statement stmt = con.createStatement();
    ResultSet clobLocatorSet = stmt.executeQuery( "SELECT PARTICIPANT FROM VP_EVENTS WHERE EVENTID=1 FOR UPDATE");
    // Get the CLOB-locator
    if (clobLocatorSet.next())
    oracle.sql.CLOB clob =
    ((oracle.jdbc.driver.OracleResultSet)
    clobLocatorSet).getCLOB(1);
    // Write CLOB-Data
    // The first parameter to plsql_write, is // the offset from which to start
    // writing, and the second parameter is the // data to be written.
    // plsql_length(), returns the length of // the data in the CLOB column
    countCLOB = clob.plsql_write(
    0,content.toCharArray());
    At the execution-point of the "Select for Update"-statement the oracle thin driver throws the Error "Fetch out of sequence ORA-01002".
    What's wrong?

    Connection conn = DriverManager.getConnection ("jdbc racle:thin:@myhost:1521:ORCL","scott", "tiger");
    conn.setAutoCommit(false);
    Statement stmt = conn.createStatement ();
    null

Maybe you are looking for

  • Urgent SAP upgrade from 4.0B to 4.7 Oracle 9.2.0.6

    Dear support, I have upgraded my oracle database to 8.1.7.4 with 4.0B extended kernel along with upgradation from NT 4.0 to Win 2000 is finished , and we are planning to upgrade SAP to 4.7 version.Please let me know whether i need to upgrade my datab

  • How to integrate E-Business R12 with MS LDAP

    Hi experts, What components are required to integrate Microsoft LDAP for E-Business Suite R12 user authentication? We can do that with only OID? Regards, Hai Mai

  • Reader enabled portfolio problem

    Hi I have created a form in Adobe LiveCycle Designer which I have reader enabled in Acrobat.  I have tested the form in Reader and all the 'enabled' functions work. The problem is when I place the form into an Acrobat portfolio the form will not carr

  • Fn Keys command not showing on screen

    Before whenever I press Fn+Esc, the camera logo being turned on and off is showing on the lower most side of the right screen, now it's not and even the other Fn commands such as the volume, brightness and others aren't showing anymore, but the comma

  • How to assign Batch jobs ..........

    Hi, I want to know as to how can i assign Batch Jobs to different plants and in by which Tcodes can I see the programs of the Batch jobs. Thanks