DBMS_LOCK question - can not relase a different session locking.

Hello

I'm using ORACLE DATABASE 11 g. I use a default package from the oracle: -.

DBMS_LOCK

I'm trying to acquire a LOCK with this procedure, then release after its done.

To ACQUIRE lock we use: -.
DBMS_LOCK.ALLOCATE_UNIQUE (p_lockname,lockhandle,5);
DBMS_LOCK.REQUEST(lockhandle,6,p_timeout);
For LOCK of LIBERATION that we use: -.
DBMS_LOCK.ALLOCATE_UNIQUE (p_lockname,lockhandle,5);
DBMS_LOCK.RELEASE(lockhandle);
The main problem is that I tried to the end of the database. Here are the steps I followed: -.

(1) connect to SESSION 1
(2) ACQUIRED a lock on the object - Got "0" (zero) in return which means funtion has run successfully and I acquired the lock.
3) being in the same session I tried to RELEASE the lock. Once again he returned me '0' and lock went out with success.

In this big way all worked. When I changed the session to release the lock, I got error. Here are the steps: -.

(1) connect to SESSION 1
(2) ACQUIRED a lock on the object - Got "0" (zero) in return which means funtion has run successfully and I acquired the lock.
(3) disconnect from SESSION 1.
(4) to connect to the SESSION 2
(5) have tried to release the LOCK, but this time the function has returned - "4" (four), who says that you are not the owner of the lock, so you can not release.


Each time, I am connected and working with the same username, just opening new sessions of different machines.


The image is very clear that if a session lock the object the same session should release but, due to any reason if the session has gotten so closed is their method, we can release the lock on this object. Begin in the other session if I run
select * from sys.dbms_lock_allocated where name not like 'ORA$%';

NAME                   LOCK ID            EXPIRATION
----------------------------------------------------------------
CB001201261     1073743231     3/1/2012 3:07:02 PM
ZZZ2011322     1073743358     3/1/2012 8:04:19 PM
Now, I see here that these objects are locked some other session but I can't release them.

Please just guide me how can I RELEASE locks on objects ACQUIRED in a different session.
Also if I can know which of the session to which this LOCK got ACQUIRED.


Thanks in advance.

As I said alreadyy, look in DBA_LOCK for a type of lock "PL/SQL locked user.

The session id will be there, you can look in v$ session for the series # as well.

Tags: Database

