Should we lock the object

Hi , i have a question , if i want to insert the data Concurrency, what should i do ? whether i should to lock the object,and to read or write?if you know the answer ,tell me,thanks!

See:
http://www.oracle.com/technology/documentation/berkeley-db/je/TransactionGettingStarted/index.html

Similar Messages

  • How can I lock the object in my dock?

    Members in my family continue to accidently drag objects off the dock on my powerbook by accident.
    How can I "lock the dock"?
    Thanks.

    You can't. This is a real problem when you accidentally drag 300+ files onto an application icon but miss...
    Matt

  • FM to find user who locked the object using enqueue...

    Hello,
    How can I find name of user who enqueued the lock object in ABAP ?
    Regards,
    Jainam.

    Hi Jainam,
    See the SAP documentation, e.g. [FAQ - Lock concepts|http://help.sap.com/saphelp_NW04/helpdata/en/cb/168237d30d974be10000009b38f8cf/content.htm]:
    How can I find out who is currently holding the ungranted lock? In other words, how can check the program after an ENQUEUE to determine which use is currently holding the lock so that I can let him or her know?                                 
    This graphic is explained in the accompanying text Answer
    When the ENQUEUE_... function module is returned, the name of the lock owner is listed in SY-MSGV1.
    If you don't want to attempt to lock an object and just check who might own a lock use function module ENQUEUE_READ. Lots of comments in the forum...
    Cheers, harald

  • Should I use the object returned from em.merge()

    I am still confused how to use em.merge() correctly. I need to know if I should use the result of em.merge().
    PersistentObject obj = new PersistentObject();
    obj.setSomething("Value#1");
    // Should I do this and continue to use the object returned from merge().
    obj = em.merge(obj);
    obj.setSomething("Value#2");

    Chris,
    First thanks for your and your teams awesome support.
    The reason I always get confused with merge() is my misunderstanding about how clones and caching are handled. Let me give you 2 scenerios and could you tell me what the problems are, is any?
    Scenerio #1: (using return from merge)
    -- Start of Transaction #1
    EntityObject obj = new EntityObject();
    obj.setName("chris");
    obj = em.merge(obj);
    -- End of Transaction #1
    -- Start of Transaction #2
    obj.setName("scott");
    obj = em.merge(obj);
    -- End of Transaction #2
    Is this ok, will I lose data, are the clones and cache ok?
    Scenerio #2: (NOT using return from merge)
    -- Start of Transaction #1
    EntityObject obj = new EntityObject();
    obj.setName("chris");
    em.merge(obj);
    -- End of Transaction #1
    -- Start of Transaction #2
    obj.setName("scott");
    em.merge(obj);
    -- End of Transaction #2
    Is this ok, ?
    These 2 scenerios are different in the fact that one uses the return from merge and one does not. Which one is correct, and what would the problem be with the wrong one?

  • Killing all sessions at once who are locking the objects

    Hello all,
    i am working in 9i Oracle RDBMS on AIX IBM OS
    most of the time we face locking issue and there comes more then different 50 sessions which locking different tables.
    here is my script to find out what sessions are locking what tables.
    set lines 200
    set pages 50000
    col SID for 99999
    col SERIAL# for 999999
    col username format a12
    col sql format a55
    col event format a50
    col program format a40
    col MINS for 9999
    col ID1 for 999999
    col object_name for a35
    col locktype for a8;
    select  /*+ ORDERED */ s.sid,s.serial#,s.status,round(s.last_call_et/60) MINS,s.program,l.ID1,d.object_name,d.object_type,l.type as locktype
    from v$lock l,v$session s, dba_objects d
    where l.sid = s.sid
    and l.ID1 = d.object_id
    and s.username = 'MULDMS'
    and last_call_et > 120 and l.type <> 'TX' order by s.status,MINS,l.ID1,l.type; and the out put it gives something like
      SID SERIAL# STATUS    MINS PROGRAM                                      ID1 OBJECT_NAME                         OBJECT_TYPE        LOCKTY
    8981    1069 ACTIVE       2 frmweb@Appsdms31 (TNS V1-V3)               30407 VH_BTN                              TABLE              TM
    1642     512 ACTIVE      15 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
      690    1057 ACTIVE      17 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
      699    1787 ACTIVE      17 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
      690    1057 ACTIVE      17 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
      690    1057 ACTIVE      17 [email protected] (TNS V1-V3)    30643 VT_CHECK_INOUT                      TABLE              TM
    10877     895 ACTIVE      18 [email protected] (TNS V1-V3)     28846 AM_DOCS                             TABLE              TM
    6654    1085 ACTIVE      18 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
    1912    1655 ACTIVE      18 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
    10877     895 ACTIVE      18 [email protected] (TNS V1-V3)     30407 VH_BTN                              TABLE              TM
    6654    1085 ACTIVE      18 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    1912    1655 ACTIVE      18 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    1754    1582 ACTIVE      18 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    10877     895 ACTIVE      18 [email protected] (TNS V1-V3)     30643 VT_CHECK_INOUT                      TABLE              TM
    6654    1085 ACTIVE      18 [email protected] (TNS V1-V3)    30643 VT_CHECK_INOUT                      TABLE              TM
    10708     982 ACTIVE      19 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
    5428     855 ACTIVE      19 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
    10708     982 ACTIVE      19 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    5428     855 ACTIVE      19 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    10278     897 ACTIVE      20 [email protected] (TNS V1-V3)     28846 AM_DOCS                             TABLE              TM
    6261    1056 ACTIVE      20 frmweb@appsdms12 (TNS V1-V3)               28846 AM_DOCS                             TABLE              TM
    6598    1413 ACTIVE      20 [email protected] (TNS V1-V3)     28846 AM_DOCS                             TABLE              TM
    1312    1000 ACTIVE      20 [email protected] (TNS V1-V3)    28846 AM_DOCS                             TABLE              TM
    10278     897 ACTIVE      20 [email protected] (TNS V1-V3)     30407 VH_BTN                              TABLE              TM
    6261    1056 ACTIVE      20 frmweb@appsdms12 (TNS V1-V3)               30407 VH_BTN                              TABLE              TM
    1312    1000 ACTIVE      20 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    3521     717 ACTIVE      20 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    6598    1413 ACTIVE      20 [email protected] (TNS V1-V3)     30407 VH_BTN                              TABLE              TM
    6598    1413 ACTIVE      20 [email protected] (TNS V1-V3)     30643 VT_CHECK_INOUT                     TABLE              TM
    1312    1000 ACTIVE      20 [email protected] (TNS V1-V3)    30643 VT_CHECK_INOUT                   TABLE              TM
    9131    1002 INACTIVE     2 [email protected] (TNS V1-V3)    30455 VH_PSF                              TABLE              TM
    4887    1040 INACTIVE     2 [email protected] (TNS V1-V3)     30455 VH_PSF                              TABLE              TM
      151    1982 INACTIVE     2 [email protected] (TNS V1-V3)     80224 RD_ENQEXD                           TABLE              TM
      846     988 INACTIVE     3 [email protected] (TNS V1-V3)    29228 GM_VIN                              TABLE              TM
    5364    1149 INACTIVE     3 [email protected] (TNS V1-V3)    30407 VH_BTN                              TABLE              TM
    9934     789 INACTIVE     3 [email protected] (TNS V1-V3)     30455 VH_PSF                              TABLE              TM
    7511    1092 INACTIVE     3 [email protected] (TNS V1-V3)    30455 VH_PSF                              TABLE              TM
    3595    1104 INACTIVE     3 [email protected] (TNS V1-V3)    30455 VH_PSF                              TABLE              TM
      846     988 INACTIVE     3 [email protected] (TNS V1-V3)    30455 VH_PSF                              TABLE              TM
      945     670 INACTIVE     3 [email protected] (TNS V1-V3)    30455 VH_PSF                              TABLE              TMand then i have to kill the session one by one . thaat is a tedious task to do.
    i want to modify this script which will give me all the kill statement and i just have to run it
    can someone help me in this regard as i am weak in sql/plsql
    thanks and many thanks

    >
    i want to modify this script which will give me all the kill statement and i just have to run it
    >
    Karthick's script will 'kill' the sessions but before you use that script you may want to read the docs about the KILL and DISCONNECT clauses.
    See the DISCONNECT SESSION and KILL SESSION clauses in the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_2013.htm#sthref4724
    >
    DISCONNECT SESSION Clause
    Use the DISCONNECT SESSION clause to disconnect the current session by destroying the dedicated server process (or virtual circuit if the connection was made by way of a Shared Sever).
    The IMMEDIATE setting disconnects the session and recovers the entire session state immediately, without waiting for ongoing transactions to complete.
    KILL SESSION Clause
    The KILL SESSION clause lets you mark a session as terminated, roll back ongoing transactions, release all session locks, and partially recover session resources.
    IMMEDIATE Specify IMMEDIATE to instruct Oracle Database to roll back ongoing transactions, release all session locks, recover the entire session state, and return control to you immediately.
    >
    For DISCONNECT the IMMEDIATE clause will recover the session state 'immediately'.
    Using KILL, even with the IMMEDIATE clause, you are telliing Oracle to roll back any ongoing transactions and that can take a lot of time.
    Make sure you are really doing the operation you want to do. If you want to get the locks released immediately you need to use 'DISCONNECT IMMEDIATE'.

  • Should we lock the desktop thread and start some new ones?

    Lets face it, you can't read the whole thing now anyway!
    I propose that we retire it and start some new threads for desktops based on WM/DE environment, so we'd have a thread each for:
    · xfce
    · gnome
    · kde
    · *box
    · fvwm
    And others that anyone can think of.  The strength of this idea is it's biggest weakness - easy to see screenies for different desktops but you have several thread to view and can't look at it all together - but what are tabs for eh?
    Vote soon!

    miqorz wrote:I think it's a terrible idea and only creates a great way to be ignorant and delusional of every other desktop enviroment and window manager.
    This is so typical of you miqorz - ignorance and ignorant behaviour, as you often clearly demonstrate, is something that some people will be just be prone to.
    miqorz wrote:I wouldn't have made my recent "switch" to xfce if it hadn't been for screenshots I didn't seek.
    Why do you assume everyone is as narrow minded and cynical as you?
    Even if we keep it in one thread most people post links to their screenies along with an "XFCE and torsmo..." type intro - what forces such ignorant people to follow the links?  Nothing.  So...that's a stupid arguement.
    I like the idea of monthly threads and i agree that loads of seperate threads could produce TOO many BUT we could limit it to a few specifics and then "Others" - how many ion or wmii people actually post their screenies frequently?
    The poll is looking very much in favour of the switch at the moment!
    I think we may hold another shorter poll afterwards tho - monthly vs individual

  • Locking an object problem

    We are customizing our Plumtree Portal 5.0.2 to all the gadgets developers to send an HTTP header called "Refresh-all","Gadget Name". When this header is sent the portal should refresh the gadget provided in the header to flush it's content. The only problem that we are facing now is storing the changes made to the Gadget Admin Settings
    here's the code
    IPTObjectManager objectManager = (IPTObjectManager) ptSession.GetGadgets();
    IPTGadget gadgetToRefresh = (IPTGadget)objectManager.Open(portletID,false);
    IPTServerContext serverContext = (IPTServerContext)gadgetToRefresh.GetInterfaces("IPTServerContext");
    serverContext.LockObject();
    serverContext.Store();
    serverContext.UnlockObject();
    When the logged in user is not an admin this gives an error and PTSpy reported that the user doesn't have enough priviliges to lock the object. the ptSession is the current user session retrieved by the function GetUserSession()
    Any proposed work around or any way to get an admin session will be great
    TIA

    We are customizing our Plumtree Portal 5.0.2 to all the gadgets developers to send an HTTP header called "Refresh-all","Gadget Name". When this header is sent the portal should refresh the gadget provided in the header to flush it's content. The only problem that we are facing now is storing the changes made to the Gadget Admin Settings
    here's the code
    IPTObjectManager objectManager = (IPTObjectManager) ptSession.GetGadgets();
    IPTGadget gadgetToRefresh = (IPTGadget)objectManager.Open(portletID,false);
    IPTServerContext serverContext = (IPTServerContext)gadgetToRefresh.GetInterfaces("IPTServerContext");
    serverContext.LockObject();
    serverContext.Store();
    serverContext.UnlockObject();
    When the logged in user is not an admin this gives an error and PTSpy reported that the user doesn't have enough priviliges to lock the object. the ptSession is the current user session retrieved by the function GetUserSession()
    Any proposed work around or any way to get an admin session will be great
    TIA

  • How to select the objects sharing the same appearance in the same artboard?

    I have several artboards in the file and I want to select all the objects having the drop shadow effect in the artboards I'm working. No matter I use the "Select" in the menu or the "Select similar objects" button in the control panel, it selects all the objects having the same appearance in the entire canvas, not only the one in the artboard I'm working. Any means or there's nothing can do?
    Please help!

    J_Lai wrote:
    yes, that's work and I also tried to lock the objects in another artboard in order to select the objects in the working artboard only. However, I think that's stupid to get it done in this way and Adobe should improve this in the next version.
    This is easy enough to state but if you think this is wrong then you should perhaps suggest a way this feature could be manifested.
    For instance to you this should only effect the current artboard but there will come along another user who will say hey wait a minute I need to select all the drop shadowed objects and remove them now I have to go from atboard to artboard.
    If you see what I mean, II found out that when I find something that is seemingly stupid that in fact there is a reason for it and there has to be a way to describe how it can be improved without breaking what you already have.
    For instance you want it to just effect the current artboard but then there will be those who also want it if it even touches the artboard and those who will want it on a range of atboards and those who will actually want AI to know which artboards you want even without you specifying which artboards. That last one sounds illogical but that is the nature of the problem and the human conditions.
    So though I agree this can be improved perhaps you have an idea how this can work for everyone?

  • Lock the centre point of an object?

    I'm using illustrator (CS6) to animate a simple marionette type figure.
    I'm using the Rotation tool to turn body parts around their usual connection points, moving the transform centre point each time.  I'm wondering if it's possible to "lock" the centre point for any individual object to a certain offset from the object's actual centre, so that every time I reselect an object to move it I'm always rotating it around exactly the same place.  I find that if I have to move the centre point from the real centre to where I want to rotate around every time, I'm not getting the exact same spot in relation to the object's bounds, which makes for some weird movements.
    For example, the rectangle that makes up the upper arm should have its rotation point always about ten pixels down from the top and in the horizontal centre of the object.   The elbow right at the top edge, but also in the horizontal centre, of the lower arm.  etc.

    Monika Gause wrote:
    Use symbols.
    They've got a registration point. Position the artwork in relation to that reg point.
    Ahh, that's an excellent suggestion, thanks!   It looks like it should work.. although there's this bit of the documentation that makes me wonder:
    When you create a symbol, you can choose the registration point from any of the 8-point across boundaries or center of the symbol bounding box.
    It sounds like I might not be able to set it to any arbitrary position within the symbol.  I'll give it a shot though.. thanks!

  • Release the lock for objects in ABAP webdynpro

    Hi All,
    I need to release the lock of certain objects during the application close(When the user closes the browser)
    Can I release the lock of the objects other than the method WDDOEXIT method.  If yes please tell me how?
    The reason being WDDOEXIT is not called during the close.
    Thanks,
    Subash M

    >
    Subash Mohanvel wrote:
    > Hi All,
    > I need to release the lock of certain objects during the application close(When the user closes the browser)
    > Can I release the lock of the objects other than the method WDDOEXIT method.  If yes please tell me how?
    >
    > The reason being WDDOEXIT is not called during the close.
    >
    > Thanks,
    > Subash M
    I think the bigger question is to why WDDOEXIT is not called. What you describe is exactly what WDDOEXIT is designed for.  This is the part of the phase model that is fired when the session times out or the browser closes. This should work for just this purpose.

  • Authorization object to lock the SOLAR 02 config structure

    hi guys ,
    does anyone know of a authorization object which can help lock the configuration structure in SOLAR02,
    Users should be able to change the structure ,rename it etc  but they shouldnt be able to delete any nodes in the Config Structure .
    Regards
    Praveen

    Dear Praveen,
    Have you checked the [Security Guide|http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000718044&_OBJECT=011000358700000370562009E]?
    The auhtorization object should be described in that document.
    Regards,
    Paul

  • When should unlock the object and when should not ?

    Dear Experts,
    We are looking for some suggestions from your side.
    When we should unlock the object and when we should not with respect to releasing the transport request.
    Like what would be the best practice.
    Thanks in advance.
    With Regards,
    Tejas Dave.

    Hi Tejas,
    When we  are performing an upgrades , No Objects should be locked.
    Gives an Pop to unlock the Objects
    Every Transport Request will moves depends on Requirement . 

  • When my iPhone 4S (with ios7) experiences a failed call while connected to my Bluetooth hands free in my car(screen locked) the failed call appears on the locked screen, as it should, then when I unlock the phone it automatically redials the failed call,

    When my iPhone 4S (with ios7) experiences a failed call while connected to my Bluetooth hands free in my car(screen locked) the failed call appears on the locked screen, as it should, the problem arises whenever I unlock the phone, it automatically redials the last failed call, it doesn't do this with missed calls that are on the locked screen, if any. It is really annoying as sometimes the phone doesn't respond to attempts to end the call before it connects to the number. I then have to explain that it was my phone and not me, I look like an idiot, which I don't really need any extra help with!! Does anyone have any ideas? I don't want to stop missed call from showing in the locked screen but it might be associated with the failed calls and therefore be the only resolution

    I have had the same issue which was driving me mad but think I have just found a way around it. In iOS 7 if you swipe up on the lock screen to access quick settings and go into timer then click the home button you get into the phone without calling the person back. Not a great 'fix' but hope it works for you. Come on Apple this isn't good enough, fix this bug otherwise you will lose your customers.

  • Lock Object (Not locking the table)

    Hi Guys
    I have a custom table ZDRAD same like standard table DRAD with an additional 'DATE' field . ZDRAD's Key fields are same like DRAD . I have created a lock object 'EZDRAD' where I put name = 'ZDRAD' (Custom table) and mode = 'EXCLUSIVE CUMULATIVE' . Now I want to lock the table(Whole table) before modifying/Inserting/deleting the records in se38. Please check the code below and suggest me if I am passing wrong values to the lock object Function module.
    Code
    TABLES : ZDRAD.
    CALL FUNCTION 'ENQUEUE_EZDRAD'
    EXPORTING
       MODE_ZDRAD           = 'E'
       MANDT                = SY-MANDT
       DOKAR                = ' '
       DOKNR                = ' '
       DOKVR                = ' '
       DOKTL                = ' '
       DOKOB                = ' '
       OBZAE                = 0
       OBJKY                = ' '
       X_DOKAR              = ' '
       X_DOKNR              = ' '
       X_DOKVR              = ' '
       X_DOKTL              = ' '
       X_DOKOB              = ' '
       X_OBZAE              = ' '
       X_OBJKY              = ' '
       _SCOPE               = '2'
       _WAIT                = 'X'
       _COLLECT             = ' '
    EXCEPTIONS
       FOREIGN_LOCK         = 1
       SYSTEM_FAILURE       = 2
       OTHERS               = 3
    *IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    IF SY-SUBRC = 0.
    ZDRAD table is locked.
        P_L_LOCK_STAT = 'X'.
        EXIT.
      ELSE.
    ZDRAD table is not locked
        CLEAR P_L_LOCK_STAT .
      ENDIF.

    Hi Kanthimathi
    That is numeric field . Please suggest me how can i check the lock.

  • SQLServer 2008 R2: The SCHEMA LOCK permission was denied on the object

    Hi all,
    I encounter the following error while developing a SSRS project that connects to a SQL Server Database view:
    "Msg 229, Level 14, State 71, Procedure sp_getschemalock, Line 1
    The SCHEMA LOCK permission was denied on the object 'Table4', database 'DBRemote', schema 'dbo'."
    That view uses a linked server to select data from a remote SQL Server Database (SQL Server 2005).
    There are no sql hints specified in my views
    My view T-SQL is:
    Select
    From linksv.DBRemote.dbo.Table1 T1
    Inner Join linksv.DBRemote.dbo.Table2 T2 On
      T1.fk1 = T2.pk1
    Inner Join view1 v1 On
      T2.fk2 = v1.pk2
    My t-sql for view1 is:
    Select
    From linksv.DBRemote.dbo.Table3 T3 
    Inner Join linksv.DBRemote.dbo.Table4 T4 On
      t3.fk1 = T4.pk1
    The object specified in error message above refers to Table "linksv.DBRemote.dbo.Table4" (see view above)
    SQL Server Permissions are set for all objects involved in the queries above.
    The funny thing is that the error occurs when I run my report from the report server webinterface
    and my report project is loaded in BIDS at the same time.
    The error occurs when I execute the query in SSMS 2008 and also when I run the query
    in BIDS 2008 Query designer.
    I also wondering why the error referes to the "linksv.DBRemote.dbo.Table4" remote object only
    but not to the other remote objects in that query.
    Im not sure where to look any further on what might cause this error.
    Appreciate any help very much.
    Thanks
    Bodo

    yes, this error happens because the login that is mapped on the second side of the linked-server is missing the read permission on the object. All queries done trhough linked-server will acquire a schema-lock just so that SQL can read the results correctly.
    I don't know exactly WHY it does it this way, but it does.
    to fix the error message, give the required permission to the login on the server that is target of the linked-server configuration - be it Windows Authentication, SQL Login, or connections "made using the logins current security context". The preferable
    way is to map 1-to-1 every login that will be used in the Security tab of the Linked Server Properties page.
    I made a post about this:
    http://thelonelydba.wordpress.com/2013/04/17/sql-and-linked-servers-the-schema-lock-permission-was-denied-on-the-object/

Maybe you are looking for

  • How to design fact and dimension tables

    Hi Team, Please provide me some useful links!! I have a Parent & Child table each has around 8 Million records (1 to many relation).  These two tables need relation with many other master tables to generate any report.  I want to desing a fact and di

  • Blackout on external monitor in dissolve

    Hi, I'm running a cross dissolve on FCP 5.0.4. The footage is well in the middle of the take (a good 30 seconds either side for both clips). On the computer screen it's fine. On the external monitor there is a black flash (maybe a frame's worth) in a

  • Accruals/Deferrals

    Hi All, I am familiar with the accrual and deferrals in accounting but I am having a hard time mapping scenario in SAP. the t.code FBS1 (enter accrual) and F.81(reverse accrual) are just creating an entry and reversing it at end of month. But I dont

  • Long LOV for editable column

    I have an updateable report based on a SQL Query with a few columns in it. One of the columns is an id referencing another table (a foreign key). I would like to display a descriptive name from the referenced table along with the id and provide a LOV

  • OSB 11.1.1.5.0 implementation in Eclipse

    Hi Friends, I am very new to OSB. I have the requirement with OSB in my current project. can you please anybody let me know how to implement OSB sample process(just like connect to file/DB Adapters to fetch the data and pass to BPEL like in ESB) and