How to release row lock by using jdbc

hi, currently we are using jdbc to create a connection and create a row lock , is there anyway to release the row lock? right now i am using resultset.close(), but this cause me problem since it release other resultset's row lock too. please help.

hi, from your post, i understood that u know how to do row locking..
How was it done ??
I'm currently looking for answer to do row locking in Microsoft Access...
These are the SQL stmt i've done without success..
SELECT * FROM BSPerson WITH UPDLOCK WHERE ID = 'P001';
SELECT * FROM BSPerson WHERE ID = 'P001' FOR UPDATE;
Both stmt having error........
Please help !
A miliion thanks....

Similar Messages

  • How to eliminate inserting  Duplicate rows into database using JDBC Adapter

    File->Xi->JDBC
    In above Scenario if the file has two rows their values are identical, then how can we eliminated inserting  Duplicate rows into database using JDBC Adapter

    Database is a consumer of a SERVICE (SOA!!!!!!).
    Database plays a business system role here!!!!
    Mapping is part of an ESB service
    Adaptor is a technology adapted to ESB framework to support specific protocol.
    ESB accomplish ESB duties such as transformation, translation, routing. Routing use a protocol accepted by the consumer. In a JDBC consumer it is JDBC protocol and hence it a JDBC adaptor.
    There is clear separation on responsibilities among business system and ESB. ESB do not participate in business decision or try to get into business system data layer.
    So who ever are asking people to check duplicate check as part of mapping (an ESB service) may not understand integration practice.
    Please use an adaptor module which will execute the duplicate check with business system in a plug and play approach and separate that from ESB service so that people can build integration using AGILE approach.
    Thanks

  • How many messsages can we insert using JDBC receiver adapter in to DB

    Hi Friends,
    We are having 30 JDBC receiver interfaces in my current implementation project; load of JDBC receiver interfaces was 50 k messages per day and Performing only INSERT operation on data base.
    We have created individual communication channel for every JDBC receiver interface and max concurrency value set in CC was 5.
    Now we are testing all interfaces in quality with all possible cases, but we found that JDBC receiver adapter unable to process 50 k messages per day, we are on PI 7.1 EHP1 SP7.
    Please share your experiences with JDBC adapter receiver like per day how many messages we can transfer.
    Thanks a Ton,
    Raj

    Raja Sekhar Reddy T wrote:
    we are processing 50 k individual messages.
    >
    > I have increased max threads for JDBC receiver to 20 but no luck same rate only . My questions here is how many messages we can trasfer using JDBC receiver adapter?
    >
    > Regards,
    > Raj
    Hi raj,
    I have seen some interfaces that deal with upload of 5000 rows at a rime.. I don't there will be a restriction in the no of messages that can be transferred using the JDBC adapter as such  unless until the requirement is so para-normal and in your case it is not
    Kind regards
    XA

  • Plug_in:how to unlock a locked document use acrobat API

    how to unlock a locked document use acrobat API.in acrobat plug_in

    how to unlock a locked document use acrobat API.in acrobat plug_in(Which API can enter a password to unlock the locked document)

  • How to add rows in tableview using javascipt

    Hi
    I had tableview and button in my page.If i click on the button one new row should be appended to the existing tableview.
    so , how to add rows in tableview using javascipt which are editable?
    Regards,
    Pydi.

    Hi,
      Javascript is client scripting language, which is mainly used for validations at the client side.
      To add new row using a HTMLB tag ucannot use javascript. Instead pass "visibleRowCount" variable to a abap variable and add the variable on every button click.. that wil increase the visible row count.
    Also the size of the table view is the size of the itnernal table, so append a blank like to the internal table or insert it at the top.
    If you are not using HTMLB tags and using simple HTML tags u can always add a row using java script.
    Regards
    Imran.

  • How to connect Sql Server 2000 using JDBC ODBC Driver

    How to connect Sql Server 2000 using JDBC ODBC Driver ?
    plz Send Syntax.
    thanks

    In SQL Server 2000 the driver class is com.microsoft.jdbc.sqlserver.SQLServerDriver
    The connection URL for the default SQL Server 2000 database is jdbc:sqlserver://localhost:1433
    Class.forName(
      "com.microsoft.sqlserver.jdbc.
      SQLServerDriver");
    String url =
      "jdbc:sqlserver://localhost:1433";
    Connection conn = DriverManager.
      getConnection(
      url, "sa", "sqlserver");

  • How to handle the BOLB column Using JDBC adapter

    Hi,
      I want to sending of a BOLB column from a DB2 database table to another DB2 database, and the sender and receiver both by using JDBC adapter. The two tables in each other database have the same columns.
      Here is the table's structure:
      <ID>string type</ID>
      <PDF>blob type</PDF>
      Also, i haved create two DataTypes in PI system.
      Sender DataType:
      ns:DT_PDF_Req xmlns:ns="http://XXXXX.com/sap/xi">
       <row>
         <ID>1</ID>
         <PDF></PDF>
       </row>
      </ns:DT_PDF_Req>
      Receiver DataType:
      <ns0:DT_PDF_Res xmlns:ns0="http://XXXX.com/sap/xi">
      <STMT>
      <dbtable action="INSERT">
      <table>tablename</table>
      <access>
       <ID></ID>
       <PDF></PDF>
      </access>
      </dbtable>
      </STMT>
      </ns0:DT_PDF_Res>
    When test this interface, i found the that we can get the data, but when execute the insert stms  the follow errors occured  in RWB :
    <ERROR>
    Could not execute statement for table/stored proc. "DBDPUSER.pdf" (structure "STMT") due to com.ibm.db2.jcc.b.nm: DB2 SQL Error: SQLCODE=-103, SQLSTATE=42604, SQLERRMC=255044462d312e330a25c7ec8fa20a352030206f626a0a3c3c2f4c656e677468203620, DRIVER=3.50.153
    JDBC Message processing failed, due to Error processing request in sax parser: Error when executing statement for table/stored proc. 'DBDPUSER.pdf' (structure 'STMT'): com.ibm.db2.jcc.b.nm: DB2 SQL Error: SQLCODE=-103, SQLSTATE=42604, SQLERRMC=255044462d312e330a25c7ec8fa20a352030206f626a0a3c3c2f4c656e677468203620, DRIVER=3.50.153
    </ERROR>
    Can anybody tell me how to resolve the problems?
    And tell me about how to deal BOLB column using PI.
    Best Regards
    Terry

    Hi Terry Qin,
    I understand, you are getting below XML from sender JDBC channel. But when you getting SAX parser error, in receiver JDBC.
    <ns:DT_PDF_Req xmlns:ns="http://XXXXX.com/sap/xi">
    <row>
    <ID>1</ID>
    <PDF></PDF>
    </row>
    </ns:DT_PDF_Req>
    I think it is because the XML which is going to receiver JDBC channel is not well formed (because pdf can containg < & characters).
    You can achive this sceanrio, by selecting receiver JDBC channel as Message Protocol "Native SQL Format" [Link1|http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7c24a75cf83672e10000000a114a6b/frameset.htm] you can send non XML to receiver channel.
    Before that, you have convert above input XML into SQL statement, using Java Mapping.
    Regards,
    Raghu_Vamsee

  • How to get columns comments metadata using JDBC

    I want to get the columns comments metadata using JDBC, I tried using the OracleMetaDataObject but failed. Looks like the OracleMetaDataObject API does not support it using the latest ojdbc6.jar driver as well. Please help. I need to display the column comments to the users in a J2ee application.

    Duplicate, locking.

  • How to implement row level security using external tables

    Hi All Gurus/ Masters,
    I want to implement row level security using external tables, as I'm not sure how to implement that. and I'm aware of using it by RPD level authentication.
    I can use a filter condition in my user level so that he can access his data only.
    But when i have 4 tables in external tables
    users
    groups
    usergroups
    webgrups
    Then in which table I need to give the filter conditions..
    Pl let me know this ...

    You pull the Group into a repository variable using a session variable init block, then reference that variable in the data filters either in the LTS directly or in the security management as Filters. You reference it with the syntax VALUEOF("NQ_SESSION.Variable Name")
    Hope this helps

  • How to measure PLL lock time using LabView?

    Hi.
    I have to measure PLL, especially PLL lock time, using LabView.
    How can I do it?
    Is there is some dedicated LabView Toolkit that can do PLL lock time measurement?
    Thanks :-)

    Hi Igor,
    you want to measure the time it takes the PLL to lock in to a change in the source frequency?
    So you need to measure the frequency and you need to know the state of the PLL. Then you can calculate the time the PLL needs to work.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to release  transaction lock on a table

    Dear
    can you please let me konw how to release a transaction lock on a table.
    thanks
    VIJAY

    I thought of a more traditional method
    http://www.stephstuff.com/esafe/images/ouch2.gif
    Laurent, You've read my mind :) or vice-versa

  • How to Insert all Records together using JDBC Receiver Adapter.

    Hi,
    Suppose, I have to send 5 records and from R/3
    (using client Proxy) using XI and insert/update all these records in a database.
    In case I want to update all the 5 records else mark it as fail and return the response synchronously to R/3, what should be my approach?
    Can we do it using native sql querries, if yes could you plese tell me how to do so.
    I have never used native sql queries.
    Thanks in advance.
    Regards
    Pushkar

    hi,
    >>>>Can we do it using native sql querries, if yes could you plese tell me how to do so.
    why don't use use standard jdbc adapter and standard jdbc document formats?
    the sync jdbc call will return the number of affected /deleted rows
    Regards,
    michal

  • How to release table locks?

    I was running Data Services (4.0 SP2) to load data into Hana (1.0 SP2 patch 20) using the Bulk load option. Apparently, the DS process hung and now the table I was writing to is locked although the DS Job is dead. How do you release the table lock without restarting Hana DB?

    Hello Sachin,
    you could try these statements. The first one will cancel the currently executed operation, the second one will disconnect the idle session:
    ALTER SYSTEM CANCEL SESSION session_id;
    ALTER SYSTEM DISCONNECT SESSION session_id;
    Regards,
    Mark

  • How to release FSG reports without using Program - FSG Transfer across a database link

    Hi,
    Our project development team have built some reports to meet the requirements of the business customer using Financials Statement Generator (FSG) as part of an implementation of Oracle E-Business Suite (EBS) release 12.1.3.
    We know we can use the Program - FSG Transfer across a database link to move the reports from development to another environment.
    Oracle General Ledger User's Guide
    Copying Report Objects From Another database (FSG Transfer Program)
    http://docs.oracle.com/cd/E18727_01/doc.121/e13627/T312864T313620.htm#I_tx2Dfsgx2Dimpex78
    However our production environment is on a different network. Therefore this solution will not work since a database link cannot be created from production to the non production databases. Obviously I am asking the network solution architects to consider how to join the networks but do'nt hold out much hope. Has anyone got an alternative solution?
    FYI We have considered extracting the report definition, row sets, column sets etc from the back end database tables then transforming that into end user key strokes to simulate what someone would do to create such a report from scratch using the front end forms using a tool such as data loader which I believe has no licence cost implications. We dont have a lot of time so would be interested to know if anyone had any success with an alternative method such as this.
    P.S. I had found this question asked already by someone else but without an answer so i am trying again today.
    Transfer FSG Report without using FSG Transfer program.

    Look here for a potential way: Re: Calling table function on remote server - possible?

  • How to update oracle Oracle by using JDBC

    Mostly we used and still using the following way, as well as it was recommended by oracle official document.
    String empty_string = "need to be updated";
    conn = getConnection();
    pStmt = conn.prepareStatement("SELECT REFERENCE FROM activity WHERE ID = ? FOR UPDATE");
    pStmt.setLong(1, 1);
    rset = pStmt.executeQuery();
    Clob clob = null;
    while (rset.next()) { 
    clob = rset.getClob(1);
    Writer writer = adapter.getCharacterOutputStream(clob);
    writer.write(empty_string);
    writer.flush();
    writer.close();
    pStmt = conn.prepareStatement("update activity set REFERENCE = ? WHERE ID = ?");
    pStmt.setClob(1, clob);
    pStmt.setLong(2, 1);
    pStmt.executeUpdate();
    Now I want use the second way as below, to be honest I never used it before so I wonder can it work properly? as it did not require an explicit lock. will it bring potential risk? according your experience if it work well, which did better performance?
    1. String toBeUpdated = "need to be updated";
    2. StringReader clob = new StringReader(toBeUpdated );
    3. pStmt = conn.prepareStatement("update activity set REFERENCE = ? WHERE ID = ?");
    4. pStmt.setCharacterStream(1, clob, toBeUpdated.length());
    5. pStmt.setLong(2, 1);
    6. pStmt.executeUpdate();

    Welcome to the vast OTN forums!
    If you are asking about jdbc specifically, perhaps the relevant forum is: {forum:id=1050}.
    If what you really are asking is something like (without java code and context):
    "I used to do Select.. for update, followed by update table .... Can I instead use only update table ... ? When and why would you use one or the other?"
    Then this forum might be ok, but the SQL and PL/SQL forum might be even better: {forum:id=75}

Maybe you are looking for