Similar Questions

  • I posted a question can not find the question and or response. Help, please

    I posted a question can not find the question and or response. Help, please

    AFAIK, you can't share a catalog like this.

    The only recommended method is to store your images and catalogue on an external drive, you can alternatively plug in both computers.

    With today the external USB drives, the speed is still correct, and many users are satisfied with this solution.

  • When I try to take a video with my webcam a message "locked by another application." I do not know and can not find which app has locked.

    When I try to take a video with my webcam a message "locked by another application." I do not know and can not find which app has locked. I can't find anywhere, do anything to solve this problem.

    Hello

    1. which version of the operating system you are using on the computer?
    2. What is the brand and model of the web cam?
    3. don't you make changes on the computer before the show?
    4. is it a built-in or external webcam?


    Method 1:
    You can perform a clean boot and check if it helps:
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the Knowledge Base article.

    Method 2:
    You can also uninstall all software associated with webcam like yahoo messenger or anything else.
    Then install a unique program for the web camera and check if it works.

    Method 3:
    You can also update the latest drivers for the web cam on the manufacturer's Web site and check.
    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly
  • Why I can boot into safe mode with internet connection, use the operating system, etc., but can not open a normal session without password administrator; who got the disabled.

    OEM Vista Home Premium. Normal startup does not recognize the password. When you click User icon it says: "your account has been disabled. Please, see your system administrator"I looked in the mirror, but it did not help. Booted, press F8, went in safe mode with network connection. Everything seemed to be there. Surf the internet and then started to ask me why I don't have a password here when I did normal start-up. What is the password? Check "Microsoft Answers", but what I came out which was, I need to reinstall the OS, which I can't do it without a drive anyway.  I thought that I've used it before, I knew the password. This computer has been recently "reinstalled" internal folder 'restore '. Something must happen. A unknown password can be removed from safe mode? Ultimately how reinstall you a clean Vista when all you have is the key to product and no local or OEM support? What would be the difference between a password reset disk and the OS disk.  The two would probably be stored side by side. Not to mention that most of us Dummies want to just surf to buy, and if we can not surf, we cannot buy. Dummies help us get back on the internet, Microsoft. At least take care of this shot.

    Hi PAM,.

    In Safe Mode, try to activate the high administrator account http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-windows-vista/.  Then log in using account and use it to solve problems with your normal administrator account login via control panel / user accounts / manage other accounts.  Find the one you want and make the appropriate changes to fix it.  If you can't, then you need to address as a corrupt account by using the following procedure:

    To fix this use http://windows.microsoft.com/en-AU/windows-vista/Fix-a-corrupted-user-profile.  If this is the only available administrator profile (you must be an administrator to solve this problem), activate the hidden administrator account (HAA) (i.e. what you did above, or you can do this by using these instructions instead: http://www.computerworld.com/s/article/9001970/How_to_access_the_true_Administrator_account_in_Windows_Vista?taxonomyId=17&pageNumber=1.)

    Once that is done, don't forget to disable the HAA to save it in case it is necessary once again and for safety reasons (since people often try to hack into systems using this account).  Do NOT use the HAA as your administrator account because if you lose the only administrator on the system account or it is damaged again, then you're watered.

    The fact that it says it is disabled gives me to think that you can use the guest or built-in Administrator account already (as normally, you cannot disable an account, but you can with these two which cannot be deleted and only disabled).

    The password reset disk is only good if created before that you need and only to restore a password, do not to activate a disabled account.  Another thing that goes beyond passwords here.

    A recovery disk allows you to do some advanced options of recovery by booting the disk, but it will help you restore the operating system (or help you with this problem either).

    An Installation of Vista genuinve disc (the operating system drive as you seem to be describing) is a disk that contains the operating system.  That, if it is the original disc supplied with the system and is exactly the same as the product OEM key that you must allow you to do a clean OS install (although I would be first backup you'll pretty much lost everything in the process).  The following should help: http://www.vistax64.com/tutorials/117366-clean-install-full-version-vista.html.

    If you have a factory Conditions or a recovery Partition restore disk, then these are alternatives to a clean install if you don't have this disc.  But the procedure varies according to the manufacturer, make and model of PC.  Most of the manufacturers will allow you to buy these records of restoration (for a fee) If you cannot do it with a recovery Partition cannot create diskettes from the recovery Partition or have no other option.  Visit the support site of the computer for information on this topic, available options, and related costs.

    If you cannot enable the built-in Administrator account and cannot access the system in normal mode with this or another administrator account, then I'm afraid a clean install or restore to factory conditions is your only option.

    I hope this helps.

    Good luck!

  • Windows Installer 8 question - can not find / uninstall Broadcom Bluetooth software

    TRIED TO INSTALL WINDOWS 8, BUT CANNOT INSTALL DUE TO BROADCOM BLUETOOTH SOFTWARE!  Help!

    I use a Dell desktop XPS 8300, CPU Intel (R) Core i7-2600 3.40 GHz, 8.00 GB of RAM, Windows 7 Home Premium Svc Pack 1, 64-bit OS.

    I decided to install Windows 8 and got stuck when he says that I can not continue until I have MANUALLY uninstall the Software Bluetooth Broadcom on my system. However, I CAN'T FIND it!   I checked device, including hidden items Manager and there is no evidence showing Bluetooth.  When I try to click on the shortcut icon (to configure Bluetooth), I get a window that says Windows Explorer has stopped and he is looking for a solution but found nothing.

    There is no listed software is the list of programs and I can't find it in the Add/Remove Programs area.  After much research I found two items:

    btstackserver.exe c:\program Widcomm software\btstackserver.exe and also

    BTTray.exe c:\program Widcomm software\bttray.exe

    I'm not either of those of any place where I can uninstall (or install them?). They do NOT appear in the program list.  I did, somehow, get the Bluetooth symbol to appear in the status bar and tried to set it up, but he kept saying that my Bluetooth was not lit.  I don't even know if I have the Bluetooth on this computer!  (and I don't really like, I would just get Win8 installed!)

    I thought to delete the folders above, but do not think that that would solve my problem and probably it would be worse!

    If anyone has any ideas that can help me, I would be sincerely grateful for it.   I have been trying now for about 6 to 7 hours and will leave for the night.  Maybe tomorrow will bring more luck!

    Thanks much for any help!  If I missed something in this explanation of the problem, please let me know and I'll try to clarify the situation.

    Tim

    York, PA, USA.  :)

    Sorry for the late reply. A week was very busy.

    Looks like a pretty messy situation.

    I suggest you only to contact Dell to see if they have information.

    A search revealed a pretty scary incident (which is supposed to be fixed now),

    but there may be other problems that Dell knows and can help you.

    It is probably possible to find a way to uninstall manually,

    but after reading the above, I am reluctant to venture...

  • Amazon presentation question: can not update the library. The connection to the server has failed.

    I am presenting my application Viewer for the Amazon store. I had tested only on Android devices, because that's what I had at my disposal, and my APK worked perfectly on those.

    The apk android pulls my free folios with my retail ones and has in-app purchases fully configured and ready to hit the shelves.

    However, in my submission for the Amazon store process, I was rejected for the following error message appears when the testers tried to load my folio of the APK:

    "Can not update library." The connection to the server has failed. »


    This problem persisted with all Kindle devices and fire, with what they have tested.


    Can someone point me in the right direction from where I should be looking?



    Thanks in advance!

    Created a native Viewer, and it seems that the problem has been resolved.

  • Can not unlock a desktop session remotely on Windows R2 2012

    If I remote desktop to a Server Windows Server R2 2012 and then Ctrl + Alt + end, and then choose lock to lock the RD session, I don't see a way to unlock the session.  I try Ctrl + Alt + end and it does nothing.  I don't see any buttons and have tried several shortcuts (Windows key +) and had no luck.  I made (mstsc.exe) remote desktop, I have clicked on the Options show, went to the tab local resources and ensured that keyboard is set to Windows apply combinations of keys on the remote computer.  When I try to Ctrl + Alt + Delete, my office shows me the menu (to lock, etc.).  The remote session does not receive this key combination.   My desktop is Windows 7 Enterprise.

    Is there a key combination I'm missing?  or is there a setting on the server that is required/missing?  Or would a group policy to ask this question?

    Note If I have a remote desktop to a Windows 2008 R2 server, I can easily unlock the screen. Furthermore, we use RSA with a connection token.

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    TechNet forums:

    https://social.technet.Microsoft.com/forums/en-us/home

    MSDN forums:

    https://social.msdn.Microsoft.com/forums/en-us/home

    See you soon.

  • Why can not I mixdown my session?

    I have Adobe Audition CS6 on my MacBook Pro (running Lion) and I can't export my final mix, not to mention create a mixdow. There are two options for the final mix: selection of the moment and duration of the Session. When I select a certain quantity of a track he allows me to create a mix of the time selection, but not a full Session mix. The option is grayed out. Any thoughts?

    You reassign the outputs track to something other than captain?  If there is anything sent by the ringmaster, the menu item can be disabled (since there is no signal to the final mix).

  • If I'm out in private browsing when I restart I can not restore the previous session

    I'm newbie/PC illiterate
    THANKS Mozilla AND VOLUNTEER FOR the EXISTING

    Private browsing mode is designed to keep not take of your browsing history. This allows users to browse the internet without their history to be saved on his computer. For this reason, you cannot restore a session that was made in private browsing mode, the session is permanently deleted from the closing of Firefox.

    If you want to have the ability to restore previous sessions, please use Firefox in normal browse mode.

    For more information on the incognito of Firefox, please read this Mozilla support article:

  • Micro SD XC questions - can not read video files

    Please forgive me for being a noob here on this forum. I did a search and could not find any info on my problem, so I'm posting here now...

    I have bad to write video files (MKV, MP4, etc.) to the external mic card SD XC that I use with my SanDisk Media Player. The first few files that I am writing to transfer SD card and play well on the media player and my PC (I use VLC). After about 10 GB or more data has been transferred to the card, copy the files, but they will not play. VLC tells me that he does not support the video format "undf".

    I use a SanDisk 64 GB micro SD XC card spec'ed at 30 MB/s (in the format exFAT). I have two of these cards and they both have the same behavior. I also tried the HC cards (formatted NTFS) 128 GB at the same result. Nothing seems to work as expected. What I'm doing here wrong or missing? I faced this problem for weeks and its driving me crazy!

    where did you buy in origin? packaging for fake cards look pretty true these days. You can contact sandisk support and they can help authenticate cards.

  • Billing question: can I use a different CC No. for different users?

    We are a large organization.  I just created a new user under my admin account. How do I change the CC number for this user so he charges her CC #, not mine?

    Thank you

    Marcie

    It may not be transferred, you must cancel the present CC under your Adobe ID, you can buy new under the correct ID.

    Concerning

    Baudier

  • Adobe Scout question: do not start a new session for sovereign funds

    We have a problem with Adobe Scout. This isn't listening (doesn't start a new session as it should) for a SWF file loaded by another SWF (principal). Sovereign wealth funds have advanced telemetry enabled and the configuration is correct, as described in http://www.adobe.com/devnet/scout/articles/adobe-scout-getting-started .html. Help, please

    Thank you

    I use Win 7 64 bit, the latest versions of Scout from Adobe and Flash Player, 32 Chrome / IE 11.

    Also I made sure the Scout server is listening, as described in the article from the link above: Verify that the Scout server listening. Open Scout and type localhost:7934 in your web browser. He must respond quickly with "ServerA connection", "no data received" or something similar (since the Scout is not an HTTP server). Scout should display the error message "cannot start a session because the telemetry data is not valid. If the browser hangs for a long time and then returns with "server not found" or something similar, while the outlet is not functioning.

    Hi Radu,

    Yes, this behavior is expected. You need the SWF by a loaded SWF file to be activated too telemetry. If this is not the case, the loaded SWF file will be not profilable.

    Thibault

  • Flash cs6 3.8 AIR app questions: can not load child SWF files

    Hello - I have a flash for ios application that loads external swf child on a button click; When I use AIR 3.8 I can't load. Everything works fine on the generator to preview, but when I publish the device, none of the child SWFS play; It's very strange! Help, please... I don't really know why it doesn't work.

    Here is the code on the main timeline to load the child swf file:

    Start button

    start_button_TRI_herrerasaurus.addEventListener (MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_04_3, false, 0, true);

    Import fl.display.ProLoader;

    import flash.events.Event;

    var fl_ProLoader_04: ProLoader;

    This variable keeps track of if you want to load or unload the SWF file

    var fl_ToLoad_04:Boolean = true;

    function fl_ClickToLoadUnloadSWF_04_3(event:MouseEvent):void

    {

    If (fl_ToLoad_04)

    {

    fl_ProLoader_04 = new ProLoader();

    fl_ProLoader_04.load (new URLRequest("dinofilms/triassic_herrerasaurus.swf"));

    fl_ProLoader_04.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete_04)

    addChild (fl_ProLoader_04);

    fl_ProLoader_04.x = 0;

    fl_ProLoader_04.y = 144;

    }

    on the other

    {

    If (fl_ProLoader_04! = null) {}

    removeChild (fl_ProLoader_04);

    fl_ProLoader_04.unloadAndStop ();

    fl_ProLoader_04 = null;

    }

    }

    fl_ToLoad_04 =! fl_ToLoad_04;

    }

    function onComplete_04(e:Event):void {}

    e.currentTarget.content.addEventListener (Event.ENTER_FRAME, OEF_04);

    }

    function OEF_04(e:Event):void {}

    If {(e.currentTarget.currentFrame is e.currentTarget.totalFrames)

    e.currentTarget.stop ();

    e.currentTarget.removeEventListener (Event.ENTER_FRAME, OEF_04);

    removeChild (fl_ProLoader_04);

    fl_ProLoader_04.unloadAndStop ();

    fl_ProLoader_04 = null;

    }

    }

    for air for ios 3.6 +, you need TO report a loadercontext even if there is no actionscript in the loaded swf file:

    var loader: Loader = new Loader();

    var lc:LoaderContext = new LoaderContext (false null, ApplicationDomain.currentDomain),

    Loader.Load (new URLRequest("dinofilms/cretaceous_ankylosaurus.swf"), _lc);

  • Can not activate Photoshop cs

    Using Photoshop cs - I know it's old, but he has done all the necessary for me - I work in the voluntary sector, and we do not have a lot of money to upgrade.  I installed Windows 10 and then did not have access to the package of Photoshop - he asked me to turn it back on but then says that he is unable to reactivate.  I uninstalled Windows 10 back to 7 that she had worked perfectly on and the same question - can not reactivate.  I tried to reinstall the program and the same problem.  Half way, although a few poster designs for a charity event... and panic!

    Thank you very much

    You can not activate CS because Adobe stop the activation for CS2, CS server and earlier versions, several years ago. There is no more activation of your version.

    However, Adobe has made available a special version, without CS2 activation for CS2 owners (also includes owners of CS). There is no particular CS version, without activation, everyone must use CS2.

    Error: "Activation Server is not available. CS2, Acrobat 7, pass a hearing 3

    Download CS2 from the link above, install and enter the serial number CS2 special, without activation, provided at the link above.

    Your existing CS serial number no longer works.

  • Just send a question to the support site that I can NOT connect on my email account after auto update of 38.3.0, cannot connect to my account to check the issue!

    I just posted a question on the last update automatic 38.3.0 it is possible to log into different e-mail accounts in a profile, only the first e-mail account. My support mozilla account is linked to one of the email accounts that I can NOT connect to. Can't connect to this email account to check the issue. Your last 38.3.0 Thunderbird is useless because it is no longer possible to log in different e-mail accounts in a profile, and your support solution is useless because you need to connect to the e-mail account to check the issue.
    How to proceed?

    You can change your email associated with your media profile.
    I have 38.3.0 and I can access all my email accounts I suggest you try the initial tests:

    Start T-bird with disabled modules.
    If it works on your module is to blame and you need to activate one by one.

    Start your operating system in safe mode with active network.
    If it works probably your antivirus is blocking or delaying. (Or driver).

Maybe you are looking for

  • where can I find the mac address for Airport Extreme

    just bought a new Airport Extreme 802.11ac and I don't know here to find the MAC ADDRESS. Can someone tell me where to look. I have the model and serial number, but can not find the MAC ADDRESS.

  • Firefox suddenly changes download folder

    After the upgrade to FF7.0.1 (on Win7 Pro 64), I sometimes see a strange behavior: when downloading a couple of files in the same folder, FF sometimes change to another folder to download - without prior request.Either I save files in folder A, sudde

  • Vista - Cannot install KB2416447

    Since October 7, I tried to download this security update repeatedly.  Whenever I get a message that the download failed.  All other downloads have managed since Oct. 7.  I installed VISTA service pack 2, when it became available.  I use a 32-bit ope

  • Forcing programs to uninstall

    I can't uninstall a couple of programs using "programs" in the control panel. is there a way I can force the computer to uninstall?

  • Need help for error on N3024 after the easy Setup Wizard

    I feel that I am a rookie mistake, but I can't figure out what I did wrong.  Any thoughts on how to solve this conflict IP error? Thanks, Matt