Object locked in v$locked_object but can't find session/process blocking
Hi,
I am on database 10.2.0.5, windows x64.
A developer calls me and tells me there are locks on 3 tables, and the locks are not released.
So I run this to see which objects are locked by which session
select vlo.object_id, vlo.session_id, vlo.oracle_username, vlo.process
, DECODE(vlo.LOCKED_MODE, 0,'NONE', 1,'NULL', 2,'ROW SHARE', 3,'ROW EXCLUSIVE', 4,'SHARE', 5,'SHARE ROW EXCLUSIVE', 6,'EXCLUSIVE', NULL) LOCK_MODE
, do.owner, do.object_name, do.object_type
, vs.saddr, vs.serial#, vs.paddr, vs.username, vs.ownerid, vs.status, vs.server, vs.schemaname, vs.osuser, vs.machine, vs.program, vs.type, vs.logon_time, vs.last_call_et
, vs.blocking_session_status, vs.event#, vs.event, vs.wait_class#, vs.wait_class, vs.wait_time, vs.seconds_in_wait, vs.state
from v$locked_object vlo
inner join dba_objects do on (vlo.object_id = do.object_id)
left outer join v$session vs on (vlo.session_id = vs.sid)-----------
I get (after finding out my table locks come from SID 514)
OBJECT_ID SESSION_ID ORACLE_USERNAME PROCESS LOCK_MODE OWNER OBJECT_NAME OBJECT_TYPE SADDR SERIAL# PADDR USERNAME OWNERID STATUS SERVER SCHEMANAME OSUSER MACHINE PROGRAM TYPE LOGON_TIME LAST_CALL_ET BLOCKING_SESSION_STATUS EVENT# EVENT WAIT_CLASS# WAIT_CLASS WAIT_TIME SECONDS_IN_WAIT STATE
373122 514 IRMFIN 22AB7298 ROW EXCLUSIVE IRMFIN IC_PRODUCT_STATUS TABLE 000007FF3E1A9070 1301 000007FF3E639120 IRMFIN 2147483644 INACTIVE DEDICATED IRMFIN IRMTEST IRM DSA0:[GEMBASE730.][RUN]GEM.EXE USER 2012/09/05 13:55:51 702 NO HOLDER 263 SQL*Net message from client 6 Idle 0 702 WAITING
373025 514 IRMFIN 22AB7298 ROW EXCLUSIVE IRMFIN IC_BIN_DETAIL_STATUS TABLE 000007FF3E1A9070 1301 000007FF3E639120 IRMFIN 2147483644 INACTIVE DEDICATED IRMFIN IRMTEST IRM DSA0:[GEMBASE730.][RUN]GEM.EXE USER 2012/09/05 13:55:51 702 NO HOLDER 263 SQL*Net message from client 6 Idle 0 702 WAITING
373055 514 IRMFIN 22AB7298 ROW EXCLUSIVE IRMFIN IC_LOT_STATUS TABLE 000007FF3E1A9070 1301 000007FF3E639120 IRMFIN 2147483644 INACTIVE DEDICATED IRMFIN IRMTEST IRM DSA0:[GEMBASE730.][RUN]GEM.EXE USER 2012/09/05 13:55:51 702 NO HOLDER 263 SQL*Net message from client 6 Idle 0 702 WAITING -----------
I run it again and I get something different, this time the lock is still there, but no session. select * from v$session where sid= 514 returns nothing.
I get
OBJECT_ID SESSION_ID ORACLE_USERNAME PROCESS LOCK_MODE OWNER OBJECT_NAME OBJECT_TYPE SADDR SERIAL# PADDR USERNAME OWNERID STATUS SERVER SCHEMANAME OSUSER MACHINE PROGRAM TYPE LOGON_TIME LAST_CALL_ET BLOCKING_SESSION_STATUS EVENT# EVENT WAIT_CLASS# WAIT_CLASS WAIT_TIME SECONDS_IN_WAIT STATE
373122 514 ROW EXCLUSIVE IRMFIN IC_PRODUCT_STATUS TABLE
373025 514 ROW EXCLUSIVE IRMFIN IC_BIN_DETAIL_STATUS TABLE
373055 514 ROW EXCLUSIVE IRMFIN IC_LOT_STATUS TABLE When I run the query later, I sometimes get another session, but the lock stays. It seems here, that I am catching the same SID on new sessions, but it is probably a different serial # than the original session locking the table rows.
I get nothing from
select * from dba_waiters;
select * from dba_blockers;
Now why are those 3 tables row locked on some rows and I can't find the session responsible? The developer tells me his application crashed and the rows are locked since.
So far ( keep in mind I am not a locking expert) the only way I found to release the locks is a DB bounce, its a test DB so no biggy.
Is this a bug? Am I missing something?
This is the second time this has happened. How can I solve this issue?
Best wishes to all.
Thank you for your reply.
I do not think I can kill the session (514) it does not exist, even though v$locked_object reports tables are locked by session 514
see below
select * from v$locked_object
XIDUSN XIDSLOT XIDSQN OBJECT_ID SESSION_ID ORACLE_USERNAME OS_USER_NAME PROCESS LOCKED_MODE
9 26 351467 373122 514 3
10 41 339655 373025 514 3
11 6 92004 373055 514 3
select * from v$session order by sid
( no session 514)
SADDR SID SERIAL# AUDSID PADDR USER# USERNAME COMMAND OWNERID TADDR LOCKWAIT STATUS SERVER SCHEMA# SCHEMANAME OSUSER PROCESS MACHINE PORT TERMINAL PROGRAM TYPE SQL_ADDRESS SQL_HASH_VALUE SQL_ID SQL_CHILD_NUMBER PREV_SQL_ADDR PREV_HASH_VALUE PREV_SQL_ID PREV_CHILD_NUMBER PLSQL_ENTRY_OBJECT_ID PLSQL_ENTRY_SUBPROGRAM_ID PLSQL_OBJECT_ID PLSQL_SUBPROGRAM_ID MODULE MODULE_HASH ACTION ACTION_HASH CLIENT_INFO FIXED_TABLE_SEQUENCE ROW_WAIT_OBJ# ROW_WAIT_FILE# ROW_WAIT_BLOCK# ROW_WAIT_ROW# LOGON_TIME LAST_CALL_ET PDML_ENABLED FAILOVER_TYPE FAILOVER_METHOD FAILED_OVER RESOURCE_CONSUMER_GROUP PDML_STATUS PDDL_STATUS PQ_STATUS CURRENT_QUEUE_DURATION CLIENT_IDENTIFIER BLOCKING_SESSION_STATUS BLOCKING_INSTANCE BLOCKING_SESSION SEQ# EVENT# EVENT P1TEXT P1 P1RAW P2TEXT P2 P2RAW P3TEXT P3 P3RAW WAIT_CLASS_ID WAIT_CLASS# WAIT_CLASS WAIT_TIME SECONDS_IN_WAIT STATE SERVICE_NAME SQL_TRACE SQL_TRACE_WAITS SQL_TRACE_BINDS ECID
582 41322092 000007FF3E6279B0 88 IRMFIN 0 2147483644 INACTIVE NONE 88 IRMFIN IRM-NTSERVER\ttoupet 2768:5812 IRM-NTSERVER\IRM-WINDEV 2091 IRM-WINDEV WDMAP.EXE USER 00 0 000007FF296D46B0 1249880231 gkm8w8157za57 0 WDMAP.EXE 3924246850 0 4272871 480874 5 109733 0 2012/09/06 08:54:26 369 NO NONE NONE NO DISABLED ENABLED ENABLED 0 NO HOLDER 55 263 SQL*Net message from client driver id 1297371904 000000004D545300 #bytes 1 0000000000000001 0 00 2723168908 6 Idle 0 369 WAITING irtrcs01.ivacorm.com DISABLED FALSE FALSE
000007FF3E1A0FA0 508 55443 41321967 000007FF3E62E488 93 RODMILL 0 2147483644 INACTIVE DEDICATED 93 RODMILL flong 4144 IT011 49450 unknown SQL Developer USER 00 0 000007FF126A6BC0 293046999 7jjvy5s8rg2qr 0 SQL Developer 1012150930 0 4280261 373579 5 348686 0 2012/09/06 08:39:23 218 NO NONE NONE NO DISABLED ENABLED ENABLED 0 NO HOLDER 5486 263 SQL*Net message from client driver id 675562835 0000000028444553 #bytes 1 0000000000000001 0 00 2723168908 6 Idle 0 218 WAITING irtrcs01.ivacorm.com DISABLED FALSE FALSE
000007FF3E1A2518 509 3086 41287084 000007FF3E628A20 64 SYSMAN 47 2147483644 000007FF3D7C21D8 ACTIVE SHARED 64 SYSMAN 1234 IRMFAX 1341 OMS USER 000007FF357CE418 4281219134 2b064ybzkwf1y 0 000007FF357A8BF0 2532399038 5dwsqwabg2pxy 0 178612 8 OEM.SystemPool 2960518376 NotificationMgr 3664650334 IRMFAX.ivacorm.com:4889_Management_Service 4281687 177737 14 40683 0 2012/09/03 11:44:37 7 NO NONE NONE NO DISABLED ENABLED ENABLED 0 UNKNOWN 48888 45 wait for unread message on broadcast channel channel context 8792836163648 000007FF3DE04840 channel handle 8792836060256 000007FF3DDEB460 0 00 2723168908 6 Idle 0 7 WAITING irtrcs01.ivacorm.com DISABLED FALSE FALSE
000007FF3E1A3A90 510 35277 41286699 000007FF3E6279B0 64 SYSMAN 0 2147483644 INACTIVE NONE 64 SYSMAN 1234 IRMFAX 3154 OMS USER 00 0 000007FF3E844AD8 3275117642 43c5ykm1mcp2a 1 OEM.CacheModeWaitPool 796036576 0 IRMFAX.ivacorm.com:4889_Management_Service 4280509 -1 0 0 0 2012/09/03 10:58:32 169 NO NONE NONE NO DISABLED ENABLED ENABLED 0 NO HOLDER 29909 263 SQL*Net message from client driver id 1297371904 000000004D545300 #bytes 1 0000000000000001 0 00 2723168908 6 Idle 0 169 WAITING irtrcs01.ivacorm.com DISABLED FALSE FALSE
000007FF3E1A5008 511 51686 41287085 000007FF3E6279B0 64 SYSMAN 0 2147483644 INACTIVE NONE 64 SYSMAN 1234 IRMFAX 1342 OMS USER 00 0 000007FF36C3CED8 2539923080 6v7n0y2bq89n8 0 OEM.SystemPool 2960518376 JobDispatcher 875884737 IRMFAX.ivacorm.com:4889_Management_Service 4281706 -1 0 0 0 2012/09/03 11:44:37 5 NO NONE NONE NO DISABLED ENABLED ENABLED 0 NO HOLDER 38929 263 SQL*Net message from client driver id 1297371904 000000004D545300 #bytes 1 0000000000000001 0 00 2723168908 6 Idle 0 5 WAITING irtrcs01.ivacorm.com DISABLED FALSE FALSE
000007FF3E1A6580 512 28994 41293063 000007FF3E6279B0 64 SYSMAN 0 2147483644 INACTIVE NONE 64 SYSMAN 1234 IRMFAX 3636 OMS USER 00 0 000007FF32990C90 1763828656 44nz3b1nk3sxh 1 OEM.CacheModeWaitPool 796036576 0 IRMFAX.ivacorm.com:4889_Management_Service 4280509 -1 0 0 0 2012/09/04 00:00:02 169 NO NONE NONE NO DISABLED ENABLED ENABLED 0 NO HOLDER 20902 263 SQL*Net message from client driver id 1297371904 000000004D545300 #bytes 1 0000000000000001 0 00 2723168908 6 Idle 0 169 WAITING irtrcs01.ivacorm.com DISABLED FALSE FALSE
000007FF3E1ABB60 516 48427 41292026 000007FF3E62DC50 93 RODMILL 0 2147483644 INACTIVE DEDICATED 93 RODMILL ebesner 10808 Fingers 59004 unknown SQL Developer USER 00 0 000007FF127B0A58 351849430 bkcpdnnagjkyq 0 SQL Developer 1012150930 0 4049825 533716 21 17036 0 2012/09/03 21:53:47 61389 NO NONE NONE NO DISABLED ENABLED ENABLED 0 NO HOLDER 2578 263 SQL*Net message from client driver id 675562835 0000000028444553 #bytes 1 0000000000000001 0 00 2723168908 6 Idle 0 61389 WAITING irtrcs01.ivacorm.com DISABLED FALSE FALSE
000007FF3E1AD0D8 517 2 0 000007FF3E635FD0 0 0 2147483644 ACTIVE DEDICATED 0 SYS SYSTEM 4292 CHARLIE 0 CHARLIE ORACLE.EXE (q001) BACKGROUND 00 0 0 00 0 0 0 0 112 -1 0 0 0 2012/08/22 17:46:54 1264692 NO NONE NONE NO DISABLED ENABLED ENABLED 0 UNKNOWN 2685 281 Streams AQ: qmn slave idle wait 0 00 0 00 0 00 2723168908 6 Idle 0 16 WAITING SYS$BACKGROUND DISABLED FALSE FALSE
000007FF3E1AE650 518 2 4294967295 000007FF3E635798 0 SYS 3 2147483644 INACTIVE DEDICATED 0 SYS IRM-NTSERVER\cluster 3704:1572 IRM-NTSERVER\CHARLIE 49181 CHARLIE rhs.exe USER 000007FF3EA55E08 654885888 bcfjz80mhjj00 0 000007FF3EA55E08 654885888 bcfjz80mhjj00 0 rhs.exe 1733424889 0 4281686 -1 0 0 0 2012/08/22 17:46:54 16 NO NONE NONE NO DISABLED ENABLED ENABLED 0 NO HOLDER 58582 263 SQL*Net message from client driver id 1413697536 0000000054435000 #bytes 1 0000000000000001 0 00 2723168908 6 Idle 0 16 WAITING SYS$USERS DISABLED FALSE FALSE
Similar Messages
-
Made a DVD fine, but can't find the processed iMovie
Hi,
I just processed a good-looking 20 minute iMovie. And the DVD looks really good.
But where is the processed iMovie, that showed up in iDVD as "large.m4v? Hmm. Is it gone, because I now have the dvdproject, and I don't need it anymore? Am I getting upset over nothing? I suppose that's it.
Anyone who reads this, the combination of a Sony HDR-CX12 consumer Hi-Def camcorder, iMovie, and "large" processing with I think any of the 3 quality choices in iDVD preferences, makes for some great-looking video on an HDTV.If you Shared to iDVD, the resulting file is a very large temporary file that goes away after you have finished with iDVD. You might find it in your trash.
If you shared to the Media Browser, you can find your Large file in the Project file. Go to Movies/iMovie Projects and locate your project. Right click on the project and select "Show Package Contents". The Project folder will now be visible and your movie will be stored in the Movies folder. This copy is available when you use the Media Browser in any iLife app.
If you shared to iTunes, your movie will be in iTunes and the Project file. -
I have a iPhone 5 only had it 5 months on the screen it as *** up wiv a padlock wiv a circle around it.. Does anyone no wot this is and how do u remove it? I've been through my phone but can't find anything.. Thanks
Do you mean Screen Rotation Lock:
This keeps your screen from rotating.
iOS: Screen does not rotate - Support - Apple -
On my Iphone, I have an app called Voice memos where I can record someone talking or signing. I try finding the same on my Ipad but can't find it. Does it exist on Ipad?
No, but there are plenty of Apps which will do this.
Se this one for example:
https://itunes.apple.com/us/app/voice-memos-for-ipad/id364295267?mt=8 -
I want to run Apple Hardware Text but can't find it on any CD's. I bought my iMac in 2009. It came with 10.4. Apple Hardware Test is not on the installation disk. Should I have it? Where can I find it? I"m now running 10.7.4.
The disc plainly state:
To use the AHT, hold down the D key as the computer starts up.
Works here. However, there was an issue with installing Lion that screwed this process up.
Mount disc 2, run this command in the Terminal app, OPTION-click & hold Finder's Dock icon, and select RELAUNCH:
defaults write com.apple.finder AppleShowAllFiles 1
That unhides all hidden files/folders.
Now, drill down to /"Applications Install\ Disc"/System/Library/CoreServices/ and drag the .diagnostics folder into your Lion boot volume's /System/Library/CoreServices/ folder. That might require you to authenticate to copy the folder into the CoreServices subfolder.
Run this command to hide the normally hidden files/folders and RELAUNCH the Finder again.
defaults write com.apple.finder AppleShowAllFiles 0
This should allow the machine to boot into AHT when restarting and holding down the D key.
If that doesn't do the trick, run this command in the Terminal app:
sudo chown -R root:wheel /System/Library/CoreServices/.diagnostics
At the Password: prompt, carefully type in your admin password, since nothing shows up on the screen, and hit the return key. Then, try another restart, holding down the D key. -
I'm sure this is a setting fix, but can't find it…. All of my windows for mac programs open when I turn on my computer, such that I have to close each one individually to get to my desk top. How do I adjust so none of them open unless I choose to?
Remove the check in the box "Reopen windows when logging back in":
-
I downloaded a rented movie in hd to my ipad2 but can't find it to pay through my apple tv now. How do I watch the movie?
Rented movies downloaded to an iOS device cannot be transferred to any other computer or iOS device. Are you sure that a rented movie, downloaded to an iPad, can be airstreamed to an Apple TV?
-
How can I set up multiple spaces (desktops) on my new MacBook Pro 10.9.5? I have six set up on my other computer MacBook Pro 10.8.5 but can't find how to do it on this new one. Would appreciate help on this. Cheers.
It's not completely obvious. What you have to do in Spaces is to position your cursor to the upper right of the screen, after which faint + (plus) sign appears in that area. Click that, upon which another Desktop will appear.
The + may be difficult or impossible to see with some desktop backgrounds (black, for instance): -
How can I create a start up disk for a old intel core duo running 10.5.8.. Computer works fine, but can't find install disk. Want to use internal disk drive or USD flash drive.
Try calling 1-800-676-2775. Give the serial number and thy *may* still burn you new install disks designed just for the hrdware in your system (for a fee, something like $160 per disk). *May* is only because they may not burn disks for Leopard anymore.
If they do not burn them for you, you can buy Leopard disks off Amazon or eBay for about $200.
Have you considered Snow Leopard?. Those disks only cost $19 (single user) or $29 (5-user license) through Apple by calling 1-800-MY-APPLE. -
How do I pay for my storage plan when I don't have a credit card? Last year I used an iTunes voucher but can't find that option this year. Please help!
Create an iTunes credit by redeeming a gift card and it will be charged to your credit. From http://support.apple.com/kb/ht4874:
"payment methods accepted include iTunes store credit, credit cards, and debit cards" -
Hi I'm new to this so hope I'm doing it right. I've been trying to cancell a subscription to a magazine from the AppStore but can't seem to find any email address to contact them. I can't even find my account. I've been billed thru iTunes, but can't find contact details for them either. I thought that I had cancelled it at one address but was billed for the next issue today so obviously I got that wrong. I'm in Australia, if that makes a difference. Can anyone out there help me with this please? I'm using an ipad3 and a Mac pro. Thanks.
If it's an auto-renewing subscription then there is info on turning them off on this page : http://support.apple.com/kb/HT4098
-
I liked the "Power Search" for music in the itunes store but can't find it in the menu box top right. How do I search for a song, artist or album now?
If it's an auto-renewing subscription then there is info on turning them off on this page : http://support.apple.com/kb/HT4098
-
trying to rent a movie on apple tv for the first time and have to authorize my computer but can't find the itunes menu that allows me to do this. any thoughts out there?
If the computer's running Mac OS X, move the cursor to the very top of the computer's screen, click on Store, and choose Authorize this Computer.
If the computer's running Windows, press the Alt and S keys and choose Authorize this Computer, or click here, follow the instructions, click on Store in the menu bar, and choose Authorize this Computer.
(98261) -
I have digital copies of movies on my itunes at home and used cloud to download on itunes at work but can t find them
Are they gone completely from the computer, or just no longer in the library? Check your movie media folder.
If your'e in the USA you can download some movies a second time, but not all (studio dependent). You should always back up all media. -
How can I see if my program is for more than one user? We think we have bought in design for more users, but can not find out how to get in for more than one?
If you bought a CC for team, you can log in at http://adobe.com and insert the e-mail that you gave at the moment at the purchase and than you can manage and see you product/plan/team.
If I was not clear you can use the following link to help you solving your issue:
Creative Cloud Help | Manage your Creative Cloud for teams membership
If your not clear about this situation, contact with an agent of Adobe, by chat or phone. Use the following link to see the type of support you have on this matter:
http://adobe.com/getsupport
I think this will help you.
Regards
Maybe you are looking for
-
MRP - Unfix Fixed Schedule Lines with partial receipt
Dear Experts, I am facing a problem that I haven't been able to solve using previous postings in the forum nor reading OSS notes. I have a Factory PL01 that needs some raw materials that are bought and received in a distribution center DC01 located i
-
Why is my "hide toolbar" in the View grayed out. I am not able to show the toolbar.
I cannot keep the Safari toolbar showing. The "Hide Toolbar" in the View tab is grayed out. Also, I cannot get the dock to not hide.
-
Error while importing the patches
Dear All, I started importing the patches through Solution Manager.from SAPKB7007 to SAPKITLQ13.But from three days its showing the message EXECUTION OF REPORT AFTER PUT FINISHED WITH RETURN CODE 4. Plz suggest me what to do in situation. 1.can i rev
-
Where can I find iTunes Backup files for my iPod touch on Windows Vista?
I went to the Apple Support page and it said that backups were at such and such location on the hard drive, but I can't find them... iOS 6.0.1, iTunes latest version, Windows Vista
-
Both refer between columns in Model function
Hello, Here is my SQL to create and insert : CREATE TABLE "SYSTEM"."PMUOrdinaireTMP111111" ( "IDENTIFIANTACTIONNAIRE" NUMBER(23,0), "NUMEROECRITURE" NUMBER(8,0), "SENSOPERATION" VARCHAR2(20 BYTE), "PRIXREVIENT" NUMBER(19,2), "NOMBRETITRES"