<?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"
	>

<channel>
	<title>native Read</title>
	<atom:link href="http://www.nativeread.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nativeread.com</link>
	<description></description>
	<pubDate>Fri, 12 Mar 2010 10:59:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>Manual Database Vault Administrator application deployment</title>
		<link>http://www.nativeread.com/2010/03/12/manual-database-vault-administrator-application-deployment/</link>
		<comments>http://www.nativeread.com/2010/03/12/manual-database-vault-administrator-application-deployment/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 10:58:52 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[oracle]]></category>

		<category><![CDATA[11g]]></category>

		<category><![CDATA[database vault]]></category>

		<guid isPermaLink="false">http://www.nativeread.com/?p=161</guid>
		<description><![CDATA[Database Vault Administration (DVA) could be deployed manually by following steps.
First you have to stop dbconsole (from OS)-
emctl stop dbconsole
open the file $ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_service_name/config/server.xml
and add the following line before the &#60;/application-server&#62; element:

&#60;application name=&#8221;dva&#8221; path=&#8221;$ORACLE_HOME/dv/jlib/dva_webapp.ear&#8221; parent=&#8221;default&#8221; start=&#8221;true&#8221; /&#62;
OC4J_DBConsole_service_name is OC4J_DBConsole_&#60;machine name&#62;_&#60;db sid&#62;
F.i. -  OC4J_DBConsole_my_machine_db1
Here my_machine is machine name, db1 is database name.
On Windows systems, replace $ORACLE_HOME with [...]]]></description>
			<content:encoded><![CDATA[<p>Database Vault Administration (DVA) could be deployed manually by following steps.<br />
First you have to stop dbconsole (from OS)-</p>
<p>emctl stop dbconsole</p>
<p>open the file $ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_service_name/config/server.xml<br />
and add the following line before the &lt;/application-server&gt; element:</p>
<p><span id="more-161"></span></p>
<p>&lt;application name=&#8221;dva&#8221; path=&#8221;$ORACLE_HOME/dv/jlib/dva_webapp.ear&#8221; parent=&#8221;default&#8221; start=&#8221;true&#8221; /&gt;</p>
<p>OC4J_DBConsole_service_name is OC4J_DBConsole_&lt;machine name&gt;_&lt;db sid&gt;<br />
F.i. -  OC4J_DBConsole_my_machine_db1<br />
Here my_machine is machine name, db1 is database name.</p>
<p>On Windows systems, replace $ORACLE_HOME with the absolute path to your Oracle Database home.</p>
<p>Open the file $ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_service_name/config/http-web-site.xml and add the following line before the &lt;/web-site&gt; element:</p>
<p>&lt;web-app application=&#8221;dva&#8221; name=&#8221;dva_webapp&#8221; load-on-startup=&#8221;true&#8221; root=&#8221;/dva&#8221; shared=&#8221;true&#8221;/&gt;</p>
<p>Finally start dbconsole again -</p>
<p>emctl start dbconsole</p>
<p>DVA could be accessed on your dbconsole url - port 5501 -</p>
<p>my_machine:5501/dva/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nativeread.com/2010/03/12/manual-database-vault-administrator-application-deployment/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Add Database Vault to existing Oracle installation</title>
		<link>http://www.nativeread.com/2010/03/11/add-database-vault-to-existing-oracle-installation/</link>
		<comments>http://www.nativeread.com/2010/03/11/add-database-vault-to-existing-oracle-installation/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 14:12:33 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[oracle]]></category>

		<category><![CDATA[database vault]]></category>

		<category><![CDATA[enterprise edition]]></category>

		<category><![CDATA[oracle server]]></category>

		<guid isPermaLink="false">http://www.nativeread.com/?p=156</guid>
		<description><![CDATA[If you have already installed Oracle Server without database vault (DV) option (database vault is a option from Oracle Enterprise Edition). If you want to add DV to the existing Oracle installation, follow the steps below.

1. There is no database associated with this Oracle Home
This is easier. Stop all processes associated with this Oracle Home. [...]]]></description>
			<content:encoded><![CDATA[<p>If you have already installed Oracle Server without database vault (DV) option (database vault is a option from Oracle Enterprise Edition). If you want to add DV to the existing Oracle installation, follow the steps below.</p>
<p><span id="more-156"></span></p>
<p>1. There is no database associated with this Oracle Home</p>
<p>This is easier. Stop all processes associated with this Oracle Home. Then go to directory $ORACLE_HOME/rdbms/lib and execute</p>
<p><strong>cd $ORACLE_HOME/rdbms/lib<br />
make -f ins_rdbms.mk dv_on lbac_on ioracle</strong></p>
<p>Now continue with database creation and ensure that Database Vault option is selected(using dbca).</p>
<p>2. There is a database associated with this Oracle Home</p>
<p>Stop all processes associated with this Oracle Home -database(s), listeners, etc. Then go to directory $ORACLE_HOME/rdbms/lib and execute</p>
<p><strong>cd $ORACLE_HOME/rdbms/lib<br />
make -f ins_rdbms.mk dv_on lbac_on ioracle</strong></p>
<p>Now startup the database and execute the script catols.sql as user SYS -</p>
<p><strong>SQL&gt;@?/rdbms/admin/catols.sql</strong><br />
The script will shutdown the database and the last lines from the execution show<br />
…<br />
Database closed.<br />
Database dismounted.<br />
ORACLE instance shut down.</p>
<p>Start the database.</p>
<p>Finally, database vault option must be enabled. Easiest way is by Database Configuration Assistant - dbca.</p>
<p>Start dbca tool and select ‘Configure Database Option’. Click Next.</p>
<p>Select designated database. Click Next.</p>
<p>Select ‘Oracle Database Vault’ option. Click Next.</p>
<p>Enter name and password for Database Vault Owner and Database Vault Account Manager. The Database Vault Owner account manages Database Vault roles and configuration. The Database Vault Account Manager account is used to manage database user accounts. You can choose whatever username and password you want, but they should comply with the password policy -at least 8 and at most 30 characters, must contain at least one alphabet, one digit and one non-alphanumeric character.</p>
<p>Click &#8216;Finish&#8217; to finish the process.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nativeread.com/2010/03/11/add-database-vault-to-existing-oracle-installation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ORA-01450 by database creation with DB Vault</title>
		<link>http://www.nativeread.com/2010/03/04/ora-01450-by-database-creation-with-db-vault/</link>
		<comments>http://www.nativeread.com/2010/03/04/ora-01450-by-database-creation-with-db-vault/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 16:04:21 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[oracle]]></category>

		<category><![CDATA[11gR2]]></category>

		<category><![CDATA[database vault]]></category>

		<guid isPermaLink="false">http://www.nativeread.com/?p=140</guid>
		<description><![CDATA[I tried to create 11.2 database(by dbca) on SLES10 with database  vault enabled and by 66% of database creation I got the following error message -
ORA-01450:  maximum key length (6398) exceeded
Database has character set  AL32UTF8, national character set UTF8  and uses CHAR semantic (nls_length_semantics).

If  charset is AL32UTF8 and semantic is BYTE, [...]]]></description>
			<content:encoded><![CDATA[<p>I tried to create 11.2 database(by dbca) on SLES10 with database  vault enabled and by 66% of database creation I got the following error message -</p>
<p><strong>ORA-01450:  maximum key length (6398) exceeded</strong></p>
<p>Database has character set  AL32UTF8, national character set UTF8  and uses CHAR semantic (nls_length_semantics).</p>
<p><span id="more-140"></span></p>
<p>If  charset is AL32UTF8 and semantic is BYTE, there is no error by database creation. Also if semantic is CHAR, but charset is WE8MSWIN1252 f.i. - also there is no  problem.</p>
<p>It seems that by using both AL32UTF8 and CHAR semantic, the error appears by adding database vault.</p>
<p>The problematic statements actually is</p>
<p><strong>ALTER TABLE DVSYS.&#8221;IDENTITY_MAP$&#8221;<br />
ADD CONSTRAINT &#8220;IDENTITY_MAP_UK1&#8243;<br />
UNIQUE(IDENTITY_ID#,FACTOR_LINK_ID#,<br />
OPERATION_CODE_ID#,OPERAND1,OPERAND2)<br />
ENABLE;</strong></p>
<p>The following workarounds are possible.</p>
<p>1. Use block size 16K - the error doesn&#8217;t appear. But changing block size should be done only after performance tests, because this change could hardly influence database performance.</p>
<p>2. Use separate tablespace with block size 16K - only for database vault system objects. If you use database template, just add the following under the &lt;CommonAttributes&gt; section -</p>
<p><strong>&lt;option name=&#8221;DV&#8221; value=&#8221;true&#8221;&gt;<br />
&lt;tablespace id=&#8221;DBVAULT&#8221;/&gt;<br />
&lt;/option&gt;</strong></p>
<p>and add tablespace DBVAULT (as well datafile) description later in the template file. 50M is enough as a initial tablespace size.</p>
<p>Of course, do not forget to set db_16k_cache_size to some appropriate value - for instance 50M.</p>
<p>Then database creation runs without problems and database with DB Vault, charset AL32UTF8 and and CHAR semantic is created successfully.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nativeread.com/2010/03/04/ora-01450-by-database-creation-with-db-vault/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to: Put reply box at the top - bbPress</title>
		<link>http://www.nativeread.com/2009/11/18/how-to-put-reply-box-at-the-top-bbpress/</link>
		<comments>http://www.nativeread.com/2009/11/18/how-to-put-reply-box-at-the-top-bbpress/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 08:41:27 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[bbPress]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://dba.nativeread.com/?p=125</guid>
		<description><![CDATA[To put Reply box at the top - edit bb-templates/kakumei/topic.php -

move the block
&#60;?php if ( topic_is_open( $bb_post-&#62;topic_id ) ) : ?&#62;
&#60;?php post_form(); ?&#62;
&#60;?php else : ?&#62;
&#60;h2&#62;&#60;?php _e(&#8217;Topic Closed&#8217;) ?&#62;&#60;/h2&#62;
&#60;p&#62;&#60;?php _e(&#8217;This topic has been closed to new replies.&#8217;) ?&#62;&#60;/p&#62;
&#60;?php endif; ?&#62;
after first
&#60;div class=&#8221;nav&#8221;&#62;
&#60;?php topic_pages(); ?&#62;
&#60;/div&#62;
And you got it.
]]></description>
			<content:encoded><![CDATA[<p>To put Reply box at the top - edit bb-templates/kakumei/topic.php -</p>
<p><span id="more-125"></span></p>
<p>move the block<br />
&lt;?php if ( topic_is_open( $bb_post-&gt;topic_id ) ) : ?&gt;<br />
&lt;?php post_form(); ?&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;h2&gt;&lt;?php _e(&#8217;Topic Closed&#8217;) ?&gt;&lt;/h2&gt;<br />
&lt;p&gt;&lt;?php _e(&#8217;This topic has been closed to new replies.&#8217;) ?&gt;&lt;/p&gt;<br />
&lt;?php endif; ?&gt;</p>
<p>after first</p>
<p>&lt;div class=&#8221;nav&#8221;&gt;<br />
&lt;?php topic_pages(); ?&gt;<br />
&lt;/div&gt;</p>
<p>And you got it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nativeread.com/2009/11/18/how-to-put-reply-box-at-the-top-bbpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to: Change the order of posts in bbPress</title>
		<link>http://www.nativeread.com/2009/11/18/how-to-change-the-order-of-posts-in-bbpress/</link>
		<comments>http://www.nativeread.com/2009/11/18/how-to-change-the-order-of-posts-in-bbpress/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 08:37:44 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[bbPress]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://dba.nativeread.com/?p=123</guid>
		<description><![CDATA[To change the order of posts, so that the most recent appears at the top of the page, and the original post at the bottom -

find get_thread( $topic_id, $page ) in /topic.php and change it to get_thread( $topic_id, $page, true )
Simple.
]]></description>
			<content:encoded><![CDATA[<p>To change the order of posts, so that the most recent appears at the top of the page, and the original post at the bottom -</p>
<p><span id="more-123"></span></p>
<p>find <strong>get_thread( $topic_id, $page )</strong> in <strong>/topic.php</strong> and change it to <strong>get_thread( $topic_id, $page, true )</strong></p>
<p>Simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nativeread.com/2009/11/18/how-to-change-the-order-of-posts-in-bbpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to: Disable sorting by field in Noah’s Classifieds</title>
		<link>http://www.nativeread.com/2009/11/18/how-to-disable-sorting-by-field-in-noah%e2%80%99s-classifieds/</link>
		<comments>http://www.nativeread.com/2009/11/18/how-to-disable-sorting-by-field-in-noah%e2%80%99s-classifieds/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 08:15:22 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Noah’s Classifieds]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://dba.nativeread.com/?p=111</guid>
		<description><![CDATA[As you know, sorting by field could be disabled by check on the option &#8216;Allow sorting by this field&#8217;  in Home » Control panel » Common custom fields » field name.
But by click on &#8216;My ads&#8217;, if you have Views and Responses fields, there is still possibility to sort by these two columns (at least [...]]]></description>
			<content:encoded><![CDATA[<p>As you know, sorting by field could be disabled by check on the option &#8216;Allow sorting by this field&#8217;  in Home » Control panel » Common custom fields » field name.<br />
But by click on &#8216;My ads&#8217;, if you have Views and Responses fields, there is still possibility to sort by these two columns (at least by me I see this behavior).<br />
<span id="more-111"></span><br />
Disabling sorting could be removed in general by editing app/item_typ.php file - just remove the following part -</p>
<p><strong> &#8220;clicked&#8221;=&gt;array(<br />
&#8220;type&#8221;=&gt;&#8221;INT&#8221;,<br />
&#8220;form invisible&#8221;,<br />
&#8220;sorta&#8221;<br />
),<br />
&#8220;responded&#8221;=&gt;array(<br />
&#8220;type&#8221;=&gt;&#8221;INT&#8221;,<br />
&#8220;form invisible&#8221;,<br />
&#8220;sorta&#8221;<br />
),</strong></p>
<p>and sorting by field will disappear(small icons next to the field as well link).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nativeread.com/2009/11/18/how-to-disable-sorting-by-field-in-noah%e2%80%99s-classifieds/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to: Remove the link &#8216;Email to friend&#8217; at the bottom - Noah’s Classifieds</title>
		<link>http://www.nativeread.com/2009/11/18/how-to-remove-the-link-email-to-friend-at-the-bottom-noah%e2%80%99s-classifieds/</link>
		<comments>http://www.nativeread.com/2009/11/18/how-to-remove-the-link-email-to-friend-at-the-bottom-noah%e2%80%99s-classifieds/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 08:10:08 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Noah’s Classifieds]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://dba.nativeread.com/?p=104</guid>
		<description><![CDATA[To remove the link &#8216;Email to friend&#8217; at the bottom of ad, edit the file themes/modern/templates/item_details.tpl.php and remove

&#60;?php if( $this-&#62;get(&#8221;friendmailLink&#8221;) ): ?&#62;
&#60;td style=&#8217;padding-left: 20px;&#8217;&#62;&#60;div class=&#8217;friend&#8217;&#62;&#60;?php echo $this-&#62;get(&#8221;friendmailLink&#8221;) ?&#62;&#60;/div&#62;&#60;/td&#62;
&#60;?php endif; ?&#62;
That it&#8217;s.
]]></description>
			<content:encoded><![CDATA[<p>To remove the link &#8216;Email to friend&#8217; at the bottom of ad, edit the file themes/modern/templates/item_details.tpl.php and remove</p>
<p><span id="more-104"></span><br />
<strong>&lt;?php if( $this-&gt;get(&#8221;friendmailLink&#8221;) ): ?&gt;<br />
&lt;td style=&#8217;padding-left: 20px;&#8217;&gt;&lt;div class=&#8217;friend&#8217;&gt;&lt;?php echo $this-&gt;get(&#8221;friendmailLink&#8221;) ?&gt;&lt;/div&gt;&lt;/td&gt;<br />
&lt;?php endif; ?&gt;</strong></p>
<p>That it&#8217;s.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nativeread.com/2009/11/18/how-to-remove-the-link-email-to-friend-at-the-bottom-noah%e2%80%99s-classifieds/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to: Remove simple search from search form for Noah&#8217;s Classifieds</title>
		<link>http://www.nativeread.com/2009/11/18/how-to-remove-simple-search-from-search-form-for-noahs-classifieds/</link>
		<comments>http://www.nativeread.com/2009/11/18/how-to-remove-simple-search-from-search-form-for-noahs-classifieds/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 08:07:49 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Noah’s Classifieds]]></category>

		<category><![CDATA[noah]]></category>

		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://dba.nativeread.com/?p=101</guid>
		<description><![CDATA[To remove simple search from search form -
Just edit app/search.php - remove the part

&#8220;str&#8221;=&#62;array(
&#8220;type&#8221;=&#62;&#8221;VARCHAR&#8221;,
&#8220;max&#8221; =&#62;&#8221;200&#8243;,
&#8220;text&#8221;,
&#8220;no column&#8221;,
&#8220;modify_form: form invisible&#8221;
),
and simple search disappears.
]]></description>
			<content:encoded><![CDATA[<p>To remove simple search from search form -</p>
<p>Just edit app/search.php - remove the part</p>
<p><span id="more-101"></span></p>
<p><strong>&#8220;str&#8221;=&gt;array(<br />
&#8220;type&#8221;=&gt;&#8221;VARCHAR&#8221;,<br />
&#8220;max&#8221; =&gt;&#8221;200&#8243;,<br />
&#8220;text&#8221;,<br />
&#8220;no column&#8221;,<br />
&#8220;modify_form: form invisible&#8221;<br />
),</strong></p>
<p>and simple search disappears.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nativeread.com/2009/11/18/how-to-remove-simple-search-from-search-form-for-noahs-classifieds/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Swap - the new &#8216;old&#8217; way of save money</title>
		<link>http://www.nativeread.com/2009/09/28/swap-the-new-old-way-of-save-money/</link>
		<comments>http://www.nativeread.com/2009/09/28/swap-the-new-old-way-of-save-money/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 09:43:23 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://dba.nativeread.com/?p=99</guid>
		<description><![CDATA[We are happy to announce the launch of our brand new website - www.fringl.com - Free Swap Classifieds.
It gives you the possibility to save money, time and efforts by online searching and offering items for swap - absolutely free.
It is not necessary always to buy a new goods. Just take a look around - in [...]]]></description>
			<content:encoded><![CDATA[<p>We are happy to announce the launch of our brand new website - <a href="http://www.fringl.com" target="_blank">www.fringl.com</a> - Free Swap Classifieds.<br />
It gives you the possibility to save money, time and efforts by online searching and offering items for swap - absolutely free.<br />
It is not necessary always to buy a new goods. Just take a look around - in every house there are lots of unused, good shaped, valued items.<br />
Your kid is growing - well, kid bike is already too small. Why not swap it for roller skates? Should I swap some of my dvd&#8217;s for some movies I haven&#8217;t seen before - instead of buying them?<br />
I don&#8217;t play on my Wii anymore. But I need an iPhone? Why not searching for used phone in good condition?<br />
You can even swap services - f.i. house cleaning for clothes or gardening for books. Sounds good, doesn&#8217;t it?</p>
<p>The site navigation is easy. You can search items by different criteria - like country, city, zip code, keyword. Even more - you don&#8217;t need to register for that.<br />
If you want to post an offer, then you have to register - it is fast and takes a minute.</p>
<p>Fringl.com is not a social network. There are no user groups, communities or circles. It was aimed to be just what it is now - place for free swap classifieds.</p>
<p>Over time we hope to add more information about forthcoming swap events as well to make the site multilingual.</p>
<p>Our service is totally free. We would like to help people finding what they are searching for - free of charge.</p>
<p>If you have any questions or proposals, we are on your disposal - just drop us a line at team [at] fringl.com</p>
<p>Your Fringl Team</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nativeread.com/2009/09/28/swap-the-new-old-way-of-save-money/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rows insert/update/delete and BITMAP index</title>
		<link>http://www.nativeread.com/2009/03/03/rows-insertupdatedelete-and-bitmap-index/</link>
		<comments>http://www.nativeread.com/2009/03/03/rows-insertupdatedelete-and-bitmap-index/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 09:39:41 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[oracle]]></category>

		<category><![CDATA[index]]></category>

		<category><![CDATA[locks]]></category>

		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://dba.nativeread.com/?p=96</guid>
		<description><![CDATA[Bitmap indexes must never be used in OLTP systems - in other words, for tables where many insert/update/delete are done. Every insert/delete/update on such table with bitmap index locks corresponding index key until commit or rollback is performed.

Take a look on the following example.  I will create a table with a single column - gender [...]]]></description>
			<content:encoded><![CDATA[<p>Bitmap indexes must never be used in OLTP systems - in other words, for tables where many insert/update/delete are done. Every insert/delete/update on such table with bitmap index locks corresponding index key until commit or rollback is performed.</p>
<p><span id="more-96"></span></p>
<p>Take a look on the following example.  I will create a table with a single column - gender - and will create a bitmap index on this column.</p>
<p>SQL&gt; create table t1(gender varchar2(1));</p>
<p>Table created.</p>
<p>SQL&gt; create bitmap index idx1 on t1(gender);</p>
<p>Index created.</p>
<p>SQL&gt; insert into t1 values(&#8217;M');</p>
<p>1 row created.</p>
<p>SQL&gt; insert into t1 values(&#8217;M');</p>
<p>1 row created.</p>
<p>SQL&gt; insert into t1 values(&#8217;F');</p>
<p>1 row created.</p>
<p>SQL&gt; insert into t1 values(&#8217;F');</p>
<p>1 row created.</p>
<p>SQL&gt; commit;</p>
<p>Commit complete.</p>
<p>Now I am going to insert a new row - &#8216;F&#8217; without to commit.</p>
<p>SQL&gt; insert into t1 values(&#8217;F');</p>
<p>1 row created.</p>
<p>If I open a second session and try to insert a new row - &#8216;M&#8217;, it is possible, no locks.</p>
<p>SQL&gt; insert into t1 values(&#8217;M');</p>
<p>1 row created.</p>
<p>Let try to insert &#8216;F&#8217; -</p>
<p><strong>SQL&gt; insert into t1 values(&#8217;F');</strong></p>
<p>Now second session hangs - the first session is not commited  and there is a lock on index key for &#8216;F&#8217;.</p>
<p>Bitmap index has in our case two keys - one for &#8216;M&#8217; and one for &#8216;F&#8217;. Each insert/update/delete locks the corresponding key, not the whole table.</p>
<p>When I commit the first session, the second is processed immediately -</p>
<p>So, in system when there are many updates, bitmaps must be avoided. They are good for readonly systems, otherwise could reduce the performance dramatically - causing many sessions to wait for the blocking sessions to commit or rollback.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nativeread.com/2009/03/03/rows-insertupdatedelete-and-bitmap-index/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
