Lock entries standard table

Hi Experts,
Please help in finding which SAP Standard table can we find the lock entries(SM12 transaction).
Thanks!

Prerequisites
You have generated the demo data for the SQL Tutorial.
Log on to the database instance DEMODB as user MONA.
Examples
You can use the system table LOCKS to determine the following database information, among other things:
●     All locks that are currently held on table ROOM
SELECT lockmode, lockstate, rowidlength, rowidhex, rowid
  FROM DOMAIN.LOCKS
    WHERE tablename = 'ROOM'
●     All locks that the current user holds in that database session on table ROOM
SELECT lockmode, lockstate, rowidlength, rowidhex, rowid
  FROM DOMAIN.LOCKS, SYSINFO.SESSIONS
    WHERE tablename = 'ROOM'
      AND locks.session = sessions.sessionid
●     All locks that are currently held on the table with the hexadecimal internal identification 000000000000035D
SELECT lockmode, lockstate, rowidlength, rowidhex, rowid
  FROM DOMAIN.LOCKS
    WHERE tableid = X'000000000000035D'
If the current user is the database administrator (DBA user) or the database system administrator (SYSDBA user), then all currently held locks are shown.
Users that belong to other user classes only see the locks held by that one user.
Definition
The system table LOCKS describes the current lock entries and entries for lock requests.
Structure
LOCKS
SESSION
FIXED(10)
ID of the database session
TRANSCOUNT
CHAR(20)
Transaction identification in the database session
PROCESS
FIXED(10)
Process identification in the database instance
USERNAME
CHAR(32)
Name of the user
DATE
DATE(10)
Creation date of the lock
TIME
TIME(8)
Creation time of the lock
TERMID
CHAR(18)
User terminal identification
LASTWRITE
CHAR(10)
Elapsed time since the last SQL statement for data manipulation
LOCKMODE
CHAR(14)
Type of lock (NULL value | SHARE | EXCLUSIVE)
LOCKSTATE
CHAR(10)
Status of lock
APPLPROCESS
FIXED(10)
Process identification on the client hardware
APPLNODE
CHAR(64)
Client hardware identification
SCHEMANAME
CHAR(32)
Name of the schema of the table
OWNER
CHAR(32)
Name of the owner of the table
TABLENAME
CHAR(32)
Name of the table
TABLEID
CHAR(8) BYTE
ID of the table
ROWIDLENGTH
FIXED(4)
Length of the key of the locked row
ROWIDHEX
CHAR(64) BYTE
Start of the key of the locked row in hexadecimal notation
ROWID
CHAR(128)
Start of the key of the locked row
http://dev.mysql.com/doc/maxdb/en/c4/812640632cec01e10000000a155106/content.htm

