Clearing locks automation

hi,
We have OEM 10.2.0.4 and we get blocking session's from Blocking Session Count metric. Here we manually clear locks. we wanted to automate it forms related locks only thru corrective action. Can you please share your thoughts?
Regards

You can do this by creating a corrective action script based on the blocking session alert. Set the number of occurrences on the alert to the length of time you want to wait before killing the session. I had this corrective action SQL script running in OMS 10.2.0.3. (Not sure about 10.2.0.4).
spool /tmp/killed_session.out
set feedback on
set heading on
set echo on
set serveroutput on
DECLARE
v_sid varchar2(15);
v_serial varchar2(15);
BEGIN
select substr('%key_value_sid%',instr('%key_value_sid%',':')+2,instr('%key_value_sid%',' Serial#')-6)
into v_sid from dual;
select substr('%key_value_sid%',instr('%key_value_sid%',':',1,2)+2)
into v_serial from dual;
dbms_output.put_line('killed session sid :'||v_sid||' serial :'||v_serial||' %key_value_sid%');
execute immediate 'alter system kill session'||chr(39)||v_sid||','||v_serial||chr(39);
end;
exit;

Similar Messages

  • Unable to SMPTE LOCK automation

    i am still struggling here with this locking issue!! the regions are locking fine, but the automation is NOT locking on any of my projects...
    After SMPTE locking automation, by accessing the automation event list, selecting all, and then locking everything, I can still click and MOVE automation, which results in the flattening out of the yellow automation curve across whatever track's automation I clicked on and moved, and thus the disappearance of the automation I've done.
    If I change the tempo, after locking automation, even by the slightest amount, which is the ultimate reason why I am doing this, ALL yellow automation curves flatten out across ALL tracks, and same thing, as a result of the flattening, any automation I have done disappears.
    So the problem is that I am not able to SMPTE lock the automation. And I would like to know if anyone knows what is causing this issue, so I can make the change, get the automation to lock, so I can ultimately change the tempo of the song without effecting automation or positioning of regions.
    I hope some one can help me trouble shoot. THANKS.

    I am working with logic pro 8. ischwartz gave me the most concise instructions on how to SMPTE lock automation, he even let me send him a file, and he was successful in solving the issue on his machine, but still I could not get down to the bottom of it myself.
    eriksimon's post doesnt help because I already know how to lock SMPTE position, open a new window containing only automation, etc, etc. i am TOO familiar with all that.
    I need to be able to line up my vocals EXACTLY based on the proper tempo. I left this alone for a while because I thought I could pull off guesstimating where my voice can be copied and pasted for the choruses and be satisfied with that, but I'm realizing now that my project is almost complete, that I am not satisfied with guesses.
    I cant make 1000 copies of my album, thinking that certain parts are slightly off, however slightly they may be. and the only way to get it to sound 100% natural so audio vocal regions can be copied and pasted with exaction, is to have the tempo SET prior to starting projects OR change the tempo from the default 120 to the proper tempo for each song NOW, which will only be possible through effectively locking all automation and of course, keeping all automation in tact.
    Anyways, I didn't set the tempo prior to beginning these projects, so back to the issue at hand, I need to be able to lock automation, so I can change the tempo on projects that are almost compete -- full of automation (though only volume), full of cuts and pieces of regions here and there, and overlapping regions in some places.
    Something is just holding me back from being able to lock automation, so I can change the tempo and solve my ultimate problem. And i feel like it might be something very simple...
    Anyways Ive described this issue in every possible way I can. I just hope that there's somebody out there who can help me get this right.
    PEACE & BLESSINGS,
    Ojan

  • Clearing Lock Reason

    Dear Experts,
    I have set the Clearing Lock in the document. I have searched in the DFKKOP table, where I am not able to identify the document number with clearing lock reason.
    I am having requirement that, if the line item is overdue system should lock the partcular line item, Is there any way to set the payment lock automatically?
    Could anyone please guide me in which table I can identify the document number with clearing lock.
    Thanks in Advance,
    Aswin
    Edited by: Aswinkumar.V on May 23, 2011 7:16 PM

    Try the func. module FKK_S_LOCK_CREATE.
    l_obj contains the lock object key.
    CALL FUNCTION 'FKK_S_LOCK_CREATE'
        EXPORTING
          i_loobj1              = l_obj
          i_appl_work_area      = ls_dfkkop-applk
          i_gpart               = ls_dfkkop-gpart
          i_vkont               = ls_dfkkop-vkont
          i_proid               = '10'
          i_lotyp               = '02'
          i_lockr               = l_reason
          i_fdate               = l_startdate
          i_tdate               = l_enddate
          i_uname               = sy-uname
        IMPORTING
          es_locks              = ls_locks
        EXCEPTIONS
          already_exist         = 1
          imp_data_not_complete = 2
          no_authority          = 3
          enqueue_lock          = 4
          wrong_data            = 5
          OTHERS                = 6.

  • Xmodmap -e "clear Lock" works *except* in xinitrc [SOLVED]

    It's a strange problem...
    * All other xmodmap expressions in my xinitrc work.  e.g. xmodmap -e "keysym Caps_Lock = F11"
    * The expression -e "clear Lock" works after I have started into the window manager, and type it from the terminal emulator
    * I tried, to no avail, also (sleep 3; xmodmap -e "clear Lock") &
    Help help!
    Last edited by jcolinzheng (2008-12-18 16:49:01)

    I don't know how I missed this thread before. This is freakin' brilliant. I had this in my openbox autostart file to remap Caps_Lock to Ctrl. It was working, then just stopped with some upgrade the other day:
    xmodmap -e "remove lock = Caps_Lock" &
    xmodmap -e "add control = Caps_Lock" &
    eval `cat $HOME/.fehbg` &
    numlockx &
    lxpanel &
    Instead of using sleep, I simply rearranged the order. It works now:
    xmodmap -e "remove lock = Caps_Lock" &
    eval `cat $HOME/.fehbg` &
    numlockx &
    lxpanel &
    xmodmap -e "add control = Caps_Lock" &
    I added [SOLVED] to the title.

  • Clear locked status for multiple files

    I accidentally left the "lock" switch on my SD card when importing photos, and now all of those pictures are "locked". In windows this was no big deal to remedy, I could just select all the files, choose properties, and uncheck the "Read-Only" checkbox. I am new to the Finder, and I'm struggling to find a good alternative in mac land.
    When I try the same trick in Finder, I just get as many Info boxes as files I selected instead of one. If I try to change the Lock flag on the folder containing the pictures, that doesn't seem to do the trick either. I checked the Automator, but I couldn't find any actions having to do with the "Get Info" box. Surely there is an easy way to do this that I don't know of. Does anyone know?

    Instead of using the Get Info window, use the Inspector window. Hold down the option key when you go to the Get Info command (either the menu or the shortcut, cmd+opt-i)

  • 8310 Password Enabled Locked....How to reset and clear lock to disable password?

    My 8310 phone has a lock on the Password Enabled, and I can't clear or change setting to disable password. Also, the security time out is locked, so I can't change the time either. Please help, I want to reset the phone so that it isn't locked and I can disable the security password.

    Yes. If you know who's company is was a part of, the BES admistrator can send a default IT policy to device to remove any restrictions from the device. I also found you can try removing the policy yourself. I've never tried this, but here's a link describing how to do so: http://www.blackberryfaq.com/index.php/Remove_IT_Policy
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • Locked Contract account can be cleared at Cash Desk

    Dear Experts,
    I have placed a Clearing lock on a Contract Account(tcode CAA2). But the due amounts on that contract account can still be cleared through the cash desk FPCJ.
    Where should the lock be placed to prevent all incoming payments for a particular contract account?
    Thanks & Regards,
    Malini

    HI ,
    In the view SM30 - V_TFK000S , should have the specification - Posting and clearing lock .
    Secondly the same has to be applied in the contract account in the payment lock reason .
    After assigning the same , system would not allow to accept payment against any document or even payment on account .
    Only thing that you have to remember is that the lock reason should have both payment as well as clearing lock .
    The other way is of pushing the locks in the documents through FPE2 or FPE2M , else the lock at contract account would work.
    Cheers ,
    Dewang

  • Clearing Open Items

    Dear Friends,
    This is an issue regarding clearing of open item.
    When a Business Partner pays an excess amount over the Open invoice items, it should normaly post it as a payment on Account.
    Any excess payment paid by the Customer Consumption Charges are getting settled against the next instalment due, which in turn should not happen. Excess payment made by any Customer against  Bill should reflect as Payment on Account, and should get reflected as Credit amount in his next bill getting generated.
    But in our case, the excess amount is getting adjusted against the Installment plan amount for the next month. The Client needs the excess amount to be shown as payment on account rather than clearing the next  month's installment plan.
    The grouping/sorting settings has been done based on Due date.
    Can anybody throw some light on the same?
    Thanks and Regards,
    Rajesh

    Hi Rajesh,
    I would suggest you to place clearing locks on the individual instalment plan line items until each of them is due based on the individual instalment plan line item due dates.
    So, if in case, excess payment comes in, it will not clear the instalment plan line items which are not due and will sit as payment on account, if there is no other debt against the account.
    Subsequently this will be reflected as excess payment on the customer's next invoice.
    You can place clearing locks during the instalment plan creation using event 3040.
    Hope it solves your query.....
    Thanks,
    Amlan

  • Reverse reset of Clearing Restriction

    Dear All,
    I have a requirement where I need to block a clearing of an invoice until customer signs an agreement.
    I have set a clearing restriction on the invoice.
    And I made an entry in modifiable clearing restriction in IMG. This allows manual reset of clearing restriction.
    But in case a user resets the restriction by mistake, how to set the restriction back again.
    Regards
    Malini

    Malini:
    Yuvi's suggestion is correct.  A clearing restriction can only be placed at time of creation, so your user cannot re-establish one.  You should go for a clearing lock instead.
    regards,
    bill.

  • Lock table

    My archival jobs continuously fails because of Lock table overflow even after increasing parameter enque/table_size  and then bounced.
    But  in SM12  No lock entries found 
    Under SM12 EXTRAS -> STATISTICS OR DIAGONOSTIICS are inactive
    Job logs as below...
    Job started
    Step 001 started (program ZRJJARC20, variant CLL4, user ID MINIO)
    Archiving session 000078 is being created
    Lock table overflow
    Job cancelled after system exception ERROR_MESSAGE
    Regards,
    Peter

    But i want to know why job fails even after clear lock entries in SM12.
    Below find statics of locks
    Enqueue Operations     42726
    rejected     47
    Error occured     1
    Dequeue Operations     4349
    Error occured     0
    Dequeue All Operations     3735
    Cleanup Operations     0
    Backup Operations     2
    Read Operations     5
    Compress Operations     0
    Verify Operations     0
    Records written     29182
    to the backup file     4
    Maximum Number of Lock Owners     25311
    Maximum Fill level     8
    Current Fill Level     6
    Maximum Number of Lock Arguments     25311
    Maximum Fill level     25310
    Current Fill Level     6
    Maximum Number of Lock Entries     25311
    Maximum Fill level     25310
    Current Fill Level     6
    Update; Fill Level at Maximum     1
    Current Fill Level     0
    Time in Lock Table /Seconds     2.876618s
    Wait for Lock Table /Seconds     0.736393s
    Time in Lock Server /Seconds     0.000000s

  • FPMA auto Clearing is not working.

    Hi All,
    FPMA auto Clearing is not working.
    Scenario
    Contract account is having open invoices and also open credit items. The total open invoice amount is equal to the total open credit items. So the contract account balance is ZERO.But the open credit items and open invoices are not having a clearing document because its not cleared. I have executed FPMA transaction with proper parameters but auto clearing is not happend.
    Questions are:
    1) what would be the reason behind not functioning the auto clearing
    2) Job log of the FPMA program is showing exceptions ( some times with execption 6 and some times with 10,etc) . is there any table to check exceptions.
    3) what is the diff between FPL9 ( account maintenance ) and FPMA auto clearing.
    Regards,
    Will

    Hi,
    I have put together all the possible scenarios in my previous post against the failure of auto clearing.
    Now to elaborate my point (i)(ii)-
    (a) There is an object called clearing lock which you will find at the document level.which you will find in the payment data tab of the display document screen.
    If there is any value in the clearing lock, it indicates that the particular item will not be cleared.
    Also check for the posting lock field at the contarct account level. This field prevents any new line item to be posted into the account.
    (b) Items which have clearing restriction 8  can't be cleared with any other item nor they can be dunned.Clearing restriction field is also there in the the payment data tab of the display document screen.
    I would recommend you to perform the clearing through Account maintaineance (FP06). If it gets cleared, then there is some bug in the clearing control config for Auto clearing.
    If it doesn't, then it will throw some error in the status bar. Just go thru the error and you will be analyse it further.
    Hope it helps.
    Thanks,
    Amlan

  • The lock option

    hello guys
    can i make a lock automation??
    i mean can i make automatic lock on assets or production without make it myself???

    99.99% sure that its NOT possible. sorry

  • My External Drives are locked

    dor some reason my external drives are locked and I can read only.
    I am the administrator and only user on the computer.
    how do I unlock them ?

    You can also unlock with a simple Terminal command. Launch Terminal from your Utilities folder, then issue this command:
    chflags nouchg /Volumes/"Name of Drive"
    If that doesn't clear lock then it may be necessary to run the command as a super user do command:
    sudo nouchg /Volumes/"Name of Drive"
    That requires you to give your admin password.
    Francine
    Francine
    Schwieder

  • Xmodmap, Caps Lock and XF86Calculator

    I want to do something as simple as remapping XF86Calculator to Caps Lock. Easy peasy with xmodmap:
    xmodmap -e 'clear Lock'
    xmodmap -e 'keycode 148 = Caps_Lock'
    xmodmap -e 'add Lock = Caps_Lock'
    But life isn't supposed to be easy. 1. The new caps lock doesn't toggle the led on the keyboard. 2. When caps is switched on, the first letter is still typed in lower case. The rest are upper case, as expected. (The reverse doesn't happen - when caps is switched off, the first letter is also lower case).
    Remapping other keys to Caps Lock, e.g. F12, works without any problems.
    Surly it isn't a big problem and I could easily live without Caps Lock. However, it's annoying when something doesn't work as expected. I have no idea where I should start looking, so any help is appreciated.
    My system is up to date, and I use hotplugging with Xorg (evdev).

    Hi,
    nswint, it seems that we have to do as you described.
    Corey, I have the remote desktop client installed on a iPad Air, I can input capital letters via the on-screen keyboard within the remote desktop session that we can activate by a tap on the keyboard icon in the connection bar.
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Track volume doesn't shift when I shift track contents, probably simple!

    Hi all,
    So I am creating a mix-tape for mothers day and am trying to blend/overlap tracks using Garageband. I have each mp3 in a separate track and each track's "Track Volume" enabled and taking care of fade in/out. But now I need to shift all the tracks down to add a new track, or to rearrange tracks but when I do the Track Volume curves stay put. Any ideas? I feel like I may be coming at this mix-tape thing the wrong way. Its my first time in Garageband but I am pretty computer savvy dude. Any help would be awesome! Thanks!
    -Brandon

    I just found the "Lock Automation Curves to Regions" in the Control menu.
    Exactly what I was looking for. Thanks to anyone to read this, I hope it helps someone.

Maybe you are looking for