Query in Lock Transaction!!!!

Hi all,
        One of the user used the transaction CRMD_ORDER_PA  and he has got 4900 Lock Entries.
Can anyone please tell me the reason for the same and how such conditinos can be avoided in future.
Kindly reply immediately as this is bit urgent.
Regards,
Vijay

The number of locks acquired by each transaction (it is important to have this concept in mind when dealing with logical locks) differs largely among both tests. This is due to three reasons:
1. Since you are using the default transaction isolation level (read commited), locks are acquired and released at the start and end of each statement. When you issue an update command, assuming no lock escalation, an exclusive lock will be acquired on eacg
row that is to be updated, an intent exclusive lock will be acquired on the table (preventing schema changes during the update) and another intent exclusive lock will be placed on the entire database, preventing it from being modified (taken offline, for example).
This means the number of locks generated by the first test is the number of rows updated times three.
2. Lock escalation is intended to reduce the number of locks that need to be managed in memory by the database engine, reducing resource usage. It wouldnt make any sense if, despite locks being escalated, the second test generated a number of locks equal
to the number of rows updated. Past the 5k lock threshold, locks will start being acquired on the whole page in which an accessed row is stored. If the number of page locks goes beyond 5k, the locks are again escalated to the whole object.
3. Even if you disabled lock escalation on the second test, it would still acquire much less locks because the intent exclusive locks on both object and database would only be acquired once, therefore the number of locks generated would be N+2.
Just because there are clouds in the sky it doesn't mean it isn't blue. But someone will come and argue that in addition to clouds, birds, airplanes, pollution, sunsets, daltonism and nuclear bombs, all adding different colours to the sky, this is an undocumented
behavior and should not be relied upon.

