{"id":57199,"date":"2024-11-24T17:17:11","date_gmt":"2024-11-24T17:17:11","guid":{"rendered":"https:\/\/dbtut.com\/?p=57199"},"modified":"2024-11-24T17:17:11","modified_gmt":"2024-11-24T17:17:11","slug":"lock-control-in-database","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/","title":{"rendered":"Lock Control In Database"},"content":{"rendered":"<p>In today&#8217;s article, we will discuss checking for LOCKs in the database, which is one of the checks we perform when there is a problem in the database.<\/p>\n<p>1. First, we check if there are any UNCOMMITTED transactions.<\/p>\n<pre class=\"lang:default decode:true \">\tSQL&gt;\u000bselect sysdate, t.start_time,s.sid,s.serial#,s.username,s.status,s.schemaname,\r\n\ts.osuser,s.process,s.machine,s.terminal,s.program,s.module,to_char(s.logon_time,'DD\/MON\/YY HH24:MI:SS') logon_time\r\n\tfrom v$transaction t, v$session s\r\n\twhere s.saddr = t.ses_addr\r\n\torder by start_time;\r\n<\/pre>\n<p id=\"DptmefL\"><img loading=\"lazy\" decoding=\"async\" width=\"1696\" height=\"74\" class=\"size-full wp-image-57200 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/img_6743560ad818b.png\" alt=\"\" \/><\/p>\n<p>2. We identify which table the LOCK caused by this operation is on and how long it has been there. Additionally, the type of LOCK is displayed as shown below.<\/p>\n<pre class=\"lang:default decode:true \">\tSQL&gt;\u000bselect \/*+RULE *\/ s.username,\r\n\to.name \"Locked object\", \r\n\tl.sid, \r\n\ts.serial#,\r\n\tp.spid,\r\n\tl.type,\r\n\tround(l.ctime\/60,0) \"Minutes\",\r\n\tl.ctime,\r\n\tdecode(l.lmode,'1','-','2','RS','3','RX','4','S','5','SRX','6','X') \"Mode\",\r\n\t substr(s.osuser,1,16)\"OS user\",\r\n\tsubstr(s.machine,1,16) \"Machine\",\r\n\ts.STATUS\r\n\tfrom v$process p, sys.obj$ o, v$session s, v$lock l, v$locked_object lo\r\n\twhere l.sid = lo.session_id and l.sid &gt; 5\r\n\tand (l.id2 = lo.xidsqn or l.id1 = lo.object_id)\r\n\tand s.sid = lo.session_id and o.obj# = lo.object_id\r\n\tand p.addr = s.paddr\r\n\tand l.type != 'AE'\r\n\torder by 3,7;\r\n<\/pre>\n<p id=\"vVhwRlN\"><img loading=\"lazy\" decoding=\"async\" width=\"1054\" height=\"138\" class=\"size-full wp-image-57201 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/img_674357c289300.png\" alt=\"\" \/><\/p>\n<p>3. Finally, we can obtain more detailed data with the following queries.<\/p>\n<p>For example, information such as who caused the LOCK, who was LOCKed, is the session currently ACTIVE or INACTIVE? can be obtained.<\/p>\n<pre class=\"lang:default decode:true \">\tSQL&gt;\r\n\t   SELECT   s.sid BLOCKER_SID,\r\n\t            s.serial# BLOCKER_SERIAL,\r\n\t            s.username BLOCKER_USERNAME,\r\n\t            s.machine BLOCKER_MACHINE,\r\n\t            q.SQL_FULLTEXT BLOCKER_SQL,\r\n\t            s.status BLOCKER_STATUS,\r\n\t            s.event BLOCKER_EVENT,\r\n\t            SUBSTR (s.program, 1, 40) BLOCKER_PROGRAM,\r\n\t            s.SECONDS_IN_WAIT BLOCKER_SECONDS_IN_WAIT,\r\n\t            s.row_wait_obj# BLOCKER_row_wait_obj,\r\n\t            s.row_wait_file# BLOCKER_row_wait_file,\r\n\t            s.row_wait_block# BLOCKER_row_wait_block,\r\n\t            s.row_wait_row# BLOCKER_row_wait_row,\r\n\t            CASE\r\n\t               WHEN s.status = 'INACTIVE' AND w.SECONDS_IN_WAIT &gt;= 300\r\n\t               THEN\r\n\t                  'blocker is inactive and will be killed'\r\n\t               WHEN s.status != 'INACTIVE' AND w.SECONDS_IN_WAIT &gt;= 600\r\n\t               THEN\r\n\t                  'blocker is active but will be killed'\r\n\t               ELSE\r\n\t                  'blocker not killed yet'\r\n\t            END\r\n\t               BLOCKER_KILL_STATUS,\r\n\t            w.event BLOCKED_EVENT,\r\n\t            SUBSTR (w.program, 1, 40) BLOCKED_PROGRAM,\r\n\t            w.sid BLOCKED_SID,\r\n\t            w.serial# BLOCKED_SERIAL,\r\n\t            w.username BLOCKED_USERNAME,\r\n\t            x.SQL_FULLTEXT BLOCKED_SQL,\r\n\t            w.status BLOCKED_STATUS,\r\n\t            w.WAIT_CLASS BLOCKED_wait_class,\r\n\t            w.WAIT_CLASS_ID BLOCKED_wait_class_id,\r\n\t            w.SECONDS_IN_WAIT BLOCKED_SECONDS_IN_WAIT,\r\n\t            SYSDATE run_time\r\n\t     FROM   v$session s,\r\n\t            v$session w,\r\n\t            v$sql x,\r\n\t            v$sql q\r\n\t    WHERE       w.blocking_session = s.sid\r\n\t            AND w.SQL_ID = x.sql_id(+)\r\n\t            AND s.PREV_SQL_ID = q.sql_id(+)\r\n\t            AND w.blocking_session_status = 'VALID';\r\n<\/pre>\n<p id=\"gDWduWs\"><img loading=\"lazy\" decoding=\"async\" width=\"1470\" height=\"74\" class=\"size-full wp-image-57202 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/img_67435a98ba527.png\" alt=\"\" \/><\/p>\n<p id=\"sglXBTT\"><img loading=\"lazy\" decoding=\"async\" width=\"1654\" height=\"74\" class=\"size-full wp-image-57203 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/img_67435aa200790.png\" alt=\"\" \/><\/p>\n<p id=\"iMSlFLP\"><img loading=\"lazy\" decoding=\"async\" width=\"1480\" height=\"74\" class=\"size-full wp-image-57204 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/img_67435aa922303.png\" alt=\"\" \/><\/p>\n<p id=\"efsdTGo\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"74\" class=\"size-full wp-image-57205 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/img_67435aafb312f.png\" alt=\"\" \/><\/p>\n<p>4. A similar query to the one above.<\/p>\n<pre class=\"lang:default decode:true \">\tSQL&gt;\r\n\t   SELECT   s.sid BLOCKER_SID,\r\n\t            s.serial# BLOCKER_SERIAL,\r\n\t            s.username BLOCKER_USERNAME,\r\n\t            s.machine BLOCKER_MACHINE,\r\n\t            q.SQL_FULLTEXT BLOCKER_SQL,\r\n\t            s.status BLOCKER_STATUS,\r\n\t            s.event BLOCKER_EVENT,\r\n\t            SUBSTR (s.program, 1, 40) BLOCKER_PROGRAM,\r\n\t            s.SECONDS_IN_WAIT BLOCKER_SECONDS_IN_WAIT,\r\n\t            s.row_wait_obj# BLOCKER_row_wait_obj,\r\n\t            s.row_wait_file# BLOCKER_row_wait_file,\r\n\t            s.row_wait_block# BLOCKER_row_wait_block,\r\n\t            s.row_wait_row# BLOCKER_row_wait_row,\r\n\t            CASE\r\n\t               WHEN s.status = 'INACTIVE' AND w.SECONDS_IN_WAIT &gt;= 300\r\n\t               THEN\r\n\t                  'blocker is inactive and will be killed'\r\n\t               WHEN s.status != 'INACTIVE' AND w.SECONDS_IN_WAIT &gt;= 600\r\n\t               THEN\r\n\t                  'blocker is active but will be killed'\r\n\t               ELSE\r\n\t                  'blocker not killed yet'\r\n\t            END\r\n\t               BLOCKER_KILL_STATUS,\r\n\t            w.event BLOCKED_EVENT,\r\n\t            SUBSTR (w.program, 1, 40) BLOCKED_PROGRAM,\r\n\t            w.sid BLOCKED_SID,\r\n\t            w.serial# BLOCKED_SERIAL,\r\n\t            w.username BLOCKED_USERNAME,\r\n\t            x.SQL_FULLTEXT BLOCKED_SQL,\r\n\t            w.status BLOCKED_STATUS,\r\n\t            w.WAIT_CLASS BLOCKED_wait_class,\r\n\t            w.WAIT_CLASS_ID BLOCKED_wait_class_id,\r\n\t            w.SECONDS_IN_WAIT BLOCKED_SECONDS_IN_WAIT,\r\n\t            SYSDATE run_time\r\n\t\r\n\t     FROM   v$session s,\r\n\t            v$session w,\r\n\t            v$sql x,\r\n\t            v$sql q\r\n\t\r\n\t    WHERE       w.blocking_session = s.sid\r\n\t            AND w.SQL_ID = x.sql_id(+)\r\n\t            AND s.PREV_SQL_ID = q.sql_id(+)\r\n\t            AND w.blocking_session_status = 'VALID'\r\n\t            AND (s.username IS NOT NULL\r\n\t                 AND s.username NOT IN ('SYS', 'SYSTEM'));<\/pre>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_57199\" class=\"pvc_stats all  \" data-element-id=\"57199\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In today&#8217;s article, we will discuss checking for LOCKs in the database, which is one of the checks we perform when there is a problem in the database. 1. First, we check if there are any UNCOMMITTED transactions. SQL&gt;\u000bselect sysdate, t.start_time,s.sid,s.serial#,s.username,s.status,s.schemaname, s.osuser,s.process,s.machine,s.terminal,s.program,s.module,to_char(s.logon_time,&#8217;DD\/MON\/YY HH24:MI:SS&#8217;) logon_time from v$transaction t, v$session s where s.saddr = t.ses_addr order by &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_57199\" class=\"pvc_stats all  \" data-element-id=\"57199\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":484,"featured_media":57206,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-57199","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-oracle"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Lock Control In Database - Database Tutorials<\/title>\n<meta name=\"description\" content=\"We will discuss checking for LOCKs in the database, which is one of the checks we perform when there is a problem in the database.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lock Control In Database - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"We will discuss checking for LOCKs in the database, which is one of the checks we perform when there is a problem in the database.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-24T17:17:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/Ekran-goruntusu-2024-11-24-200855.png\" \/>\n\t<meta property=\"og:image:width\" content=\"658\" \/>\n\t<meta property=\"og:image:height\" content=\"258\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Onur ARDAHANLI\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Onur ARDAHANLI\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/\"},\"author\":{\"name\":\"Onur ARDAHANLI\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/7fcd466cd0d347ec64aaa48f18f780c6\"},\"headline\":\"Lock Control In Database\",\"datePublished\":\"2024-11-24T17:17:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/\"},\"wordCount\":110,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/Ekran-goruntusu-2024-11-24-200855.png\",\"articleSection\":[\"ORACLE\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/\",\"name\":\"Lock Control In Database - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/Ekran-goruntusu-2024-11-24-200855.png\",\"datePublished\":\"2024-11-24T17:17:11+00:00\",\"description\":\"We will discuss checking for LOCKs in the database, which is one of the checks we perform when there is a problem in the database.\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/Ekran-goruntusu-2024-11-24-200855.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/Ekran-goruntusu-2024-11-24-200855.png\",\"width\":658,\"height\":258},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lock Control In Database\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/7fcd466cd0d347ec64aaa48f18f780c6\",\"name\":\"Onur ARDAHANLI\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ecd20c3e1374ced4e1aefc82101cce4cd437be8fd957d1be3d106668b8a1b990?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ecd20c3e1374ced4e1aefc82101cce4cd437be8fd957d1be3d106668b8a1b990?s=96&d=mm&r=g\",\"caption\":\"Onur ARDAHANLI\"},\"url\":\"https:\/\/dbtut.com\/index.php\/author\/onurardahanli\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lock Control In Database - Database Tutorials","description":"We will discuss checking for LOCKs in the database, which is one of the checks we perform when there is a problem in the database.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/","og_locale":"en_US","og_type":"article","og_title":"Lock Control In Database - Database Tutorials","og_description":"We will discuss checking for LOCKs in the database, which is one of the checks we perform when there is a problem in the database.","og_url":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/","og_site_name":"Database Tutorials","article_published_time":"2024-11-24T17:17:11+00:00","og_image":[{"width":658,"height":258,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/Ekran-goruntusu-2024-11-24-200855.png","type":"image\/png"}],"author":"Onur ARDAHANLI","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Onur ARDAHANLI","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/"},"author":{"name":"Onur ARDAHANLI","@id":"https:\/\/dbtut.com\/#\/schema\/person\/7fcd466cd0d347ec64aaa48f18f780c6"},"headline":"Lock Control In Database","datePublished":"2024-11-24T17:17:11+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/"},"wordCount":110,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/Ekran-goruntusu-2024-11-24-200855.png","articleSection":["ORACLE"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/","url":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/","name":"Lock Control In Database - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/Ekran-goruntusu-2024-11-24-200855.png","datePublished":"2024-11-24T17:17:11+00:00","description":"We will discuss checking for LOCKs in the database, which is one of the checks we perform when there is a problem in the database.","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/Ekran-goruntusu-2024-11-24-200855.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2024\/11\/Ekran-goruntusu-2024-11-24-200855.png","width":658,"height":258},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2024\/11\/24\/lock-control-in-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"Lock Control In Database"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/7fcd466cd0d347ec64aaa48f18f780c6","name":"Onur ARDAHANLI","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ecd20c3e1374ced4e1aefc82101cce4cd437be8fd957d1be3d106668b8a1b990?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ecd20c3e1374ced4e1aefc82101cce4cd437be8fd957d1be3d106668b8a1b990?s=96&d=mm&r=g","caption":"Onur ARDAHANLI"},"url":"https:\/\/dbtut.com\/index.php\/author\/onurardahanli\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/57199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/484"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=57199"}],"version-history":[{"count":1,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/57199\/revisions"}],"predecessor-version":[{"id":57207,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/57199\/revisions\/57207"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/57206"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=57199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=57199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=57199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}