<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ora-solutions.net - Martin Decker &#187; 11g</title>
	<atom:link href="http://www.ora-solutions.net/web/category/oracle-database/11g/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ora-solutions.net/web</link>
	<description>Indepented Oracle consultant</description>
	<lastBuildDate>Wed, 14 Jul 2010 17:59:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Presentation on Oracle Data Guard 11g (R1/R2) What´s new? (german)</title>
		<link>http://www.ora-solutions.net/web/2010/07/14/presentation-on-oracle-data-guard-11g-r1r2-what%c2%b4s-new-german/</link>
		<comments>http://www.ora-solutions.net/web/2010/07/14/presentation-on-oracle-data-guard-11g-r1r2-what%c2%b4s-new-german/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 17:59:51 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[11g]]></category>
		<category><![CDATA[Data Guard]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Oracle Enterprise Manager]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=856</guid>
		<description><![CDATA[I have uploaded the material of the german presentation on Oracle Data Guard 11gr2 Whats New to the &#8220;presentation&#8221; section. It also contains 6 recorded demos using Enterprise Manager Grid Control.
]]></description>
			<content:encoded><![CDATA[<p>I have uploaded the material of the german presentation on Oracle Data Guard 11gr2 Whats New to the <a href="/web/presentations/">&#8220;presentation&#8221;</a> section. It also contains 6 recorded demos using Enterprise Manager Grid Control.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2010/07/14/presentation-on-oracle-data-guard-11g-r1r2-what%c2%b4s-new-german/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Certified Master 11g</title>
		<link>http://www.ora-solutions.net/web/2010/06/15/oracle-certified-master-11g/</link>
		<comments>http://www.ora-solutions.net/web/2010/06/15/oracle-certified-master-11g/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 16:49:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[11g]]></category>
		<category><![CDATA[Certification]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=829</guid>
		<description><![CDATA[Today, I received a mail from Oracle to inform me that I passed Oracle Certified Master 11g Upgrade Exam. After several weeks of after-work preparations, this is a very satisfying result. If you are OCM 10g and also interested in upgrading, you can find exam schedule and list of objectives here. Good luck.
Schedule: http://education.oracle.co.uk/html/oracle/28US/SCHED_SP_OCM11.htm
Objectives: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&#38;p_org_id=&#38;lang=&#38;p_exam_id=11gOCMU
]]></description>
			<content:encoded><![CDATA[<p>Today, I received a mail from Oracle to inform me that I passed <strong>Oracle Certified Master 11g</strong> Upgrade Exam. After several weeks of after-work preparations, this is a very satisfying result. If you are OCM 10g and also interested in upgrading, you can find exam schedule and list of objectives here. Good luck.</p>
<p>Schedule: <a title="http://education.oracle.co.uk/html/oracle/28US/SCHED_SP_OCM11.htm" href="http://education.oracle.co.uk/html/oracle/28US/SCHED_SP_OCM11.htm">http://education.oracle.co.uk/html/oracle/28US/SCHED_SP_OCM11.htm</a></p>
<p>Objectives: <a title="http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&amp;p_org_id=&amp;lang=&amp;p_exam_id=11gOCMU" href="http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&amp;p_org_id=&amp;lang=&amp;p_exam_id=11gOCMU">http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&amp;p_org_id=&amp;lang=&amp;p_exam_id=11gOCMU</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2010/06/15/oracle-certified-master-11g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Highly Dangerous Oracle Database Security Vulnerability</title>
		<link>http://www.ora-solutions.net/web/2010/02/26/highly-dangerous-oracle-database-security-vulnerability/</link>
		<comments>http://www.ora-solutions.net/web/2010/02/26/highly-dangerous-oracle-database-security-vulnerability/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 20:39:25 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=802</guid>
		<description><![CDATA[I would like to draw your attention to a particularly dangerous security vulnerability, which was recently published by David Litchfield. 
How dangerous is the vulnerability?
Any database user, who has &#8220;create session&#8221; privilege, which means, who can log into the database, can use the security hole to execute any OS command in the ownership of the [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to draw your attention to a particularly dangerous security vulnerability, which was recently published by David Litchfield. </p>
<p><strong>How dangerous is the vulnerability?</strong></p>
<p>Any database user, who has &#8220;create session&#8221; privilege, which means, who can log into the database, can use the security hole to execute any OS command in the ownership of the oracle database owner. This means, that both denial of service as well as access to all data is exposed.</p>
<p><strong>Which versions are affected?</strong></p>
<p>Affected are database versions 10.2.0.4 (incl. 10.2.0.4.3 containing latest security patches as of January 2010) as well as 11g (incl. 11.2.0.1).</p>
<p><strong>What can I do to close this security vulernability?</strong></p>
<p>You can revoke privileges from PUBLIC:</p>
<p>revoke execute on dbms_java from PUBLIC;<br />
revoke execute on dbms_java_test from PUBLIC;<br />
revoke execute on “oracle/aurora/util/Wrapper” from PUBLIC;<br />
grant execute on sys.dbms_jvm_exp_perms to IMP_FULL_DATABASE;<br />
grant execute on sys.dbms_jvm_exp_perms to EXP_FULL_DATABASE;<br />
revoke execute on sys.dbms_jvm_exp_perms from PUBLIC;</p>
<p>If you are using a third party vendor application, you should contact your vendor to check compatibility with revoked privileges or test before implementing in production.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2010/02/26/highly-dangerous-oracle-database-security-vulnerability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speech at DOAG Conference 2009 &#8211; RAC PreProduction Testing</title>
		<link>http://www.ora-solutions.net/web/2009/11/20/speech-at-doag-conference-2009-rac-preproduction-testing/</link>
		<comments>http://www.ora-solutions.net/web/2009/11/20/speech-at-doag-conference-2009-rac-preproduction-testing/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 22:06:48 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Real Application Clusters]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=798</guid>
		<description><![CDATA[I just came back from the DOAG Conference 2009, the german Oracle user group conference in Nürnberg where I had a speech about RAC PreProduction Testing. I have uploaded the slides and the paper to the papers section. At this time, the presentation is available in german only. 
]]></description>
			<content:encoded><![CDATA[<p>I just came back from the DOAG Conference 2009, the german Oracle user group conference in Nürnberg where I had a speech about RAC PreProduction Testing. I have uploaded the slides and the paper to the <a href="http://www.ora-solutions.net/web/papers/">papers section</a>. At this time, the presentation is available in german only. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/11/20/speech-at-doag-conference-2009-rac-preproduction-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Clusterware / ASM 11.1.0.7: ASM Instance crash</title>
		<link>http://www.ora-solutions.net/web/2009/10/28/oracle-clusterware-asm-11-1-0-7-asm-instance-crash/</link>
		<comments>http://www.ora-solutions.net/web/2009/10/28/oracle-clusterware-asm-11-1-0-7-asm-instance-crash/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 15:27:00 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[11g]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MetaLink]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=779</guid>
		<description><![CDATA[During a 11gR1 Clusterware installation for a Single Instance Failover Cluster at a customer site, I have experienced an interesting behaviour, which was caused by an Oracle Bug.
The environment was:

2 Node Oracle Clusterware 11.1.0.7 Cluster on Linux x86_64 using latest Recommended Patches as of October 19th. (pre PSU 11.1.0.7.1)
Clusterware installed as unix user crs
ASM installed [...]]]></description>
			<content:encoded><![CDATA[<p>During a 11gR1 Clusterware installation for a Single Instance Failover Cluster at a customer site, I have experienced an interesting behaviour, which was caused by an Oracle Bug.</p>
<p>The environment was:</p>
<ul>
<li>2 Node Oracle Clusterware 11.1.0.7 Cluster on Linux x86_64 using latest Recommended Patches as of October 19th. (pre PSU 11.1.0.7.1)</li>
<li>Clusterware installed as unix user crs</li>
<li>ASM installed as unix user oracle</li>
</ul>
<p>The ASM instances could be started with SQL*Plus without any problems, but if the ASM instances were started by means of clusterware using srvctl (either from root, crs or oracle) the  ASM instances would crash at diskgroup mount with:</p>
<blockquote>
<pre>ORA-07445: exception encountered: core dump  [sskgds_find_rtn_hdr()+1171]
[SIGBUS] [ADDR:0x2AACD701342C] [PC:0x25799DF]
[Non-existent physical address] []</pre>
</blockquote>
<p>Oracle Support identified this behaviour as Bug 6952915, for which there are patches for Linux x86, x86_64 and Solaris Sparc64.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/10/28/oracle-clusterware-asm-11-1-0-7-asm-instance-crash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Patch Set Update (PSU) October 2009 released</title>
		<link>http://www.ora-solutions.net/web/2009/10/21/patch-set-update-psu-october-2009-released/</link>
		<comments>http://www.ora-solutions.net/web/2009/10/21/patch-set-update-psu-october-2009-released/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 17:15:20 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[MetaLink]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=773</guid>
		<description><![CDATA[Oracle has released the October 2009 Patch Set Update (PSU) which contains several interesting news:

first PSU, which is available for Grid Control 10.2.0.5
seperate PSU Patches for Clusterware (CRS)
Patch Set Updates are now released for ALL non-Windows platform whereas previous PSUs were released for special platforms (e.g. Linux Itanium) on request only.

More info can be found [...]]]></description>
			<content:encoded><![CDATA[<p>Oracle has released the October 2009 Patch Set Update (PSU) which contains several interesting news:</p>
<ul>
<li>first PSU, which is available for Grid Control 10.2.0.5</li>
<li>seperate PSU Patches for Clusterware (CRS)</li>
<li>Patch Set Updates are now released for ALL non-Windows platform whereas previous PSUs were released for special platforms (e.g. Linux Itanium) on request only.</li>
</ul>
<p>More info can be found in Metalink Note 854428.1.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/10/21/patch-set-update-psu-october-2009-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Database version 11g Release 2 for Linux finally released</title>
		<link>http://www.ora-solutions.net/web/2009/09/02/oracle-database-version-11g-release-2-for-linux-finally-released/</link>
		<comments>http://www.ora-solutions.net/web/2009/09/02/oracle-database-version-11g-release-2-for-linux-finally-released/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 05:38:42 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[11g]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=768</guid>
		<description><![CDATA[Yesterday, on September 1st, Oracle released the much awaited database version 11gR2 for Linux x86 for both 32bit and 64bit platforms. The software can be downloaded via OTN: http://www.oracle.com/technology/software/products/database/index.html.
]]></description>
			<content:encoded><![CDATA[<p>Yesterday, on September 1st, Oracle released the much awaited <strong>database version 11gR2</strong> for Linux x86 for both 32bit and 64bit platforms. The software can be downloaded via OTN: http://www.oracle.com/technology/software/products/database/index.html.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/09/02/oracle-database-version-11g-release-2-for-linux-finally-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Out-of-Memory killer on 32bit Linux with big RAM</title>
		<link>http://www.ora-solutions.net/web/2009/08/25/out-of-memory-killer-on-32bit-linux-with-big-ram/</link>
		<comments>http://www.ora-solutions.net/web/2009/08/25/out-of-memory-killer-on-32bit-linux-with-big-ram/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 13:27:30 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[9iR2]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=746</guid>
		<description><![CDATA[It is not very known that you can run into serious problems if you run Linux x86-32bit with a big amount of RAM installed, if using RHEL below 5. The official name for the issue is called &#8220;Low Memory Starvation&#8221;. The best solution is to use x86-64bit to be able to address the whole amount [...]]]></description>
			<content:encoded><![CDATA[<p>It is not very known that you can run into serious problems if you run Linux x86-32bit with a big amount of RAM installed, if using RHEL below 5. The official name for the issue is called &#8220;Low Memory Starvation&#8221;. The best solution is to use x86-64bit to be able to address the whole amount of RAM efficiently. </p>
<p>However, if that is not feasible, then make sure that you at least run the hugemem kernel if you use RHEL < 5. In RHEL5-32bit, the hugemem kernel is default.</p>
<p>A quick demonstration about what can happen if you don´t use hugemem kernel is shown here:</p>
<p>We realized that RMAN backup is taking more than 24 hours. Querying v$session, we find out that<br />
one session is in ACTION "STARTED", whereas the other sessions are FINISHED.</p>
<blockquote><pre>SQL> select program, module,action
      from v$session
      where username = 'SYS' and program like 'rman%'
/      

PROGRAM                    MODULE                       ACTION
-------------------------- ---------------------------  -------------------
rman@ora-vm1 (TNS V1-V3)    backup full datafile        0000078 FINISHED129
rman@ora-vm1 (TNS V1-V3)    backup full datafile        0000272 STARTED16
rman@ora-vm1 (TNS V1-V3)    backup full datafile        0000084 FINISHED129
rman@ora-vm1 (TNS V1-V3)    rman@ora-vm1 (TNS V1-V3)
rman@ora-vm1 (TNS V1-V3)    rman@ora-vm1 (TNS V1-V3)    0000004 FINISHED131
rman@ora-vm1 (TNS V1-V3)    backup full datafile        0000092 FINISHED129</pre>
</blockquote>
<p>Then we check the SID,serial# from v$session of this session and also query the UNIX PID from v$process.spid</p>
<blockquote><pre>SQL> select sid,serial# from v$session where event like 'RMAN%';

       SID    SERIAL#
---------- ----------
      4343       5837</pre>
</blockquote>
<p>We activate SQL Tracing for this session to determine its activity:      </p>
<blockquote><pre>SQL> select spid from v$process where addr =
   (select paddr from v$session where sid = 4343);

SPID
------------
1681

SQL> begin dbms_monitor.session_trace_enable(4343,5837,true,true);
  2  end;
  3  /</pre>
</blockquote>
<p>However, no trace file gets created. Then we start tracing system calls with strace:</p>
<blockquote><pre>ora-vm1:# strace -fp 1681
attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted</pre>
</blockquote>
<p>&#8220;Not permitted&#8221;? &#8211; Although I am connected as root?</p>
<blockquote><pre>ps -ef|grep 1681
oracle    1681 1582  0 Aug24 ?        00:00:09 [oracle] &lt;defunct&gt;</pre>
</blockquote>
<p>The linux command &#8220;ps&#8221; reports the server process as &#8220;defunct&#8221;. </p>
<blockquote><pre>ora-vm1:/usr/oracle/admin/labo/udump$ ps -ef|grep 1582
oracle   1582 21578  0 Aug24 ?        00:00:02 rman oracle/product/10.2.0/bin/rman nocatalog
oracle   21663 1582  0 Aug24 ?        00:00:01 oraclelabo (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle   21665 1582  0 Aug24 ?        00:00:03 oraclelabo (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle   1681 1582   0 Aug24 ?        00:00:09 [oracle] &lt;defunct&gt;
oracle   21691 1582  0 Aug24 ?        00:01:36 oraclelabo (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle   21695 1582  0 Aug24 ?        00:01:41 oraclelabo (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle   21793 1582  0 Aug24 ?        00:01:30 oraclelabo (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))</pre>
</blockquote>
<p>Next, I checked logfile /var/log/messages.1 and realized that the kernel out-of-memory killer (OOM) killed this PID because of low memory starvation.</p>
<blockquote><pre>/var/log/messages.1:
Aug  24 22:32:44 ora-vm1 kernel: Out of Memory: Killed process 1681 (oracle).</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/08/25/out-of-memory-killer-on-32bit-linux-with-big-ram/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Book review: HOWTO Secure and Audit Oracle 10g and 11g</title>
		<link>http://www.ora-solutions.net/web/2009/06/27/book-review-howto-secure-and-audit-oracle-10g-and-11g/</link>
		<comments>http://www.ora-solutions.net/web/2009/06/27/book-review-howto-secure-and-audit-oracle-10g-and-11g/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 19:25:16 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=701</guid>
		<description><![CDATA[I have added a new book review to my bookshelf: HOWTO Secure and Audit Oracle 10g and 11g &#8211; Ron Ben Natan
]]></description>
			<content:encoded><![CDATA[<p>I have added a new book review to my bookshelf: <a href="http://www.ora-solutions.net/web/bookshelf/">HOWTO Secure and Audit Oracle 10g and 11g &#8211; Ron Ben Natan</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/06/27/book-review-howto-secure-and-audit-oracle-10g-and-11g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASSM Problem with too low PCTFREE</title>
		<link>http://www.ora-solutions.net/web/2009/04/09/assm-problem-with-too-low-pctfree/</link>
		<comments>http://www.ora-solutions.net/web/2009/04/09/assm-problem-with-too-low-pctfree/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 19:40:22 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[MetaLink]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=605</guid>
		<description><![CDATA[During the Hotsos Symposium 2009 Training Day, Jonathan Lewis presented a problem which appears even on current 10g/11g databases. What is especially interesting is how this issue can be diagnosed. I reproduced the problem in 11.1.0.7 and will provide the steps you can use to verify. The problem can be demonstrated best when comparing response [...]]]></description>
			<content:encoded><![CDATA[<p>During the Hotsos Symposium 2009 Training Day, Jonathan Lewis presented a problem which appears even on current 10g/11g databases. What is especially interesting is how this issue can be diagnosed. I reproduced the problem in 11.1.0.7 and will provide the steps you can use to verify. The problem can be demonstrated best when comparing response time of an update statement for 8k blocksize and 16k blocksize. </p>
<ul>
<strong>
<li>8k Blocksize</li>
<p></strong></p>

<div class="wp_syntax"><div class="code"><pre class="oracle11" style="font-family:monospace;">SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">DROP</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> t1_8k purge;
&nbsp;
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">CREATE</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLESPACE</span> DEMO8K datafile <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SIZE</span> 128M blocksize <span style="color: #cc66cc;">8192</span>;
&nbsp;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLESPACE</span> created.
&nbsp;
Elapsed: 00:00:<span style="color: #cc66cc;">07.35</span>
&nbsp;
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">CREATE</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> mdecker.t1_8k
<span style="color: #66cc66;">&#40;</span>n1 <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NUMBER</span><span style="color: #66cc66;">,</span>
 n2 <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NUMBER</span><span style="color: #66cc66;">&#41;</span>
 <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLESPACE</span> DEMO8K;
&nbsp;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> created.
&nbsp;
Elapsed: 00:00:<span style="color: #cc66cc;">00.02</span>
&nbsp;
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">INSERT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">INTO</span> t1_8k
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TRUNC</span><span style="color: #66cc66;">&#40;</span>dbms_random.<span style="color: #993333; font-weight: bold; text-transform: uppercase;">VALUE</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10000000</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">100000000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> n1<span style="color: #66cc66;">,</span>
           <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TO_NUMBER</span><span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold; text-transform: uppercase;">NULL</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AS</span> n2
    <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> dual
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">CONNECT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BY</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">LEVEL</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">500000</span>
<span style="color: #66cc66;">/</span>
&nbsp;
&nbsp;
<span style="color: #cc66cc;">500000</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ROWS</span> created.
&nbsp;
Elapsed: 00:00:<span style="color: #cc66cc;">06.89</span>
&nbsp;
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BEGIN</span> dbms_stats.gather_table_stats<span style="color: #66cc66;">&#40;</span>
        ownname <span style="color: #66cc66;">=&gt;</span> <span style="color: #ff0000;">'MDECKER'</span><span style="color: #66cc66;">,</span>
        tabname <span style="color: #66cc66;">=&gt;</span> <span style="color: #ff0000;">'T1_8K'</span><span style="color: #66cc66;">,</span>
        estimate_percent <span style="color: #66cc66;">=&gt;</span> <span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">END</span>;
<span style="color: #66cc66;">/</span>
&nbsp;
PL<span style="color: #66cc66;">/</span><span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">PROCEDURE</span> successfully completed.
&nbsp;
Elapsed: 00:00:<span style="color: #cc66cc;">02.13</span>
&nbsp;
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> num_rows<span style="color: #66cc66;">,</span>blocks <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> dba_tables <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span> table_name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'T1_8K'</span>;
&nbsp;
  NUM_ROWS     BLOCKS
<span style="color: #808080; font-style: italic;">---------- ----------</span>
    <span style="color: #cc66cc;">500000</span>        <span style="color: #cc66cc;">874</span>
&nbsp;
Elapsed: 00:00:<span style="color: #cc66cc;">00.15</span>
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">UPDATE</span> t1_8k <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SET</span> n2 <span style="color: #66cc66;">=</span> n1;
&nbsp;
<span style="color: #cc66cc;">500000</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ROWS</span> updated.
&nbsp;
Elapsed: 00:01:<span style="color: #cc66cc;">09.04</span>
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">COMMIT</span>;</pre></div></div>

<p><strong>
<li>16k Blocksize</li>
<p></strong></p>

<div class="wp_syntax"><div class="code"><pre class="oracle11" style="font-family:monospace;">SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">CREATE</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLESPACE</span> DEMO16K datafile <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SIZE</span> 128M blocksize <span style="color: #cc66cc;">16384</span>;
&nbsp;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLESPACE</span> created.
&nbsp;
Elapsed: 00:00:<span style="color: #cc66cc;">14.75</span>
&nbsp;
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">CREATE</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> mdecker.t1_16k
<span style="color: #66cc66;">&#40;</span>n1 <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NUMBER</span><span style="color: #66cc66;">,</span>
 n2 <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NUMBER</span><span style="color: #66cc66;">&#41;</span>
 <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLESPACE</span> DEMO16K;
&nbsp;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> created.
&nbsp;
Elapsed: 00:00:<span style="color: #cc66cc;">00.03</span>
&nbsp;
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">INSERT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">INTO</span> t1_16k
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TRUNC</span><span style="color: #66cc66;">&#40;</span>dbms_random.<span style="color: #993333; font-weight: bold; text-transform: uppercase;">VALUE</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10000000</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">100000000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> n1<span style="color: #66cc66;">,</span>
           <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TO_NUMBER</span><span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold; text-transform: uppercase;">NULL</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AS</span> n2
    <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> dual
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">CONNECT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BY</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">LEVEL</span> <span style="color: #66cc66;">&lt;=</span> <span style="color: #cc66cc;">500000</span>
<span style="color: #66cc66;">/</span>  
&nbsp;
&nbsp;
<span style="color: #cc66cc;">500000</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ROWS</span> created.
&nbsp;
Elapsed: 00:00:<span style="color: #cc66cc;">05.51</span>
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BEGIN</span> dbms_stats.gather_table_stats<span style="color: #66cc66;">&#40;</span>
        ownname <span style="color: #66cc66;">=&gt;</span> <span style="color: #ff0000;">'MDECKER'</span><span style="color: #66cc66;">,</span>
        tabname <span style="color: #66cc66;">=&gt;</span> <span style="color: #ff0000;">'T1_16K'</span><span style="color: #66cc66;">,</span>
        estimate_percent <span style="color: #66cc66;">=&gt;</span> <span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">END</span>;
<span style="color: #66cc66;">/</span>  
&nbsp;
PL<span style="color: #66cc66;">/</span><span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">PROCEDURE</span> successfully completed.
&nbsp;
Elapsed: 00:00:<span style="color: #cc66cc;">01.78</span>
SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> num_rows<span style="color: #66cc66;">,</span>blocks <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> dba_tables <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span> table_name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'T1_16K'</span>;
&nbsp;
  NUM_ROWS     BLOCKS
<span style="color: #808080; font-style: italic;">---------- ----------</span>
    <span style="color: #cc66cc;">500000</span>        <span style="color: #cc66cc;">436</span>
&nbsp;
Elapsed: 00:00:<span style="color: #cc66cc;">00.07</span>
&nbsp;
SQL<span style="color: #66cc66;">&gt;</span>  <span style="color: #993333; font-weight: bold; text-transform: uppercase;">UPDATE</span> t1_16k <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SET</span> n2 <span style="color: #66cc66;">=</span> n1;
&nbsp;
<span style="color: #cc66cc;">500000</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ROWS</span> updated.
&nbsp;
Elapsed: 00:<span style="color: #cc66cc;">20</span>:<span style="color: #cc66cc;">20.89</span></pre></div></div>

<p>As you can see, the update statement for the 8k blocksize table took around 69 seconds whereas the same update for the table in the 16k tablespace took more than 20 minutes. When executing oradebug short_stack, you can see that for the 16k update, the stacktrace is similar for many executions. So, a lot of time is spent in the kernel functions ktspfsrch() and ktspscan_bmb().</p>
<p><code><br />
SQL&gt; oradebug setospid 23668<br />
Oracle pid: 18, Unix process pid: 23668, image: oracle@ora-vm1.intra (TNS V1-V3)<br />
SQL&gt; oradebug short_stack<br />
.....ktspfsrch()+559&lt;-ktspscan_bmb()+315 .....<br />
SQL&gt; oradebug short_stack<br />
.....ktspfsrch()+559&lt;-ktspscan_bmb()+315 .....<br />
SQL&gt; oradebug short_stack<br />
.....ktspfsrch()+559&lt;-ktspscan_bmb()+315 .....<br />
</code></p>
<p>It is important to understand that the problem is not necessarily related to the blocksize, but to the PCTFREE value. More information about this topic can be found here:</p>
<p><a href="http://structureddata.org/files/jl_test_case.html">http://structureddata.org/files/jl_test_case.html</a><br />
<a href="http://structureddata.org/2008/09/08/understanding-performance/">http://structureddata.org/2008/09/08/understanding-performance/</a><br />
<a href="http://www.oraclealchemist.com/oracle/hey-guys-does-size-matter/">http://www.oraclealchemist.com/oracle/hey-guys-does-size-matter/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/04/09/assm-problem-with-too-low-pctfree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