Similar Messages

  • Problem in changing SAP query ME80FN  in transaction SQ01

    Hi,
    I  have added two new fields in list layout of the transaction ME80FN. When I execute this transaction it is executing ABAP QUERY REPORT ME80FN.
    I added two new fields in infoset SAPQUERY/ME80FN via transaction SQ02.
    Then trying to change the QUERY ME80FN via transaction in SQ01. It is saying locked by some user.
    Can any one help me how to resolve this what to be done.
    Thanks,
    JWala

    Hi
    I found this in another forum. It  is simple to do it:
    1. Go to SQ02 transaction (Infoset: Initial Screen)
    2. Select or Highlight the Infoset corresponding to the query.
    3. Go to --> Query Directory --> (you will see the infoset in the name being displayed) Execute.
    4. Select the Query you would want to unlock.
    5. Click on Cancel Edit lock button or Edit --> Cancel edit lock or Shift + F6
    Done...!!!! Query is unlocked
    José M Mercado

  • SAP Query in SQVI transaction

    Hi All,
    I have created a Query in SQVI transaction, How to assign a transaction code for it.
    Thanks in advance
    Raju

    hi,
    follow the link:
    http://help.sap.com/saphelp_erp2005/helpdata/en/b7/26ddebb1f311d295f40000e82de14a/frameset.htm
    you will get full information about SAP Query.
    There is no SQV1 transaction.
    SQ01 --> maintain query
    SQ02 --> maintain info set
    SQ03 --> maintain user groups
    he SAP Query application is used to create reports not already contained in the default. It has been designed for users with little or no knowledge of the SAP programming language ABAP.
    SAP Query offers users a broad range of ways to define reports and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    The SAP Query comprises five components: Queries, InfoSet Query, InfoSets, User Groups and Translation/Query.
    hope this may help you,
    regards,
    srinivas

  • JUMP (RSBBS) from a query on a transaction(local)

    Hi,
    Can You help me ?
    I want to do a jump from a query on a transaction RSDMD (on local system).But particullary, I want to put in parameter the data  (doc number) with wich I jumped.
    So How I have to define the assignement detail in RSBBS for the transaction RSDMD?
    Because, for the moment I have a popup where I must fill the name of my charactéristic and after the number of my doc number (for example), and it's with the doc number that I do my jump.
    But, I don't want to fill characteristic and doc number, I want that it's automaticaly...
    Thank you for your help...
    Carine.

    Calling the RRI with a transaction or an ABAP/4 Report as the receiver is done with the RRI
    from the SAP NetWeaver Application Server. This is possible in an ERP system, a CRM
    system or within the BI system. The selections are prepared by the BI system that does not
    recognize the transaction or the report. The assignment is transferred from the RRI of the
    SAP NetWeaver Application Server using inverse transformation rules. There must also be a
    complete chain from the DataSource of the source system to the InfoSource, through
    transformations up to the InfoProvider. This does not mean that data absolutely has to be
    loaded using this chain. If this chain does not exist, the RRI cannot transfer the selections to
    the source system. Calling the RRI only works for fields with dictionary reference. For ABAP reports, this means that the parameter has to be PARAMETERS param LIKE <table_field>
    For transactions, this means that the Dynpro has to have a dictionary reference. Not every
    transaction can be called with the RRI of the SAP Application Server.
    These are the steps to do this
    If you want to jump from a Web application to a transaction or ABAP/4 report using the
    RRI, an ITS for the target system has to be assigned beforehand.
    ● The value of the input field to be supplied must be known at the time of the jump (for
    example by entering a single value on the selection screen of the sender or by the
    cursor position at the time of the jump).
    ● Sender and receiver fields that correspond to one another generally must link to the
    same data element or at least to the same domain, otherwise the values cannot be
    assigned to one another.
    ● The assignment of sender and receiver fields must always be a 1:1 assignment. For
    example, the transactions called from the start screen cannot have two input fields of
    the same data type. Then it is not clear which of the fields is to be supplied, which
    means neither of them is supplied.
    ● There has to be a complete chain from the DataSource of the source system to the
    InfoSource, through update rules up to the target.
    Proceed as follows after you have created the sender-receiver assignment as described
    above.
    1. As the type, choose Table Field. The columns Field Name, Data Element, Domain and
    Set-/Get Parameter become input ready.
    2.  Specify the field name, data element, domain and parameter ID for the receiver
    transaction. You need to know this information because input help is not available. You
    can usually find the parameter ID in the ABAP dictionary entry for the data element.
    If this does not always make jumping to the transaction possible, it may be necessary to
    program a short ABAP start program. For more information on how to do this, see SAP Note
    number 383077

  • BEX Query to ABAP Transaction Code

    Hi,
    RRI from BEX Query to ABAP Transaction Code When I Right clivk and select GOTO on my Delivery order
    say 120012 It shd directly go into tht particular DO The transaction code is vl33n
    but when i give ABAP Transaction as reciever object it only goes to the initial screen of query where we manually need to give the DO Number It does not show the DO 120012 directly
    thx,
    amar

    Hi Amar
    Try doing Assigning Infoobject to R/3 field in Assignment details RSBBS transaction:
    Check below thread for explaination
    Re: RRI -  Selection was not Restrcited
    Ravi

  • How do i save abap query as a transaction ?

    hi
    i created an abap query and i want to know how to connect this query to a transaction
    i also want to know <b>what is the difference between standard area</b> ( client specific) <b>and</b> <b>global area</b> ( cross-client ) ? ( i created my query under global area )
    thanks
    ami

    Hi..
    Steps to Create a Tcode for SAP Query:
    1. Goto Tcode SQ01.
    Enter the Query Name
    Select the Menu path: Query -> More Options -> Generate program.
    2. in SE93 Create a tcode for this program .
        Select the Transaction type as Report Transaction.
    <b>reward if helpful. </b>

  • No flashback versions query and flashback transaction query tools on EM?

    No Flashback Versions Query and Flashback Transaction Query tools on EM Console?
    How to do Flashback Versions Query work and Flashback Transaction Query on EM Console?

    No Flashback Versions Query and Flashback Transaction
    Query tools on EM Console?WOrks on mine.
    How to do Flashback Versions Query work and Flashback
    Transaction Query on EM Console?Part of the Maintenance , Recovery wizard. Not intended to be a casual query tool.

  • Slow response when query v$lock or some data dictionary

    Hello,
    We have a severe problem with our database performance problem. Here is the situation:
    1. When query data dictionary such as v$lock from any Windows machine on the network, the performance is slow (about 3 minutes.)
    2. When query v$lock directly on the server where database reside, the query come back fast (normal).
    3. When query user table such as employees from any windows machine on the network, the performance is normal.
    4. When query user table directly from server where the database reside, the query come back normal.
    Looking at v$session_wait on the slow query, it is waiting on "SQL*Net message to client".
    We have people from our network group, security group and did not find anything problem.
    Thank for you help!!!

    user8175606 wrote:
    Hello,
    We have a severe problem with our database performance problem. Here is the situation:
    1. When query data dictionary such as v$lock from any Windows machine on the network, the performance is slow (about 3 minutes.)
    2. When query v$lock directly on the server where database reside, the query come back fast (normal).
    3. When query user table such as employees from any windows machine on the network, the performance is normal.
    4. When query user table directly from server where the database reside, the query come back normal.
    Looking at v$session_wait on the slow query, it is waiting on "SQL*Net message to client".
    We have people from our network group, security group and did not find anything problem.
    Thank for you help!!!I saw the same problem several times. All of them were related with wrong execution plan in the v$lock (and dba_locks, and others based on v$lock). For instance due to "crazy" optimizer mode FIRST_ROWS.
    Also look at note 431770.1.
    I suggest that when you looked at v$session_wait and saw the event "SQL*Net message to client" state of the event was not = WAITING. Please check. It means that Oracle is not waiting but is burning CPU.
    Thus, please let us know - does another optimizer mode improve performance?
    select /*+ all_rows */ * from v$lock;
    select /*+ rule */ * from v$lock;

  • SQL query to get transaction detail from DEFERRED_TRAN_ID

    Hi,
    I'm using Oracle Advance Replication and get the transaction detail from Enterprise Manager Console.
    So instead of using the console.
    Is there a way any SQL query which get transaction details like SQL query fired, old and new column value etc from DEFERRED_TRAN_ID.
    thanks

    quote:
    Originally posted by:
    lucapac
    I have two tables: tblWorkers and tblSkills. tblWorkers has a
    column, Skills, which is populated from a multiple-checkbox form
    field with one or more skill_IDs from tblSkills, so each
    tblWorkers.Skills consists of a list of one or more comma-delimited
    values. For any Skill_ID, I need to generate a listing of all
    Workers with the corresponding skill, so I have tried to do
    something along the lines of SELECT WorkerName FROM tblWorkers
    WHERE Skills IN (Skills, #FORM.Skill_ID#) ... or WHERE Skills IN
    (ListFind(Skills, #FORM.Skill_ID#)) ... etc. ??? My results (once I
    got data type mismatches out of the way) return all Workers, not
    just those with the desired Skill. There must be an easy way to do
    this ... How do people with a bit more CF/SQL experience than I
    have do this???
    As Kronin implied, we normalize our databases. If you don't
    understand that answer, the book "Database Design for Mere Mortals"
    is often mentioned on this forum.

  • Assigments to jump from BW-query to BP transaction

    Hello,
    I would like to know what assigments I should do in RSSB transaction to be able to jump from a BW query to BP transaction (CRM).
    Thanks in advance.
    Carmen

    Hi,
    The transaction code is RSBBS.Here you have to set the source query and the source target. and set the target to your BP transaction(CRM). The parameters depend on the way you want to have your jump.
    Hope this helps.
    Assign points if useful.
    Regards,
    Kiran

  • OKP1 What is differrence  between locking period and locking Transaction

    Hello Gurus,
    In Transaction code OKP1, which is use to lock controlling periods for controlling. There are two options One is locking the periods and the other is locking the transactions. Any body knows what is the differrence.
    Thanks

    Hi Rickyy,
    The two buttons act as 'Select All' function. Select a period (place cursor on any period) and click on button 'Lock Period' to lock all transactions in a period (vertical). Similarly, select a transaction (row) and click on button 'Lock transaction' which will lock all the periods for that transaction (horizontal). In the same way, you have unlock buttons.
    Hope this helps.

  • Query on Locked entry and sorting a table

    Hello Friends,
    I have a query on the below
    1. I am running a BDC for TCODE IK11. sO IN A loop i use call transaction statement for
    updating the records. When the first record is created for a measurement point
    by running the tcode then the second recordshows that the measurement point is locked.
    and it doesnt let another record getting updated.
    what should be done in this case.
    2. I am trying to simply sort a table with the three fields.
    point date time. When i sort the table  by only point and time in descending order its
    working fine but when i am trying to sort the table by point date time it is not sorting
    it in descending order.
    My requirement is that i want the latest date and time of the measurepoint created in the system.
    Pls Help.
    Thanks
    Rohit

    Hi,
    Thanks, SupportsSortCollection is the one I was missing.
    Although now I can click the headings, it is pretty useless because sorting behaves totally erratic. (This is true even if showing the entire table, not only a given range of it.)
    For example the following happen randomly:
    - Mostly a columns is not sorted properly. After clicking it e.g. 3-4 times, it is sorted properly, but only in one of the orders (e.g. descending).
    - The ascending or descending order of the rows varies from click to click. E.g. the ascending order of rows is not the same every time.
    - Sometimes clicking does nothing, no sorting is fired.
    - Etc...
    So basically my question is still the same as in my first post. :(
    Regards,
    Patrik

  • How to find the locked transaction?

    Hi All,
    Problem:
    We are trying to VOID a cheque which was already accounted for some reason. We are unable to do that. The VOID option is there, but when we go to that option and give Check date and GL Date, system says it will void. On clicking OK in this screen, another message comes saying VOIDED..Requery to see changes... But when we requery we are unable to see the voided check. Still the check status is Negotiable.
    Solution:
    Usually happens when there is a database lock on that partucular check.
    Some payment bacth of adjustment session had selected this particluar check but has not released it .
    Pls ask ur dba to have it checked and if it is indeed locked , either try to release it or kill that session.
    Now my query is how can I find out the locks via V$LOCK table.
    Thanks
    Shivank

    Hi All,
    I have found out the result of same.
    We can find out the BLOCKING transactions from
    SQL> select * from dba_locks where BLOCKING_OTHERS='BLOCKING';
    Once you find out the blocking transactions you can check it with V$SESSION for the SID and SERIAL# i.e.
    SQL> select * from V$SESSION where SID in (<SESSION_ID>);
    Now you can release the locks by
    SQL>ALTER SYSTEM KILL SESSION 'SID,SERIAL#';
    Thanks
    Shivank
    Message was edited by:
    anchorage.india

  • Error while query execution - Query getting locked by another user execute

    Hi All,
    I am facing an issue ..
    When I execute a query I am getting an error message ie popping as blocked by some other user. And I able to see the lock when I go to SM12. If the other user logged off or if we unlock his entry, then both the workbook and query is getting executed as expected. What can be the reason for this phenomena?
    In my understanding, in the same time multiple users can execute the query /workbook. But in our case its not allowing.
    Can someone suggest a resolution at the earliest, as it is affecting the reports in live environment
    Regards
    Mathew

    The Bex Analyser (Front end) Patch is 501 and the SAP BI is 15.
    The error message that I am getting while executing the query is "The object requested is currently locked by user --". 
    When I go to SM12, I can see a lock in the user's name.

  • Issue with query for AR transactions posted to GL

    Hi all,
    I'm using Oracle R12.1.3.
    I have a report similar to Account Analysis Report which displays Transactions posted to GL.
    I have the following issue:
    In the result of the report if an AR transaction has 2 lines or more I get multiplication of them. So my question is how can I identify which AR transaction line is linked to GL line number?
    Here is my query:
    SELECT DISTINCT GJH.JE_HEADER_ID,
      GJL.JE_LINE_NUM,
      PARTY.PARTY_NAME CUSTOMER_VENDOR,
      RCT.TRX_NUMBER TRANS_NUMBER,
      SUBSTR(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(SUBSTR(CTL.DESCRIPTION, 1, 2000), CHR(13), ''), CHR(10), ''), CHR(9), ''), CHR(11), ''), CHR(12), ''), 1, 100) DESCRIPTION,
      NVL(xal.entered_dr, 0) - NVL(xal.entered_cr, 0) amount,
      CTL.*
    FROM GL.GL_JE_HEADERS GJH,
      GL.GL_JE_LINES GJL,
      GL.GL_CODE_COMBINATIONS GCC,
      GL.GL_PERIODS GLP,
      GL.GL_IMPORT_REFERENCES IMP,
      XLA.XLA_AE_LINES XAL,
      XLA.XLA_AE_HEADERS XAH,
      XLA.XLA_EVENTS XE,
      XLA.XLA_TRANSACTION_ENTITIES XTE,
      RA_CUSTOMER_TRX_ALL RCT,
      HZ_PARTIES PARTY,
      AR.HZ_CUST_ACCOUNTS CA,
      GL_CODE_COMBINATIONS_KFV CC,
      AR.RA_CUSTOMER_TRX_LINES_ALL CTL,
      AR.RA_CUST_TRX_LINE_GL_DIST_ALL CTLD
    WHERE 1              = 1
    AND GJH.JE_HEADER_ID = GJL.JE_HEADER_ID
      --      AND GJL.STATUS || '' = 'P'
    AND GCC.CODE_COMBINATION_ID   = CTLD.CODE_COMBINATION_ID
    AND GJH.PERIOD_NAME           = GLP.PERIOD_NAME
    AND RCT.CUSTOMER_TRX_ID       = CTLD.CUSTOMER_TRX_ID
    AND CTLD.CUSTOMER_TRX_LINE_ID = CTL.CUSTOMER_TRX_LINE_ID
    AND ctld.customer_trx_id      = RCT.CUSTOMER_TRX_ID
      --       AND GLP.ADJUSTMENT_PERIOD_FLAG <> 'Y'
    AND GJH.JE_SOURCE           = 'Receivables'
    AND GJL.JE_HEADER_ID        = IMP.JE_HEADER_ID
    AND GJL.JE_LINE_NUM         = IMP.JE_LINE_NUM
    AND IMP.GL_SL_LINK_ID       = XAL.GL_SL_LINK_ID
    AND IMP.GL_SL_LINK_TABLE    = XAL.GL_SL_LINK_TABLE
    AND XAL.APPLICATION_ID      = XAH.APPLICATION_ID
    AND XAL.AE_HEADER_ID        = XAH.AE_HEADER_ID
    AND XAH.APPLICATION_ID      = XE.APPLICATION_ID
    AND XAH.EVENT_ID            = XE.EVENT_ID
    AND XE.APPLICATION_ID       = XTE.APPLICATION_ID
    AND XTE.APPLICATION_ID      = 222
    AND XE.ENTITY_ID            = XTE.ENTITY_ID
    AND XTE.ENTITY_CODE         = 'TRANSACTIONS'
    AND XTE.SOURCE_ID_INT_1     = RCT.CUSTOMER_TRX_ID
    AND RCT.BILL_TO_CUSTOMER_ID = CA.CUST_ACCOUNT_ID
    AND CA.PARTY_ID             = PARTY.PARTY_ID
    AND rcT.CUSTOMER_TRX_ID     = ctl.CUSTOMER_TRX_Id
    AND CTL.LINE_TYPE           = 'LINE'
    AND XAL.CODE_COMBINATION_ID = CC.CODE_COMBINATION_ID
    AND RCT.CUSTOMER_TRX_ID                              = 8857929
    AND GJL.JE_LINE_NUM                                  = 8866
    Any ideas?
    Thanks in advance,
    Stoyanov.

    Hi Stoyanov,
    Please try using the table xla_distribution_links to join with ra_cust_trx_line_gl_dist_all by using
    xla_distribution_links.source_distribution_id_num_1 = ra_cust_trx_line_gl_dist_all.cust_trx_line_gl_dist_id
    The below link gives the join conditions for various sub ledger types :
    Techincal: R12 SLA Tables connection to AP, AR, INV,Payments, Receiving
    Hope this helps.
    Regards,
    Manjusha.

