Is it possible to get locked objects in passed time?
Hi,
I would like to get locked objects in passed time. The oracle version is 9i.
For example,
Can I get a list locked objects five days ago? Because I would like to keep locked objects statistics?
Does these information stored?
regards,
Hi,
your best shot is ASH (active session history). It contains information about active sessions, their wait events, wait times, blockers, objects accessed, SQL running etc. For recent events you may query V$ACTIVE_SESSION_HISTORY, if you are interested in older data then you can try
looking in DBA_HIST_ACTIVE_SESS_HISTORY.
There are many limitations when analyzing ASH data, such as:
1) limited retention time
2) periodic sampling (you won't be able to see anything that falls in between snapshots)
3) bias towards longer events
etc.
so you need to be careful when analyzing these data.
Best regards,
Nikolay
Similar Messages
-
Line Chart: It is possible to get the object reference from a flash chart
Hi Folks,
hope you feel well ...
I wan't to get the Object Reference from a Chart Flash Object using javascript in the HTML Header of a Apex Page.
It's long time ago with Oracle/Java and so my skills are really shity :-)
The Functionbody works, but the following error occurs: chart.refresh is not a function
It is necessary to CAST it ? with the Class AnyChart.js ?
After 5 hours i give up ^^ is this kind of object handling possible ? THX4HELP@ll
Apex Page HTML Header
<script type="text/javascript">
function hideSID2()
var chart = document.getElementById("*c7067437546726610*");
chart.refresh();
</script>
HTML File at runtime:
<div class="rc-body"><div class="rc-body-r"><div class="rc-content-main"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="1400"
height="600"
id="c7067437546726610"
align="top"> ...If you are using adobe Flex Builder to develop SWF, please be sure using ExternalInterface class to expose the refresh() method.
then you can should be able to call this method in Javascript. -
To get Lock object for Standard Table
Hi all,
i want to update table FKK_GPSHAD,so i need corresponding lock object for this table.can any one sughgest me the solution for this.
Thanks in advance,...Hi,
Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database.
SAP Provide three type of Lock objects.
Read Lock(Shared Locked)
protects read access to an object. The read lock allows other transactions read access but not write access to
the locked area of the table
Write Lock(exclusive lock)
protects write access to an object. The write lock allows other transactions neither read nor write access to
the locked area of the table.
Enhanced write lock (exclusive lock without cumulating)
works like a write lock except that the enhanced write lock also protects from further accesses from the
same transaction.
You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
Technicaly:
When you create a lock object System automatically creat two function module.
1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
You have to use these function module in your program.
check this link for example.
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
tables:vbak.
call function 'ENQUEUE_EZLOCK3'
exporting
mode_vbak = 'E'
mandt = sy-mandt
vbeln = vbak-vbeln
X_VBELN = ' '
_SCOPE = '2'
_WAIT = ' '
_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.
Normally ABAPers will create the Lock objects, because we know when to lock and how to lock and where to lock the Object then after completing our updations we unlock the Objects in the Tables
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
purpose: If multiple user try to access a database object, inconsistency may occer. To avoid that inconsistency and to let multiple user give the accessibility of the database objects the locking mechanism is used.
Steps: first we create a loc object in se11 . Suppose for a table mara. It will create two functional module.:
1. enque_lockobject
1. deque_lockobject
before updating any table first we lock the table by calling enque_lockobject fm and then after updating we release the lock by deque_lockobject.
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
GO TO SE11
Select the radio button "Lock object"..
Give the name starts with EZ or EY..
Example: EYTEST
Press Create button..
Give the short description..
Example: Lock object for table ZTABLE..
In the tables tab..Give the table name..
Example: ZTABLE
Save and generate..
Your lock object is now created..You can see the LOCK MODULES..
In the menu ..GOTO -> LOCK MODULES..There you can see the ENQUEUE and DEQUEUE function
Lock objects:
http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
Match Code Objects:
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
http://searchsap.techtarget.com/tip/0,289483,sid21_gci553386,00.html
See this link:
http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
Check these links -
lock objects
Lock Objects
Lock Objects
Please reward points if useful.
Regards
Rose -
Is it possible to get object type name with help of key field?
can any one tell me is it really possible to get the object type name if i have only key field,
are there any tables which store the object type names & keyfield. or there are any functionmodue which gives object type name by entering keyfield.Hello,
If the PO has workflows associated with it, there is a table SWIWIOBJCT which stores details of the workitem, object key , object type details.
If you input the object key to this table ( For ex: PO number in this case) , it will give you the corresponding object type for the object key for Workitem type F.
Thanks,
Sowmya Arni -
How to get PortetSession object in backing file
Hi all,
Is it possible to get PortletSession object for current portlet in a backing file. If it is then could you please tell me how?
regards
-saurabhPl see your duplicate post here - How to capture SQL *Loader program parameter value in control file?
Srini -
Lock objects to allow 1 user to insert data at a time
Is it possible to Use lock objects to allow only 1 user to insert data into a database table at a time.
I am creating Assets using "BAPI_FIXEDASSET_CREATE1".
To create "n" assets similar to the asset I use a DO loop in my program and call the BAPI. (Please refer number of fixed assets field in AS01).
I need to avoid other users from manually creating assets using AS01 while the BAPI is running so that the range of assets created is consistent ( without gaps )
Thanks and Regards,
Ashwin<b>Lock objects</b> are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database.
SAP Provide three type of Lock objects.
- Read Lock(Shared Locked)
protects read access to an object. The read lock allows other transactions read access but not write access to
the locked area of the table
- Write Lock(exclusive lock)
protects write access to an object. The write lock allows other transactions neither read nor write access to
the locked area of the table.
- Enhanced write lock (exclusive lock without cumulating)
works like a write lock except that the enhanced write lock also protects from further accesses from the
same transaction.
You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
Technicaly:
When you create a lock object System automatically creat two function module.
1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
regards,
srinivas
<b>*reward for useful answers*</b> -
Hi,
Is it possible to create lock objects at runtime? if not, how do I lock tables at runtime when the table name is specified in the selection screen by the user?
Thanks.
TykenHi tyken,
Try this.
Lock Objects are Created using Tcode SE11.
The Lock object name must be start with EZur name.
Mainly lock objects are used for locking the transactions, tables --etec.
Multiple users can not updated the same transaction at the same time.
Whenever u create a lock object using se11. SAP internally
creates a two function modules:
Enqueue_lockobjname ---For Locking purpose,
dequeue_lockobjname---For Unlocking purpose.
U make use of these fms to lock and unlock transctions, tables..etc.
Steps to create lock objects :
GO TO SE11
Select the radio button "Lock object"..
Give the name starts with EZ or EY..
Example: EYTEST
Press Create button..
Give the short description..
Example: Lock object for table ZTABLE..
In the tables tab..Give the table name..
Example: ZTABLE
Save and generate..
Your lock object is now created..You can see the LOCK MODULES..
In the menu ..GOTO -> LOCK MODULES..There you can see the ENQUEUE and DEQUEUE function
The example is as follws:
EPORT ZLOCK_UNLOCK
MESSAGE-ID ZBDC.
TABLES ZSTUD.
DATA text(8) TYPE c.
CALL SCREEN 100.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'SELECT'.
SELECT SINGLE * FROM ZSTUD WHERE ROLLNO = ZSTUD-ROLLNO.
MESSAGE i004 WITH 'SY-SUBRC:' sy-subrc.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'ENQUEUE'.
CALL FUNCTION 'ENQUEUE_EZLOCK1'
EXPORTING
MODE_ZSTUD = 'X'
ROLLNO = ZSTUD-ROLLNO
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3.
CASE sy-subrc.
WHEN 0.
MESSAGE i004 WITH 'Enqueue successful'(001).
WHEN 1.
text = sy-msgv1.
MESSAGE e004 WITH 'Record already'(002) 'locked by'(003)
text.
CALL TRANSACTION 'SM12'.
WHEN 2 OR 3.
MESSAGE e004 WITH 'Error in enqueue!'(004)
'SY-SUBRC:' sy-subrc.
ENDCASE.
WHEN 'DEQUEUE'.
CALL FUNCTION 'DEQUEUE_EZLOCK1'
EXPORTING
MODE_ZSTUD = 'X'
ROLLNO = ZSTUD-ROLLNO
EXCEPTIONS
OTHERS = 1.
CASE sy-subrc.
WHEN 0.
MESSAGE i004 WITH 'Dequeue successful'(005).
WHEN 1.
MESSAGE e004 WITH 'Error in dequeue!'(006).
ENDCASE.
WHEN 'SM12'.
CALL TRANSACTION 'SM12'.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'BASIC'.
ENDMODULE. " STATUS_0100 OUTPUT
Regards,
Chitra -
Workitem ID wise to get the Object value
Hi All,
is it possible to get the object value form Workitem id wise.
for example workitem id '446085' based on that workitem id i want to retrieve the object value.
Please clarify.,
Thanks & Regards
K.Gunasekar.Hi
I want to update the object Reference.
for example i am getting the object value from SAP_WAPI_GET_OBJECTS. (F.M)
based on the workitem_id.
i want to update the objects reference from the original one.
if is it possible means please let me know.
Thanks & Regards
K.Gunasekar. -
Hi Experts,
Can you please guide me how i can find out the lock object name. If i know the table name. is there any table which stores the table name and lock object name for that table.
Or any function module to which i can pass table name in return i can get lock object name.
i have to do all this by coding.
Its very urgect.
Thanks in advance.
AZAD:)Hi
Lock Objects Tables is: <b>DD25L</b>
Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database.
SAP Provide three type of Lock objects.
- Read Lock(Shared Locked)
protects read access to an object. The read lock allows other transactions read access but not write access to
the locked area of the table
- Write Lock(exclusive lock)
protects write access to an object. The write lock allows other transactions neither read nor write access to
the locked area of the table.
- Enhanced write lock (exclusive lock without cumulating)
works like a write lock except that the enhanced write lock also protects from further accesses from the
same transaction.
You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
Technicaly:
When you create a lock object System automatically creat two function module.
1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
You have to use these function module in your program.
check this link for example.
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
tables:vbak.
call function 'ENQUEUE_EZLOCK3'
exporting
mode_vbak = 'E'
mandt = sy-mandt
vbeln = vbak-vbeln
X_VBELN = ' '
_SCOPE = '2'
_WAIT = ' '
_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.
Reward points if useful
Regards
Anji
Message was edited by:
Anji Reddy Vangala -
Hii all, I just bought an used iphone 5c from an user and only after a few weeks realised that it got activation locked. He might be unaware of that. Is it possible to get back to him and unlock the device for me as i have not contacts with him presently.
Well first you need to sync your iPhone 4 with your Mac/PC so that it will transfer all your music, apps, podcasts, etc. Then sync your iPod Touch and the media you selected during the sync should be there on your iPhone. If you have difficulty in transferring media from iPhone to your computer, try softwares like TransCopy. They will help in transferring data from your iphone to your computer. Dont forget to check that all the transferred data is in the iTunes media folder so that the iTunes can locate the files. Link to Transcopy software :
http://www.copytrans.net/copytrans.php -
Visual Composer objects getting locked
Hi All,
I have been facing one problem from last few days.
Sometimes the objects which I am working on get locked and even if I log off completely. And try to open the same object , the object open only in read-only mode.
But to mention one more thing that the same objects are sometimes available in editing mode on the next day or after some time.
Is there a way around to deal with this issue.
I will appreciate your answers.
Regards
Rahul BindrooDid you not understand my last posting? I can't help you unless you respond to what I've asked.
What do you mean when you say "locked".
What are you attempting to do, and are you doing it on development or on the quality server? -
Is it possible to get the caller object in a function call hierarchy ?
Hi,
I have a problem in hand for adding a new functionality to an existing code with MINIMAL code change. For this I need to get some extra information in a function call from its caller. And for this I do not want to change the signature of the method, as it requires a lot of code change. So I need to have a programming facility by which I can get the object from which the function was invoked. Some thing like "{code}this.CALLEROBJECT{code}".
Please let me know whether we can achieve this in JAVA. I wonder if such a facility exists in any programming language...
Thanks in advance.
Regards
JobyNo.
Youd have to buy it Germany or see if an Apple Authrorized reseller in Singapore could order you the keyboard. -
i had the service with atta while ago,however, i never upgraded it to the new software bec ,i still use like i pod,now whenever iwant todownload sth.
it tells you need to update your version of software,however, im scared if ido my i phone would be locked
i guess my question now is it ok to update without fear that my i phone get locked ? thank youYes, if it's not officially unlocked by ATT&T. Updating will lock it back to ATT&T.
-
SOAP to IDocs Scenario...IDocs getting locked at SAP
Dear Experts
We are sending measuring point details to SAP system from 3rd Party. Scenario is working fine for small amount of load. If more number of messages triggered (say 100) IDocs at SAP are getting stuck u201CMeasPoint 10000211 currently locked -> document processing not possibleu201D.
I tried configuring Sender SOAP adapter as EOIO and specified the Queue name as Test Queue. Still IDocs are getting stuck at SAP ECC. Now one more issues messages are getting stuck in queue SMQ2. We can control the flow by using BPM in PI. I donu2019t want to use BPM for this. Can we control this from SAP or using Trigger by background program in Partner profiles?
Please suggest. Thank You.
SAP Error Details:-MeasPoint 10000211 currently locked -> document processing not possible
Message no. IR007
Diagnosis
The object you want to access is locked, either
u2022 By yourself in another session, or
u2022 By another user
u2022 or by the system, which is still processing data for this object
System Response
The system cannot access the object.
Procedure
u2022 If you are locking the object yourself in another session, exit processing in the other session and continue processing in this session.
u2022 If the object is locked by another user, you can
o contact the other user
o wait until the other user has finished processing the object
u2022 If the object is locked because the system is still processing its data, wait a while, and then call up the object again.1. Create a new process code "Z" and check the enque state of the objects before passing back to standard processing modules. Id also change to process immediate as part of this change
or
2. I think assuming RBDAPP01 is still used you may be able to make use of an exit there to do the same thing .. check and wait before processing.
or
3. In message mapping place a UDF that has some kind of wait timer in it (this is random and wont always work cause you wont know when the lock is dropped) but should work.
or
4. Dont use IDOC's create an abap proxy to do the work as a sync process. Processing will need to finish in the proxy and return to the PI stack before the next message is processed in the EOIO queue - this would be the prefered option as far as im concerned, it guarenteed to work and as long as your proxy sticks to the standard rouintes it should be upgrade friendly.
or
5. Use a proxy as above but dont do any processing, just use the proxy to build the IDOC and post it - then check the status of the locks until you are ready then rinse and repeat ..... but like scratching your right ear with your left hand .. but it will work. -
Auto Unlocking of locked objects in SM12
Hi All,
Is there a way that all the object locked in TCODE SM12 for over say 1 or 2 hours, gets unlocked automatically.
Any RZ10 parameter or via some other means.
I searched but couldn't get anything on the same.
Does anyone has some ideas on this. Please share, will be highly obliged.
Thanks & REgards,
AshutoshHello Ashutosh
It would be a bad idea to auto cleanup locks in transaction SM12. Those locks have a purpose to keep your data consistent.
If you have issues that locks are set and cause issues for other users you should check where the locks come from and take action on it.
Setting different type of timeouts could help in some cases (as indicated above) to prevent users from leaving their screens in the middle of a transaction, possibly locking objects. User awareness can also help out (restricting reporting to the neccesary data and not requesting data from 10 years ago.
Do you currently have lock issues? If yes you can post on SDN to get some help on those.
Kind regards
Tom
Maybe you are looking for
-
Preview.app increases PDF file size.
When making changes to a PDF (in my case, creating annotations), Preview.app will increase the file size of a PDF if that PDF was run through Acrobat Pro's "Reduce File Size" process. For example, I have a PDF that I created using a Book2Net book sca
-
CostCenetr not appearing in service PR for second line item
Hi Experts, When we create a service shopping cart, if there more than one item in the shopping cart , in back end system in service PR under services tab column Cost Center is blank for second line item. How can we solve this? Regards, Anubhav
-
IMovie consistently crashing! Copy of error report linked inside.
Hello everyone. I have been using iMovie to edit videos I film with my Panasonic DVD camera for a while now. Eventually, the program started randomly crashing here and there. I thought it had something to do with my camera, but it started crashing be
-
2014 mac mini loosing internet connection
Hi, my relatively new mac mini with most current system suddenly started to loose it's internet connection. WiFi or wired makes no difference. It works for a bit then I get time outs, spinning balls and nothing works anymore. All other devices on the
-
Hello, Our data loading background jobs fails with SYSTEM_CANCELED runtime error. Below is the "The program "GP......." was terminated manually." Termination occurred in the ABAP program "GP......." - in "PROCESS_BUFFER_TABLES". The main program was