Similar Messages

  • Lock entries for table SWWWIHEAD in SM12 Urgent

    HI
    From last few days, In SM12 there are lock entries coming for workitems of table SWWWIHEAD even though workitem is completed successfully. Time of lock entry shows it is time when approver started taking action on it.
    Please let me know is there any impact of this on system and how it is happening and what we should do with these lock entries.
    Appreciate your help.
    Regards,
    Shiv.

    Dear,
    Actually we faced an issue related to this like the approver took action on it. after that the item got locked. the basis is telling there could be the RFC session from SAP Portal inbox which is not closed somehow. may be session is exited without properly logging out. in this case the item was still in his inbox and when the approver tries to open it, the error message says workitem is locked bye the same user id. The basis is telling the lock will be removed after the default stipulated time (in my case, its 8 Hrs ! ).
    hope this helps.
    with regards,
    Sudhahar R.

  • Function module to hold and release lock on MARD table entry

    Hi Gurus,
    Can you please tell me Function module to HOLD lock on MARD table and the Function Module to release lock on MARD table entry.
    Thanks and Regards,
    Sudipto

    Look via SE11 lock objects, use F4 for tables MAR*, the best for your request is on MARC table with object EMMARCS, so use FM ENQUEUE_EMMARCS and DEQUEUE_EMMARCS.
    Regards,
    Raymond

  • Triggering event when entries inserted in standard table

    Hi Experts,
    I've a requirement to trigger an custom event when entries created in table TOA01 table. We can do this for Z-tables by through options available in table maintenance generator screen. But, in my case its standard table, so i cant change the table. And I dont want to use change document objects. Can you please let me know is there any other method to achieve this.
    Thanks in Advance,
    Siva Sankar.

    Have you checked that if there is a standard event triggered when an entry is done to this table? I think that there might be. If an event is triggered, you can for example create a check function module, and trigger your own event from there.
    Regards,
    Karri

  • Short dumop in J2I5 (provide duplicate entry in Standard table)

    Hello Expert ,
                              We have a problem in  T.Code J2I5  ( Excise Register Extraction) input entry is lelect Excise group 20 . and a date   from 04.08.09 onwards. and select the register RG23D . it shows the run time error  ( Eg The ABAP/4 Open SQL array insert results in duplicate database record ) .  but in the standard Tcode is there possible to provide duplicate entry in Standard table
    Thaks & regards
    Aditya Kr Tripathi

    Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC
    Except.                CX_SY_OPEN_SQL_DB
    Date and Time          29.01.2010 10:57:09
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    problem occurs in this code :
       assign I_RG23D_TAB-I_RG23D_TYP to <x_rg23dtyp> casting.
       <x_extrctdata> = <x_rg23dtyp>.
        class CL_ABAP_CONTAINER_UTILITIES definition load.
        call method CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C
          EXPORTING
            IM_VALUE               = i_rg23d_tab-i_rg23d_typ
          IMPORTING
            EX_CONTAINER           = i_report_tab-extrctdata
          EXCEPTIONS
            ILLEGAL_PARAMETER_TYPE = 1
            others                 = 2.
       I_REPORT_TAB-EXTRCTDATA = I_RG23D_TAB-I_RG23D_TYP.
        COMPUTE I_REPORT_TAB-EXTRCTLNGT = STRLEN( I_REPORT_TAB-EXTRCTDATA ).
        APPEND I_REPORT_TAB.
      ENDLOOP.
      IF M_EXTRACTED = 'X'.
        LOOP AT I_RG23D_KEY.
          DELETE
          FROM  J_2IEXTRCT
          WHERE BUDAT    = I_RG23D_KEY-BUDAT
          AND   SERIALNO = I_RG23D_KEY-SERIALNO
          AND   REGISTER = I_RG23D_KEY-REGISTER
          AND   EXGRP    = I_RG23D_KEY-EXGRP.
        ENDLOOP.
      ENDIF.
    Control table check here for data Extraction
      INSERT J_2IEXTRCT FROM TABLE I_REPORT_TAB.
    If the insertion of the extract table is successfull then the table
    for Extraction is Inserted
      IF SY-SUBRC EQ 0.
        PERFORM FILL_EXTDT USING C_RG23D M_EXTRACTED.
      ENDIF.
    ENDFORM.                                                    " RG23D
    *&      Form  RG23CPART1
    Purpose : RG23C Part I extraction logic
    FORM RG23CPART1.
      DATA: $PART1      TYPE PART1_TYP,
            $LINCNT     LIKE SY-LINCT,
            M_EXTRACTED VALUE '',
            $RC         LIKE SY-SUBRC.
    *********************************************************************************************8

  • Unalbe to delete lock entry table using Dequeue function module

    Friends,
    I display a base ALV list with custom app. tool bar. When i click on a button, i submit another report which updates a z-table for that corresponding row. I create a lock object for this entry before submitting the report. After updating the table, I try to delete the lock object using dequeue function module in the called report, but though the subrc is 0, the lock entry is not getting deleted in SM12. The called report, after dequeue, again submits report 1 (the caller). So, when i try to do some operation for the same row which I first selected, it triggers Foreign_lock exception. When I completely go out of the base list, only then the entry is deleted. Can anyone tell me the reason? I have tried with parameters _SCOPE & _SYNCHRON, but same result.
    Regards,
    Sathish R

    Hi,
    The triggering of the dequeue is not in the proper position as it need to be placed.
    Thats the only problem as per u have described the issue.
    Place the deque as soon as the report is return the value.
    I hope it may work ur issue.

  • How to transport standard table entries

    Hi All,
    I want to transport SAP standard tables records from one server to another server in append mode. It is actually required for upgradation purpose.
    Can anybody please guide me in this regards ?
    Thanks in advance!!

    Hi Reddy,
    Thanks for your suggestion! but one problem I don't have the Transport Entries submenu enabled for all the SAP standard tables. Is it table specific ?. Please let me know how to enable this sub menu or is there any other generic method to attach the records of any SAP standard table in a TR.
    Thanks!

  • Db_associate fails with : Lock table is out of available lock entries

    Hi
    Occasionally on startup my app needs to rebuild its secondary database, so I call db_associate with DB_CREATE set. If the primary db is large the associate fails with "Lock table is out of available lock entries". Both databases are hashes, so I have not configured any special lock sizes as I didn't think I needed to.
    What lock configuration does db_associate need to succeed?
    I am using version 4.7.25
    Thanks
    Ashley

    Hi Ashley,
    You should be sizing the locking subsystem with high enough values so the secondary database rebuilds successfully, then run the "db_stat -C" utility and see how many locks, lock objects and lockers did you need to perform the operation and reconfigure the locking subsystem with values slightly bigger than what you needed, so you make sure that you'll have enough resources for the next time you'll rebuild the secondary.
    "Lock table is out of available lock entries" means that the Berkeley DB locking subsystem has not been configured for enough locks. For more information, see the "Configuring locking: sizing the system" section of the Berkeley DB Reference Guide, included in your download package and also available at:
    http://download.oracle.com/docs/cd/E17076_01/html/programmer_reference/lock_max.html
    To see what locks are held in the database environment at any time, you can dump the lock table using the -Cl options:
    % db_stat -h [database environment directory] -Cl -N
    Additional documentation:
    db_stat: http://download.oracle.com/docs/cd/E17076_02/html/api_reference/C/db_stat.html
    set_lk_max_locks: http://download.oracle.com/docs/cd/E17076_01/html/api_reference/C/envset_lk_max_locks.html
    Bogdan Coman

  • Add entries to standard table

    Hey guys,
    how can i add entries to a standard table (generic table)?
    I have a function modul which has an export table of standard table and i'd to add some entries to this table. How can i do that? i don't know the table line type.
        thx,
           Wei-Ming

    Hi Wei-Ming,
    I was not sure what you were asking at the very first question, but it was clear for me at your 2nd post (but it seems it was not obvious for the other persons).
    You must use field symbols or data references to manipulate the generic complex data objects (structure or internal table).
    For example:
    FIELD-SYMBOLS <ls_line> TYPE ANY.
    FIELD-SYMBOLS <l_field> TYPE ANY.
    APPEND INITIAL LINE TO et_test ASSIGNING <ls_line>.
    ASSIGN COMPONENT 1 OF STRUCTURE <ls_line> TO <l_field>.
    or
    DATA dref TYPE REF TO DATA.
    CREATE DATA dref LIKE LINE OF et_test.
    ASSIGN dref->* TO <ls_line>. "dereferencing data reference
    I let you search the forum and the ABAP documentation for more information.
    BR
    Sandra

  • Standard table entries

    hi all
      i am having standard table J_1IPART2 . in this table i need to modify values of 4 fields with document number i.e with value of one field i need to modify values of 4 fields which already stored in database. can i have any ways to do it
              can i write a simple modify program in se38 to modify the values in database. is it work?  pls suggest me.
                                                       Kumar

    Hi Kumar,
    Yes you can write program to update the table directly and modify the entries for the specific document number, however this is not a recommended way as the database may become inconsistent with different entries maintained in different related tables.
    So before updating the table entries make sure the values you are updating are maintained in only this table and not anywhere else for the respective document number.
    regards.
    Vikas
    <b>Do reward useful  suggestions.</b>

  • EREC- Standard table entries missing

    Hi Experts,
    We are in the process of implementing SAP E-recruitment EHP5. System has been set up. We have also activated the following  business functions
    HCM_ERC_CI_1
    HCM_ERC_CI_2
    HCM_ERC_CI_3
    HCM_ERC_CI_4
    HCM_ERC_SES_1
    HCM_MSS_ERC_CI_1
    HCM_HIRE_INT_CI_1
    HCM_ASR_CI_2
    But i am not able to find any entries in any of the standard tables(t77rcf*). Say for e.g. i cannot find any standard activities in the table.
    Is there anything else that needs to be done, so that all the standard entries are visible.
    Do i need to copy all the tables from client 000??
    Please guide me in rectifying this issue.
    Regards,
    Pradeep

    Hi,
    it depends on the settings for the client copy if customizing entries from client 000 are copied or not.
    I general all entries in SAP customizing tables are examples and no "SAP standard". So in all of my projects I start from empty customizing tables for activities as I setup the system according to the customer requirements and do not care much for the SAP examples.
    If you really want to have these sap examples as a starting point you can run report rhttcp77 for tables t77rcf* to copy the entries from client 000 to your working client.
    kind regards
    Roman

  • Locking Entries Table.

    i have used the FM Enqueue_____ and DEQUE____
    i want to know in which table the lock entries are
    entered, by sm12 i can know which is the locked entry
    but i want to know the table in which entry is stored
    pl. help me its urgent.
    abhishek suppal

    Hi,
    it's a logical -not physical- lock
    -> look TA: ST05 (option Enqueue trace)
    Andreas

  • Lock table overflow - BRF Plus - can it work with many entries in tables ?

    hi,
    when I'm trying to open expression table in BRFplus with 500 entries in web
    I get an error: Lock table overflow and I see more then 2000 entries in sm12 for fdt_ tables
    and the system cannot create any more locks (so other applications are not working)
    why is that ? can BRF plus work with more then 100 entries in table expressions at all ?
    can anyone tell from experience as this is a huge issue I believe
    thank you,
    Regards,
    Michal Krawczyk

    Hi Michal,
    You are running a NW 701 system. This was the first version of BRFplus and the DB schema was not good for high volumne.
    I have created some notes recommending to use decision table for up to 100 rows (of course other factors like # of columns are also important).
    In NW 702 the DB schema has been changed and decision tables with 10.000 rows are possible and performance better by a factor of 100 and more.
    In your specific case you may consider to increase the number of logs that are possible. But this is rather a workaround than a solution.
    BR,
    Carsten

  • Perl & "Lock table is out of available lock entries"

    Hi,
    i use to retrieve about ten thousand results with ./dbxml,
    but when i use the same query within a perl script,
    i get the error:
    Lock table is out of available lock entries
    Query collection("frwiki_10_0.dbxml")/DOCUMENT/Sentence failed (1)
    Error: Could not fetch next DOM element for doc id: 2, nid: 8CB6 in /Users/francois/Desktop/INRIA/EasyRef2_DBXML/script/../lib/session.pm, line 175
    Database handles still open at environment close
    Open database handle: frwiki_10_0.dbxml/structural_stats
    Open database handle: frwiki_10_0.dbxml/secondary_document_statistics_double
    Open database handle: frwiki_10_0.dbxml/secondary_document_index_double
    Open database handle: frwiki_10_0.dbxml/secondary_document_statistics_string
    Open database handle: frwiki_10_0.dbxml/secondary_document_index_string
    Open database handle: frwiki_10_0.dbxml/node_nodestorage
    Open database handle: frwiki_10_0.dbxml/secondary_document
    Open database handle: frwiki_10_0.dbxml/secondary_dictionary
    Open database handle: frwiki_10_0.dbxml/primary_dictionary
    Open database handle: frwiki_10_0.dbxml/secondary_sequence
    Open database handle: frwiki_10_0.dbxml/secondary_configuration
    Segmentation fault
    Somewhere on other forums, one's talking about Configuring locking: sizing the system & DB_ENV->set_lk_max_locks(),
    but how can I my environment the same way with a perl script?

    I'm configuring my environment in my Java application via this DB_CONFIG file, and it definitely works. When I had problems like you have, I just increased the number of locks, lockers, objects and everything started to work just fine. Are you sure that you have put DB_CONFIG into environment home directory. Did you increase the number of locks, lockers, objects sufficiently?
    Vyacheslav
    UPD. Does your application have enough permissions to read DB_CONFIG file?
    Edited by: detonator413 on Oct 21, 2009 12:33 PM

  • Lock table is out of available locker entries

    My mail server version is -->
    Sun Java(tm) System Messaging Server STORE 6.3-0.15 (built Feb 9 2007)
    Not always this thing happened but sometimes, I can find follow error message in deault log file.
    ---- default log --
    [12/May/2009:12:00:00 +0900] epajo01 imdbverify[4106]: General Notice: verify database snapshots started
    [12/May/2009:12:00:00 +0900] epajo01 imdbverify[4106]: General Notice: verify snapshots finished: Total verified 3 Total failed = 0
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Notice: imexpire started, functions: expire purge
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: locking error: Lock table is out of available locker entries
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: DBERR: can't get locker id for file descriptor 20: Not enough space
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: Store Critical: Unable to lock index for user/journal_ms08_i: Not enough space
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: locking error: Locker does not exist
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: Store Error: locking {StoreRoot}/=user/02/91/=journal_ms08_i/store.exp: Invalid argument
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: locking error: Locker does not exist
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: Store Critical: Unable to lock index for user/journal_ms08_y: Invalid argument
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: locking error: Locker does not exist
    -------- omit ---------
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: Store Error: locking {StoreRoot}/=user/e1/91/=journal_ms08_g/store.exp: Invalid argument
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: locking error: Lock table is out of available locker entries
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: locking error: Locker does not exist
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: DBERR: can't get locker id for file descriptor 23: Not enough space
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: Store Critical: Unable to lock index for user/journal_ms08_w: Invalid argument
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: Store Error: locking {StoreRoot}/=user/73/e5/=journal/store.exp: Not enough space
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: locking error: Locker does not exist
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: Store Error: locking {StoreRoot}/=user/e2/91/=journal_ms08_w/store.exp: Invalid argument
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: locking error: Locker does not exist
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: Store Critical: Unable to lock index for user/journal_ms08_h: Invalid argument
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: locking error: Locker does not exist
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: Store Error: locking {StoreRoot}/=user/f1/91/=journal_ms08_h/store.exp: Invalid argument
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: locking error: Locker does not exist
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: Store Critical: Unable to lock index for user/journal_ms08_x: Invalid argument
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Error: locking error: Locker does not exist
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: Store Error: locking {StoreRoot}/=user/f2/91/=journal_ms08_x/store.exp: Invalid argument
    [12/May/2009:12:00:01 +0900] epajo01 imexpire[4115]: General Notice: Expire finished
    When I can see this error message in default log files, all emails are enqueued but not dequeued.
    Emails are just piled up in a queue directory, and getting increased.
    To solve this thing, I just restart mail server(with stop-msg, start-msg command) and then emails are dequeued.
    In a web site, I found those error messages can be found when some interrption occurred like Control-c in product using Berkeley DB .
    I know JMS is using Berkeley DB but at that time there is no chance to use Control-c.
    With those log, I just can assum imexpire started when snapshots job is not finished completely(although log file shows snapshots job is finished).
    Imexpire started before snapshots not release locker
    But I am not Sure.
    I don't know why this thing happened and what is solid workaround.
    If someone had the same problem as mine, plz reply
    Thanks in advance.
    Edited by: leeky41 on May 12, 2009 7:22 AM

    leeky41 wrote:
    Sun Java(tm) System Messaging Server STORE 6.3-0.15 (built Feb 9 2007) Please always provide the full output of ./imsimta version. I cannot tell for example what platform you are using (Solaris SPARC/x86/Linux).
    I don't know why this thing happened and what is solid workaround.I suggest your first step is to upgrade to a recent release of MS6.3 and see if the problem persists.
    Regards,
    Shane.

Maybe you are looking for

  • Publishing Word doc to Sharepoint as pdf

    I have been fighting with the PDFMaker for over a week and still can't figure it out.  I am trying to take a folder of word documents and convert them to pdfs, then publish them to a SharePoint server.  The conversion to pdf is where I seem to have i

  • Dual(extra) sim in iPad interrupts calls to original sim in iPhone.

    Hi, I have a dual-sim in my iPad and a regular sim in my iPhone. Both of the sim cards use the same data-plan and both are able to receive calls to the same number, simultaneously. I'm paying for the extra sim card as a service from my provider, so i

  • Red eye correction

    I am a brand new pse user, trying to understand the 'versions' concept. Everything I have read suggests saving your edits as a version of the original. Would there be a downside to overwriting the original with red eye corrected version instead of an

  • WS_FILENAME_GET is obsolete function module in ECC 6.0

    Hi Guys, The function module "WS_FILENAME_GET" was obsolete in ECC 6.0, could you please suggest me which is relevant function module in ECC 6.0. Thanks, Gourisankar.

  • Using Continuos Printing stationary with smart forms is that possible ?

    Hi All, there is an instance where we have to use continuo's stationary for printing Payment Advices for the vendors with bankers cheque attached to the payment advise is that possible in smartforms also i have know that is possible in scripts but th