Maybe you are looking for

  • Find all users who does not have access to a shared mailbox.

    Hi all, We are in the proces of setting up a hybrid enviroment with our E2010 towards Office365. As part of that, we want to move several batches of users. The first bunch if users we move should not use any shared mailboxes etc. but how do I find th

  • Ignoring the dot and Minus Symbol

    Hello ABAPpers, I have a field WRBTR(Amount in document currency) whose value contains the dot as well as minus symbol. I have to ignore this value. Is their any function module or the standard method to ignore this value. Please reply. Regards, Rahu

  • Sync multiple files in Camera Raw 8.2 and Elements 12

    I can't see how its done.  In a previous version I was told to make adjustments to one then click the other files I wanted to apply the adjustments to but that doesn't seem to be happening.  If that's how you do it then I am obviously not doing it co

  • SelectBooleanCheckbox corresponding to a numeric db field

    Hi all, I am trying to use JSF (and Icefaces, but in this case I don't think this matters) to display and let users edit some info from a (MySQL) database. In my tables, I have various tinyint fields I use for boolean values. I want to display these

  • Query on set

    Hi all, I have requirement like there is set a called zproj_net_ra under this set we have two subcategories zproj_rev and zproj_cst under each subcategory there are a range of values or set id's so, now my requirement when i select a particular set i