<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Oracle World</title><description>Visit www.free-online-exams.com for a free brain bumps exam preparation.</description><managingEditor>noreply@blogger.com (Abu Karam)</managingEditor><pubDate>Fri, 30 Aug 2024 16:31:46 +0400</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">760</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://oracle-dba-quickanswers.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>Visit www.free-online-exams.com for a free brain bumps exam preparation.</itunes:subtitle><itunes:category text="Technology"/><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>Index Online Rebuild Fails with ORA-08104: this index object &lt;#&gt; is being online built or rebuilt".</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/11/index-online-rebuild-fails-with-ora_2.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Fri, 2 Nov 2012 11:50:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-2570762380863263967</guid><description>&lt;div dir='ltr'&gt;  &lt;style&gt;&lt;!-- .hmmessage P { margin:0px; padding:0px } body.hmmessage { font-size: 12pt; font-family:Calibri } --&gt;&lt;/style&gt; &lt;div dir="ltr"&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Symptoms&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Index online rebuild fails with error "ORA-08104: this index object 556463 is being online built or rebuilt".&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Cause&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;First online rebuild attempt had failed. &amp;nbsp;Until SMON performs the clean up, subsequent rebuilds against the index will fail with ORA-8104 or ORA-8106.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Solution&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;DBMS_REPAIR.ONLINE_INDEX_CLEAN() is only available starting in release 10.2&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;For 10.1, you need to wait for SMON process to finish the cleanup job.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Note: SMON will perform the cleanup and does this once every 60 minutes. SMON cleanup is only successful if there are no transactions against the base table [or [sub]partition] at the time of the attempted cleanup. &amp;nbsp;In an environment where there are likely to be uncommitted transactions, this makes cleanup a bit 'hit and miss'. &amp;nbsp;To speed up the process, you can stop your application which uses the table and wait until the cleanup is done.&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;  		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>How to use DBMS_REPAIR.ONLINE_INDEX_CLEAN ?</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/11/how-to-use-dbmsrepaironlineindexclean.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Fri, 2 Nov 2012 11:19:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-8932590742110811355</guid><description>&lt;div dir='ltr'&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Goal&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;When you try to rebuild an index online for the second time, after terminating the first session you tried to rebuild the index online, you get the following error :&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;ORA-08104: this index object ##### is being online built or rebuilt&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Fix&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;To resolve this issue you should refer to the following method run the rebuild using DBMS_REPAIR.ONLINE_INDEX_CLEAN function:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;--Parameters--:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;object_id : ALL_INDEX_ID (= 0) : cleanup all index objects that qualify&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&amp;gt; 0 : cleanup sepcified index object&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;wait_for_lock : LOCK_WAIT=1 : retry getting DML locks on underlying table [[sub]partition] object.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;There is an internal retry limit, after which the lock get will give up&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;LOCK_NOWAIT=0: do not retry&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;--Returns--:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;TRUE : all indexes specified were cleaned up&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;FALSE : one or more indexes could not be cleaned up. Some indexes may have been cleaned up succesfully.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;--Exceptions--:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;ORA-24120 covers the following:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;a negative (or NULL) index object_id was specified&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;a negative (or NULL) wait_for_lock was specified the given object_id was not an index object that needed cleanup&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;--Example Usage of online_index_clean--:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;DECLARE&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&amp;nbsp; &amp;nbsp;isClean BOOLEAN;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;BEGIN&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&amp;nbsp; isClean := FALSE;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;WHILE isClean=FALSE&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&amp;nbsp; &amp;nbsp;LOOP&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;isClean := DBMS_REPAIR.ONLINE_INDEX_CLEAN(DBMS_REPAIR.ALL_INDEX_ID, DBMS_REPAIR.LOCK_WAIT);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;DBMS_LOCK.SLEEP(10);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&amp;nbsp; &amp;nbsp;END LOOP;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;EXCEPTION&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;WHEN OTHERS THEN&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;RAISE;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;END;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;/&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;NOTE: This operation is a maintenance operation and it will take a large down window if the indexes are large.&lt;/font&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Index Online Rebuild Fails with ORA-08104: this index object &lt;#&gt; is being online built or rebuilt".</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/11/index-online-rebuild-fails-with-ora.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Fri, 2 Nov 2012 11:03:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-244236947284227225</guid><description>&lt;div dir='ltr'&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Symptoms&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Index online rebuild fails with error "ORA-08104: this index object 556463 is being online built or rebuilt".&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Cause&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;First online rebuild attempt had failed. &amp;nbsp;Until SMON performs the clean up, subsequent rebuilds against the index will fail with ORA-8104 or ORA-8106.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Solution&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;DBMS_REPAIR.ONLINE_INDEX_CLEAN() is only available starting in release 10.2&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;For 10.1, you need to wait for SMON process to finish the cleanup job.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Note: SMON will perform the cleanup and does this once every 60 minutes. SMON cleanup is only successful if there are no transactions against the base table [or [sub]partition] at the time of the attempted cleanup. &amp;nbsp;In an environment where there are likely to be uncommitted transactions, this makes cleanup a bit 'hit and miss'. &amp;nbsp;To speed up the process, you can stop your application which uses the table and wait until the cleanup is done.&lt;/font&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Physical and Logical Block Corruptions</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/10/physical-and-logical-block-corruptions.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Tue, 30 Oct 2012 12:24:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-8096182799612947096</guid><description>&lt;div dir='ltr'&gt;&lt;span style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: 10pt; "&gt;Oracle&amp;nbsp;classifies the Data File Block corruptions as Physical and Logical.&amp;nbsp; This is also referred as intra block corruptions.&amp;nbsp; This document is intended to provide detailed information and errors example about it.&lt;/span&gt; &lt;div&gt;&lt;span style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: 10pt; "&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 class="km" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: rgb(51, 51, 51); padding-top: 0.5em; text-align: left; background-color: rgb(255, 255, 255); "&gt;Physical Block Corruptions&lt;/h3&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: small; "&gt;This kind of block corruptions are normally reported by Oracle with error ORA-1578 and the detailed corruption description is printed in the alert log.&amp;nbsp;&lt;br&gt;&lt;br&gt;Corruption Examples are:&lt;/p&gt;&lt;ul style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: small; "&gt;&lt;li&gt;Bad header - the beginning of the block (cache header) is corrupt with invalid values&lt;/li&gt;&lt;li&gt;The block is Fractured/Incomplete - header and footer of the block do not match&lt;/li&gt;&lt;li&gt;The block checksum is invalid&lt;/li&gt;&lt;li&gt;The block is misplaced&lt;/li&gt;&lt;li&gt;Zeroed out blocks / ORA-8103&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: small; "&gt;Detailed Corruption Description:&lt;/p&gt;&lt;a name="aref_section32" style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: small; "&gt;&lt;/a&gt;&lt;h4 class="km" style="font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: italic; color: rgb(0, 0, 136); padding-top: 0.5em; text-align: left; background-color: rgb(255, 255, 255); "&gt;Fractured Block&lt;/h4&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: small; "&gt;A Fractured block means that the block is incomplete. Information from the block header does not match the block tail.&lt;BR&gt;&lt;div class="kmnotebox" style="background-color: rgb(254, 252, 238); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(193, 169, 13); border-right-color: rgb(193, 169, 13); border-bottom-color: rgb(193, 169, 13); border-left-color: rgb(193, 169, 13); border-image: initial; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; "&gt;Corrupt block relative dba: 0x0380e573 (file 14, block 58739)&lt;br&gt;&lt;strong&gt;Fractured block found during buffer read&lt;/strong&gt;&lt;br&gt;Data in bad block -&lt;br&gt;&lt;strong&gt;type: 6&lt;/strong&gt;&amp;nbsp;format: 2 rdba: 0x0380e573&lt;br&gt;last change scn: 0x0288.8e5&lt;strong&gt;a2f78&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;seq: 0x1&lt;/strong&gt;&amp;nbsp;flg: 0x04&lt;br&gt;consistency value in&amp;nbsp;&lt;strong&gt;tail: 0x00780601&lt;/strong&gt;&lt;br&gt;check value in block header: 0x8739, computed block checksum: 0x2f00&lt;br&gt;spare1: 0x0, spare2: 0x0, spare3: 0x0&lt;br&gt;***&lt;br&gt;Reread of rdba: 0x0380e573 (file 14, block 58739) found same corrupted data&lt;/div&gt;&lt;br&gt;&lt;a name="aref_section33"&gt;&lt;/a&gt;&lt;BR&gt;&lt;h4 class="km" style="font-family: Arial, Helvetica, sans-serif; font-style: italic; color: rgb(0, 0, 136); padding-top: 0.5em; "&gt;Bad Checksum&lt;/h4&gt;Block Checksums are used to identify if the block was changed by something external to Oracle and after the block was last written by Oracle.&lt;br&gt;Checksum is calculated by DBWR or direct loader before writing the block to disk and stored in the block header. Every time that the block is read and if db_block_checksum is different than false, Oracle calculates a checksum and compares it to the one stored in the block header. Reference&amp;nbsp;&lt;a href="https://support.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?id=30706.1"&gt;Note&amp;nbsp;30706.1&lt;/a&gt;&lt;br&gt;&lt;br&gt;Example of a corrupt block due to invalid checksum:&lt;BR&gt;&lt;div class="kmnotebox" style="background-color: rgb(254, 252, 238); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(193, 169, 13); border-right-color: rgb(193, 169, 13); border-bottom-color: rgb(193, 169, 13); border-left-color: rgb(193, 169, 13); border-image: initial; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; "&gt;Corrupt block relative dba: 0x0380a58f (file 14, block 42383)&lt;br&gt;&lt;strong&gt;Bad check value found during buffer read&lt;/strong&gt;&lt;br&gt;Data in bad block -&lt;br&gt;type: 6 format: 2 rdba: 0x0380a58f&lt;br&gt;last change scn: 0x0288.7784c5ee seq: 0x1 flg: 0x06&lt;br&gt;consistency value in tail: 0xc5ee0601&lt;br&gt;check value in block header: 0x68a7,&amp;nbsp;&lt;strong&gt;computed block checksum: 0x2f00&lt;/strong&gt;&lt;br&gt;spare1: 0x0, spare2: 0x0, spare3: 0x0&lt;br&gt;***&lt;br&gt;Reread of rdba: 0x0380a58f (file 14, block 42383) found same corrupted data&lt;/div&gt;&lt;br&gt;A value different than zero (0x0) in "computed block checksum" means that the checksum&lt;br&gt;differs and the result of this comparison is printed.&amp;nbsp;&lt;br&gt;&lt;br&gt;&lt;a name="aref_section34"&gt;&lt;/a&gt;&lt;BR&gt;&lt;h4 class="km" style="font-family: Arial, Helvetica, sans-serif; font-style: italic; color: rgb(0, 0, 136); padding-top: 0.5em; "&gt;Block Misplaced&lt;/h4&gt;This is when Oracle detected that the content of the block being read belongs to a different block and the checksum is valid:&lt;BR&gt;&lt;div class="kmnotebox" style="background-color: rgb(254, 252, 238); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(193, 169, 13); border-right-color: rgb(193, 169, 13); border-bottom-color: rgb(193, 169, 13); border-left-color: rgb(193, 169, 13); border-image: initial; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; "&gt;Corrupt block relative dba:&lt;strong&gt;&amp;nbsp;0x0d805a89&lt;/strong&gt;&amp;nbsp;(file 54, block 23177)&lt;br&gt;Bad header found during buffer read&lt;br&gt;Data in bad block -&lt;br&gt;type: 6 format: 2&lt;strong&gt;&amp;nbsp;rdba: 0x0d805b08&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;----&amp;gt; Block is different than expected 0x0d805a89&lt;/strong&gt;&lt;br&gt;last change scn: 0x0692.86dc08e3 seq: 0x1 flg: 0x04&lt;br&gt;consistency value in tail: 0x08e30601&lt;br&gt;check value in block header: 0x2a6e,&amp;nbsp;&lt;strong&gt;computed block checksum: 0x0&lt;/strong&gt;&lt;br&gt;spare1: 0x0, spare2: 0x0, spare3: 0x0&lt;br&gt;***&lt;/div&gt;&amp;nbsp;&lt;BR&gt;&lt;a name="aref_section35"&gt;&lt;/a&gt;&lt;h3 class="km" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: rgb(51, 51, 51); padding-top: 0.5em; "&gt;Logical Block Corruptions&lt;/h3&gt;&lt;br&gt;This is when block contains a valid checksum and the structure below the beginning of the block is corrupt (Block content is corrupt). It may cause different ORA-600 errors.&amp;nbsp;&lt;br&gt;&lt;br&gt;The detailed corruption description for Logical Corruptions are not normally printed in the alert.log. DBVerify will report what is logically corrupted in the block.&lt;br&gt;&lt;br&gt;Corruption Examples are:&lt;BR&gt;&lt;ul&gt;&lt;li&gt;row locked by non-existent transaction - ORA-600 [4512],etc&lt;/li&gt;&lt;li&gt;&amp;nbsp;the amount of space used is not equal to block size&lt;/li&gt;&lt;li&gt;avsp bad&lt;/li&gt;&lt;li&gt;etc.&lt;/li&gt;&lt;/ul&gt;When db_block_checking is enabled, it may produce the internal errors ORA-600 [kddummy_blkchk] or ORA-600 [kdBlkCheckError].&lt;BR&gt;&lt;br&gt;If db_block_checking is enabled and the block is already logically corrupt on disk, the next block update will mark the block as Soft Corrupt and future reads of this block will produce the error ORA-1578. In that case DBVerify reports this corruption with error "DBV-200: Block, dba &amp;lt;rdba&amp;gt;, already marked corrupted".&lt;BR&gt;&lt;/p&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>DROP MATERIALIZED VIEW hangs with 'enq: JI - contention'</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/10/drop-materialized-view-hangs-with-enq.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Tue, 2 Oct 2012 08:43:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-758887433096624546</guid><description>&lt;div dir='ltr'&gt;&lt;span style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: 10pt; "&gt;When running a DROP MATERIALIZED VIEW the session hangs&amp;nbsp;&lt;/span&gt; &lt;span style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: 10pt; "&gt;Due to the JI contention.&amp;nbsp;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: 10pt; "&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 class="km" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: rgb(51, 51, 51); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(196, 209, 230); padding-top: 0.5em; text-align: left; background-color: rgb(255, 255, 255); "&gt;Solution&lt;/h2&gt;&lt;span style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: 10pt; "&gt;1.&amp;nbsp;&amp;nbsp; Killed the running job.&amp;nbsp;&amp;nbsp;&amp;nbsp; Check DBMS_JOBS_RUNNING view here.&lt;/span&gt;&lt;br style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: small; "&gt;&lt;br style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: small; "&gt;&lt;span style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: 10pt; "&gt;2.&amp;nbsp; Take the refresh job offline and removed the job.&lt;/span&gt;&lt;br style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: small; "&gt;&lt;br style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: small; "&gt;&lt;span style="font-family: Tahoma, Verdana, Helvetica, sans-serif; text-align: left; background-color: rgb(255, 255, 255); font-size: 10pt; "&gt;3.&amp;nbsp; Finally dropped the MView BR_SEED.ZIP_US which worked , we do not see the job or the Mview any more.&lt;/span&gt; &lt;/div&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Nonclustered Index Structures</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/09/nonclustered-index-structures.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Wed, 26 Sep 2012 09:17:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-3686879677246106049</guid><description>&lt;div dir='ltr'&gt;&lt;p style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; text-align: left; "&gt;Nonclustered indexes have the same B-tree structure as clustered indexes, except for the following significant differences:&lt;/p&gt;&lt;ul style="padding-left: 0px; margin-left: 40px; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; text-align: left; "&gt;&lt;li style="list-style-image: url(http://i3.msdn.microsoft.com/Areas/Brand/Content/b.gif); "&gt;The data rows of the underlying table are not sorted and stored in order based on their nonclustered keys.&lt;BR&gt;&lt;/li&gt;&lt;li style="list-style-image: url(http://i3.msdn.microsoft.com/Areas/Brand/Content/b.gif); "&gt;The leaf layer of a nonclustered index is made up of index pages instead of data pages.&lt;BR&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; text-align: left; "&gt;Nonclustered indexes can be defined on a table or view with a clustered index or a heap. Each index row in the nonclustered index contains the nonclustered key value and a row locator. This locator points to the data row in the clustered index or heap having the key value.&lt;/p&gt;&lt;p style="margin-top: -6px; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; text-align: left; "&gt;The row locators in nonclustered index rows are either a pointer to a row or are a clustered index key for a row, as described in the following:&lt;/p&gt;&lt;ul style="padding-left: 0px; margin-left: 40px; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; text-align: left; "&gt;&lt;li style="list-style-image: url(http://i3.msdn.microsoft.com/Areas/Brand/Content/b.gif); "&gt;If the table is a heap, which means it does not have a clustered index, the row locator is a pointer to the row. The pointer is built from the file identifier (ID), page number, and number of the row on the page. The whole pointer is known as a Row ID (RID).&lt;BR&gt;&lt;/li&gt;&lt;li style="list-style-image: url(http://i3.msdn.microsoft.com/Areas/Brand/Content/b.gif); "&gt;If the table has a clustered index, or the index is on an indexed view, the row locator is the clustered index key for the row. If the clustered index is not a unique index, SQL Server makes any duplicate keys unique by adding an internally generated value called a&amp;nbsp;&lt;strong&gt;uniqueifier&lt;/strong&gt;. This four-byte value is not visible to users. It is only added when required to make the clustered key unique for use in nonclustered indexes. SQL Server retrieves the data row by searching the clustered index using the clustered index key stored in the leaf row of the nonclustered index.&lt;BR&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; text-align: left; "&gt;Nonclustered indexes have one row in&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/ms175012(v=sql.105).aspx" style="color: rgb(150, 11, 180); text-decoration: none; "&gt;sys.partitions&lt;/a&gt;&amp;nbsp;with&amp;nbsp;&lt;strong&gt;index_id&lt;/strong&gt;&amp;nbsp;&amp;gt;0 for each partition used by the index. By default, a nonclustered index has a single partition. When a nonclustered index has multiple partitions, each partition has a B-tree structure that contains the index rows for that specific partition. For example, if a nonclustered index has four partitions, there are four B-tree structures, with one in each partition.&lt;/p&gt;&lt;p style="margin-top: -6px; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; text-align: left; "&gt;Depending on the data types in the nonclustered index, each nonclustered index structure will have one or more allocation units in which to store and manage the data for a specific partition. At a minimum, each nonclustered index will have one IN_ROW_DATA allocation unit per partition that stores the index B-tree pages. The nonclustered index will also have one LOB_DATA allocation unit per partition if it contains large object (LOB) columns . Additionally, it will have one ROW_OVERFLOW_DATA allocation unit per partition if it contains variable length columns that exceed the 8,060 byte row size limit. For more information about allocation units, see&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/ms189051(v=sql.105).aspx" style="color: rgb(150, 11, 180); text-decoration: none; "&gt;Table and Index Organization&lt;/a&gt;. The page collections for the B-tree are anchored by&amp;nbsp;&lt;strong&gt;root_page&lt;/strong&gt;&amp;nbsp;pointers in the&lt;strong&gt;sys.system_internals_allocation_units&lt;/strong&gt;&amp;nbsp;system view.&lt;/p&gt;&lt;br class="Apple-interchange-newline"&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>Using Clustered Indexes</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/09/using-clustered-indexes.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Wed, 26 Sep 2012 09:15:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-2507143531285565154</guid><description>&lt;div dir='ltr'&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;A clustered index determines the physical order of data in a table. A clustered index is analogous to a telephone directory, which arranges data by last name. Because the clustered index dictates the physical storage order of the data in the table, a table can contain only one clustered index. However, the index can comprise multiple columns (a composite index), like the way a telephone directory is organized by last name and first name.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;A clustered index is particularly efficient on columns that are often searched for ranges of values. After the row with the first value is found using the clustered index, rows with subsequent indexed values are guaranteed to be physically adjacent. For example, if an application frequently executes a query to retrieve records between a range of dates, a clustered index can quickly locate the row containing the beginning date, and then retrieve all adjacent rows in the table until the last date is reached. This can help increase the performance of this type of query. Also, if there is a column(s) that is used frequently to sort the data retrieved from a table, it can be advantageous to cluster (physically sort) the table on that column(s) to save the cost of a sort each time the column(s) is queried.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;Clustered indexes are also efficient for finding a specific row when the indexed value is unique. For example, the fastest way to find a particular employee using the unique employee ID column&amp;nbsp;&lt;b&gt;emp_id&lt;/b&gt;&amp;nbsp;is to create a clustered index or PRIMARY KEY constraint on the&amp;nbsp;&lt;b&gt;emp_id&lt;/b&gt;&amp;nbsp;column.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;Note&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;&amp;nbsp;&amp;nbsp;PRIMARY KEY constraints create clustered indexes automatically if no clustered index already exists on the table and a nonclustered index is not specified when you create the PRIMARY KEY constraint.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-size: 10pt; line-height: 115%; font-family: 'Segoe UI', sans-serif; "&gt;Alternatively, a clustered index could be created on&amp;nbsp;&lt;b&gt;lname&lt;/b&gt;,&lt;b&gt;&amp;nbsp;fname&lt;/b&gt;&amp;nbsp;(last name, first name), because employee records are often grouped and queried in this way rather than by employee ID&lt;/span&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Create Filtered Indexes</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/09/create-filtered-indexes.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Wed, 26 Sep 2012 09:14:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-7393281339009741788</guid><description>&lt;div dir='ltr'&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;A filtered index is an optimized nonclustered index especially suited to cover queries that select from a well-defined subset of data. It uses a filter predicate to index a portion of rows in the table. A well-designed filtered index can improve query performance as well as reduce index maintenance and storage costs compared with full-table indexes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;BR&gt;  &lt;p style="margin-top: 0in; "&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;Filtered indexes can provide the following advantages over full-table indexes:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left:30.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1; tab-stops:list .5in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol; "&gt;·&lt;span style="font-family: 'Times New Roman'; font-size: 7pt; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;Improved query performance and plan quality&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:5.0pt;margin-left:30.0pt"&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;A well-designed filtered index improves query performance and execution plan quality because it is smaller than a full-table nonclustered index and has filtered statistics. The filtered statistics are more accurate than full-table statistics because they cover only the rows in the filtered index.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left:30.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1; tab-stops:list .5in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol; "&gt;·&lt;span style="font-family: 'Times New Roman'; font-size: 7pt; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;Reduced index maintenance costs&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:5.0pt;margin-left:30.0pt"&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;An index is maintained only when data manipulation language (DML) statements affect the data in the index. A filtered index reduces index maintenance costs compared with a full-table nonclustered index because it is smaller and is only maintained when the data in the index is changed. It is possible to have a large number of filtered indexes, especially when they contain data that is changed infrequently. Similarly, if a filtered index contains only the frequently modified data, the smaller size of the index reduces the cost of updating the statistics.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left:30.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1; tab-stops:list .5in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol; "&gt;·&lt;span style="font-family: 'Times New Roman'; font-size: 7pt; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span class="label"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;Reduced index storage costs&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top:0in;margin-right:0in;margin-bottom:5.0pt;margin-left:30.0pt"&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;Creating a filtered index can reduce disk storage for nonclustered indexes when a full-table index is not necessary. You can replace a full-table nonclustered index with multiple filtered indexes without significantly increasing the storage requirements.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;h3&gt;&lt;span style="font-size:13.0pt;line-height:115%;font-family:&amp;quot;Segoe UI&amp;quot;,&amp;quot;sans-serif&amp;quot;; color:#3F529C"&gt;Design Considerations&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;p style="margin-left:30.0pt;text-indent:-.25in;mso-list:l1 level1 lfo2; tab-stops:list .5in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol; "&gt;·&lt;span style="font-family: 'Times New Roman'; font-size: 7pt; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;When a column only has a small number of relevant values for queries, you can create a filtered index on the subset of values. For example, when the values in a column are mostly NULL and the query selects only from the non-NULL values, you can create a filtered index for the non-NULL data rows. The resulting index will be smaller and cost less to maintain than a full-table nonclustered index defined on the same key columns.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left:30.0pt;text-indent:-.25in;mso-list:l1 level1 lfo2; tab-stops:list .5in"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-size: 10pt; font-family: Symbol; "&gt;·&lt;span style="font-family: 'Times New Roman'; font-size: 7pt; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;When a table has heterogeneous data rows, you can create a filtered index for one or more categories of data. This can improve the performance of queries on these data rows by narrowing the focus of a query to a specific area of the table. Again, the resulting index will be smaller and cost less to maintain than a full-table nonclustered index.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>SQL Server Surface Area Configuration in SQL Server 2008</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/09/sql-server-surface-area-configuration.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Wed, 26 Sep 2012 08:56:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-5683301581057568407</guid><description>&lt;div dir='ltr'&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;Surface area reduction is a security measure that involves stopping or disabling unused components. Surface area reduction helps to improve security by providing fewer avenues for potential attacks on a system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;For new installations of Microsoft SQL Server 2005, some features, services, and connections are disabled or stopped to reduce the SQL Server surface area. For upgraded installations, all features, services, and connections remain in their pre-upgrade state.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;Use SQL Server Surface Area Configuration to enable, disable, start, or stop the features, services, and remote connectivity of your SQL Server 2005 installations. You can use SQL Server Surface Area Configuration on local and remote servers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: 'Segoe UI', sans-serif; "&gt;SQL Server Surface Area Configuration uses Window Management Instrumentation (WMI) to view and change server settings. WMI provides a unified way for interfacing with the API calls that manage registry operations that configure SQL Server. For information about configuring permissions related to WMI, see the topic&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/ms188690(v=sql.90).aspx"&gt;&lt;span style="color:#960BB4;text-decoration:none;text-underline:none"&gt;How to: Configure WMI to Show Server Status in SQL Server Tools&lt;/span&gt;&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Page compression in SQL Server 2008</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/09/page-compression-in-sql-server-2008.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Tue, 25 Sep 2012 13:50:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-8547275787311372928</guid><description>&lt;div dir='ltr'&gt;&lt;p style="font-size: 13px; font-family: verdana, arial, helvetica; background-color: rgb(255, 255, 255); "&gt;Until SQL Server 7.0 was released, the page size in SQL Server was 2K; now the page size is 8K.&lt;/p&gt;&lt;p style="font-size: 13px; font-family: verdana, arial, helvetica; background-color: rgb(255, 255, 255); "&gt;Microsoft introduced page compression in SQL Server 2008. This new feature is available in the Enterprise edition and developer edition. The page compression feature of SQL Server can compress the entire page.&lt;/p&gt;&lt;p style="font-size: 13px; font-family: verdana, arial, helvetica; background-color: rgb(255, 255, 255); "&gt;Page compression is applied only when the page gets full. When page compression occurs there are three operations that happen in the following order:&lt;/p&gt;&lt;ul style="font-size: 13px; font-family: verdana, arial, helvetica; background-color: rgb(255, 255, 255); "&gt;&lt;li&gt;Row compression&lt;/li&gt;&lt;li&gt;Prefix compression&lt;/li&gt;&lt;li&gt;Dictionary compression&lt;/li&gt;&lt;/ul&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Difference between logical &amp; physical standby database?</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/09/difference-between-logical-physical.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Mon, 24 Sep 2012 12:48:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-2357629353189555976</guid><description>&lt;div dir='ltr'&gt;&lt;p class="MsoNormal" style="font-family: 'Times New Roman'; font-size: medium; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; border-image: initial; padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; "&gt;In&amp;nbsp; Oracle Data Guard you, Oracle transfers data from the main database to a standby database, and in case of failures, Oracle will switch over to the standby database.&amp;nbsp; We have two ways to create a standby database, logical standby and physical standby:&lt;/p&gt;&lt;p class="MsoNormal" style="font-family: 'Times New Roman'; font-size: medium; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; border-image: initial; padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; "&gt;Physical standby differs from logical standby:&lt;/p&gt;&lt;ul style="font-family: 'Times New Roman'; font-size: medium; "&gt;&lt;li&gt;&lt;p class="MsoNormal" style="border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; border-image: initial; padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; "&gt;Physical standby schema matches exactly the source database.&lt;br&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="MsoNormal" style="border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; border-image: initial; padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; "&gt;Archived redo logs and FTP'ed directly to the standby database which is always running in "recover" mode.&amp;nbsp; Upon arrival, the archived redo logs are applied directly to the standby database.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="MsoNormal" style="font-family: 'Times New Roman'; font-size: medium; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; border-image: initial; padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; "&gt;Logical standby is different from physical standby:&lt;/p&gt;&lt;ul style="font-family: 'Times New Roman'; font-size: medium; "&gt;&lt;li&gt;&lt;p class="MsoNormal" style="border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; border-image: initial; padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; "&gt;Logical standby database does not have to match the schema structure of the source database.&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="MsoNormal" style="border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; border-image: initial; padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; "&gt;Logical standby uses LogMiner techniques to transform the archived redo logs into native DML statements (insert, update, delete).&amp;nbsp; This DML is transported and applied to the standby database.&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="MsoNormal" style="border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; border-image: initial; padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; "&gt;Logical standby tables can be open for SQL queries (read only), and all other standby tables can be open for updates.&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="MsoNormal" style="border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; border-image: initial; padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; "&gt;Logical standby database can have additional materialized views and indexes added for faster performance.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;font class="contentText" style="font-family: 'Times New Roman'; font-size: medium; "&gt;&lt;span class="postcolor"&gt;&lt;font itxtvisited="1"&gt;&lt;p itxtvisited="1" align="left"&gt;Installing Physical standbys offers these benefits:&lt;/p&gt;&lt;ul itxtvisited="1"&gt;&lt;li itxtvisited="1"&gt;&lt;p align="left"&gt;An identical physical copy of the primary database&lt;/p&gt;&lt;/li&gt;&lt;li itxtvisited="1"&gt;&lt;p align="left"&gt;Disaster recovery and high availability&lt;/p&gt;&lt;/li&gt;&lt;li itxtvisited="1"&gt;&lt;p align="left"&gt;High Data protection&lt;/p&gt;&lt;/li&gt;&lt;li itxtvisited="1"&gt;&lt;p align="left"&gt;Reduction in primary database workload&lt;/p&gt;&lt;/li&gt;&lt;li itxtvisited="1"&gt;&lt;p align="left"&gt;Performance Faster&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p itxtvisited="1" align="left"&gt;Installing Logical standbys offer:&lt;/p&gt;&lt;ul itxtvisited="1"&gt;&lt;li itxtvisited="1"&gt;&lt;p align="left"&gt;Simultaneous use for reporting, summations and queries&lt;/p&gt;&lt;/li&gt;&lt;li itxtvisited="1"&gt;&lt;p align="left"&gt;Efficient use of standby hardware resources&lt;/p&gt;&lt;/li&gt;&lt;li itxtvisited="1"&gt;&lt;p align="left"&gt;Reduction in primary database workload&lt;/p&gt;&lt;/li&gt;&lt;li itxtvisited="1"&gt;&lt;p align="left"&gt;Some limitations on the use of certain datatypes&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Oracle 10g Data Guard – Quick Switchover with Physical Standby Database</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/09/oracle-10g-data-guard-quick-switchover.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Sun, 23 Sep 2012 13:50:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-5223728557639892393</guid><description>&lt;div dir='ltr'&gt;&lt;div&gt;&lt;span style="font-family: Calibri, sans-serif; "&gt;Once the standby database is setup using Data Guard and works properly, you may want to test switchover, or perform switchover to reduce primary database downtime during OS upgrades or hardware upgrades. (To set up a Physical Standby database, please refer to my OraFAQ blog "Oracle 10g – Manually Create a Physical Standby Database Using Data Guard".)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;A switchover allows the primary database to switch roles with its standby database. There is no data loss during a switchover. You can switch back to the original Primary database later by performing another switchover.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;In case of primary database failure, you will need to perform failover to transition the standby database to the primary role. After a failover, the original primary database can no longer participate in the Data Guard configuration. So if the original Primary database is still accessible, you should always consider a switchover first.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;This document only talks about switchover involving physical standby database. In this example, the original primary data is called PRIM and the original standby database is called STAN.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;I. Before Switchover:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;1. As I always recommend, test the Switchover first on your testing systems before working on Production.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;2. Verify the primary database instance is open and the standby database instance is mounted.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;3. Verify there are no active users connected to the databases.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;4. Make sure the last redo data transmitted from the Primary database was applied on the standby database. Issue the following commands on Primary database and Standby database to find out:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt;select sequence#, applied from v$archvied_log;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Perform SWITCH LOGFILE if necessary.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;In order to apply redo data to the standby database as soon as it is received, use Real-time apply.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;II. Quick Switchover Steps&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;1. Initiate the switchover on the primary database PRIM:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt;connect /@PRIM as sysdba&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt; ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;2. After step 1 finishes, Switch the original physical standby db STAN to primary role;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Open another prompt and connect to SQLPLUS:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt;connect /@STAN as sysdba&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt; ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;3. Immediately after issuing command in step 2, shut down and restart the former primary instance PRIM:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt;SHUTDOWN IMMEDIATE;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt;STARTUP MOUNT;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;4. After step 3 completes:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;- If you are using Oracle Database 10g release 1, you will have to Shut down and restart the new primary database STAN.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt;SHUTDOWN IMMEDIATE;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt;STARTUP;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;- If you are using Oracle Database 10g release 2, you can open the new Primary database STAN:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt;ALTER DATABASE OPEN;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;STAN is now transitioned to the primary database role.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;5. On the new primary database STAN, perform a SWITCH LOGFILE to start sending redo data to the standby database PRIM.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt;ALTER SYSTEM SWITCH LOGFILE;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Reference:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;1. Oracle Data Guard Concepts and Administration 10g Release 2 (10.2), B14239-04;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;2. Switchover and Failover Best Practices: Oracle Data Guard 10g release 2 by Oracle.&lt;/font&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How To Open The Standby Database When The Primary Is Lost</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/09/how-to-open-standby-database-when.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Sun, 23 Sep 2012 13:41:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-1070756594696858014</guid><description>&lt;div dir='ltr'&gt;&lt;div&gt;&lt;span style="font-family: Calibri, sans-serif; "&gt;Startup Mount&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;[oracle@rac2 ~]$ sqlplus / as sysdba&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL*Plus: Release 10.2.0.3.0 - Production on Wed Feb 4 19:51:12 2009&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Copyright (c) 1982, 2006, Oracle. &amp;nbsp;All Rights Reserved.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Connected to an idle instance.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt; STARTUP MOUNT&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;ORACLE instance started.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Total System Global Area &amp;nbsp;218103808 bytes&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Fixed Size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1260984 bytes&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Variable Size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 184549960 bytes&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Database Buffers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 29360128 bytes&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Redo Buffers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2932736 bytes&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Database mounted.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Check Status&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt; SELECT OPEN_MODE,PROTECTION_MODE,DATABASE_ROLE FROM V$DATABASE;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;OPEN_MODE &amp;nbsp;PROTECTION_MODE &amp;nbsp; &amp;nbsp; &amp;nbsp;DATABASE_ROLE&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;---------- -------------------- ----------------&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;MOUNTED &amp;nbsp; &amp;nbsp;MAXIMUM PERFORMANCE &amp;nbsp;PHYSICAL STANDBYHow To Open The Standby Database When The Primary Is Lost&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;3/5 &amp;nbsp;2/4/2009&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Recover if you have logs to apply&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;In this example the primary is lost and I don't have more archived logs to apply:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt; RECOVER STANDBY DATABASE;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;ORA-00279: change 794348 generated at 12/29/2008 12:23:02 needed for thread 1&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;ORA-00289: suggestion :&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;/u01/app/oracle/oradata/dgfdb/archive/1_49_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;ORA-00280: change 794348 for thread 1 is in sequence #49&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Specify log: {&amp;lt;RET&amp;gt;=suggested | filename | AUTO | CANCEL}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;ORA-00308: cannot open archived log&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;'/u01/app/oracle/oradata/dgfdb/archive/1_49_633452428.dbf'&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;ORA-27037: unable to obtain file status&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Linux Error: 2: No such file or directory&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Additional information: 3&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt; !ls -l /u01/app/oracle/oradata/dgfdb/archive/&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;total 31072&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall &amp;nbsp;1158656 Dec 29 11:31 1_37_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall &amp;nbsp;7385600 Dec 29 11:31 1_38_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall &amp;nbsp;4941824 Dec 29 11:31 1_39_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall 13739008 Dec 29 11:31 1_40_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall &amp;nbsp;2272256 Dec 29 11:50 1_41_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall &amp;nbsp; &amp;nbsp; 1024 Dec 29 11:51 1_42_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall &amp;nbsp; &amp;nbsp;89088 Dec 29 11:51 1_43_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall &amp;nbsp;1847296 Dec 29 12:18 1_44_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall &amp;nbsp; 135680 Dec 29 12:18 1_45_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall &amp;nbsp; &amp;nbsp;67584 Dec 29 12:19 1_46_633452428.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall &amp;nbsp; &amp;nbsp;34816 Dec 29 12:22 1_47_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;-rw-r----- &amp;nbsp;1 oracle oinstall &amp;nbsp; &amp;nbsp; 2048 Dec 29 12:22 1_48_633452428.dbf&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Finish the Recovery process&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt; ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Database altered.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Activate the Standby Database&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt; ALTER DATABASE ACTIVATE PHYSICAL STANDBY DATABASE;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Database altered.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Check the new status&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt; SELECT OPEN_MODE,PROTECTION_MODE,DATABASE_ROLE FROM V$DATABASE;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;OPEN_MODE &amp;nbsp;PROTECTION_MODE &amp;nbsp; &amp;nbsp; &amp;nbsp;DATABASE_ROLE&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;---------- -------------------- ----------------&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;MOUNTED &amp;nbsp; &amp;nbsp;MAXIMUM PERFORMANCE &amp;nbsp;PRIMARY&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Open the Database&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt; ALTER DATABASE OPEN&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;Database altered.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;SQL&amp;gt; SELECT OPEN_MODE,PROTECTION_MODE,DATABASE_ROLE FROM V$DATABASE;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;OPEN_MODE &amp;nbsp;PROTECTION_MODE &amp;nbsp; &amp;nbsp; &amp;nbsp;DATABASE_ROLE&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;---------- -------------------- ----------------&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri, sans-serif"&gt;READ WRITE MAXIMUM PERFORMANCE &amp;nbsp;PRIMARY&lt;/font&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>SQL Server Snapshots</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/08/sql-server-snapshots.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Tue, 28 Aug 2012 10:34:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-3536226665916339298</guid><description>&lt;div dir='ltr'&gt;&lt;p style="margin-bottom: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "&gt;A snapshot is a read-only copy of another database, made at a point in time. Any changes to the original database cause the version of the data when the snapshot was taken to get written to the file used by the snapshot. Therefore, there's a performance hit involved, but it can be very useful for knowing exactly what your database looked like at some point in the past (when you told the snapshot to be created).&lt;/p&gt;&lt;p style="margin-bottom: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "&gt;&lt;br&gt;&lt;/p&gt;&lt;p style="margin-bottom: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "&gt;It's definitely worth noting that the snapshot contains no data of its own when first created, as it can reference the original database for it, at least until the original database is changed.&lt;/p&gt;&lt;p style="margin-bottom: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "&gt;&lt;br&gt;&lt;/p&gt;&lt;p style="margin-bottom: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "&gt;&lt;p style="margin-bottom: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; "&gt;When a snapshot is first created, it is an empty shell that delegates all queries (a snapshot is read only) to the original database.&lt;/p&gt;&lt;p style="margin-bottom: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; "&gt;As changes are made to the original database, the pages involved are copied to the snapshot. Queries of the snapshot at this point will be performed on a logical database that is the result of layering the pages in the snapshot over those in the original database.&lt;/p&gt;&lt;p style="margin-bottom: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; "&gt;&lt;br&gt;&lt;/p&gt;&lt;p style="margin-bottom: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; "&gt;The effect is that the snapshot appears to be a complete copy of the original database that was made at the same time as the snapshot was created.&lt;/p&gt;&lt;p style="margin-bottom: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; "&gt;One scenario in which this can be useful is in deploying changes. The snapshot can be a very inexpensive form of insurance if something goes wrong. Assuming that only a subset of the pages within the original database were modified during the deployment, only that subset of the pages will need to be copied back from the snapshot to the original database during a restore&lt;/p&gt;&lt;/p&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>The “NOT FOR REPLICATION” option in SQL Server Replication:</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/08/the-not-for-replication-option-in-sql.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Thu, 23 Aug 2012 14:20:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-2183685399236809040</guid><description>&lt;div dir='ltr'&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;The NOT FOR REPLICATION option allows you to specify that the following database objects are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;treated differently when a replication agent performs an operation:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;* Foreign key constraints&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;The foreign key constraint is not enforced when a replication agent performs an insert, update, or&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;delete operation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;* Check constraints&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;The check constraint is not enforced when a replication agent performs an insert, update, or delete&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;operation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;* Identity columns&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;The identity column value is not incremented when a replication agent performs an insert&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;operation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt"&gt;* Triggers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-size:8.0pt;line-height:115%;font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:Arial; mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:AR-SA"&gt;The trigger is not executed when a replication agent performs an insert, update, or delete&lt;/span&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>What is  filtered index</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/08/what-is-filtered-index.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Thu, 23 Aug 2012 14:19:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-1190864340116448452</guid><description>&lt;div dir='ltr'&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;A filtered index is an optimized nonclustered index, especially suited to cover queries that select&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;from a well-defined subset of data. It uses a filter predicate to index a portion of rows in the table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;A well-designed filtered index can improve query performance, reduce index maintenance costs,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;and reduce index storage costs compared with full-table indexes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;Filtered indexes can provide the following advantages over full-table indexes:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;Improved query performance and plan quality&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;Reduced index maintenance costs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;Reduced index storage costs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to set the instance to utilize one thread for searches which owns an estimated execution cost less than 6.</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/08/how-to-set-instance-to-utilize-one.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Thu, 23 Aug 2012 14:18:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-3691369168354451694</guid><description>&lt;div dir='ltr'&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;line-height:115%;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;Change the sp_configure cost threshold for parallelism option.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;line-height:115%;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;Use the cost threshold for parallelism option to specify the threshold at which Microsoft SQL Server creates and runs parallel plans for queries. SQL Server creates and runs a parallel plan for a query only when the estimated cost to run a serial plan for the same query is higher than the value set in cost threshold for parallelism. The cost refers to an estimated elapsed time in seconds required to run the serial plan on a specific hardware configuration. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;Only set cost threshold for parallelism on symmetric multiprocessors.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;Longer queries usually benefit from parallel plans; the performance advantage negates the additional time required to initialize, synchronize, and terminate the plan. The cost threshold for parallelism option is actively used when a mix of short and longer queries is executed. The short queries execute serial plans while the longer queries use parallel plans. The value of cost threshold for parallelism determines which queries are considered short, thus executing only serial plans.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;In certain cases, a parallel plan may be chosen even though the query's cost plan is less than the current cost threshold for parallelism value. This is because the decision to use a parallel or serial plan, with respect to cost threshold for parallelism, is based on a cost estimate provided before the full optimization is complete.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;The cost threshold for parallelism option can be set to any value from 0 through 32767. The default value is 5.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;If your computer has only one processor, if only a single CPU is available to SQL Server because of the affinity mask configuration value, or if the max degree of parallelism option is set to 1, SQL Server ignores cost threshold for parallelism.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;cost threshold for parallelism is an advanced option. If you are using the sp_configure system stored procedure to change the setting, you can change cost threshold for parallelism only when show advanced options is set to 1. The setting takes effect immediately (without a server stop and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;restart).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to Create Full SQL Database backup commands</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/08/how-to-create-full-sql-database-backup.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Wed, 22 Aug 2012 10:44:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-5238961379745058440</guid><description>&lt;div dir='ltr'&gt;&lt;div&gt;Execute the BACKUP DATABASE statement to create the full database backup, specifying:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;* The name of the database to back up.&lt;/div&gt;&lt;div&gt;* The backup device where the full database backup is written.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The basic Transact-SQL syntax for a full database backup is:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;BACKUP DATABASE database&lt;/div&gt;&lt;div&gt;TO backup_device [ ,...n ]&lt;/div&gt;&lt;div&gt;[ WITH with_options [ ,...o ] ] ;&lt;/div&gt;&lt;div&gt;Option Description&lt;/div&gt;&lt;div&gt;database&lt;/div&gt;&lt;div&gt;Is the database that is to be backed up.&lt;/div&gt;&lt;div&gt;backup_device [ ,...n ]&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Specifies a list of from 1 to 64 backup devices to use for the backup operation. You can specify a&lt;/div&gt;&lt;div&gt;physical backup device, or you can specify a corresponding logical backup device, if already&lt;/div&gt;&lt;div&gt;defined. To specify a physical backup device, use the DISK or TAPE option:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;{ DISK | TAPE } =physical_backup_device_name&lt;/div&gt;&lt;div&gt;For more information, see Backup Devices.&lt;/div&gt;&lt;div&gt;WITH with_options [ ,...o ]&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Optionally, specifies one or more additional options, o. For information about some of the basic&lt;/div&gt;&lt;div&gt;with options, see step 2.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;2.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Optionally, specify one or more WITH options. A few basic WITH options are described here. For&lt;/div&gt;&lt;div&gt;information about all the WITH options, see BACKUP (Transact-SQL).&lt;/div&gt;&lt;div&gt;* Basic backup set WITH options:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;{ COMPRESSION | NO_COMPRESSION }&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In SQL Server 2008 Enterprise and later only, specifies whether backup compression is performed&lt;/div&gt;&lt;div&gt;on this backup, overriding the server-level default.&lt;/div&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Reports Cache Directory in Oracle E-Business R12 is Growing Rapidly</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/08/reports-cache-directory-in-oracle-e.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Wed, 22 Aug 2012 09:59:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-2171098116635691344</guid><description>&lt;div dir='ltr'&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;The cache files are not being deleted when the cacheSize property is exceeded and files are also not deleted even after enabling and setting maxCacheFileNumber, which is the documented method.&lt;/p&gt;&lt;h2 class="km" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: rgb(51, 51, 51); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(196, 209, 230); padding-top: 0.5em; background-color: rgb(255, 255, 255); "&gt;&lt;a name="FIX"&gt;&lt;/a&gt;Solution&lt;/h2&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;&lt;span style="text-decoration: underline; "&gt;&lt;strong&gt;Workaround:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;&amp;nbsp; 1- Shutdown the Concurrent Processing server.&lt;br&gt;&amp;nbsp; 2- Manually delete all the temporary files under the $INST_TOP/logs/ora/10.1.2/reports/cache path&lt;br&gt;&amp;nbsp; 3- Startup up the Concurrent Processing server.&lt;/p&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;&lt;strong&gt;OR&lt;/strong&gt;&lt;/p&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;Change the Oracle Reports configuration file $INST_TOP/ora/10.1.2/reports/conf/rwbuilder.conf and bouncing the services.&amp;nbsp;&lt;br&gt;&lt;br&gt;CHANGE:&amp;nbsp;&lt;br&gt;&amp;lt;property name="cacheSize" value="50"/&amp;gt; to&amp;nbsp;&lt;br&gt;&amp;lt;property name="cacheSize" value="0"/&amp;gt;&amp;nbsp;&lt;br&gt;&lt;br&gt;NOTE: This change will be lost when Autoconfig is run. Apply patch 8602992 as soon as it becomes available.&lt;/p&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;&lt;span style="text-decoration: underline; "&gt;&lt;strong&gt;Permanent Fix:&lt;/strong&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; 1- Apply the following&amp;nbsp;&lt;a href="https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=8602992" target="_blank"&gt;Patch 8602992&lt;/a&gt;.&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;&lt;strong&gt;Important Note:&lt;/strong&gt;&amp;nbsp;If facing Intermittent Oracle Reports REP-0069: REP-57054 Errors after applying the patch above please review&amp;nbsp;&lt;a href="https://support.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?id=1237834.1"&gt;Note 1237834.1&lt;/a&gt;&amp;nbsp;- Intermittent Oracle Reports REP-0069: REP-57054: Error&lt;/p&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>EBS R12 Oracle Reports Cache Directory Not Being Cleaned Up</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/08/ebs-r12-oracle-reports-cache-directory.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Wed, 22 Aug 2012 09:59:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-2824002615431990330</guid><description>&lt;div dir='ltr'&gt;&lt;h2 class="km" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: rgb(51, 51, 51); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(196, 209, 230); padding-top: 0.5em; background-color: rgb(255, 255, 255); "&gt;Applies to:&lt;/h2&gt;&lt;span style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: 10pt; background-color: rgb(255, 255, 255); "&gt;Oracle Applications Technology Stack - Version 12.0 to 12.0 [Release 12.0]&lt;/span&gt;&lt;br style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;&lt;span style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: 10pt; background-color: rgb(255, 255, 255); "&gt;Information in this document applies to any platform.&lt;/span&gt;&lt;br style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;&lt;span style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: 10pt; background-color: rgb(255, 255, 255); "&gt;Oracle Reports, Cache, Cleaned Up, $INST_TOP, purge, disk space, temporary, files&lt;/span&gt;&lt;br style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;&lt;br style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;&lt;br style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;&lt;h2 class="km" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: rgb(51, 51, 51); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(196, 209, 230); padding-top: 0.5em; background-color: rgb(255, 255, 255); "&gt;&lt;a name="SYMPTOM"&gt;&lt;/a&gt;Symptoms&lt;/h2&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;In E-Business Suite (EBS) Release 12, when concurrent requests of the&amp;nbsp;&lt;br&gt;execution method of Oracle Reports are submitted, temporary files are present&amp;nbsp;&lt;br&gt;under the path of $INST_TOP/logs/ora/10.1.2/reports/cache.&amp;nbsp;&lt;br&gt;&lt;br&gt;The temporary files are identical to the file placed under the&amp;nbsp;&lt;br&gt;$APPLCSF/$APPLOUT path, however. These temporary files are not purged when&amp;nbsp;&lt;br&gt;the "Purge Concurrent Request and/or Manager Data" (FNDCPPUR) program runs.&amp;nbsp;&lt;br&gt;&lt;br&gt;&lt;/p&gt;&lt;h2 class="km" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: rgb(51, 51, 51); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(196, 209, 230); padding-top: 0.5em; background-color: rgb(255, 255, 255); "&gt;&lt;a name="CAUSE"&gt;&lt;/a&gt;Cause&lt;/h2&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;New Bug 8449763 / 8602992 due to the new architecture of EBS R12&lt;br&gt;&lt;br&gt;&lt;/p&gt;&lt;h2 class="km" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: rgb(51, 51, 51); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(196, 209, 230); padding-top: 0.5em; background-color: rgb(255, 255, 255); "&gt;&lt;a name="FIX"&gt;&lt;/a&gt;Solution&lt;/h2&gt;&lt;p style="font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255); "&gt;&lt;br&gt;1. Perform both of the following actions:&lt;br&gt;&lt;br&gt;a) Apply patch 8602992 "APPS1012: CACHE DIRECTORY NOT BEING CLEANED OUT"--currently available via MOS (Metalink).&amp;nbsp;&lt;br&gt;&lt;br&gt;b) Apply technology stack template fix patch 9032800 "SET CACHESIZE=0 RWBUILDER_CONF_1012.TMP"--as soon as it becomes available.&lt;br&gt;&lt;br&gt;As a current workaround to patch 9032800:&lt;br&gt;&lt;br&gt;Change the Oracle Reports configuration file $INST_TOP/ora/10.1.2/reports/conf/rwbuilder.conf and bouncing the services.&amp;nbsp;&lt;br&gt;&lt;br&gt;CHANGE:&amp;nbsp;&lt;br&gt;&amp;lt;property name="cacheSize" value="50"/&amp;gt; to&amp;nbsp;&lt;br&gt;&amp;lt;property name="cacheSize" value="0"/&amp;gt;&amp;nbsp;&lt;br&gt;&lt;br&gt;NOTE: This change will be lost when Autoconfig is run. Apply patch 8602992 as soon as it becomes available.&amp;nbsp;&lt;br&gt;&lt;br&gt;NOTE 2:&amp;nbsp;&amp;nbsp;&amp;nbsp;Patch 8602992 will ensure that the Oracle Report rwrun&amp;nbsp;executable deletes the cache file after the report runs, however. Any existing cache file prior to the fix will need to be deleted manually&lt;/p&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Clustered and Non-Clustered Index in SQL</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/08/clustered-and-non-clustered-index-in-sql.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Sat, 18 Aug 2012 00:30:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-9054350490005222442</guid><description>&lt;div dir='ltr'&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;  &lt;style&gt;&lt;!-- .ExternalClass .ecxhmmessage P {padding:0px;} .ExternalClass body.ecxhmmessage {font-size:12pt;font-family:Calibri;}  --&gt;&lt;/style&gt; &lt;div dir="ltr"&gt;&lt;p style="margin-bottom:10px;color:rgb(85, 85, 85);font-family:Verdana, 'BitStream vera Sans', Helvetica, sans-serif;font-size:12px;line-height:17px;background-color:rgb(255, 255, 255)"&gt;When you first create a new table, there is no index created by default. In technical terms, a table without an index is called a "heap". As you would expect, the data we will insert into the table will be returned in the same order. A non-clustered index is a special type of index in which the logical order of the index does not match the physical stored order of the rows on disk. The leaf node of a non-clustered index does not consist of the data pages. Instead, the leaf nodes contain index rows.&lt;/p&gt;&lt;p style="margin-bottom:10px;color:rgb(85, 85, 85);font-family:Verdana, 'BitStream vera Sans', Helvetica, sans-serif;font-size:12px;line-height:17px;background-color:rgb(255, 255, 255)"&gt;&lt;br&gt;&lt;/p&gt;&lt;p style="margin-bottom:10px;color:rgb(85, 85, 85);font-family:Verdana, 'BitStream vera Sans', Helvetica, sans-serif;font-size:12px;line-height:17px;background-color:rgb(255, 255, 255)"&gt;A clustered index is a special type of index that reorders the way records in the table are physically stored. Therefore table can have only one clustered index. The leaf nodes of a clustered index contain the data pages.&lt;/p&gt;&lt;p style="margin-bottom:10px;color:rgb(85, 85, 85);font-family:Verdana, 'BitStream vera Sans', Helvetica, sans-serif;font-size:12px;line-height:17px;background-color:rgb(255, 255, 255)"&gt;&lt;br&gt;&lt;/p&gt;&lt;p style="margin-bottom:10px;color:rgb(85, 85, 85);font-family:Verdana, 'BitStream vera Sans', Helvetica, sans-serif;font-size:12px;line-height:17px;background-color:rgb(255, 255, 255)"&gt;Clustered index is good when you know in which order you will be returning the records in most cases. You can create clustered index and after that you don't need to use ORDER BY statement. This will be much more faster. If the order is not important for you and will not create clustered index by yourself, then primary key will be clustered index by default. There is nothing bad not to have the clustered index, it can speed up inserting rows.&lt;/p&gt;&lt;div style="padding:0px;color:rgb(85, 85, 85);font-family:Verdana, 'BitStream vera Sans', Helvetica, sans-serif;font-size:12px;line-height:17px;background-color:rgb(255, 255, 255)"&gt;&lt;div style="padding:0px;float:left"&gt;&lt;br class="ecxApple-interchange-newline"&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;&lt;font size="4" color="#ff0000"&gt;&lt;b&gt;You can access www.free-online-exams.com for the whole latest version of the exam&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="4" color="#ff0000"&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;br class="ecxApple-interchange-newline"&gt; 		 	   		  &lt;/div&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Alter Schema in SQL Server, how to move a table, such as ABC_table, from its current scheme (scheme1) to another scheme (scheme2)</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/08/alter-schema-in-sql-server-how-to-move.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Thu, 16 Aug 2012 17:34:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-2145256683053457845</guid><description>&lt;div dir='ltr'&gt;&lt;div&gt;&lt;br&gt;  &lt;style&gt;&lt;!-- .ExternalClass .ecxhmmessage P {padding:0px;} .ExternalClass body.ecxhmmessage {font-size:12pt;font-family:Calibri;}  --&gt;&lt;/style&gt; &lt;div dir="ltr"&gt;&lt;font face="Calibri"&gt;ALTER SCHEMA schema2 TRANSFER schema1.ABC_table;&lt;/font&gt;&lt;div&gt;&lt;font face="Calibri"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri"&gt;&lt;div&gt;ALTER SCHEMA can only be used to move securables between schemas in the same database.&lt;/div&gt;&lt;div&gt;To change or drop a securable within a schema, use the ALTER or DROP statement specific to&lt;/div&gt;&lt;div&gt;that securable.&lt;/div&gt;&lt;/font&gt;&lt;br&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;div&gt;&lt;font size="4" color="#ff0000"&gt;&lt;b&gt;You can access www.free-online-exams.com for the whole latest version of the exam&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="4" color="#ff0000"&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to allow users on SQL Server to use the OPENROWSET() function to search remote information sources.</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/08/how-to-allow-users-on-sql-server-to-use.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Thu, 16 Aug 2012 17:34:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-6042961626672884074</guid><description>&lt;div dir='ltr'&gt;&lt;div&gt;&lt;div dir="ltr"&gt;&lt;div dir="ltr"&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;01. sp_configure 'show advanced options', 1&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;02. RECONFIGURE&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;03.sp_configure 'Ad Hoc Distributed Queries', 1&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;04. RECONFIGURE&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;05. GO&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;06.&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;div&gt;07. SELECT a.*&lt;/div&gt;&lt;div&gt;08. FROM OPENROWSET('SQLNCLI', 'Server=Madrid;Trusted_Connection=yes;',&lt;/div&gt;&lt;div&gt;09. 'SELECT GroupName, Name, DepartmentID&lt;/div&gt;&lt;div&gt;10. FROM AdventureWorks.HumanResources.Department&lt;/div&gt;&lt;div&gt;11. ORDER BY GroupName, Name') AS a;&lt;/div&gt;&lt;div&gt;12. GO&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;br&gt;&lt;/div&gt;&lt;div dir="ltr" style="font-family:Calibri;font-size:12pt"&gt;&lt;br&gt;&lt;/div&gt;&lt;div dir="ltr"&gt;&lt;font face="Calibri"&gt;By default, SQL Server does not allow ad hoc distributed queries using OPENROWSET and&lt;/font&gt;&lt;/div&gt;&lt;div dir="ltr"&gt;&lt;font face="Calibri"&gt;OPENDATASOURCE. When this option is set to 1, SQL Server allows ad hoc access. When this&lt;/font&gt;&lt;/div&gt;&lt;div dir="ltr"&gt;&lt;font face="Calibri"&gt;option is not set or is set to 0, SQL Server does not allow ad hoc access.&lt;/font&gt;&lt;/div&gt;&lt;div dir="ltr"&gt;&lt;font face="Calibri"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div dir="ltr"&gt;&lt;font face="Calibri"&gt;Ad hoc distributed queries use the OPENROWSET and OPENDATASOURCE functions to&lt;/font&gt;&lt;/div&gt;&lt;div dir="ltr"&gt;&lt;font face="Calibri"&gt;connect to remote data sources that use OLE DB. OPENROWSET and OPENDATASOURCE&lt;/font&gt;&lt;/div&gt;&lt;div dir="ltr"&gt;&lt;font face="Calibri"&gt;should be used only to reference OLE DB data sources that are accessed infrequently. For any&lt;/font&gt;&lt;/div&gt;&lt;div dir="ltr"&gt;&lt;font face="Calibri"&gt;data sources that will be accessed more than several times, define a linked server.&lt;/font&gt;&lt;/div&gt;&lt;div dir="ltr"&gt;&lt;font face="Calibri"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div dir="ltr"&gt;&lt;font face="Calibri"&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;div&gt;&lt;font size="4" color="#ff0000"&gt;&lt;b&gt;You can access www.free-online-exams.com for the whole latest version of the exam&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="4" color="#ff0000"&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;br class="ecxApple-interchange-newline"&gt; 		 	   		  &lt;/div&gt; 		 	   		  &lt;/div&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ALTER LOGIN CHECK_POLICY = { ON | OFF }</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/08/alter-login-checkpolicy-on-off.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Thu, 16 Aug 2012 17:33:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-6177107273380308557</guid><description>&lt;div dir='ltr'&gt;&lt;div&gt;&lt;div dir="ltr"&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;div&gt;If you have the following below requirements:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;1. SQL Server 2008 logins must have the same password complexity rules which are enforced by&lt;/div&gt;&lt;div&gt;Windows Server for authentication.&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri"&gt;2. Full compliance of all users with regarding to adhering to the password complexity rules&lt;/font&gt;&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;Answer:&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;Applies only to SQL Server logins. Specifies that the Windows password policies of the computer&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;on which SQL Server is running should be enforced on this login. The default value is ON.&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri"&gt;ALTER LOGIN CHECK_POLICY = { ON | OFF }&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri"&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;You should consider using the ALTER LOGIN ... CHECK_POLICY = ON statement to change&lt;/div&gt;&lt;div&gt;the entire login of all users.&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;Create a policy using Policy-Based Management that matches the requirements&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;Policy-Based Management is a system for managing one or more instances of SQL Server 2008.&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;When SQL Server policy administrators use Policy-Based Management, they use SQL Server&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;Management Studio to create policies to manage entities on the server, such as the instance of&lt;/div&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;SQL Server, databases, or other SQL Server objects.&lt;/div&gt;&lt;br&gt;&lt;div style="font-family:Calibri;font-size:12pt"&gt;&lt;div&gt;&lt;font size="4" color="#ff0000"&gt;&lt;b&gt;You can access www.free-online-exams.com for the whole latest version of the exam&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="4" color="#ff0000"&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;br class="ecxApple-interchange-newline"&gt; 		 	   		  &lt;/div&gt;&lt;/div&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to find out the SQL with most redo log generation</title><link>http://oracle-dba-quickanswers.blogspot.com/2012/03/how-to-find-out-sql-with-most-redo-log.html</link><author>noreply@blogger.com (Abu Karam)</author><pubDate>Wed, 7 Mar 2012 08:38:00 +0400</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5901267409227803312.post-5053776790034240810</guid><description>&lt;div dir='ltr'&gt; &lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-bottom: 24px; vertical-align: baseline; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; line-height: 15px; "&gt;To find sessions generating lots of redo, you can use either of the following methods. Both methods examine the amount of undo generated. When a transaction generates undo, it will automatically generate redo as well.&lt;br&gt;We can query Query V$SESS_IO. This view contains the column BLOCK_CHANGES which indicates how much blocks have been changed by the session. High values indicate a session generating lots of redo.&lt;/p&gt;&lt;div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 1cm; padding-top: 1pt; padding-right: 1pt; padding-bottom: 1pt; padding-left: 1pt; vertical-align: baseline; color: rgb(51, 51, 51); line-height: 15px; font-family: 'Courier New', Courier, monospace; "&gt;SELECT s.sid, s.serial#, s.username, s.program,&lt;br&gt;i.block_changes&lt;br&gt;FROM v$session s, v$sess_io i&lt;br&gt;WHERE s.sid = i.sid&lt;br&gt;ORDER BY 5 desc, 1, 2, 3, 4;&lt;/div&gt;&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-bottom: 24px; vertical-align: baseline; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; line-height: 15px; "&gt;We need to run the query multiple times and examine the delta between each occurrence of BLOCK_CHANGES. Large deltas indicate high redo generation by the session.&lt;/p&gt;&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-bottom: 24px; vertical-align: baseline; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; line-height: 15px; "&gt;This just give me an idea about what is currently happening. But I want more historical information. Let us say for last 3 days, what was the SQLs involed in most redo.&lt;br&gt;I did generate an AWR for last two days but that did not gave me the information that I was looking for. So I decided to directly query DBA_HIST views.&lt;/p&gt;&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-bottom: 24px; vertical-align: baseline; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; line-height: 15px; "&gt;I found a way to get the hostorical db block change information from DBA_HIST views. dba_hist_seg_stat view has a column called db_block_changes_delta column. We can query this view and find out the sum of block changes per object.&lt;/p&gt;&lt;div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 1cm; padding-top: 1pt; padding-right: 1pt; padding-bottom: 1pt; padding-left: 1pt; vertical-align: baseline; color: rgb(51, 51, 51); line-height: 15px; font-family: 'Courier New', Courier, monospace; "&gt;&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-bottom: 24px; vertical-align: baseline; "&gt;SELECT dhso.object_name,&lt;br&gt;sum(db_block_changes_delta)&lt;br&gt;FROM dba_hist_seg_stat dhss,&lt;br&gt;dba_hist_seg_stat_obj dhso,&lt;br&gt;dba_hist_snapshot dhs&lt;br&gt;WHERE dhs.snap_id = dhss.snap_id&lt;br&gt;AND dhs.instance_number = dhss.instance_number&lt;br&gt;AND dhss.obj# = dhso.obj#&lt;br&gt;AND dhss.dataobj# = dhso.dataobj#&lt;br&gt;AND begin_interval_time BETWEEN to_date('2011_05_25 08′,'YYYY_MM_DD HH24′) AND to_date('2011_05_27 00′,'YYYY_MM_DD HH24′)&lt;br&gt;GROUP BY dhso.object_name&lt;br&gt;order by sum(db_block_changes_delta) desc&lt;br&gt;/&lt;/p&gt;&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-bottom: 24px; vertical-align: baseline; "&gt;WINDOW_EVENTS 809200&lt;br&gt;WINDOWS 153968&lt;br&gt;HISTGRM$ 65040&lt;br&gt;I_H_OBJ#_COL# 61168&lt;br&gt;MODEL_REPORT 31840&lt;br&gt;DATA_PROCESS 16784&lt;br&gt;RULE_EXECUTE_INFO 12448&lt;br&gt;PK_MODEL_REPR 9088&lt;/p&gt;&lt;/div&gt;&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-bottom: 24px; vertical-align: baseline; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; line-height: 15px; "&gt;Above query gives the sum(db_block_changes_delta). Now we can use dba_hist_sqlstat view to get the SQL statements. So I did run another query to see what SQLs are run on WINDOW_EVENTS or WINDOW during same period.&lt;/p&gt;&lt;div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 1cm; padding-top: 1pt; padding-right: 1pt; padding-bottom: 1pt; padding-left: 1pt; vertical-align: baseline; color: rgb(51, 51, 51); line-height: 15px; font-family: 'Courier New', Courier, monospace; "&gt;&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-bottom: 24px; vertical-align: baseline; "&gt;SELECT distinct dbms_lob.substr(sql_text,4000,1),&lt;br&gt;FROM dba_hist_sqlstat dhss,&lt;br&gt;dba_hist_snapshot dhs,&lt;br&gt;dba_hist_sqltext dhst&lt;br&gt;WHERE upper(dhst.sql_text) LIKE '%WINDOW%'&lt;br&gt;AND dhss.snap_id=dhs.snap_id&lt;br&gt;AND dhss.instance_Number=dhs.instance_number&lt;br&gt;AND dhss.sql_id = dhst.sql_id and rownum&amp;lt;2;&lt;/p&gt;&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-bottom: 24px; vertical-align: baseline; "&gt;INSERT INTO WINDOWS (&lt;br&gt;EVENT_ID,&lt;br&gt;DATA_PROCESS_ID,&lt;br&gt;EVENT_TIME,&lt;br&gt;DENOMINATOR_STR,&lt;br&gt;TIME_WINDOW_ID,&lt;br&gt;TIME_WINDOW_PANE,&lt;br&gt;OWNER_ORG_ID&lt;br&gt;)&lt;/p&gt;&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-bottom: 24px; vertical-align: baseline; "&gt;INSERT INTO WINDOW_EVENTS (&lt;br&gt;EVENT_ID ,&lt;br&gt;DATA_PROCESS_ID ,&lt;br&gt;EVENT_TIME ,&lt;br&gt;EVENT_EPOCH_TIME ,&lt;br&gt;OWNER_ORG_ID ,&lt;br&gt;DENOMINATOR_STR&lt;br&gt;)&lt;/p&gt;&lt;/div&gt;&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-bottom: 24px; vertical-align: baseline; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; line-height: 15px; "&gt;This is just the part of the output. There was a lot this insert during that same period. Now I know which SQL was actually generating a lot of redo log.&lt;/p&gt; 		 	   		  &lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item></channel></rss>