{"id":5,"date":"2006-07-26T08:21:00","date_gmt":"2006-07-26T12:21:00","guid":{"rendered":"http:\/\/www.benh.org\/techie\/2006\/07\/finding-locked-objects-in-oracle\/"},"modified":"2010-08-27T03:01:37","modified_gmt":"2010-08-27T08:01:37","slug":"finding-locked-objects-in-oracle","status":"publish","type":"post","link":"https:\/\/www.benh.org\/techblog\/2006\/07\/finding-locked-objects-in-oracle\/","title":{"rendered":"Finding locked objects in Oracle"},"content":{"rendered":"<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div><p><!--adsense#ads--><br \/>\nIf you&#8217;re wondering why particular query or procedure is talking a long such a long time to run; then make sure you check out whether the object you&#8217;re accessing is locked or not. There are quite a few dba views available to make our task less complicated. You can use the below query which will return you the list of locked objects.<\/p>\n<pre class=\"brush:sql\">\r\nSELECT c.owner, c.object_name, c.object_type, b.SID, b.serial#, b.status,\r\n       b.osuser, b.machine\r\n  FROM v$locked_object a, v$session b, dba_objects c\r\n WHERE b.SID = a.session_id AND a.object_id = c.object_id;\r\n<\/pre>\n<p>You can now decide whether to kill the job\/ process or someother roundabout to remove the lock obtained on the particular object.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re wondering why particular query or procedure is talking a long such a long time to run; then make sure you check out whether the object you&#8217;re accessing is locked or not. There are quite a few dba views available to make our task less complicated. You can use the below query which will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2],"tags":[63,41,111],"class_list":["post-5","post","type-post","status-publish","format-standard","hentry","category-database","tag-dba","tag-oracle","tag-sql"],"_links":{"self":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":3,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/posts\/5\/revisions\/175"}],"wp:attachment":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}