<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://www.typea.info/tips_/index.php?action=history&amp;feed=atom&amp;title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E</id>
	<title>Oracle Database10g ロックの種類 - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://www.typea.info/tips_/index.php?action=history&amp;feed=atom&amp;title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E"/>
	<link rel="alternate" type="text/html" href="https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;action=history"/>
	<updated>2026-04-25T20:24:06Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;diff=6438&amp;oldid=prev</id>
		<title>2020年2月16日 (日) 04:30にPirotoによる</title>
		<link rel="alternate" type="text/html" href="https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;diff=6438&amp;oldid=prev"/>
		<updated>2020-02-16T04:30:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;amp;diff=6438&amp;amp;oldid=5200&quot;&gt;差分を表示&lt;/a&gt;</summary>
		<author><name>Piroto</name></author>
		
	</entry>
	<entry>
		<id>https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;diff=5200&amp;oldid=prev</id>
		<title>2020年2月15日 (土) 08:38にPirotoによる</title>
		<link rel="alternate" type="text/html" href="https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;diff=5200&amp;oldid=prev"/>
		<updated>2020-02-15T08:38:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2020年2月15日 (土) 08:38時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;1行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;1行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Oracle Database10g ロックの種類==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Oracle Database10g ロックの種類==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Oracle]][[Oracle Database10g]][[DB2 ロック属性]]{{category DBパフォーマンス}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Oracle]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;| &lt;/ins&gt;[[Oracle Database10g]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;| &lt;/ins&gt;[[DB2 ロック属性]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;| &lt;/ins&gt;{{category DBパフォーマンス}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{amazon|4797349808}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{amazon|4797349808}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Piroto</name></author>
		
	</entry>
	<entry>
		<id>https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;diff=4180&amp;oldid=prev</id>
		<title>2020年2月15日 (土) 08:21にPirotoによる</title>
		<link rel="alternate" type="text/html" href="https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;diff=4180&amp;oldid=prev"/>
		<updated>2020-02-15T08:21:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2020年2月15日 (土) 08:21時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;1行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;1行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Oracle Database10g ロックの種類==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Oracle Database10g ロックの種類==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Oracle][Oracle Database10g][DB2 ロック属性]]{{category DBパフォーマンス}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Oracle]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;][&lt;/ins&gt;[Oracle Database10g]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;][&lt;/ins&gt;[DB2 ロック属性]]{{category DBパフォーマンス}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{amazon|4797349808}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{amazon|4797349808}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Piroto</name></author>
		
	</entry>
	<entry>
		<id>https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;diff=3534&amp;oldid=prev</id>
		<title>2020年2月15日 (土) 08:04にPirotoによる</title>
		<link rel="alternate" type="text/html" href="https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;diff=3534&amp;oldid=prev"/>
		<updated>2020-02-15T08:04:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2020年2月15日 (土) 08:04時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;1行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;1行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Oracle Database10g ロックの種類==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Oracle Database10g ロックの種類==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[Oracle][Oracle Database10g][DB2 ロック属性]{{category DBパフォーマンス}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;[Oracle][Oracle Database10g][DB2 ロック属性&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]&lt;/ins&gt;]{{category DBパフォーマンス}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{amazon|4797349808}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{amazon|4797349808}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot; &gt;35行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;35行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*行レベルのロックからロックの単位を拡大することはない(エスカレーションしない)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*行レベルのロックからロックの単位を拡大することはない(エスカレーションしない)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*行ロックでは、最もきめの細かいロックが実現されるため、最高の同時実行性とスループットが得られる&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*行ロックでは、最もきめの細かいロックが実現されるため、最高の同時実行性とスループットが得られる&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;blockquote&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;マルチバージョン同時実行性制御と行レベル・ロックを組み合せると、同じデータに関して複数のユーザーが競合するのは、同じ行にアクセスする場合のみ&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;/blockquote&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;lt;&lt;/ins&gt;blockquote&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;gt;&lt;/ins&gt;マルチバージョン同時実行性制御と行レベル・ロックを組み合せると、同じデータに関して複数のユーザーが競合するのは、同じ行にアクセスする場合のみ&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;lt;&lt;/ins&gt;/blockquote&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===表ロック(TM)===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===表ロック(TM)===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l48&quot; &gt;48行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;48行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**他のトランザクションは、同じ表について同時に行共有ロック、行排他ロック、共有ロックおよび共有行排他ロックを取得できる&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**他のトランザクションは、同じ表について同時に行共有ロック、行排他ロック、共有ロックおよび共有行排他ロックを取得できる&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;blockquote&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;この表ロックを保持しているトランザクションが、その表の行をロックし、それらの行を更新する予定であることを示す&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;/blockquote&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;lt;&lt;/ins&gt;blockquote&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;gt;&lt;/ins&gt;この表ロックを保持しているトランザクションが、その表の行をロックし、それらの行を更新する予定であることを示す&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;lt;&lt;/ins&gt;/blockquote&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=====次のSQL文のいずれかが実行された場合自動的に取得される=====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=====次のSQL文のいずれかが実行された場合自動的に取得される=====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l55&quot; &gt;55行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;55行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  LOCK TABLE table IN ROW SHARE MODE;  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  LOCK TABLE table IN ROW SHARE MODE;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;blockquote&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;LOCK TABLE ... IN ROW SHARE MODE に対して、SELECT ... FOR UPDATE は待ち&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;/blockquote&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;lt;&lt;/ins&gt;blockquote&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;gt;&lt;/ins&gt;LOCK TABLE ... IN ROW SHARE MODE に対して、SELECT ... FOR UPDATE は待ち&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;lt;&lt;/ins&gt;/blockquote&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=====禁止される操作=====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=====禁止される操作=====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l96&quot; &gt;96行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;96行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*他のトランザクションによる更新は許可されません&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*他のトランザクションによる更新は許可されません&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;blockquote&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;複数のトランザクションが、同じ表について同時に共有表ロックを保持できます。ただし、この場合、トランザクションは表を更新できません（FOR UPDATE句を指定したSELECT文の結果として行ロックを保持できたとしても更新できません）。&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;/blockquote&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;lt;&lt;/ins&gt;blockquote&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;gt;&lt;/ins&gt;複数のトランザクションが、同じ表について同時に共有表ロックを保持できます。ただし、この場合、トランザクションは表を更新できません（FOR UPDATE句を指定したSELECT文の結果として行ロックを保持できたとしても更新できません）。&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;lt;&lt;/ins&gt;/blockquote&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;blockquote&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;共有表ロックを保持しているトランザクションがその表を更新できるのは、他のトランザクションが同じ表について共有表ロックを保持していない場合のみです&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/del&gt;/blockquote&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;lt;&lt;/ins&gt;blockquote&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;gt;&lt;/ins&gt;共有表ロックを保持しているトランザクションがその表を更新できるのは、他のトランザクションが同じ表について共有表ロックを保持していない場合のみです&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;lt;&lt;/ins&gt;/blockquote&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=====禁止される操作=====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=====禁止される操作=====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Piroto</name></author>
		
	</entry>
	<entry>
		<id>https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;diff=2347&amp;oldid=prev</id>
		<title>Piroto: ページの作成:「==Oracle Database10g ロックの種類==  [Oracle][Oracle Database10g][DB2 ロック属性]{{category DBパフォーマンス}}    {{amazon|4797349808}}    http://otndnl…」</title>
		<link rel="alternate" type="text/html" href="https://www.typea.info/tips_/index.php?title=Oracle_Database10g_%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E7%A8%AE%E9%A1%9E&amp;diff=2347&amp;oldid=prev"/>
		<updated>2020-02-15T07:34:40Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「==Oracle Database10g ロックの種類==  [Oracle][Oracle Database10g][DB2 ロック属性]{{category DBパフォーマンス}}    {{amazon|4797349808}}    http://otndnl…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Oracle Database10g ロックの種類==&lt;br /&gt;
[Oracle][Oracle Database10g][DB2 ロック属性]{{category DBパフォーマンス}}&lt;br /&gt;
&lt;br /&gt;
{{amazon|4797349808}}&lt;br /&gt;
&lt;br /&gt;
http://otndnld.oracle.co.jp/document/products/oracle10g/102/doc_cd/server.102/B19215-02/consist.htm#887512&lt;br /&gt;
===ロックの種類===&lt;br /&gt;
*Oracleは、トランザクションのためにリソースを自動的にロックし、他のトランザクションが同じリソースの排他的アクセスを要求する処理を行うことを防止します。&lt;br /&gt;
*トランザクションがそのリソースを必要としなくなると、ロックは自動的に解除されます。 &lt;br /&gt;
&lt;br /&gt;
=====Oracleのロックは次の3つのうちいずれか1つに分類=====&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!ロック&lt;br /&gt;
!内容&lt;br /&gt;
|-&lt;br /&gt;
|DMLロック&lt;br /&gt;
|データを保護します。たとえば、表ロックは表全体をロックし、行ロックは選択された行をロック&lt;br /&gt;
|-&lt;br /&gt;
|DDLロック&lt;br /&gt;
|スキーマ・オブジェクトの構造、たとえば表とビューの定義を保護&lt;br /&gt;
|-&lt;br /&gt;
|内部ロックとラッチ&lt;br /&gt;
|データファイルなどの内部データベース構造を保護します。内部ロックとラッチは完全に自動的&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==DMLロック==&lt;br /&gt;
*複数のユーザーが同時にアクセスするデータの整合性を保証することを目的とする。&lt;br /&gt;
*同時に実行される矛盾する複数のDML操作またはDDL操作の破損を招く干渉を防止する。&lt;br /&gt;
*DML文では、表レベル・ロックおよび行レベル・ロックの両方が自動的に取得される&lt;br /&gt;
&lt;br /&gt;
===行ロック(TX)===&lt;br /&gt;
*2つのトランザクションによる同じ行の変更を防ぐ&lt;br /&gt;
*1つの文またはトランザクションで保持できる行ロックの数に制限はない&lt;br /&gt;
*行レベルのロックからロックの単位を拡大することはない(エスカレーションしない)&lt;br /&gt;
*行ロックでは、最もきめの細かいロックが実現されるため、最高の同時実行性とスループットが得られる&lt;br /&gt;
&amp;lt;blockquote&amp;gt;マルチバージョン同時実行性制御と行レベル・ロックを組み合せると、同じデータに関して複数のユーザーが競合するのは、同じ行にアクセスする場合のみ&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===表ロック(TM)===&lt;br /&gt;
*DML操作中に表が削除されないようにするなど、主に同時実行DDL操作で同時実行性制御を行うために使用される&lt;br /&gt;
*DDL文またはDML文が表に対するものである場合、表ロックが取得される&lt;br /&gt;
*表ロックは、行共有（RS）、行排他（RX）、共有（S）、共有行排他（SRX）および排他（X）のいずれかのモードで保持される&lt;br /&gt;
&lt;br /&gt;
====行共有表ロック(RS:Row Share)====&lt;br /&gt;
*副共有表ロック、SSとも呼ぶ&lt;br /&gt;
*最も制限の緩やかなモードの表ロック&lt;br /&gt;
**他のトランザクションは、同じ表の中の行に対して問合せ、挿入、更新、削除またはロックを同時に実行できる&lt;br /&gt;
**他のトランザクションは、同じ表について同時に行共有ロック、行排他ロック、共有ロックおよび共有行排他ロックを取得できる&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;この表ロックを保持しているトランザクションが、その表の行をロックし、それらの行を更新する予定であることを示す&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====次のSQL文のいずれかが実行された場合自動的に取得される=====&lt;br /&gt;
 SELECT ... FROM table ... FOR UPDATE OF ... ;  &lt;br /&gt;
&lt;br /&gt;
 LOCK TABLE table IN ROW SHARE MODE; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;LOCK TABLE ... IN ROW SHARE MODE に対して、SELECT ... FOR UPDATE は待ち&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====禁止される操作=====&lt;br /&gt;
**他のトランザクションが次の文のみを使用して同じ表に排他書込みアクセスを実行するのを防止&lt;br /&gt;
&lt;br /&gt;
 LOCK TABLE table IN EXCLUSIVE MODE;&lt;br /&gt;
&lt;br /&gt;
====行排他表ロック(RX:Row eXclusive)====&lt;br /&gt;
*副排他表ロック、SXとも呼ぶ&lt;br /&gt;
*このロックを保持しているトランザクションが、表の中の行に対して1つ以上の更新を行ったことを示す&lt;br /&gt;
*行共有表ロックよりも少し多くの制限&lt;br /&gt;
&lt;br /&gt;
=====許可される操作=====&lt;br /&gt;
*他のトランザクションは、同じ表の中の行に対して問合せ、挿入、更新、削除またはロックを同時に実行できます&lt;br /&gt;
*複数のトランザクションが同時に、同じ表について行排他ロックと行共有表ロックを取得できる&lt;br /&gt;
&lt;br /&gt;
*次のタイプの文によって修正される表について自動的に取得&lt;br /&gt;
 INSERT INTO table ... ; &lt;br /&gt;
&lt;br /&gt;
 UPDATE table ... ; &lt;br /&gt;
&lt;br /&gt;
 DELETE FROM table ... ;  &lt;br /&gt;
&lt;br /&gt;
 LOCK TABLE table IN ROW EXCLUSIVE MODE; &lt;br /&gt;
&lt;br /&gt;
=====禁止される操作=====&lt;br /&gt;
*他のトランザクションが排他的な読取りや書込みを実行するために表を手動でロックすることを防止&lt;br /&gt;
&lt;br /&gt;
*次の文を使用して同時に表をロックすることはできません&lt;br /&gt;
 LOCK TABLE table IN SHARE MODE;  &lt;br /&gt;
&lt;br /&gt;
 LOCK TABLE table IN SHARE EXCLUSIVE MODE; &lt;br /&gt;
&lt;br /&gt;
 LOCK TABLE table IN EXCLUSIVE MODE; &lt;br /&gt;
====共有表ロック(S:Share)====&lt;br /&gt;
=====次の文で指定される表について自動的に取得=====&lt;br /&gt;
 LOCK TABLE table IN SHARE MODE; &lt;br /&gt;
=====許可される操作=====&lt;br /&gt;
*他のトランザクションは、表の問合せ、SELECT ... FOR UPDATE文による特定行のロック、またはLOCK TABLE ... IN SHARE MODE文の実行のみが許可&lt;br /&gt;
*他のトランザクションによる更新は許可されません&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;複数のトランザクションが、同じ表について同時に共有表ロックを保持できます。ただし、この場合、トランザクションは表を更新できません（FOR UPDATE句を指定したSELECT文の結果として行ロックを保持できたとしても更新できません）。&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;共有表ロックを保持しているトランザクションがその表を更新できるのは、他のトランザクションが同じ表について共有表ロックを保持していない場合のみです&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====禁止される操作=====&lt;br /&gt;
*他のトランザクションが同じ表を変更するのを禁止&lt;br /&gt;
*他のトランザクションが次の文を実行することも禁止&lt;br /&gt;
 LOCK TABLE table IN SHARE ROW EXCLUSIVE MODE; &lt;br /&gt;
&lt;br /&gt;
 LOCK TABLE table IN EXCLUSIVE MODE; &lt;br /&gt;
&lt;br /&gt;
 LOCK TABLE table IN ROW EXCLUSIVE MODE; &lt;br /&gt;
&lt;br /&gt;
====排他表ロック(X:eXclusive)====&lt;br /&gt;
*最も多くの制限が課されるモードの表ロック&lt;br /&gt;
*表に排他的に書込みアクセスすることを許可&lt;br /&gt;
&lt;br /&gt;
=====次の文で指定された表について取得=====&lt;br /&gt;
 LOCK TABLE table IN EXCLUSIVE MODE; &lt;br /&gt;
&lt;br /&gt;
=====許可される操作=====&lt;br /&gt;
*1つのトランザクションのみが、表の排他表ロックを取得できます。&lt;br /&gt;
*排他表ロックでは、他のトランザクションは同じ表に対する問合せのみを実行可能&lt;br /&gt;
&lt;br /&gt;
=====禁止される操作=====&lt;br /&gt;
*他のトランザクションによるDML文の実行とその表に対するロックの適用を禁止&lt;br /&gt;
&lt;br /&gt;
====表ロックのまとめ ====&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!SQL&lt;br /&gt;
!表ロックモード&lt;br /&gt;
!RS&lt;br /&gt;
!RX&lt;br /&gt;
!S&lt;br /&gt;
!SRX&lt;br /&gt;
!X&lt;br /&gt;
|-&lt;br /&gt;
|SELECT ... FROM ...&lt;br /&gt;
|なし&lt;br /&gt;
|可&lt;br /&gt;
|可&lt;br /&gt;
|可&lt;br /&gt;
|可&lt;br /&gt;
|可&lt;br /&gt;
|-&lt;br /&gt;
|INSERT INTO ...&lt;br /&gt;
|RX&lt;br /&gt;
|可&lt;br /&gt;
|可&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|-&lt;br /&gt;
|UPDATE ...&lt;br /&gt;
|RX&lt;br /&gt;
|可※&lt;br /&gt;
|可※&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|-&lt;br /&gt;
|DELTE FROM ...&lt;br /&gt;
|RX&lt;br /&gt;
|可※&lt;br /&gt;
|可※&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|-&lt;br /&gt;
|SELECT ... FROM ... FOR UPDATE OF ...&lt;br /&gt;
|RS&lt;br /&gt;
|可※&lt;br /&gt;
|可※&lt;br /&gt;
|可※&lt;br /&gt;
|可※&lt;br /&gt;
|否&lt;br /&gt;
|-&lt;br /&gt;
|LOCK TABLE ... IN ROW SHARE MODE&lt;br /&gt;
|RS&lt;br /&gt;
|可&lt;br /&gt;
|可&lt;br /&gt;
|可&lt;br /&gt;
|可&lt;br /&gt;
|否&lt;br /&gt;
|-&lt;br /&gt;
|LOCK TABLE ... IN ROW EXCLUSIVE MODE&lt;br /&gt;
|RX&lt;br /&gt;
|可&lt;br /&gt;
|可&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|-&lt;br /&gt;
|LOCK TABLE ... IN SHARE MODE&lt;br /&gt;
|S&lt;br /&gt;
|可&lt;br /&gt;
|否&lt;br /&gt;
|可&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|-&lt;br /&gt;
|LOCK TABLE ... IN SHARE ROW EXCLUSIVE MODE&lt;br /&gt;
|SRX&lt;br /&gt;
|可&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|-&lt;br /&gt;
|LOCK TABLE ... IN EXCLUSIVE MODE&lt;br /&gt;
|X&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|否&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
※別のトランザクションによって、競合する行ロックが保持されていない場合。そうでない場合は待機が発生。&lt;br /&gt;
&lt;br /&gt;
===ロックをかけてみる===&lt;br /&gt;
*実際にロックをかけて、Enterprise Managerで確認する&lt;br /&gt;
====パフォーマンスリージョン － その他の管理リンク － インスタンス・ロック====&lt;br /&gt;
[[File:0933_ora_lock.jpg]]&lt;br /&gt;
====SHARE表ロックをかける====&lt;br /&gt;
*SQL*Plus から SHARE表ロックをかける&lt;br /&gt;
*SHARE表ロックが獲得されたのが確認できる&lt;br /&gt;
[[File:0935_ora_lock_tm_s.jpg]]&lt;br /&gt;
====SHAREロックを取得したトランザクションから行を更新====&lt;br /&gt;
*SHARE表ロックが、SHARE ROW EXCLUSIVE表ロックに変わり、EXCLUSIVE行ロックが獲得されたのが分かる&lt;br /&gt;
[[File:0936_ora_lock_tm_srx.jpg]]&lt;br /&gt;
====ROW EXCLUSIVE表ロックを要求====&lt;br /&gt;
*行を更新したトランザクションが継続中なので、ROW EXCLUSIVEロック要求がブロックされているのが確認できる&lt;br /&gt;
[[File:0934_ora_lock_tm_rx.jpg]]&lt;/div&gt;</summary>
		<author><name>Piroto</name></author>
		
	</entry>
</feed>