<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7487187377448369202</id><updated>2012-02-17T22:14:40.415+05:30</updated><category term='Network'/><category term='Unix'/><category term='SQL Scripts'/><category term='OEM'/><category term='High Availability'/><category term='Architecture'/><category term='SQL'/><category term='Hit Ratio Analysis'/><category term='Errors'/><category term='Performance Tuning'/><category term='Recovery'/><category term='Flashback Recovery'/><category term='RMAN'/><category term='Tracing'/><category term='Undo Tablespace'/><category term='ASM'/><category term='Parameters'/><category term='10g Features'/><category term='Data Pump'/><category term='Shrink'/><category term='RAC'/><category term='Backup'/><category term='Wait Events'/><category term='Privilege'/><category term='TSPITR'/><category term='ADDM'/><category term='FRA'/><category term='Temporary Tablespace'/><category term='Miscellaneous'/><category term='AWR'/><category term='Installation'/><category term='Utilities'/><title type='text'>Oracle Database Administration</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default?start-index=101&amp;max-results=100'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>156</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-5533331510959599563</id><published>2011-02-10T17:12:00.002+05:30</published><updated>2011-02-10T17:16:17.688+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><category scheme='http://www.blogger.com/atom/ns#' term='Backup'/><title type='text'>RMAN: Archivelogs lost</title><content type='html'>&lt;strong&gt;Problem&lt;/strong&gt;: I have lost some of the archivelog files without taking backup. If I run the rman to backup available archive logs, it throws error that the archivelog_seq# is not available.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Solution&lt;/strong&gt;: run the following command.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;RMAN&gt; change archivelog all validate;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Now you run the backup archivelog command. RMAN will backup the available archivelogs successfully.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-5533331510959599563?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/5533331510959599563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=5533331510959599563&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5533331510959599563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5533331510959599563'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2011/02/rman-archivelogs-lost.html' title='RMAN: Archivelogs lost'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-5728866426939112836</id><published>2010-07-17T18:29:00.002+05:30</published><updated>2010-07-17T18:38:45.488+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='10g Features'/><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Drop Database in Oracle 10g</title><content type='html'>It has become easier to drop a database from Oracle 10g. Use the DROP DATABASE command to drop the database. It removes the datafiles, redologs, controlfiles and init parameter files.&lt;br /&gt;&lt;br /&gt;$ &lt;strong&gt;sqlplus / as sysdba&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Shutdown immediate;&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Startup Mount Exclusive Restrict;&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Drop Database;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-5728866426939112836?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/5728866426939112836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=5728866426939112836&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5728866426939112836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5728866426939112836'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/07/drop-database-in-oracle-10g.html' title='Drop Database in Oracle 10g'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-4125922743308017791</id><published>2010-03-01T15:08:00.020+05:30</published><updated>2010-03-02T16:42:28.907+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><category scheme='http://www.blogger.com/atom/ns#' term='10g Features'/><category scheme='http://www.blogger.com/atom/ns#' term='Backup'/><title type='text'>Block Change Tracking</title><content type='html'>RMAN Incremental Backups backup only the blocks that were changed since the lastest base incremental backups. But RMAN had to scan the whole database to find the changed blocks. Hence the incremental backups &lt;strong&gt;read the whole database and writes only the changed blocks&lt;/strong&gt;. Thus the incremental backups saves space but the reduction in the time is fairly neglegible.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Block Change Tracking (BCT) is a new feature in Oracle 10g. BCT enables RMAN to read only the blocks that were changed since the lastest base incremental backups. Hence by enabling BCT, RMAN &lt;strong&gt;reads only the changed blocks and writes only the changed blocks&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Without BCT, RMAN has to read every block in the database and compare the SCN in the block with the SCN in the base backup. If the block's SCN is greater than the SCN in the base backup then the block is a candidate for the new incremental backup. Usually only few blocks are changed between backups and the RMAN has to do unncessary work of reading the whole database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;BCT Stores the information about the blocks being changed inthe BlockChange Tracking File. The background process that does this logging is &lt;strong&gt;Change Tracking Writer (CWTR)&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;BlockChange Tracking File&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;BCT File is one per database and in the case RAC, it is shared among all the instances. BCT File is created in the location defined by the parameter DB_CREATE_FILE_DEST as OMF file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To enable BCT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter Database Enable Block Change Tracking;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To disable BCT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter Database Disable Block Change Tracking;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To specify the BCT file location&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter Database enable Block Change Tracking using File '/Backup/BCT/bct.ora';&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A useful query,&lt;br /&gt;&lt;br /&gt;SQL&gt; Select Completion_time, datafile_blocks, blocks_read, blocks, used_change_tracking&lt;br /&gt;From v$backup_datafile&lt;br /&gt;where to_char(completion_time, 'dd/mon/yy') = to_char(sysdate, 'dd/mon/yy');&lt;br /&gt;&lt;br /&gt;Where,&lt;br /&gt;&lt;strong&gt;datafile_blocks&lt;/strong&gt; is the total number of blocks in the datafile.&lt;br /&gt;&lt;strong&gt;blocks_read&lt;/strong&gt; is the total number of blocks read by RMAN&lt;br /&gt;&lt;strong&gt;blocks&lt;/strong&gt;  is the total number of blocks backed up by the RMAN.&lt;br /&gt;&lt;strong&gt;used_change_tracking&lt;/strong&gt; if yes BCT is used, if no BCT is not used.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-4125922743308017791?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/4125922743308017791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=4125922743308017791&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4125922743308017791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4125922743308017791'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/03/block-change-tracking.html' title='Block Change Tracking'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3737113649840103234</id><published>2010-02-25T01:14:00.001+05:30</published><updated>2010-02-25T01:16:13.286+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN Commands</title><content type='html'>The following are the commands you can type from the RMAN prompt.&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;allocate&lt;br /&gt;alter&lt;br /&gt;backup&lt;br /&gt;beginline&lt;br /&gt;blockrecover&lt;br /&gt;catalog&lt;br /&gt;change&lt;br /&gt;connect&lt;br /&gt;copy&lt;br /&gt;create&lt;br /&gt;crosscheck&lt;br /&gt;configure&lt;br /&gt;duplicate&lt;br /&gt;debug&lt;br /&gt;delete&lt;br /&gt;drop&lt;br /&gt;exit&lt;br /&gt;endinline&lt;br /&gt;host&lt;br /&gt;library&lt;br /&gt;list&lt;br /&gt;mount&lt;br /&gt;open&lt;br /&gt;print&lt;br /&gt;quit&lt;br /&gt;recover&lt;br /&gt;register&lt;br /&gt;release&lt;br /&gt;replace&lt;br /&gt;report&lt;br /&gt;renormalize&lt;br /&gt;reset&lt;br /&gt;restore&lt;br /&gt;resync&lt;br /&gt;rman&lt;br /&gt;run&lt;br /&gt;rpctest&lt;br /&gt;set&lt;br /&gt;setlimit&lt;br /&gt;sql&lt;br /&gt;spool&lt;br /&gt;startup&lt;br /&gt;shutdown&lt;br /&gt;send&lt;br /&gt;show&lt;br /&gt;test&lt;br /&gt;upgrade&lt;br /&gt;validate&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3737113649840103234?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3737113649840103234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3737113649840103234&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3737113649840103234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3737113649840103234'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/02/rman-commands.html' title='RMAN Commands'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6935261801986445242</id><published>2010-02-25T00:43:00.021+05:30</published><updated>2010-02-25T03:49:49.747+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN List Command</title><content type='html'>RMAN List Command queries the target control file or the recovery catalog for the historical information on the backups. The various options you can use with List command and their uses are discussed below,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Listing Incarnations&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A new incarnation of the database is created when you perform the &lt;strong&gt;open resetlogs&lt;/strong&gt; operation. To view the list of database incarnations,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;RMAN&gt; List incarnation;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;List Summary of Backups&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The summary of backups include backupset key, the status, device type, completion time etc,&lt;br /&gt;&lt;br /&gt;RMAN&gt; List Backup Summary;&lt;br /&gt;RMAN&gt; List expired Backup of archivelog all summary;&lt;br /&gt;RMAN&gt; List Backup of tablespace Test summary;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;List Backups of various files&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It provides the summary of the backups available for each datafile, controlfile, archivelog file and spfile.&lt;br /&gt;&lt;br /&gt;RMAN&gt; List Backup By File;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Detailed Report&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If you want the detailed report on the backups, then issue the following command.&lt;br /&gt;&lt;br /&gt;RMAN&gt; List Backup;&lt;br /&gt;&lt;br /&gt;It lists the all available information about the backups.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Backups used for Recovery&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;To list the backups used for restore and recovery,&lt;br /&gt;&lt;br /&gt;RMAN&gt; list recoverable backup;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Expired Backups&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;The  list backup shows both available and expired backups. To view only the expired backups,&lt;br /&gt;&lt;br /&gt;RMAN&gt; List expired Backup;&lt;br /&gt;RMAN&gt; List expired Backup summary;&lt;br /&gt;RMAN&gt; List expired Backup of Archivelog all;&lt;br /&gt;RMAN&gt; List expired Backup of datafile 10;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Listing Tablespace and Datafile Backups&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;RMAN&gt; List Backup of Tablespace Test;&lt;br /&gt;RMAN&gt; List Backup of Datafile 4;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Listing Archivelog Backups&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;RMAN&gt; List Archivelog all;&lt;br /&gt;RMAN&gt; List Archivelog all backedup 2 times to device type sbt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Listing Controlfile and Spfile Backups&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;RMAN&gt; List Backup of Controlfile;&lt;br /&gt;RMAN&gt; List Backup of Spfile;&lt;br /&gt;&lt;br /&gt;The above list commands displayed information about the backusets. If you have performed Image copy backups then you must use the list copy command as shown below,&lt;br /&gt;&lt;br /&gt;RMAN&gt; List Copy;&lt;br /&gt;RMAN&gt; List Copy of database;&lt;br /&gt;RMAN&gt; List Copy of tablespace test;&lt;br /&gt;RMAN&gt; List Copy of archivelog all;&lt;br /&gt;RMAN&gt; List Copy of archivelog from sequence 12345;&lt;br /&gt;RMAN&gt; List Copy of archivelog from sequence 1000 until sequence 1010;&lt;br /&gt;RMAN&gt; List Copy of Controlfile;&lt;br /&gt;RMAN&gt; List Copy of Spfile;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6935261801986445242?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6935261801986445242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6935261801986445242&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6935261801986445242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6935261801986445242'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/02/rman-list-command.html' title='RMAN List Command'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6733396257407412177</id><published>2010-01-20T03:16:00.008+05:30</published><updated>2010-02-10T04:11:25.486+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>Connecting to RMAN</title><content type='html'>&lt;strong&gt;Step 1&lt;/strong&gt;: Set the following environment variables&lt;br /&gt;&lt;br /&gt;ORACLE_SID&lt;br /&gt;ORACLE_HOME&lt;br /&gt;NLS_DATE_FORMAT&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 2&lt;/strong&gt;: Access to privileged OS account or user with Sysdba privilege. Only users with Sysdba privilege can connect to RMAN. Hence no need to specify as sysdba while connecting to RMAN.&lt;br /&gt;&lt;br /&gt;$ cd $ORACLE_HOME/bin&lt;br /&gt;$ &lt;strong&gt;rman target /&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.1.0 - Production on Wed Jan 20 03:19:22 2010&lt;br /&gt;Copyright (c) 1982, 2005, Oracle. All rights reserved.&lt;br /&gt;connected to target database: IRIS (DBID=1460454352)&lt;br /&gt;&lt;br /&gt;If you are using password file, then specify the username and password&lt;br /&gt;&lt;br /&gt;$ &lt;strong&gt;rman target sys/syspassword&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If you are accessing the target database via oracle net then use connection string as follows&lt;br /&gt;&lt;br /&gt;$ &lt;strong&gt;rman target sys/syspassword@&lt;connection_string&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;You can also connect to RMAN in two steps first by invoking the rman&lt;br /&gt;&lt;br /&gt;$ &lt;strong&gt;rman&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The RMAN prompt appears&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;RMAN&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To connect to the target datbase..&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;RMAN&gt; Connect target /&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;RMAN&gt; Connect target sys/syspassword&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;RMAN&gt; Connect target sys/syspassword@&lt;connection_string&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Once you have connected to RMAN, you can start entering the commands. The commands can be typed in single line or in multiple lines and ends with a semicolon.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;RMAN&gt; Backup&lt;br /&gt;2 database;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;To add comments use the # symbol. Text after the # symbol in a line is interpreted as comments&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;RMAN&gt;&lt;/strong&gt; # Backup database&lt;br /&gt;&lt;strong&gt;Backup database&lt;/strong&gt; # this command will backup the database&lt;br /&gt;&lt;strong&gt;include current controlfile;&lt;/strong&gt; # backup control file along with database&lt;br /&gt;&lt;/p&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6733396257407412177?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6733396257407412177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6733396257407412177&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6733396257407412177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6733396257407412177'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/01/connecting-to-rman.html' title='Connecting to RMAN'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-4024436832799138597</id><published>2010-01-20T02:15:00.002+05:30</published><updated>2010-01-20T02:31:22.550+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Parameters'/><category scheme='http://www.blogger.com/atom/ns#' term='Architecture'/><title type='text'>Remote_login_passwordfile</title><content type='html'>The password file is used to authenticate the users connecting to the database as Sysdba or Sysoper.  The password file is created with the orapwd utility as follows,&lt;br /&gt;&lt;br /&gt;$ cd $ORACLE_HOME/dbs&lt;br /&gt;$ orapwd file=orapw&lt;oracle_sid&gt; password=&lt;passwd&gt; entries=&lt;value&gt;&lt;br /&gt;&lt;br /&gt;Where,&lt;br /&gt;file = the filename where the password is stored.&lt;br /&gt;password = the password for sys user&lt;br /&gt;entries = the number of users that can connect as sys user at a time. This parameter is optional.&lt;br /&gt;&lt;br /&gt;Once the password file is created you need to set the init parameter remote_login_passwordfile for the database to use it.&lt;br /&gt;&lt;br /&gt;The possible values for the parameter is&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;EXCLUSIVE&lt;/strong&gt; - Only one database can use the password file. Multiple users can exist in the password file.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SHARED&lt;/strong&gt; - More than one database can use the password file. However only Sys users allowed to have sysdba privilege. You will receive ORA-01999 error when you grant sysdba privilege to other users.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;NONE&lt;/strong&gt; - The password file is not used.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-4024436832799138597?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/4024436832799138597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=4024436832799138597&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4024436832799138597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4024436832799138597'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/01/remoteloginpasswordfile.html' title='Remote_login_passwordfile'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-925215463196056570</id><published>2010-01-08T18:51:00.005+05:30</published><updated>2010-01-08T19:06:42.939+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>ASM Views</title><content type='html'>The following V$views are used for managing ASM.&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;table.tableizer-table {border: 1px solid #CCC; font-family: Verdana, Verdana, Geneva, sans-serif; font-size: 10px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}&lt;br /&gt;.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;table style="BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-COLLAPSE: collapse; BORDER-RIGHT-COLOR: #000000; BORDER-LEFT-COLOR: #000000" class="tableizer-table" cellspacing="1"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr class="tableizer-firstrow"&gt;&lt;th&gt;View Name&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;th&gt;Instance&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;V$ASM_DISKGROUP&lt;/td&gt;&lt;td&gt;Diskgroups discovered by ASM&lt;/td&gt;&lt;td&gt;DB&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;V$ASM_DISK&lt;/td&gt;&lt;td&gt;Disks discovered by ASM including disks that are not part of any Diskgroup.&lt;/td&gt;&lt;td&gt;DB&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;V$ASM_FILE&lt;/td&gt;&lt;td&gt;ASM files mounted by ASM instance&lt;/td&gt;&lt;td&gt;ASM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;V$ASM_ALIAS&lt;/td&gt;&lt;td&gt;Filename alias of the ASM Files&lt;/td&gt;&lt;td&gt;ASM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;V$ASM_OPERATION&lt;/td&gt;&lt;td&gt;Long running ASM operations&lt;/td&gt;&lt;td&gt;ASM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;V$ASM_TEMPLATE&lt;/td&gt;&lt;td&gt;Template present in diskgroup &lt;/td&gt;&lt;td&gt;DB&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;V$ASM_CLIENT&lt;/td&gt;&lt;td&gt;Lists one row per each ASM instance for which the database instance has any open ASM files&lt;/td&gt;&lt;td&gt;DB&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-925215463196056570?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/925215463196056570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=925215463196056570&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/925215463196056570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/925215463196056570'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/01/asm-views.html' title='ASM Views'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-4440659380861014247</id><published>2010-01-08T18:48:00.001+05:30</published><updated>2010-01-08T18:50:42.960+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Drop a file from diskgroup</title><content type='html'>&lt;strong&gt;Syntax&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;ALTER DISKGROUP&lt;/strong&gt; &lt;em&gt;diskgroup_name&lt;/em&gt; &lt;strong&gt;DROP&lt;/strong&gt; &lt;strong&gt;FILE&lt;/strong&gt; ‘&lt;em&gt;filename’&lt;/em&gt;, ‘&lt;em&gt;filename’&lt;/em&gt;..;&lt;br /&gt;&lt;br /&gt;Note: ASM drops all the aliases associated with the filename.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 1&lt;br /&gt;&lt;/u&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMDATA DROP FILE ‘+ASMDB/gcprod/datafile/users.259.661355087’ , ‘+ASMDB/gcprod/datafile/sysaux.257.661355085’;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-4440659380861014247?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/4440659380861014247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=4440659380861014247&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4440659380861014247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4440659380861014247'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/01/drop-file-from-diskgroup.html' title='Drop a file from diskgroup'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6597064189261015093</id><published>2010-01-05T03:11:00.000+05:30</published><updated>2010-01-05T03:12:19.101+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Manage ASM Directories</title><content type='html'>In order to use ASM filename aliases, you need to create Directories.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;To add directory&lt;br /&gt;&lt;/u&gt;ALTER DISKGROUP diskgroup_name ADD DIRECTORY ‘filename’, ‘filename’..;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;To rename directory&lt;/u&gt;&lt;br /&gt;ALTER DISKGROUP diskgroup_name RENAME DIRECTORY ‘old_dirname’ TO ‘new_dirname’, ‘old_dirname’ TO ‘new_dirname’..;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;To drop directory&lt;br /&gt;&lt;/u&gt;ALTER DISKGROUP diskgroup_name DROP DIRECTORY ‘filename’ [FORCE or NOFORCE], ‘filename’ [FORCE or NOFORCE]..;&lt;br /&gt;&lt;br /&gt;Where,&lt;br /&gt;&lt;br /&gt;FORCE – To drop the directory even if it contains any alias definitions.&lt;br /&gt;NOFORCE – It will not drop the directory if it contains any alias definitions&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 1&lt;/u&gt; (Add directory)&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup asmdata ADD DIRECTORY ‘+ASMDATA/datafile’;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 2&lt;/u&gt; (Rename directory)&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup asmdata RENAME DIRECTORY ‘+ASMDATA/datafile’ TO ‘+ASMDATA/indexfile’;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;EXAMPLE 3&lt;/u&gt; (Drop directory)&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup asmdata DROP DIRECTORY ‘+ASMDATA/indexfile’ FORCE;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6597064189261015093?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6597064189261015093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6597064189261015093&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6597064189261015093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6597064189261015093'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/01/manage-asm-directories.html' title='Manage ASM Directories'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-2463541329217183484</id><published>2010-01-05T03:09:00.001+05:30</published><updated>2010-01-05T03:11:05.954+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Mounting and Dismounting a Diskgroup</title><content type='html'>Diskgroups are automatically mounted at ASM instance startup and dismounted at ASM instance shutdown. To manually mount and dismount the diskgroups use the following statements,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Syntax:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;ALTER DISKGROUP ALL&lt;/strong&gt; or diskgroup_name &lt;strong&gt;MOUNT&lt;/strong&gt; or &lt;strong&gt;DISMOUNT&lt;/strong&gt;;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 1&lt;/u&gt; (Mount a specific diskgroup)&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMIND Mount;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 2&lt;/u&gt; (Dismount all diskgroups)&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Disgroup ALL DisMount;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Note&lt;br /&gt;&lt;/u&gt;&lt;br /&gt;In the case of High and Normal Redundancy diskgroups you need all set of extents available for the diskgroups to mount. The unavailable disks may be used for redundant copies and you may mount the diskgroups without those disks. If there are sufficient disks available for the diskgroups to mount you can use the force option to mount it.&lt;br /&gt;&lt;br /&gt;Alter Diskgroup diskgroup_name Mount Force;&lt;br /&gt;&lt;br /&gt;The unavailable disks are taken offline. ASM drops those disks after the DISK_REPAIR_TIME expires.&lt;br /&gt;&lt;br /&gt;In RAC ASM environments, you cannot MOUNT FORCE a disk group that is already mounted by another instance because the disks have been accessed by another instance and the disks are not locally accessible.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-2463541329217183484?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/2463541329217183484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=2463541329217183484&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2463541329217183484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2463541329217183484'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/01/mounting-and-dismounting-diskgroup.html' title='Mounting and Dismounting a Diskgroup'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-5253130209017452424</id><published>2010-01-05T03:07:00.000+05:30</published><updated>2010-01-05T03:09:17.589+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Checking a Diskgroup</title><content type='html'>It checks the internal consistency of the diskgroup metadata. If any errors are found they are reported in the alert log.&lt;br /&gt;&lt;br /&gt;Instance: ASM Instance&lt;br /&gt;Privilege: Sysdba&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Syntax&lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;ALTER DISKGROUP&lt;/strong&gt; diskgroup_name &lt;strong&gt;CHECK&lt;/strong&gt; check_diskgroup_clause [&lt;strong&gt;REPAIR&lt;/strong&gt; or &lt;strong&gt;NOREPAIR&lt;/strong&gt;]&lt;br /&gt;&lt;br /&gt;Where,&lt;br /&gt;&lt;br /&gt;Check_dikgroup_clause= [ALL] or [DISK diskname] or [DISKS IN FAILGROUP failgroup_name] [FILE filename]&lt;br /&gt;&lt;br /&gt;REPAIR = ASM attempts to repair any errors.&lt;br /&gt;NOREPAIR= ASM reports the error in the alert log and does not attempt to repair it.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 1&lt;/u&gt; (checks all the disks in the diskgroup)&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMDATA CHECK ALL;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 2&lt;/u&gt; (checks only specific disks in the diskgroup)&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMIND CHECK&lt;br /&gt;DISK data_05,&lt;br /&gt;DISK data_06 NOREPAIR;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 3&lt;/u&gt; (Checks all the disks in the failure group).&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMDATA CHECK&lt;br /&gt;DISKS IN FAILGROUP ctrl_1;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 4&lt;/u&gt; (checks specific files in the diskgroup)&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMIND CHECK&lt;br /&gt;FILE ‘+ASMDB/gcprod/datafile/users.259.661355087’,&lt;br /&gt;FILE ‘+ASMDB/gcprod/datafile/sysaux.257.661355085’;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-5253130209017452424?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/5253130209017452424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=5253130209017452424&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5253130209017452424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5253130209017452424'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/01/checking-diskgroup.html' title='Checking a Diskgroup'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-4286263634221833497</id><published>2010-01-05T03:06:00.000+05:30</published><updated>2010-01-05T03:07:54.860+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Rebalance a Diskgroup</title><content type='html'>&lt;strong&gt;Instance&lt;/strong&gt;: ASM Instance&lt;br /&gt;&lt;strong&gt;Privilege&lt;/strong&gt;: Sysdba&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Syntax&lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;ALTER DISKGROUP diskgroup_name rebalance_diskgroup_clause&lt;br /&gt;&lt;br /&gt;Where,&lt;br /&gt;&lt;br /&gt;Rebalance_diskgroup_clause = REBALANCE POWER integer WAIT/NOWAIT&lt;br /&gt;Integer – 0 to 11. If you omit ASM takes the value from ASM_POWER_LIMIT init parameter.&lt;br /&gt;WAIT – The control is not returned to the user until the rebalance operation completes.&lt;br /&gt;NOWAIT – The control immediately returns to the user and the rebalance operation takes place at the background and user can continue to do other operation.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 1&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMDATA REBALANCE POWER 10 wait;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-4286263634221833497?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/4286263634221833497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=4286263634221833497&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4286263634221833497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4286263634221833497'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/01/rebalance-diskgroup.html' title='Rebalance a Diskgroup'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-8701982137720601790</id><published>2010-01-05T03:05:00.000+05:30</published><updated>2010-01-05T03:06:44.912+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Resize a Disk</title><content type='html'>&lt;u&gt;Note&lt;/u&gt;: Resizing disks in a diskgroup invokes implicit rebalancing of all the disks within the diskgroup.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Instance&lt;/strong&gt;: ASM Instance&lt;br /&gt;&lt;strong&gt;Privilege&lt;/strong&gt;: Sysdba&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Syntax&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;ALTER DISKGROUP&lt;/strong&gt; diskgroup_name &lt;strong&gt;RESIZE&lt;/strong&gt; resize_disk_clause rebalance_diskgroup_clause&lt;br /&gt;&lt;br /&gt;Where&lt;br /&gt;&lt;br /&gt;resize_disk_clause =[ALL SIZE size_clause] or [DISK diskname SIZE size_clause] or [DISKS IN FAILGROUP failgroup_name SIZE size_clause]&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Note&lt;/u&gt;: If you omit the size clause then ASM uses the size returned by the OS.&lt;br /&gt;&lt;br /&gt;Rebalance_diskgroup_clause = REBALANCE POWER integer WAIT/NOWAIT&lt;br /&gt;Integer – 0 to 11. If you omit ASM takes the value from ASM_POWER_LIMIT init parameter.&lt;br /&gt;WAIT – The control is not returned to the user until the rebalance operation completes.&lt;br /&gt;NOWAIT – The control immediately returns to the user and the rebalance operation takes place at the background and user can continue to do other operation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 1&lt;/u&gt; (resizes all the disks in the diskgroup)&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMDATA RESIZE ALL SIZE 100G;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 2&lt;/u&gt; (resizes only specific disks in the diskgroup)&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMIND RESIZE&lt;br /&gt;DISK data_05 SIZE 100G,&lt;br /&gt;DISK data_06&lt;br /&gt;REBALANCE POWER 5;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 3&lt;/u&gt; (resizes only specific disks in the failure group).&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMDATA RESIZE&lt;br /&gt;DISKS IN FAILGROUP ctrl_1 SIZE 100G;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-8701982137720601790?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/8701982137720601790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=8701982137720601790&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8701982137720601790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8701982137720601790'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/01/resize-disk.html' title='Resize a Disk'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-5657611874742974955</id><published>2010-01-05T03:03:00.001+05:30</published><updated>2010-01-05T03:05:20.281+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Undrop Disk from Diskgroup</title><content type='html'>&lt;u&gt;Note&lt;/u&gt;: To undrop a disk, the header_status from v$asm_disk view must be dropping. You cannot undrop a completely dropped disk.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Instance&lt;/strong&gt;: ASM Instance&lt;br /&gt;&lt;strong&gt;Privilege&lt;/strong&gt;: Sysdba&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Syntax&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;ALTER DISKGROUP&lt;/strong&gt; [&lt;strong&gt;ALL&lt;/strong&gt;/diskgroupname, diskgroupname..] &lt;strong&gt;UNDROP DISKS&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 1&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup asmdata undrop disks;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 2&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ALL undrop disks;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-5657611874742974955?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/5657611874742974955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=5657611874742974955&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5657611874742974955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5657611874742974955'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2010/01/undrop-disk-from-diskgroup.html' title='Undrop Disk from Diskgroup'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7701749470983075435</id><published>2009-12-19T17:41:00.001+05:30</published><updated>2009-12-19T17:43:45.476+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Add Disk to Diskgroup</title><content type='html'>&lt;u&gt;Note&lt;/u&gt;: Adding new disks to diskgroup invokes implicit rebalancing of all the disks within the diskgroup.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Instance&lt;/strong&gt;: ASM Instance&lt;br /&gt;&lt;strong&gt;Privilege&lt;/strong&gt;: Sysdba&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Syntax&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;ALTER&lt;/strong&gt; &lt;strong&gt;DISKGROUP&lt;/strong&gt; &lt;em&gt;diskgroup_name&lt;/em&gt; &lt;strong&gt;ADD [FAILGROUP&lt;/strong&gt; &lt;em&gt;failgroup_name&lt;/em&gt;&lt;strong&gt;] DISK&lt;/strong&gt; &lt;em&gt;add_disk_clause&lt;/em&gt; &lt;em&gt;rebalance_diskgroup_clause&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Where&lt;br /&gt;&lt;br /&gt;Add_disk_clause = &lt;em&gt;search_string&lt;/em&gt; &lt;strong&gt;[NAME&lt;/strong&gt; &lt;em&gt;disk_name&lt;/em&gt;&lt;strong&gt;] [SIZE&lt;/strong&gt; &lt;em&gt;size_clause&lt;/em&gt;&lt;strong&gt;]&lt;/strong&gt; &lt;strong&gt;[FORCE/NOFORCE]&lt;/strong&gt;&lt;br /&gt;Force – Add disk to the diskgroup even if the disk is part of some other diskgroup.&lt;br /&gt;NoForce – ASM returns error if the disk is part of some other diskgroup.&lt;br /&gt;&lt;br /&gt;Rebalance_diskgroup_clause = &lt;strong&gt;REBALANCE POWER&lt;/strong&gt; &lt;em&gt;integer&lt;/em&gt; &lt;strong&gt;WAIT/NOWAIT&lt;/strong&gt;&lt;br /&gt;Integer – 0 to 11. If you omit ASM takes the value from ASM_POWER_LIMIT init parameter.&lt;br /&gt;WAIT – The control is not returned to the user until the rebalance operation completes.&lt;br /&gt;NOWAIT – The control immediately returns to the user and the rebalance operation takes place at the background and user can continue to do other operation.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 1&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMDATA ADD&lt;br /&gt;FAILGROUP ctrl_1&lt;br /&gt;DISK&lt;br /&gt;'/u01/asmdisks/disk1' NAME data_05 NOFORCE,&lt;br /&gt;'/u01/asmdisks/disk2' NAME data_06 NOFORCE;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 2&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter Diskgroup ASMIND ADD&lt;br /&gt;DISK '/dev/rhdisk33'&lt;br /&gt;REBALANCE POWER 5 ;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7701749470983075435?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7701749470983075435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7701749470983075435&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7701749470983075435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7701749470983075435'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/12/add-disk-to-diskgroup.html' title='Add Disk to Diskgroup'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-2871570487500588683</id><published>2009-12-19T16:15:00.000+05:30</published><updated>2009-12-19T16:16:28.453+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Dropping a Diskgroup in ASM</title><content type='html'>&lt;strong&gt;Instance&lt;/strong&gt;: ASM Instance&lt;br /&gt;&lt;strong&gt;Privilege&lt;/strong&gt;: Sysdba&lt;br /&gt;&lt;strong&gt;Syntax&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;DROP DISKGROUP&lt;/strong&gt; &lt;em&gt;diskgroup_name&lt;/em&gt; &lt;strong&gt;INCLUDING/EXCLUDING CONTENTS;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Including Contents – Drops all the files associated with the disk group.&lt;br /&gt;Excluding Contents – Drops the disk group only when it is empty. Default.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 1&lt;br /&gt;&lt;/u&gt;&lt;br /&gt;SQL&gt; Drop Diskgroup ASMDATA including contents;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 2&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Drop Diskgroup ASMIND;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-2871570487500588683?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/2871570487500588683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=2871570487500588683&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2871570487500588683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2871570487500588683'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/12/dropping-diskgroup-in-asm.html' title='Dropping a Diskgroup in ASM'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6299273246489550191</id><published>2009-12-19T15:44:00.005+05:30</published><updated>2009-12-19T15:50:28.190+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Create a new Diskgroup in ASM</title><content type='html'>&lt;strong&gt;Instance&lt;/strong&gt;: ASM Instance.&lt;br /&gt;&lt;strong&gt;Privilege&lt;/strong&gt;: Sysdba&lt;br /&gt;&lt;strong&gt;Pre-requisite&lt;/strong&gt;: Disks must be formatted. The path of the disk must be in the ASM_DISKSTRING. Oracle DB user must have read/write permission on the disk.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Syntax&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CREATE DISKGROUP&lt;/strong&gt; &lt;em&gt;diskgroup_name redundancy_level&lt;/em&gt; &lt;strong&gt;REDUNDANCY&lt;/strong&gt; &lt;strong&gt;[FAILGROUP&lt;/strong&gt; &lt;em&gt;failgroup_name&lt;/em&gt;&lt;strong&gt;]DISK&lt;/strong&gt; &lt;em&gt;disk_clause&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Where,&lt;br /&gt;redundancy_level = &lt;strong&gt;HIGH&lt;/strong&gt; or &lt;strong&gt;NORMAL&lt;/strong&gt; or &lt;strong&gt;EXTERNAL&lt;/strong&gt;&lt;br /&gt;disk_clause = &lt;em&gt;search_string&lt;/em&gt; [&lt;strong&gt;NAME&lt;/strong&gt; &lt;em&gt;disk_name&lt;/em&gt;] [&lt;strong&gt;SIZE&lt;/strong&gt; &lt;em&gt;size_clause&lt;/em&gt;] [&lt;strong&gt;FORCE&lt;/strong&gt;/&lt;strong&gt;NOFORCE&lt;/strong&gt;]&lt;br /&gt;&lt;br /&gt;Force – Add disk to the diskgroup even if the disk is part of some other diskgroup.&lt;br /&gt;NoForce – ASM returns error if the disk is part of some other diskgroup.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 1&lt;br /&gt;&lt;/u&gt;&lt;br /&gt;CREATE DISKGROUP asm_data&lt;br /&gt;NORMAL REDUNDANCY&lt;br /&gt;FAILGROUP ctrl_1&lt;br /&gt;DISK&lt;br /&gt;'/u01/asmdisks/disk1' NAME data_01 NOFORCE&lt;br /&gt;,'/u01/asmdisks/disk2' NAME data_02 NOFORCE&lt;br /&gt;FAILGROUP ctrl_2&lt;br /&gt;DISK&lt;br /&gt;'/u03/asmdisks/disk3' NAME data_3 NOFORCE&lt;br /&gt;,'/u03/asmdisks/disk4' NAME data_4 NOFORCE;&lt;br /&gt;&lt;br /&gt;If the size clause is omitted the full disk is assigned.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example 2&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; CREATE DISKGROUP ASMIND External REDUNDANCY DISK&lt;br /&gt;'/dev/rhdisk6' SIZE 51200M ,&lt;br /&gt;'/dev/rhdisk7' SIZE 51200M ,&lt;br /&gt;'/dev/rhdisk8' SIZE 51200M ;&lt;br /&gt;&lt;br /&gt;If the name clause is omitted the disks are given a system generated name.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6299273246489550191?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6299273246489550191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6299273246489550191&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6299273246489550191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6299273246489550191'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/12/create-diskgroup-in-asm.html' title='Create a new Diskgroup in ASM'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-736741873043512121</id><published>2009-12-10T16:06:00.006+05:30</published><updated>2009-12-10T16:25:39.169+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Install Oracle 10g on Windows XP - Part 3</title><content type='html'>&lt;div&gt;In the last part2 we discussed ASM installation. In this part we will see the RDBMS installation. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;Step 1&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;: Invoke the OUI. Select the Advanced installation option and then click Next.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, serif; font-size: 16px; "&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;Step 2&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;: Select the installation type for eg., &lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Enterprise&lt;/st1:city&gt;&lt;/st1:place&gt;, standard edition etc.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, serif; font-size: 16px; "&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, serif; font-size: 16px; "&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;Step 3&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;: Specify the Oracle Home details. Choose a different path from ASM home.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDQueas4-I/AAAAAAAAAcU/t7IuuXOT6rE/s1600-h/1.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDQueas4-I/AAAAAAAAAcU/t7IuuXOT6rE/s400/1.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413556248956953570" /&gt;&lt;/a&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDQueas4-I/AAAAAAAAAcU/t7IuuXOT6rE/s1600-h/1.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDQnMncEHI/AAAAAAAAAcM/WRfXg0_iJ-o/s1600-h/2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDQnMncEHI/AAAAAAAAAcM/WRfXg0_iJ-o/s400/2.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413556123919454322" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;Step 4&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;: In the next page select the option to create the database.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDQnMncEHI/AAAAAAAAAcM/WRfXg0_iJ-o/s1600-h/2.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyDQmx0zSDI/AAAAAAAAAcE/xt60tRdcnek/s1600-h/3.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://1.bp.blogspot.com/_8i4YP447MmQ/SyDQmx0zSDI/AAAAAAAAAcE/xt60tRdcnek/s400/3.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413556116727744562" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyDQmx0zSDI/AAAAAAAAAcE/xt60tRdcnek/s1600-h/3.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDQmRsUc0I/AAAAAAAAAb8/sFVDxh5Zdq4/s1600-h/4.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDQmRsUc0I/AAAAAAAAAb8/sFVDxh5Zdq4/s400/4.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413556108102234946" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;Step 5&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;: Specify a Database Name. Choose the character set.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDQmD84KnI/AAAAAAAAAb0/bHI1hOxOXFI/s1600-h/5.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDQmD84KnI/AAAAAAAAAb0/bHI1hOxOXFI/s400/5.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413556104413588082" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;Step 6&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;: Select Database control for Database Management.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDQliHbgcI/AAAAAAAAAbs/mj_N1fRwOIU/s1600-h/6.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDQliHbgcI/AAAAAAAAAbs/mj_N1fRwOIU/s400/6.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413556095331041730" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;Step 7&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;: In the select database storage option page, select ASM.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDQS7m2b0I/AAAAAAAAAbk/ZIh5Q33frdE/s1600-h/7.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDQS7m2b0I/AAAAAAAAAbk/ZIh5Q33frdE/s400/7.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413555775756201794" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;Step 8&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;: In the next page click the option that best matches your requirement.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDQSe0bxkI/AAAAAAAAAbc/2faS1ecKTfo/s1600-h/8.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDQSe0bxkI/AAAAAAAAAbc/2faS1ecKTfo/s400/8.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413555768028546626" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;Step 9&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;: Select the ASM Disk Group.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_8i4YP447MmQ/SyDQR-H0rkI/AAAAAAAAAbU/yxzn7xbotng/s1600-h/9.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://2.bp.blogspot.com/_8i4YP447MmQ/SyDQR-H0rkI/AAAAAAAAAbU/yxzn7xbotng/s400/9.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413555759251500610" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_8i4YP447MmQ/SyDQR-H0rkI/AAAAAAAAAbU/yxzn7xbotng/s1600-h/9.jpg"&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;If the space available is not enough it will show the following screen.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_8i4YP447MmQ/SyDQRXl2GiI/AAAAAAAAAbM/KAvVEJ6f3-Q/s1600-h/10.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://2.bp.blogspot.com/_8i4YP447MmQ/SyDQRXl2GiI/AAAAAAAAAbM/KAvVEJ6f3-Q/s400/10.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413555748908440098" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_8i4YP447MmQ/SyDQRXl2GiI/AAAAAAAAAbM/KAvVEJ6f3-Q/s1600-h/10.jpg"&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;Select the disks so that the required space is available. Click Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyDQRI9ib2I/AAAAAAAAAbE/0AdztNANweg/s1600-h/11.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://1.bp.blogspot.com/_8i4YP447MmQ/SyDQRI9ib2I/AAAAAAAAAbE/0AdztNANweg/s400/11.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413555744981282658" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyDQRI9ib2I/AAAAAAAAAbE/0AdztNANweg/s1600-h/11.jpg"&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;Step 10&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:Verdana"&gt;: Click Install.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDP-z7y8rI/AAAAAAAAAa8/PBhwsecPKrE/s1600-h/12.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDP-z7y8rI/AAAAAAAAAa8/PBhwsecPKrE/s400/12.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413555430099186354" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8i4YP447MmQ/SyDP-z7y8rI/AAAAAAAAAa8/PBhwsecPKrE/s1600-h/12.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyDP-SsZ7yI/AAAAAAAAAa0/ScNj3qOUcC4/s1600-h/13.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://1.bp.blogspot.com/_8i4YP447MmQ/SyDP-SsZ7yI/AAAAAAAAAa0/ScNj3qOUcC4/s400/13.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413555421176262434" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyDP-SsZ7yI/AAAAAAAAAa0/ScNj3qOUcC4/s1600-h/13.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDP-FJgymI/AAAAAAAAAas/4i2739_OCo4/s1600-h/14.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 296px;" src="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDP-FJgymI/AAAAAAAAAas/4i2739_OCo4/s400/14.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413555417540250210" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDP-FJgymI/AAAAAAAAAas/4i2739_OCo4/s1600-h/14.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDP9vpmsgI/AAAAAAAAAak/6mRagJzeIXE/s1600-h/15.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDP9vpmsgI/AAAAAAAAAak/6mRagJzeIXE/s400/15.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413555411769274882" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDP9vpmsgI/AAAAAAAAAak/6mRagJzeIXE/s1600-h/15.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDP9fxX-UI/AAAAAAAAAac/P5hrP-g6BaE/s1600-h/16.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://3.bp.blogspot.com/_8i4YP447MmQ/SyDP9fxX-UI/AAAAAAAAAac/P5hrP-g6BaE/s400/16.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413555407506897218" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px; "&gt;Click Exit.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px; "&gt;The oracle RDBMS is installed.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;a href="http://oracledba-vinod.blogspot.com/2009/12/install-oracle-10g-on-windows-xp-part-2.html"&gt;Click here for Part 2&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;a href="http://oracledba-vinod.blogspot.com/2009/12/install-oracle-10g-on-windows-xp-using.html"&gt;Click here for Part 1&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-736741873043512121?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/736741873043512121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=736741873043512121&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/736741873043512121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/736741873043512121'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/12/install-oracle-10g-on-windows-xp-part-3.html' title='Install Oracle 10g on Windows XP - Part 3'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_8i4YP447MmQ/SyDQueas4-I/AAAAAAAAAcU/t7IuuXOT6rE/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-8986262468685115471</id><published>2009-12-10T11:20:00.011+05:30</published><updated>2009-12-10T16:30:38.819+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Install Oracle 10g on Windows XP - Part 2</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;In this part we will see the ASM installation and ASM instance Creation.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Step 1&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;: Invoke the Oracle Universal Installer. In the Welcome Screen select Advanced Installation and click Next button.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCNK05HUyI/AAAAAAAAAaU/wo4v4WTvEL4/s1600-h/1.jpg"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 312px;" src="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCNK05HUyI/AAAAAAAAAaU/wo4v4WTvEL4/s400/1.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413481969235743522" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Step 2&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;: In the Select Installation Type, select the appropriate choice. In our case we select Standard Edition.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCNK05HUyI/AAAAAAAAAaU/wo4v4WTvEL4/s1600-h/1.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCNKct9CEI/AAAAAAAAAaM/AuQmi6oSxhU/s1600-h/2.jpg"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCNKct9CEI/AAAAAAAAAaM/AuQmi6oSxhU/s400/2.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413481962746480706" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Step 3&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;: Specify the ASM Home details. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCNKct9CEI/AAAAAAAAAaM/AuQmi6oSxhU/s1600-h/2.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCNJzOL_JI/AAAAAAAAAaE/d62cEyj3qNs/s1600-h/3.jpg"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCNJzOL_JI/AAAAAAAAAaE/d62cEyj3qNs/s400/3.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413481951607389330" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Click Next.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8i4YP447MmQ/SyCNAMBBbmI/AAAAAAAAAZ8/HnW8WnlgJyo/s1600-h/4.jpg"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://4.bp.blogspot.com/_8i4YP447MmQ/SyCNAMBBbmI/AAAAAAAAAZ8/HnW8WnlgJyo/s400/4.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413481786464366178" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Step 4&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;: Check for any errors and correct it if any. Click Next.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8i4YP447MmQ/SyCNAMBBbmI/AAAAAAAAAZ8/HnW8WnlgJyo/s1600-h/4.jpg"&gt;&lt;/a&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCM_g3Q_0I/AAAAAAAAAZ0/MUzGdZxYfas/s1600-h/5.jpg"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCM_g3Q_0I/AAAAAAAAAZ0/MUzGdZxYfas/s400/5.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413481774880718658" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Step 5&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;: Choose the Configure Automatic Storage Management option and specify the SYS password. Click Next.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyCM_QR7yvI/AAAAAAAAAZs/nPxfUus1w2I/s1600-h/6.jpg"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://3.bp.blogspot.com/_8i4YP447MmQ/SyCM_QR7yvI/AAAAAAAAAZs/nPxfUus1w2I/s400/6.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413481770429172466" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Step 6&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;: In the next screen do the following, &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;ol style="margin-top:0in" start="1" type="1"&gt;  &lt;li class="MsoNormal"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Specify the Disk Group name.&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Choose the redundancy type.&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Select the candidate disks      you want to assign for this disk group. &lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia, serif;"&gt;&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Note&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;: You must have stamped the disks before to make Oracle recognize the disks. If you have not stamped the disks already, click the stamp disks button to invoke the &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;asmtool&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; utility. You can then stamp the disks as shown in the Stamp disks section in the part 1.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyCM_QR7yvI/AAAAAAAAAZs/nPxfUus1w2I/s1600-h/6.jpg"&gt;&lt;/a&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_8i4YP447MmQ/SyCMuCUn9vI/AAAAAAAAAZk/5rY3_YseP6o/s1600-h/7.jpg"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://2.bp.blogspot.com/_8i4YP447MmQ/SyCMuCUn9vI/AAAAAAAAAZk/5rY3_YseP6o/s400/7.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413481474624583410" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Click Next&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_8i4YP447MmQ/SyCMuCUn9vI/AAAAAAAAAZk/5rY3_YseP6o/s1600-h/7.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCMtlLoBhI/AAAAAAAAAZc/PmJHwhk3rBI/s1600-h/8.jpg"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCMtlLoBhI/AAAAAAAAAZc/PmJHwhk3rBI/s400/8.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413481466802210322" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Step 7&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;: Click Install.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCMtdNhTXI/AAAAAAAAAZU/hcv7gh5NAq8/s1600-h/9.jpg"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCMtdNhTXI/AAAAAAAAAZU/hcv7gh5NAq8/s400/9.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413481464662674802" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCMtdNhTXI/AAAAAAAAAZU/hcv7gh5NAq8/s1600-h/9.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCMtLbm_-I/AAAAAAAAAZM/Cb6YgLJRT3w/s1600-h/10.jpg"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCMtLbm_-I/AAAAAAAAAZM/Cb6YgLJRT3w/s400/10.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413481459889930210" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8i4YP447MmQ/SyCMtLbm_-I/AAAAAAAAAZM/Cb6YgLJRT3w/s1600-h/10.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_8i4YP447MmQ/SyCMskJKQMI/AAAAAAAAAZE/fugEMrueD_s/s1600-h/11.jpg"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 317px;" src="http://3.bp.blogspot.com/_8i4YP447MmQ/SyCMskJKQMI/AAAAAAAAAZE/fugEMrueD_s/s400/11.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5413481449343566018" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Click the Exit button. The ASM installation is completed.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia, serif;"&gt;&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Note&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;: You can use the DBCA to create addition disk groups.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;a href="http://oracledba-vinod.blogspot.com/2009/12/install-oracle-10g-on-windows-xp-using.html"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Click Here for Part 1&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a href="http://oracledba-vinod.blogspot.com/2009/12/install-oracle-10g-on-windows-xp-part-3.html"&gt;Click Here for Part 3&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-8986262468685115471?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/8986262468685115471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=8986262468685115471&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8986262468685115471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8986262468685115471'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/12/install-oracle-10g-on-windows-xp-part-2.html' title='Install Oracle 10g on Windows XP - Part 2'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_8i4YP447MmQ/SyCNK05HUyI/AAAAAAAAAaU/wo4v4WTvEL4/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-4516657114353033637</id><published>2009-12-09T17:06:00.012+05:30</published><updated>2009-12-10T16:30:11.212+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Install Oracle 10g on Windows XP using ASM - Part 1</title><content type='html'>&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration: underline;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Hardware Requirements&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;RAM &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;- &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;256MB Minimum. 512 MB Recommend&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;ed&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Virtual &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Memory &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;- 512 MB to 1 GB&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Disk &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Space &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;- 2.5 GB Minimum&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration: underline;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Software Requirements&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;System Architecture&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; - Processor: Intel X86, AMD 64 and Intel EM64T&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Operating System&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; - Windows XP Professional, Windows 20&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;00&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration: underline;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Install Loopback Adapter&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="text-decoration: underline; "&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;If you are installing Oracle Databa&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;se on a DHCP computer or&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; on a Non-Networked Computer, then you may want to install Loopback Adapter. The Loopback adapter and the local IP address simulate a networked computer. If the Computer is connected to a network then this step may be ignored.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://support.microsoft.com/kb/839013"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Click Here&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; for the steps to install loopback adapter.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration: underline;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Preparing Diskgroups for Automatic Storage Management&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration: underline;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Step 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;: Create Disk Partitions&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;For this sample installation I use only one Disk and create logical partitions on it. For production implementation create a primary partition on each disk.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;img src="http://1.bp.blogspot.com/_8i4YP447MmQ/Sx_G5dhOD2I/AAAAAAAAAYU/Rjea6b0f5sU/s400/1.jpg" style="cursor:pointer; cursor:hand;width: 400px; height: 300px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5413263967601430370" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;To create partitions,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;C:\&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&gt; Diskpart&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;DISKPART&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&gt; list disk&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;DISKPART&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&gt; Select disk 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;To create a logical partition, the size is in MB.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;DISKPART&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&gt; Create partition logical size=1024&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;To create a primary partition , the size is in MB&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;DISKPART&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&gt; Create partition primary size=1024&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;To view the partitions created&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;DISKPART&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&gt; List partition&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Repeat for other disks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;The created volumes must be unformatted, that is, the Fs column must be blank in the following command. In the following output NTFS indicates NT File system and hence cannot be used as ASM disk.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;img src="http://3.bp.blogspot.com/_8i4YP447MmQ/Sx_LCMLF3kI/AAAAAAAAAYc/miXYKXhj9yg/s320/2.jpg" style="cursor:pointer; cursor:hand;width: 320px; height: 112px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5413268515610549826" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration: underline;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Stamp ASM Disks&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;/p&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;To use ASM, the disks must be stamped with a header. Use ASMTOOL to stamp each partition with an ASM label so that oracle can recognize these partitions as candidate disk. Navigate the oracle media to find the asmtool folder. Click the asmtoolg.exe.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;img src="http://4.bp.blogspot.com/_8i4YP447MmQ/Sx_LCpAAplI/AAAAAAAAAYk/RmCKcc9y3M0/s320/3.jpg" style="cursor:pointer; cursor:hand;width: 320px; height: 275px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5413268523348698706" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Select the Add or change label dialog and press Next button.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img src="http://1.bp.blogspot.com/_8i4YP447MmQ/Sx_LC1SAGXI/AAAAAAAAAYs/xD2Nix8XKSw/s320/4.jpg" style="cursor:pointer; cursor:hand;width: 320px; height: 275px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5413268526645385586" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Select the Candidate Disk and assign a asmdisk group name. Click Next.&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img src="http://3.bp.blogspot.com/_8i4YP447MmQ/Sx_LDIa1EwI/AAAAAAAAAY0/74R-97-TJtw/s320/5.jpg" style="cursor:pointer; cursor:hand;width: 320px; height: 275px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5413268531782685442" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Click Next.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;img src="http://4.bp.blogspot.com/_8i4YP447MmQ/Sx_LDlEUYvI/AAAAAAAAAY8/qf44GCp644c/s320/6.jpg" style="cursor:pointer; cursor:hand;width: 320px; height: 275px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5413268539472896754" /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Click Finish.&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Repeat the process for each disk group.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a href="http://oracledba-vinod.blogspot.com/2009/12/install-oracle-10g-on-windows-xp-part-2.html"&gt;Click Here for Part 2&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;a href="http://oracledba-vinod.blogspot.com/2009/12/install-oracle-10g-on-windows-xp-part-3.html"&gt;Click Here for Part 3&lt;/a&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-4516657114353033637?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/4516657114353033637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=4516657114353033637&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4516657114353033637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4516657114353033637'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/12/install-oracle-10g-on-windows-xp-using.html' title='Install Oracle 10g on Windows XP using ASM - Part 1'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_8i4YP447MmQ/Sx_G5dhOD2I/AAAAAAAAAYU/Rjea6b0f5sU/s72-c/1.jpg' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7549537964941341516</id><published>2009-11-25T18:12:00.010+05:30</published><updated>2009-11-25T18:33:25.940+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>ASMCMD</title><content type='html'>In this post I will provide you with some commonly used ASM commands and how to use it to perform some day to day activities.&lt;br /&gt;&lt;br /&gt;Before invoking the ASM command, set the following environmental variables,&lt;br /&gt;&lt;br /&gt;$ Export ORACLE_SID=+ASM1&lt;br /&gt;$ Export ORACLE_HOME=/oracle/app/oracle/product/10.2.0.1/db_1&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To invoke the ASMCMD&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;$ &lt;strong&gt;asmcmd –p&lt;/strong&gt;&lt;br /&gt;If the –p option is used, it displays the path in the prompt.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8i4YP447MmQ/Sw0nZLII47I/AAAAAAAAAXc/jCf-KTJW7Qs/s1600/asmcmd1.JPG"&gt;&lt;img style="WIDTH: 205px; HEIGHT: 123px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5408022040978973618" border="0" alt="" src="http://4.bp.blogspot.com/_8i4YP447MmQ/Sw0nZLII47I/AAAAAAAAAXc/jCf-KTJW7Qs/s400/asmcmd1.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To navigate the directories (same as in Unix) case insensitive&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;a href="http://4.bp.blogspot.com/_8i4YP447MmQ/Sw0n0Gvcj6I/AAAAAAAAAXk/FB_B7Q5sAMk/s1600/asmcmd2.JPG"&gt;&lt;img style="WIDTH: 400px; HEIGHT: 175px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5408022503658131362" border="0" alt="" src="http://4.bp.blogspot.com/_8i4YP447MmQ/Sw0n0Gvcj6I/AAAAAAAAAXk/FB_B7Q5sAMk/s400/asmcmd2.JPG" /&gt;&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To Create a File alias&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;$ asmcmd&lt;br /&gt;ASMCMD&gt; cd asmdb/gcprod/datafile&lt;br /&gt;ASMCMD&gt; mkalias +asmdb/gcprod/datafile/USERS.259.661355087 users_01.dbf&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To remove a file alias&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;ASMCMD&gt; rmalias +asmdb/gcprod/datafile/users_01.dbf&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To check space usage&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;du – displays disk usage in MB. Similar to du command in unix.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8i4YP447MmQ/Sw0oV2DS-sI/AAAAAAAAAXs/1AI52wjAmu8/s1600/asmcmd3.JPG"&gt;&lt;img style="WIDTH: 357px; HEIGHT: 211px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5408023083293539010" border="0" alt="" src="http://1.bp.blogspot.com/_8i4YP447MmQ/Sw0oV2DS-sI/AAAAAAAAAXs/1AI52wjAmu8/s400/asmcmd3.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;lsdg&lt;/strong&gt; – lists the disk group usage.&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_8i4YP447MmQ/Sw0o2Fx2FuI/AAAAAAAAAX0/nlWELcXwJcc/s1600/asmcmd4.JPG"&gt;&lt;img style="WIDTH: 400px; HEIGHT: 67px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5408023637271123682" border="0" alt="" src="http://2.bp.blogspot.com/_8i4YP447MmQ/Sw0o2Fx2FuI/AAAAAAAAAX0/nlWELcXwJcc/s400/asmcmd4.JPG" /&gt;&lt;/a&gt;&lt;a href="http://4.bp.blogspot.com/_8i4YP447MmQ/Sw0pS1jFJ1I/AAAAAAAAAX8/MDWyXyqXwNA/s1600/asmcmd4a.JPG"&gt;&lt;img style="WIDTH: 400px; HEIGHT: 79px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5408024131130435410" border="0" alt="" src="http://4.bp.blogspot.com/_8i4YP447MmQ/Sw0pS1jFJ1I/AAAAAAAAAX8/MDWyXyqXwNA/s400/asmcmd4a.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To find the RDBMS instances connected to ASM&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;lsct&lt;/strong&gt; – lists the ASM Client information&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8i4YP447MmQ/Sw0p2X1y3VI/AAAAAAAAAYE/0fWPZ7l1ggI/s1600/asmcmd5.JPG"&gt;&lt;img style="WIDTH: 400px; HEIGHT: 67px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5408024741631155538" border="0" alt="" src="http://3.bp.blogspot.com/_8i4YP447MmQ/Sw0p2X1y3VI/AAAAAAAAAYE/0fWPZ7l1ggI/s400/asmcmd5.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To create and delete directories and files&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;ASMCMD&gt; mkdir dummydir&lt;br /&gt;ASMCMD&gt; rm dummydir&lt;br /&gt;ASMCMD&gt; rm +asmdb/gcprod/datafile/USERS.259.661355087&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Note&lt;/u&gt;: The file must be closed before deleting it otherwise the rm command will throw error.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Searching through the ASM directories&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8i4YP447MmQ/Sw0qgZh7zqI/AAAAAAAAAYM/aZoNogwbMSI/s1600/asmcmd6.JPG"&gt;&lt;img style="WIDTH: 343px; HEIGHT: 35px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5408025463639232162" border="0" alt="" src="http://4.bp.blogspot.com/_8i4YP447MmQ/Sw0qgZh7zqI/AAAAAAAAAYM/aZoNogwbMSI/s400/asmcmd6.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.blogtoplist.com/vote.php?u=108871" target="_blank"&gt;&lt;img border="0" alt="Top Blogs" src="http://www.blogtoplist.com/images/votebutton.gif" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7549537964941341516?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7549537964941341516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7549537964941341516&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7549537964941341516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7549537964941341516'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/11/asmcmd.html' title='ASMCMD'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_8i4YP447MmQ/Sw0nZLII47I/AAAAAAAAAXc/jCf-KTJW7Qs/s72-c/asmcmd1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-274460130048054614</id><published>2009-11-06T17:08:00.001+05:30</published><updated>2009-11-06T17:13:30.336+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>ASMLIB</title><content type='html'>ASMLIB is a storage management interface. ASMLIB is not required for ASM to function; it is an add-on library that simplifies the tasks of managing and discovering the disks.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Function of ASMLIB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Disk Discovery&lt;/strong&gt;: It provides more information about the disk attributes enabling easy discovery of disks. Avoids disks being added to one node and not been discovered by other nodes in the cluster.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;IO Processing&lt;/strong&gt;: Enables more efficient IO.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-274460130048054614?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/274460130048054614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=274460130048054614&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/274460130048054614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/274460130048054614'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/11/asmlib.html' title='ASMLIB'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3899737507299525211</id><published>2009-11-06T16:09:00.002+05:30</published><updated>2009-11-06T16:13:57.895+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>ASM Rebalance</title><content type='html'>The Rebalance operation provides an even distribution of file extents across all disks in the diskgroup. The rebalance is done on each file to ensure balanced I/O load.&lt;br /&gt;&lt;br /&gt;The RBAL background process manages the rebalance activity. It examines the extent map for each file and redistributes the extents to new storage configuration. The RBAL process will calculate estimation time and the work required to perform the rebalance activity and then message the ARBx processes to actually perform the task. The number of ARBx process starts is determined by the parameter ASM_POWER_LIMIT.&lt;br /&gt;&lt;br /&gt;There will be one I/O for each ARBx process at a time. Hence the impact of physical movement of file extents will be low. The asm_power_limit parameter determines the speed of the rebalance activity. It can have values between 0 and 11. If the value is 0 no rebalance occurs. If the value is 11 the rebalance takes place at full speed. The power value can also be set for specific rebalance activity using Alter Diskgroup statement.&lt;br /&gt;&lt;br /&gt;The rebalance operation has various states, they are&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WAIT&lt;/strong&gt;: No operations are running for the group.&lt;br /&gt;&lt;strong&gt;RUN&lt;/strong&gt;: A rebalance operation is running for the group.&lt;br /&gt;&lt;strong&gt;HALT&lt;/strong&gt;: The DBA has halted the operation.&lt;br /&gt;&lt;strong&gt;ERROR&lt;/strong&gt;: The operation has halted due to errors.&lt;br /&gt;&lt;br /&gt;You can query the V$ASM_OPERATION to view the status of rebalance activity.&lt;br /&gt;&lt;br /&gt;The rebalance activity is an asynchronous operation, i.e., the operation runs in the background while the users can perform other tasks. In certain situation you need the rebalance activity to finish successfully before performing the other tasks. To make the operation synchronous you add a keyword WAIT while performing the rebalance as shown below.&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter diskgroup ASMDB Add Disk ‘/dev/sdc4’ Rebalance power 4 WAIT;&lt;br /&gt;&lt;br /&gt;The above statement will not return the control to the user unless the rebalance operation ends.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;a href="http://www.blogtoplist.com/vote.php?u=108871" target="_blank"&gt;&lt;br /&gt;&lt;img border="0" alt="Top Blogs" src="http://www.blogtoplist.com/images/votebutton.gif" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3899737507299525211?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3899737507299525211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3899737507299525211&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3899737507299525211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3899737507299525211'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/11/asm-rebalance.html' title='ASM Rebalance'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-8026074295265451299</id><published>2009-11-04T20:51:00.001+05:30</published><updated>2009-11-04T20:54:25.069+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>ASM redundancy and Failure Groups</title><content type='html'>A Failure group is a collection of disks that can become unavailable due to failure of one of its associated components (controllers, HBAs, Fiber channel switches, Disks, Entire arrays etc).&lt;br /&gt;&lt;br /&gt;A diskgroup is divided in to failure groups. Each disks in the diskgroup is part of one failure group. The disks in different failure groups does not share the same failure component (HBAs, controllers etc).&lt;br /&gt;&lt;br /&gt;ASM uses Mirroring for redundancy. Three types of redundancy are supported by ASM. They are,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Normal Redundancy&lt;/strong&gt;: 2-way mirrored. At least two failure groups are needed.&lt;br /&gt;&lt;strong&gt;High Redundancy&lt;/strong&gt;: 3-way mirrored. At least three failure groups are needed.&lt;br /&gt;&lt;strong&gt;External Redundancy&lt;/strong&gt;: No ASM mirroring. 3rd party redundancy mechanism like RAID is used.&lt;br /&gt;&lt;br /&gt;After creating a diskgroup you cannot change the redundancy level. If you want to change it then create a separate diskgroup and move the files to that diskgroup (using RMAN restore or DBMS_FILE_TRANSFER).&lt;br /&gt;&lt;br /&gt;ASM mirrors extents instead of disks. The first copy of the extent is called the &lt;strong&gt;primary extent&lt;/strong&gt; and its mirrored extent is called &lt;strong&gt;secondary extent&lt;/strong&gt;. For high redundancy there are two secondary extents. The primary and secondary extents together are known as &lt;strong&gt;extent set&lt;/strong&gt;. An extent set always contains same data. For read/write operations, each extent in an extent set is written in parallel and only primary extent is read.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Note&lt;/u&gt;: Disk group meta data is always triple mirrored with normal or high redundancy.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.blogtoplist.com/vote.php?u=108871" target="_blank"&gt;&lt;img border="0" alt="Top Blogs" src="http://www.blogtoplist.com/images/votebutton.gif" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-8026074295265451299?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/8026074295265451299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=8026074295265451299&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8026074295265451299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8026074295265451299'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/11/asm-redundancy-and-failure-groups.html' title='ASM redundancy and Failure Groups'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7268877543637848214</id><published>2009-11-03T01:02:00.003+05:30</published><updated>2009-11-03T01:16:40.822+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>ASM Templates</title><content type='html'>A template is a collection of file attributes that are applied to the ASM files. It is associated with a Disk Group. Whenever a file is created the file attributes specific to the template are applied to the files. For eg., if we want to create a users tablespace that contains data file we use the DATAFILE template.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Default Template:&lt;/strong&gt; When you create a disk group, Oracle creates system default template for the disk group. It includes default attributes for various file types like control files or data files. The DBA can mention whether the files created via the template should be 2-way or 3-way mirrored and Coarse or fine striped.&lt;br /&gt;&lt;br /&gt;Default templates and their attributes.&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8i4YP447MmQ/Su81qut7H1I/AAAAAAAAAXU/5C4hqygm6Rk/s1600-h/asm+template.JPG"&gt;&lt;img style="WIDTH: 400px; HEIGHT: 154px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5399593486451941202" border="0" alt="" src="http://3.bp.blogspot.com/_8i4YP447MmQ/Su81qut7H1I/AAAAAAAAAXU/5C4hqygm6Rk/s400/asm+template.JPG" /&gt;&lt;/a&gt;&lt;br /&gt;Ref: http://www.dbasupport.com/oracle/ora10g/ASM0301.shtml&lt;br /&gt;&lt;br /&gt;Some of the attributes of default templates can be modified, but cannot be deleted. The redundancy and striping cannot be modified. You can also create user defined templates.&lt;br /&gt;&lt;br /&gt;The drawback of ASM file templates is if you want to modify any of the file attributes after it is created, then you must use RMAN to copy the file to a new file with new settings.&lt;br /&gt;&lt;br /&gt;To view the ASM template details use the following query.&lt;br /&gt;&lt;br /&gt;SQL&gt; Select * From V$ASM_TEMPLATE;&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;a href="http://www.blogtoplist.com/vote.php?u=108871" target="_blank"&gt;&lt;br /&gt;&lt;img border="0" alt="Top Blogs" src="http://www.blogtoplist.com/images/votebutton.gif" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7268877543637848214?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7268877543637848214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7268877543637848214&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7268877543637848214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7268877543637848214'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/11/asm-templates.html' title='ASM Templates'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_8i4YP447MmQ/Su81qut7H1I/AAAAAAAAAXU/5C4hqygm6Rk/s72-c/asm+template.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3437169789704586033</id><published>2009-11-03T00:16:00.005+05:30</published><updated>2009-11-03T01:02:18.351+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>ASM Files</title><content type='html'>ASM Files are named using OFA standard and employs OMF for managing files for example when you drop a tablespace ASM will automatically deletes the files associated with the tablespace. Also I need not specify a file name while creating a data file, ASM will automatically assign a unique name.&lt;br /&gt;&lt;br /&gt;A typical ASM file looks like this&lt;br /&gt;&lt;strong&gt;+ASMDB/gcprod/datafile/users.259.661355087&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The ASM file has 5 components, they are&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;ASM Disk Group&lt;/strong&gt; : +ASMDB&lt;br /&gt;&lt;strong&gt;Database name&lt;/strong&gt; : gcprod&lt;br /&gt;&lt;strong&gt;File type&lt;/strong&gt; : datafile&lt;br /&gt;&lt;strong&gt;Tag&lt;/strong&gt; : Specific information about the file. In this case it is the tablespace name, users&lt;br /&gt;&lt;strong&gt;file.incarnation&lt;/strong&gt; : A number pair that insure uniqueness&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;ASM File Alias&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Alias are used to represent the files using user friendly names.&lt;br /&gt;&lt;br /&gt;To create an alias&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL&lt;/strong&gt;&gt; Alter Diskgroup ASMDB add alias '+ASMDB/gcprod/datafile/users1.dbf' for '+ASMDB/gcprod/datafile/users.259.661355087' ;&lt;br /&gt;&lt;br /&gt;Instead of using full name you can also use only the disk group name and the numeric identifier as shown below,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL&lt;/strong&gt;&gt; Alter Diskgroup ASMDB add alias '+ASMDB/gcprod/datafile/users1.dbf' for '+ASMDB.259.661355087';&lt;br /&gt;&lt;br /&gt;To rename an alias&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL&lt;/strong&gt;&gt; Alter Diskgroup ASMDB rename alias '+ASMDB/gcprod/datafile/users1.dbf' to '+ASMDB/gcprod/datafile/users2.dbf';&lt;br /&gt;&lt;br /&gt;To delete an alias&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL&lt;/strong&gt;&gt; Alter Diskgroup ASMDB delete alias '+ASMDB/gcprod/datafile/users1.dbf';&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Note&lt;/u&gt;: Once you create an alias the files will not become OMF. Hence the files will not be deleted automatically when the tablespace is dropped. You have to delete the files manually as shown below,&lt;br /&gt;&lt;br /&gt;Drop file using alias&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL&lt;/strong&gt;&gt; Alter Diskgroup ASMDB drop file '+ASMDB/gcprod/datafile/users1.dbf';&lt;br /&gt;&lt;br /&gt;Drop file using numeric name&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL&lt;/strong&gt;&gt; Alter Diskgroup ASMDB drop file '+ASMDB.259.661355087';&lt;br /&gt;&lt;br /&gt;Drop file using fully qualified name&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL&lt;/strong&gt;&gt; Alter Diskgroup ASMDB drop file '+ASMDB/gcprod/datafile/users.259.661355087';&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;a href="http://www.blogtoplist.com/vote.php?u=108871" target="_blank"&gt;&lt;br /&gt;&lt;img border="0" alt="Top Blogs" src="http://www.blogtoplist.com/images/votebutton.gif" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3437169789704586033?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3437169789704586033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3437169789704586033&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3437169789704586033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3437169789704586033'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/11/asm-files.html' title='ASM Files'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3038147434701592023</id><published>2009-11-02T17:46:00.002+05:30</published><updated>2009-11-02T18:37:42.134+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>ASM Background Processes</title><content type='html'>Like normal database instances ASM instance too have the usual background processes like SMON, PMON, DBWr, CKPT and LGWr. In addition to that the ASM instance also have the following background processes,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;RABL- Rebalancer:&lt;/span&gt; It opens all the device files as part of disk discovery and coordinates the ARB processes for rebalance activity.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ARBx - Actual Rebalancer:&lt;/span&gt; They perform the actual rebalancing activities. The number of ARBx processes depends on the ASM_POWER_LIMIT init parameter.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ASMB - ASM Bridge:&lt;/span&gt; This process is used to provide information to and from the Cluster Synchronization Service (CSS) used by ASM to manage the disk resources. It is also used to update statistics and provide a heartbeat mechanism.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;a href="http://www.blogtoplist.com/vote.php?u=108871" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.blogtoplist.com/images/votebutton.gif" alt="Top Blogs" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3038147434701592023?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3038147434701592023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3038147434701592023&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3038147434701592023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3038147434701592023'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/11/asm-background-processes.html' title='ASM Background Processes'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-1022240857052591184</id><published>2009-11-01T02:50:00.003+05:30</published><updated>2009-11-01T03:07:47.632+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>ASM Instance</title><content type='html'>ASM instance is a special kind of Oracle Instance which has only SGA and Background process and no Physical Files except parameter file. It manages the disk group activity. Each server has an ASM instance that manages the disk groups for that server. If the server has more than one database a single ASM instance can manage the disk group for all the databases. In an RAC configuration each node has a separate ASM instance that manages disk groups for that node.&lt;br /&gt;&lt;br /&gt;ASM breaks the files into multiple extents and spreads the extents across all of the disks available in the disk group. Usually the extent is 1MB in size. The ASM instance creates an extent map, which has a pointer to each 1MB extent. When the database instance wants to create or open the datafile, it messages the ASM instance and ASM instance returns the extent map for that file. The database instance then performs the I/O directly with the datafile.&lt;br /&gt;&lt;br /&gt;ASM instance must be started before the database instance starts and must be running as long as the database instance runs.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Initialization Parameters for ASM instance&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Unlike database instance, ASM instance does not have physical files and can be started with few initialization parameters. The following are the required parameters.&lt;br /&gt;&lt;br /&gt;*.instance_type=asm&lt;br /&gt;*.cluster_database=TRUE&lt;br /&gt;*.instance_number=1&lt;br /&gt;*.remote_login_passwordfile=EXCLUSIVE&lt;br /&gt;*.asm_diskgroups=ASMIND,ASMDB,ASMFLASH&lt;br /&gt;*.background_dump_dest=’/…/’&lt;br /&gt;*.core_dump_dest=’/…/’&lt;br /&gt;*.user_dump_dest=’/…/’&lt;br /&gt;&lt;br /&gt;The following size is used for most configurations&lt;br /&gt;&lt;br /&gt;*.Shared_pool_size=128MB&lt;br /&gt;*.Large_pool_size= 12MB&lt;br /&gt;*.Db_cache_size=64MB&lt;br /&gt;&lt;br /&gt;From Oracle 11g, there is no need to set bdump,cdump,udump. Instead set the following Automatic Diagnostic Repository parameter,&lt;br /&gt;&lt;br /&gt;*.diagnostic_dest=’/…/’&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Starting ASM instance&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;There are four modes to start asm instance they are,&lt;br /&gt;&lt;br /&gt;SQL&gt; Startup Nomount; -- starts the asm instance.&lt;br /&gt;SQL&gt; Startup Mount;  -- mounts the disk groups&lt;br /&gt;SQL&gt; Startup Force;  -- shuts down asm and restarts.&lt;br /&gt;SQL&gt; Startup Restrict; -- prevents oracle database from connecting to asm.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Stopping ASM instance&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Shutdown;&lt;br /&gt;&lt;br /&gt;Shutting down the ASM instance shuts down any oracle databases connected to that ASM instance in the same mode. When you issue shutdown normal, immediate or transactional ASM instance waits for the corresponding oracle databases to finish all SQL operations before shutting down. &lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;If you like the post vote for me by clicking the following button&lt;br /&gt;&lt;a href="http://www.blogtoplist.com/vote.php?u=108871" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.blogtoplist.com/images/votebutton.gif" alt="Top Blogs" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-1022240857052591184?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/1022240857052591184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=1022240857052591184&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1022240857052591184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1022240857052591184'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/11/asm-instance.html' title='ASM Instance'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-4232589421154045649</id><published>2009-11-01T00:46:00.005+05:30</published><updated>2009-11-01T02:49:39.464+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Automatic Storage Management</title><content type='html'>&lt;strong&gt;What is Automatic Storage Management ?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;ASM is a special kind of volume manager specifically designed for Oracle Database Files. You give all the disks to Oracle and it will manage it for you. ASM groups the disks in the storage system as one or more disk groups and automates the placement of files within these disk groups. This results in better utilization, performance and high availability.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Advantages of ASM&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. Automatic Load Balancing: The data is spread over all the available disks and hence provide equal distribution of I/O loads across all the disks.&lt;br /&gt;&lt;br /&gt;2. Automatic Rebalancing of data: When a disk is added or removed the data is automatically rebalanced with the remaining disks without affecting the performance.&lt;br /&gt;&lt;br /&gt;3. Fault Tolerance : ASM provides fault tolerance through 2 to 3 levels of mirroring.&lt;br /&gt;&lt;br /&gt;4. ASM can be used in single instance as well as RAC environment.&lt;br /&gt;&lt;br /&gt;5. ASM files can co-exist with non-asm files in the same database.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Disadvantage of ASM&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;ASM cannot support some files such as alert log files, trace files, external table files etc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Types of files stored in ASM&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Data Files, Control files, Redo Log files, Archived log files, Temp files, Parameter files, Backup pieces, Flashback logs, Data pump sets.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;If you like the post vote for me by clicking the following button.&lt;br /&gt;&lt;a href="http://www.blogtoplist.com/vote.php?u=108871" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.blogtoplist.com/images/votebutton.gif" alt="Top Blogs" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-4232589421154045649?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/4232589421154045649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=4232589421154045649&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4232589421154045649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4232589421154045649'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/11/automatic-storage-management.html' title='Automatic Storage Management'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-5280241010574386742</id><published>2009-10-11T03:54:00.005+05:30</published><updated>2009-10-14T02:21:44.825+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Architecture'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Force Log Switches</title><content type='html'>You can force the log switches using the following statements,&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter System Switch LogFile;&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter System Archive Log Current;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The difference between the two statements is that the first statement issues a log switch and the control immediately returns to the user. The user can perform other activities while the log file is being archived at the background. However the second statement will not return the control to the user until the current logfile is archived. It issues a log switch and the user session hangs until the log is archived.&lt;br /&gt;&lt;br /&gt;A number of DBAs also confuse with the following statement,&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter System Archive Log all;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The above statement will not issue a log switch. It will archive all the non-archived log files. If you have no logfiles that are unarchived, then issuing the above statement returns the error message,&lt;br /&gt;&lt;br /&gt;ORA-00271 there are no logs that need archiving.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;If you like the post vote for me by clicking the following button&lt;br /&gt;&lt;a href="http://www.blogtoplist.com/vote.php?u=108871" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.blogtoplist.com/images/votebutton.gif" alt="Top Blogs" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-5280241010574386742?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/5280241010574386742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=5280241010574386742&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5280241010574386742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5280241010574386742'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/10/force-log-switches.html' title='Force Log Switches'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-1983309467218801535</id><published>2009-10-11T03:45:00.003+05:30</published><updated>2009-10-14T02:23:03.685+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>Log File Switch Completion (Checkpoint Incomplete)</title><content type='html'>The cause for this wait event is same as mentioned &lt;a href="http://oracledba-vinod.blogspot.com/2009/10/log-file-switch-completion.html"&gt;here&lt;/a&gt;. When you see the log file switch completion wait event you will most likely see the checkpoint incomplete wait event. During the log switch a checkpoint occurs. The checkpoint signals the DBWr to write the dirty buffers to the data files.&lt;br /&gt;&lt;br /&gt;The difference between log file switch completion and log file switch completion (Checkpoint Incomplete) wait event is, in the case of former wait event the users wait for the Log writer background process (LGWr) to complete its work (log switch). In the case of latter wait event the users wait for the Database Writer background process (DBWr) to complete its work (checkpoint).&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Tuning option&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;Increase the size of redo log files. Increase the number of redo log groups.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;If you like the post vote for me by clicking the following button&lt;br /&gt;&lt;a href="http://www.blogtoplist.com/vote.php?u=108871" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.blogtoplist.com/images/votebutton.gif" alt="Top Blogs" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-1983309467218801535?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/1983309467218801535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=1983309467218801535&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1983309467218801535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1983309467218801535'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/10/log-file-switch-completion-checkpoint.html' title='Log File Switch Completion (Checkpoint Incomplete)'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-336254606762290493</id><published>2009-10-11T02:45:00.002+05:30</published><updated>2009-10-11T03:44:35.522+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>log file switch completion</title><content type='html'>Whatever changes you make in the database, the changes are recorded in the online redo log files. These are important files for recovery in the event of a crash. There must be atleast two redo log groups in the database. The online redo log files are used in a circular fashion, i.e., when the current redo log file is full the changes are recorded in the next available online redo log file. When the last redo log file is full the changes are then recorded in the first redo log file overwriting the already available redo changes. If you have enabled the archiving then the online redo log file must have been archived before it is overwritten.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A &lt;strong&gt;log switch&lt;/strong&gt; occurs when the current online redo log file is full. It enables the &lt;strong&gt;LGWr&lt;/strong&gt; process to close the current redo log file and open the next available redo log file and start writing the changes in that file. A &lt;strong&gt;checkpoint&lt;/strong&gt; occurs during the log switch which enables the &lt;strong&gt;DBWr&lt;/strong&gt; to write the dirty buffers to be flushed to the data files.&lt;br /&gt;&lt;br /&gt;When the redo log file size is small then the log file gets filled frequently causing log switches to occur more frequently. When a user session waits for &lt;strong&gt;log file switch completion wait event&lt;/strong&gt;, it means the LGWr has not completed its work.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Tuning Option&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;Increase the size of the online redo log file. Check out the v$log_history view to see how often the log switch has taken place. Size your log files so that the log switch occurs every 30 minutes. For eg., if your current log file size is 50MB and log switch occurs every 5 minutes then increase the file size to 300MB.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-336254606762290493?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/336254606762290493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=336254606762290493&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/336254606762290493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/336254606762290493'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/10/log-file-switch-completion.html' title='log file switch completion'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-1255950638802415537</id><published>2009-09-29T16:03:00.004+05:30</published><updated>2009-09-29T18:09:39.264+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>Free Buffer Waits</title><content type='html'>When a user session requires free buffers, the server process scans the LRU list to a get a free buffer space. After scanning the LRU list up to a threshold, if the server process could not get free space, it requests the DBWr to write the dirty buffer from the LRU list to disk. While the DBWr process writes the dirty buffers the session waits on &lt;strong&gt;'Free Buffer Waits'&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Tuning Options&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Poor SQL Statements&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Query the V$SQL view for statements that have high DISK_READS. Tune the statements to reduce the physical reads. The poorly written SQL Statements are the main cause of this wait event.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;DBWr Processes&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Increase the DBWr processes (or)&lt;br /&gt;Decrease the Buffer Cache (or)&lt;br /&gt;Decrease the FAST_START_MTTR_TARGET parameter.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Delayed Block Cleanout&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The delayed block cleanout will cause the free buffer wait events. To avoid delayed block cleanout perform a full table scan on a table that has been loaded with a lot of rows before it is released to the application.&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Small Buffer Cache&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Increase the size of Buffer Cache if you feel that the buffer cache is under sized and check for the wait event.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Slow IO&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Vinod D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-1255950638802415537?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/1255950638802415537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=1255950638802415537&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1255950638802415537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1255950638802415537'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/09/free-buffer-waits.html' title='Free Buffer Waits'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-2470396717294980698</id><published>2009-09-17T10:14:00.003+05:30</published><updated>2009-09-17T12:18:14.006+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>log file sync wait</title><content type='html'>The log file sync event occurs when a user issues Commit or Rollback. Click &lt;a href="http://oracledba-vinod.blogspot.com/2009/09/log-file-sync.html"&gt;here&lt;/a&gt; for the difference between log file sync and log parallel write wait event.&lt;br /&gt;&lt;br /&gt;When a user issues a commit or rollback command, the redo data in the redo buffer is written to online redo log file. This write is known as sync write. During this synchronization process the user process waits in log file sync event, while the LGWr waits on log file parallel write event.&lt;br /&gt;&lt;br /&gt;The log file sync event is very fast and usually unnoticed by the end users. However you may notice that there are very high time waited for this wait event in certain cases. The main cause for such high wait for this event is as follows,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Too many commits&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If you notice high waits at session level then it may be due to running batch processes there are commits within a loop. If that is the case then the application logic can be changed by eliminating unneccessary commits and reduce commit frequency.&lt;br /&gt;&lt;br /&gt;If you notice high waits at system level then it may be due to short transactions. OLTP databases usually have short transactions and have high log file sync wait events. Only thing you can do to improve the performance, in this case, is to use faster IO subsystem, rawdevices.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Large Log buffer&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The redo entries from buffer to log files take place either through sync writes as explained earlier or through background writes (Such as 1/3 full, 1MB redo etc). When redo log buffer is large then more redo data are accumulated in the buffer. The background writes (i.e., when redo becomes 1/3 full ) are limited or delayed. When a user issues a commit or roll back then the sync writes will take more time.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-2470396717294980698?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/2470396717294980698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=2470396717294980698&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2470396717294980698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2470396717294980698'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/09/log-file-sync-wait.html' title='log file sync wait'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-2721998845806355864</id><published>2009-09-14T13:16:00.004+05:30</published><updated>2009-09-15T12:48:22.431+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>Buffer Busy Waits</title><content type='html'>The 'Buffer Busy Waits' Event occurs due to the following reasons,&lt;br /&gt;&lt;br /&gt;1. A user wants to access a data block for read or write operation. The block is present in the Buffer Cache but locked by another session. The user has to wait till the other session releases the lock on that block.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;2. A user wants to access a data block for read or write operation. The block is not present in the Buffer Cache. The block has to be read from data files into Buffer Cache. But the same block is being read by another session. Hence the user patiently waits for the IO of the other session to complete. Prior to oracle 10g, this wait is referred to as Buffer busy wait, but from oracle 10g this wait event is referred to as &lt;strong&gt;'read by other session'&lt;/strong&gt; wait.&lt;/p&gt;&lt;p&gt;Tuning Options,&lt;/p&gt;&lt;p&gt;Run the following query to find whether any block or range of blocks are always responsible for buffer busy waits,&lt;/p&gt;&lt;p&gt;SQL&gt; select p1 "File #", p2 "Block #", p3 "Reason Code" From v$session_wait&lt;br /&gt;where event = 'buffer busy waits';&lt;/p&gt;&lt;p&gt;Use the following query to find the segment the block belongs to,&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;SQL&gt; select owner,segment_name,segment_type From dba_extents&lt;br /&gt;where file_id = &amp;amp;file#&lt;br /&gt;and &amp;amp;block# between block_id and block_id + blocks -1;&lt;br /&gt;&lt;br /&gt;Once the segment name is identified use the V$Segment_Statistics view to monitor the statistics of the segment.&lt;br /&gt;&lt;br /&gt;SQL&gt;select * from v$segment_statistics&lt;br /&gt;where owner like 'RACFIN'&lt;br /&gt;and statistic_name like 'buffer busy waits'&lt;br /&gt;and object_name like 'IBM_PARTY_BRANCH' ;&lt;br /&gt;&lt;br /&gt;Use the following query to find what kind of contention is causing the buffer busy waits.&lt;br /&gt;&lt;br /&gt;SQL&gt; Select * from v$waitstat;&lt;br /&gt;&lt;br /&gt;The output shows the sum and total time of all waits for particular class of block such as data block, segment header, undo header block etc.&lt;br /&gt;&lt;br /&gt;To avoid the buffer busy waits,&lt;br /&gt;&lt;br /&gt;1. Increase the PCTFREE and PCTUSED values to reduce the number of rows per block to avoid data block contention.&lt;br /&gt;2. Increase the INITRANS value to avoid data block contention.&lt;br /&gt;3. Increase the FREELIST and FREELIST GROUPS value to avoid freelist block contention and segment header block contention.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-2721998845806355864?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/2721998845806355864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=2721998845806355864&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2721998845806355864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2721998845806355864'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/09/buffer-busy-waits.html' title='Buffer Busy Waits'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-5566278548576678859</id><published>2009-09-14T11:37:00.006+05:30</published><updated>2009-09-14T13:15:12.782+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>Enqueue</title><content type='html'>Enqueue waits are locking mechanisms that control the access to shared resources. There are various modes of enqueues.&lt;br /&gt;&lt;br /&gt;The following query gives you the detail of Sessions holding the lock, the lock type, mode.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL&gt;&lt;/strong&gt; select DECODE(request,0,'Holder: ','Waiter: ')sid sess, id1, id2, lmode, request, type&lt;br /&gt;FROM V$LOCK&lt;br /&gt;WHERE (id1, id2, type) IN (SELECT id1, id2, type FROM V$LOCK WHERE request&gt;0)&lt;br /&gt;ORDER BY id1, request ;&lt;br /&gt;&lt;br /&gt;The most common enqueue waits are discussed below,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;TYPE&lt;/strong&gt;: TM (Table Lock)&lt;br /&gt;&lt;strong&gt;LMODE&lt;/strong&gt;: 3&lt;br /&gt;&lt;strong&gt;CAUSE&lt;/strong&gt;: Unindexed Foreign Key&lt;br /&gt;&lt;strong&gt;SOLUTION&lt;/strong&gt;: The holder has to issue commit or rollback. To avoid this kind of lock in first place create indexes on the foreign key columns. You can do this by taking the ID1 column value in v$lock. This ID1 value is the object ID of the child table. Use dba_objects dictionary table and get the object name. Create the index on the foreign key column.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;TYPE&lt;/strong&gt;: TX (Row level lock)&lt;br /&gt;&lt;strong&gt;LMODE&lt;/strong&gt;: 6&lt;br /&gt;&lt;strong&gt;CAUSE&lt;/strong&gt;: Updating or deleting rows that are currently locked by another transaction.&lt;br /&gt;&lt;strong&gt;SOLUTION&lt;/strong&gt;: Application issue. The lock is released when the holding session issues a commit or rollback. Killing the holding session will rollback the transaction.&lt;br /&gt;&lt;strong&gt;RESOURCE LOCKED&lt;/strong&gt;: Issue the following query to find the resource that is locked.&lt;br /&gt;&lt;br /&gt;SQL&gt; select c.sid waiter_sid, a.object_name, a.object_typefrom dba_objects a, v$session b, v$session_wait cwhere (a.object_id = b.row_wait_obj# or a.data_object_id = b.row_wait_obj#)and b.sid = c.sidand chr(bitand(c.P1,-16777216)/16777215)  chr(bitand(c.P1,16711680)/65535) = ’TX’and c.event = ’enqueue’;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;TYPE&lt;/strong&gt;: TX (ITL Shortage)&lt;br /&gt;&lt;strong&gt;LMODE&lt;/strong&gt;: 4&lt;br /&gt;&lt;strong&gt;CAUSE&lt;/strong&gt;: i) ITL (Interested Transaction List) Shortage. ii) Unique Key Enforcement. iii) Bitmap index Entry.&lt;br /&gt;&lt;strong&gt;SOLUTION&lt;/strong&gt;: To see whether the wait is due to ITL shortage dump the data block and see how many ITL slots are being used.&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter system dump datafile &lt;file#&gt;block &lt;block#&gt;&lt;br /&gt;&lt;br /&gt;If it is indeed due to ITL shortage, then increase the INITRANS value of the object. Also increase the PCTFREE value of the objects.&lt;br /&gt;&lt;br /&gt;ii) If the Wait is due to the Unique key Enforcement (i.e, if more than one session inserts the same value that has unique or primary key then the insert will not succeed). If the first session that inserted the value commits then the waiting session will receive the unique constraint violation error. If the first session rollsback then the second session succeeds.&lt;br /&gt;&lt;br /&gt;iii) Bitmap Index Entry: A bitmap entry covers a range of ROWIDs. When a bitmap entry is locked all the ROWIDs that correspond to the bitmap entry are locked. When multiple users attempt to delete or update different rows that have the same bitmap entry then a wait for TX in mode 4 will occur.&lt;br /&gt;&lt;br /&gt;It is difficult to find whether the lock was due to unique key enforcement or bitmap index entry by merely looking in to the V$Lock view. You have to capture the SQL statements that holder and waiter have issued. If the statement is an insert then wait is due to the unique key enforcement. If the statement is update or delete then the wait is due to the bitmap index entry.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-5566278548576678859?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/5566278548576678859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=5566278548576678859&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5566278548576678859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5566278548576678859'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/09/enqueue.html' title='Enqueue'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-8415806670278223290</id><published>2009-09-13T09:06:00.003+05:30</published><updated>2009-09-13T13:50:39.982+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>control file parallel write</title><content type='html'>The control file parallel write wait event occurs due to some operations that caused the control file to be updated, such as&lt;br /&gt;&lt;br /&gt;1. log switches by LGWR process.&lt;br /&gt;2. adding a datafile.&lt;br /&gt;3. removing a datafiles.&lt;br /&gt;4. checkpoint information by CKPT process.&lt;br /&gt;5. archive log information by ARCH process.&lt;br /&gt;&lt;br /&gt;To find which sessions cause transactions to controlfile, issue the following statement.&lt;br /&gt;&lt;br /&gt;SQL&gt; select a.sid,decode(a.type, 'BACKGROUND', 'BACKGROUND-' || substr&lt;br /&gt;(a.program,instr(a.program,'(',1,1)), 'FOREGROUND') type,  b.time_waited,&lt;br /&gt;round(b.time_waited/b.total_waits,4) average_wait, round((sysdate - a.logon_time)*24) hours_connected&lt;br /&gt;from v$session_event b, v$session a&lt;br /&gt;where  a.sid   = b.sid&lt;br /&gt;and    b.event = 'control file parallel write'&lt;br /&gt;order by type, time_waited;&lt;br /&gt;&lt;br /&gt;The output of the above statement shows which background process is writing to control file frequently, For eg., if LGWr has more time_waited then it implies that the log switches are more. If the foreground process have more time_waited then it implies that there are more changes to database that requires to update the SCN in control file.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-8415806670278223290?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/8415806670278223290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=8415806670278223290&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8415806670278223290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8415806670278223290'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/09/control-file-parallel-write.html' title='control file parallel write'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-1985329543048858573</id><published>2009-09-13T06:28:00.002+05:30</published><updated>2009-09-13T09:04:26.598+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>log file sync</title><content type='html'>When a user issues a commit or rollback then the redo data in the redo buffer is written to the online redo log file. The user session waits for this event to finish before continuing with other processing. This wait time is represented as log file sync wait event.&lt;br /&gt;&lt;br /&gt;A number of people have asked the question as &lt;strong&gt;what is the difference between log file parallel write and log file sync.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The difference is....&lt;br /&gt;&lt;br /&gt;log file parallel write occurs when LGWR writes redo records from redo buffer to online redo log file. This may take place very frequently when it meets any one of the following condition,&lt;br /&gt;&lt;br /&gt;1. Once in every three seconds.&lt;br /&gt;2. _LOG_IO_SIZE threshold is met.&lt;br /&gt;3. 1MB worth of redo entries are buffered.&lt;br /&gt;4. Commit.&lt;br /&gt;5. Rollback.&lt;br /&gt;6. When DBWr requests.&lt;br /&gt;&lt;br /&gt;The user sessions will never experience the log file parallel write wait event.&lt;br /&gt;&lt;br /&gt;When the user session issue commit or rollback then it leads to log file sync wait event, which the user will experience by response time.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-1985329543048858573?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/1985329543048858573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=1985329543048858573&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1985329543048858573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1985329543048858573'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/09/log-file-sync.html' title='log file sync'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-4138578426932132966</id><published>2009-09-13T05:40:00.004+05:30</published><updated>2009-09-13T06:28:35.879+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>log file parallel write</title><content type='html'>The &lt;strong&gt;'log file parallel write'&lt;/strong&gt; event is caused by the Log writer (LGWR) process. The LGWR writes the redo buffer to the online redo log files . It issues a series of write calls to the system IO. The LGWR waits for the writes to complete on log file parallel write. A slow LGWR process can introduce log file sync waits which makes the user to experience wait times during commit or rollback. The log file parallel write and log file sync wait events are interrelated and must be dealt simultaneously.&lt;br /&gt;&lt;br /&gt;If the average_wait time is high (above 10 milliseconds) it indicates that the system IO throughput is slow. To improve the average_wait time follow the same techniques used in &lt;a href="http://oracledba-vinod.blogspot.com/2009/08/db-file-parallel-readwrite.html"&gt;db file parallel write&lt;/a&gt; wait event.&lt;br /&gt;&lt;br /&gt;Tuning options:&lt;br /&gt;&lt;br /&gt;1. Avoid running hot backups during peak hours.&lt;br /&gt;2. Check for high commit sessions and try to change the application logic to commit less frequently. Use the following queries to find high commit sessions,&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;select sid, value from v$sesstat&lt;br /&gt;where statistic# = select statistic# from v$statname where name = 'user commits') order by 2 desc;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A high redo wastage also indicates high frequency commits&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;select b.name, a.value, round(sysdate - c.startup_time) days_old&lt;br /&gt;from v$sysstat a, v$statname b, v$instance c&lt;br /&gt;where a.statistic# = b.statistic#&lt;br /&gt;and b.name in ('redo wastage','redo size');&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-4138578426932132966?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/4138578426932132966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=4138578426932132966&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4138578426932132966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4138578426932132966'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/09/log-file-parallel-write.html' title='log file parallel write'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7685653302716784764</id><published>2009-09-03T08:38:00.001+05:30</published><updated>2009-09-03T08:39:25.143+05:30</updated><title type='text'>AIX-VMM Tuning Parameters</title><content type='html'>&lt;div&gt;&lt;strong&gt;AIX - Virtual Memory Tuning&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In AIX, about 80% of the memory is used to buffer file I/O and only 20% is used for oracle processes and programs. This results in the double buffering of file I/O as Oracle SGA is already buffering the file I/O. It causes more Page in and Page out. To avoid this situation you must tune the Virtual Memory Parameters&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To see the virtual memory Parameters use the following command.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# vmo -a&lt;/div&gt;&lt;div&gt;The important parameters are&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;strict_maxperm&lt;/div&gt;&lt;div&gt;strict_maxclient&lt;/div&gt;&lt;div&gt;lru_file_repage&lt;/div&gt;&lt;div&gt;maxperm%&lt;/div&gt;&lt;div&gt;minperm%&lt;/div&gt;&lt;div&gt;minperm%&lt;/div&gt;&lt;div&gt;minperm%&lt;/div&gt;&lt;div&gt;v_pinshm&lt;/div&gt;&lt;div&gt;maxpin%&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Check whether the parameters are set to the following values, if not set it to the following values&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;strict_maxperm=0 (default)&lt;/div&gt;&lt;div&gt;strict_maxclient=1 (default)&lt;/div&gt;&lt;div&gt;lru_file_repage=0&lt;/div&gt;&lt;div&gt;maxperm%=20-30&lt;/div&gt;&lt;div&gt;minperm%=5 (RAM &lt;32&gt;32 GB but &lt;64&gt;64 GB)&lt;/div&gt;&lt;div&gt;v_pinshm=1&lt;/div&gt;&lt;div&gt;maxpin%=80&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thanks&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7685653302716784764?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7685653302716784764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7685653302716784764&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7685653302716784764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7685653302716784764'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/09/aix-vmm-tuning-parameters.html' title='AIX-VMM Tuning Parameters'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-8332165476032063359</id><published>2009-08-20T23:57:00.003+05:30</published><updated>2009-08-21T00:02:55.739+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>Wait Events Parameter</title><content type='html'>&lt;div&gt;The parameters (p1, p2, p3) for some of the most common wait events are given below.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_8i4YP447MmQ/So2WLyv1aYI/AAAAAAAAAXE/4h8a1GA15Go/s1600-h/wait_events.JPG"&gt;&lt;img style="WIDTH: 400px; HEIGHT: 274px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5372115059868002690" border="0" alt="" src="http://4.bp.blogspot.com/_8i4YP447MmQ/So2WLyv1aYI/AAAAAAAAAXE/4h8a1GA15Go/s400/wait_events.JPG" /&gt;&lt;/a&gt; &lt;a href="http://2.bp.blogspot.com/_8i4YP447MmQ/So2WdRexObI/AAAAAAAAAXM/DuX3FgjUJq4/s1600-h/wait_events2.JPG"&gt;&lt;img style="WIDTH: 400px; HEIGHT: 116px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5372115360175700402" border="0" alt="" src="http://2.bp.blogspot.com/_8i4YP447MmQ/So2WdRexObI/AAAAAAAAAXM/DuX3FgjUJq4/s400/wait_events2.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Thanks&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-8332165476032063359?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/8332165476032063359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=8332165476032063359&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8332165476032063359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8332165476032063359'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/wait-events-parameter.html' title='Wait Events Parameter'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_8i4YP447MmQ/So2WLyv1aYI/AAAAAAAAAXE/4h8a1GA15Go/s72-c/wait_events.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-1237778070307355316</id><published>2009-08-17T19:17:00.003+05:30</published><updated>2009-08-17T19:20:58.580+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>Controlfile Sequential Read/ Parallel Write</title><content type='html'>&lt;strong&gt;'controlfile sequential read'&lt;/strong&gt; occurs while reading control file (backup, share information from controlfile between instances etc). The parameters in V$session_wait are as follows,&lt;br /&gt;&lt;br /&gt;P1 - The file# of control file from which the session is reading.&lt;br /&gt;P2 – The block# from which the session starts reading.&lt;br /&gt;P3 – The no. of blocks the session is trying to read.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;'controlfile parallel write'&lt;/strong&gt; occurs while writing to all the control files. The parameters in V$session_wait are as follows,&lt;br /&gt;&lt;br /&gt;P1 – No. of control files being updated.&lt;br /&gt;P2 – No. of blocks that are being updated.&lt;br /&gt;P3 – No. of IO requests.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Tuning Options&lt;/u&gt;: Use Asynchronous IO if possible. Move the controlfile to a different disk or use faster disk.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-1237778070307355316?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/1237778070307355316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=1237778070307355316&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1237778070307355316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1237778070307355316'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/controlfile-sequential-read-parallel.html' title='Controlfile Sequential Read/ Parallel Write'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-1404486242995678988</id><published>2009-08-17T18:10:00.006+05:30</published><updated>2009-09-13T06:02:33.638+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>db file parallel read/write</title><content type='html'>&lt;strong&gt;'db file parallel read'&lt;/strong&gt; occurs during recovery. The datablocks that need to be changed are read from various datafiles and are placed in non-contiguous buffer blocks. The server process waits till all the blocks are read in to the buffer.&lt;br /&gt;&lt;br /&gt;Tuning options - same as db file sequential read.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;'db file parallel write'&lt;/strong&gt; occurs when database writer (DBWr) is performing parallel write to files and blocks. Check the average_wait in V$SYSTEM_EVENT, if it is greater than 10 milliseconds then it signals a slow IO throughput.&lt;br /&gt;&lt;br /&gt;Tuning options - The main blocker for this wait event is the OS I/O sub systems. Hence use OS monitoring tools (sar -d, iostat) to check the write performance.  To improve the average_wait time you can consider the following,&lt;br /&gt;&lt;br /&gt;If the data files reside on raw devices use asynchronous writes. However if the data files reside on cooked file systems use synchronous writes with direct IO.&lt;br /&gt;&lt;br /&gt;Note: If the average_wait time for db file parallel write is high then you may see that the system waits on free buffer waits event.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-1404486242995678988?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/1404486242995678988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=1404486242995678988&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1404486242995678988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1404486242995678988'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/db-file-parallel-readwrite.html' title='db file parallel read/write'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3463217612295258831</id><published>2009-08-17T16:55:00.003+05:30</published><updated>2009-08-17T17:00:27.234+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>Objects and Blocks in waits</title><content type='html'>When you find a session waiting for either sequential read or scattered read, it might be useful to find which object is being accessed for further tuning.&lt;br /&gt;&lt;br /&gt;To find the object and the block number the session is accessing,&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select SID, Event, P1 File#, p2 Block#, p3 “Blocks Fetched”, &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;wait_time, seconds_in_wait, state&lt;br /&gt;From V$Session_Wait&lt;br /&gt;Where Sid in (Select Sid From V$Session where osuser != ‘oracle’&lt;br /&gt;and status = ‘ACTIVE’);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;From the above query get the file# and the block#.&lt;br /&gt;&lt;br /&gt;To find the name of the file, issue the following query.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;SELECT tablespace_name, file_name FROM dba_data_files&lt;br /&gt;WHERE file_id = &amp;File#;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To find the object, issue the following query.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;SELECT owner , segment_name , segment_type, partition_name&lt;br /&gt;FROM dba_extents&lt;br /&gt;WHERE file_id = &amp;amp;File#&lt;br /&gt;AND &amp;amp;Block# BETWEEN block_id AND block_id + blocks -1&lt;/strong&gt; ;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3463217612295258831?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3463217612295258831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3463217612295258831&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3463217612295258831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3463217612295258831'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/objects-and-blocks-in-waits.html' title='Objects and Blocks in waits'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7365383046725300882</id><published>2009-08-17T16:45:00.006+05:30</published><updated>2009-08-17T16:53:57.184+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>db file scattered read</title><content type='html'>&lt;strong&gt;'db file scattered read'&lt;/strong&gt; occurs during multiblock read (Full table Scan, Index Fast Full Scans).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Tuning Options&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1.  Check for SQL that performs Full scans. Tune for optimal plans.&lt;br /&gt;2. If the multiblock scans are due to optimal plans then increase the init parameter DB_FILE_MULTIBLOCK_READ_COUNT (up to 9i). Set this parameter to 0 (automatic tuning) in 10g.&lt;br /&gt;3. Use Partitions if possible.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7365383046725300882?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7365383046725300882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7365383046725300882&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7365383046725300882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7365383046725300882'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/db-file-scattered-read.html' title='db file scattered read'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-197233380434949548</id><published>2009-08-17T16:23:00.004+05:30</published><updated>2009-08-17T16:38:19.979+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wait Events'/><title type='text'>db file sequential read</title><content type='html'>&lt;strong&gt;'db file sequential read'&lt;/strong&gt; occurs during single block read (Reading index blocks, row fetch by row id).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Tuning Options&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. &lt;strong&gt;Find the top SQL with high physical reads (AWR or Statspack).&lt;/strong&gt;&lt;br /&gt;          Analyze the objects for better Execution plans.&lt;br /&gt;          Use more selective index.&lt;br /&gt;          Rebuild the indexes if it is fragmented.&lt;br /&gt;          Use Partition if possible.&lt;br /&gt;&lt;br /&gt;2. &lt;strong&gt;Find the I/O Statistics&lt;/strong&gt;&lt;br /&gt;          Check hot disks using V$filestat.&lt;br /&gt;          Move datafiles to avoid contention to a single disk.&lt;br /&gt;&lt;br /&gt;3. &lt;strong&gt;Try to increase the Buffer Cache&lt;/strong&gt;&lt;br /&gt;           In 9i, use buffer cache advisory and in 10g use ASSM to determine the optimal size for buffer cache.&lt;br /&gt;          Check for hot segments and place it in the Keep Pool.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-197233380434949548?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/197233380434949548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=197233380434949548&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/197233380434949548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/197233380434949548'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/db-file-sequential-read.html' title='db file sequential read'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6311063918138662522</id><published>2009-08-12T17:34:00.002+05:30</published><updated>2009-08-12T17:43:07.930+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Optimizer Statistics - Views</title><content type='html'>&lt;strong&gt;To Check when the object's statistics was last gathered&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Select last_analyzed, table_name, owner, num_rows, sample_size&lt;br /&gt;From dba_tables&lt;br /&gt;Order By last_analyzed;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To check the statistics gathered on the tables&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Select * From DBA_TAB_STATISTICS;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To check the statistics gathered on Columns&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Select * From DBA_TAB_COL_STATISTICS;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To check the amount of DML operations on tables&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Select * From SYS.DBA_TAB_MODIFICATIONS;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6311063918138662522?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6311063918138662522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6311063918138662522&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6311063918138662522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6311063918138662522'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/optimizer-statistics-views.html' title='Optimizer Statistics - Views'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-848429779943756642</id><published>2009-08-12T17:10:00.002+05:30</published><updated>2009-08-12T17:13:17.195+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Restore old statistics</title><content type='html'>When you collect new statistics, oracle stores the old statistics in the data dictionary. If the new statistics lead to sub optimal plans then you can restore the old statistics.&lt;br /&gt;&lt;br /&gt;To view the history of statistics gathering&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select * From DBA_OPTSTAT_OPERATIONS;&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select * From DBA_TAB_STATS_HISTORY;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;The old statistics are purged automatically after the retention period (default 31 days). Hence you can restore the statistics to anytime in last 31 days.&lt;br /&gt;&lt;br /&gt;To check the current retention period&lt;br /&gt;&lt;br /&gt;SQL&gt; S&lt;strong&gt;elect DBMS_STATS.GET_STATS_HISTORY_RETENTION from dual;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;To change the retention period&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec DBMS_STATS.ALTER_STATS_HISTORY_RETENTION (45)&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;To manually purge the old statistics&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec dbms_stats.purge_stats(Timestamp);&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;To Restore the statistics&lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;SQL&gt; Exec dbms_stats.restore_database_stats(Sysdate -1);&lt;br /&gt;SQL&gt; Exec dbms_stats.restore_dictionary_stats(Sysdate -1);&lt;br /&gt;SQL&gt; Exec dbms_stats.restore_system_stats(‘Sysdate -1’);&lt;br /&gt;SQL&gt; Exec dbms_stats.restore_schema_stats(‘SCOTT’,’Sysdate -1’);&lt;br /&gt;SQL&gt; Exec dbms_stats.restore_table_stats(‘SCOTT’,’EMP’’Sysdate -1’);&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-848429779943756642?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/848429779943756642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=848429779943756642&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/848429779943756642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/848429779943756642'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/restore-old-statistics.html' title='Restore old statistics'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-8491437225873292836</id><published>2009-08-12T16:57:00.005+05:30</published><updated>2009-08-12T17:10:10.458+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Gathering System Statistics</title><content type='html'>The System Statistics enable optimizer to generate better execution plan. The Automatic statistic gathering feature of 10g does not gather the system statistics. You have to manually collect System Statistics. There are two options for collecting System Statistics, they are&lt;br /&gt;&lt;br /&gt;1. Workload Statistics&lt;br /&gt;2. No Workload Statistics&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Workload Statistics&lt;/strong&gt;: This type of statistics are taken during normal working period. It will not generate any workload. The execution plans are generated based on the workload at the time of submitting the query. For eg. if the system is I/O intensive then the CBO choses an execution plan that is less intensive on I/O.&lt;br /&gt;&lt;br /&gt;To gather Workload Statistics&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec dbms_stats.gather_system_stats('start')&lt;br /&gt;&lt;/strong&gt;SQL&gt; &lt;strong&gt;Exec dbms_stats.gather_system_stats('stop')&lt;br /&gt;&lt;/strong&gt;Or&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec dbms_stats.gather_system_stats('interval', interval=&gt;N) &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;where N is the number of minutes when statistics gathering will be stopped automatically.&lt;br /&gt;&lt;br /&gt;To delete system statistics and reset to the default noworkload statistics&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec&lt;/strong&gt; &lt;strong&gt;dbms_stats.delete_system_stats().&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;NoWorkload Statistics&lt;/strong&gt;: Noworkload statistics gather data by submitting random reads against all data files. It gathers I/O transfer speed, I/O seek time and CPU speed. There will be some overhead while gathering statistics. By default oracle uses noworkload statistics. If workload statistics are available oracle ignores noworkload statistics.&lt;br /&gt;&lt;br /&gt;To gather no workload statistics&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec dbms_stats.gather_system_stats();&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-8491437225873292836?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/8491437225873292836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=8491437225873292836&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8491437225873292836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8491437225873292836'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/gathering-system-statistics.html' title='Gathering System Statistics'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-2433809784416376211</id><published>2009-08-11T04:31:00.004+05:30</published><updated>2009-08-11T04:36:11.683+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='10g Features'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Sampling in Statistics Gathering</title><content type='html'>Gathering statistics on any object involves a full table scan and sorts which uses more resources. To reduce the resource spent for gathering statistics use sampling.&lt;br /&gt;&lt;br /&gt;The ESTIMATE_PERCENT attribute of DBMS_STATS package is used to set the sample size. Oracle recommends to set the value to be AUTO_SAMPLE_SIZE. This value lets oracle to decide the best sample size.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;DBMS_STATS.GATHER_SCHEMA_STATS('SCOTT', DBMS_STATS.AUTO_SAMPLE_SIZE);&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-2433809784416376211?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/2433809784416376211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=2433809784416376211&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2433809784416376211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2433809784416376211'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/sampling-in-statistics-gathering.html' title='Sampling in Statistics Gathering'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-8519716521080733520</id><published>2009-08-11T04:28:00.002+05:30</published><updated>2009-08-11T04:31:56.925+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='10g Features'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Manual Statistics Gathering</title><content type='html'>&lt;strong&gt;1. To Gather Statistics on System Schemas (SYS, SYSTEM, etc)&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;SQL&gt; Exec DBMS_STATS.GATHER_DICTIONARY_STATS&lt;br /&gt;SQL&gt; Exec DBMS_STATS.DELETE_DICTIONARY_STATS&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2. To Gather Statistics on all database objects including System schemas.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Exec DBMS_STATS.GATHER_DATABASE_STATS&lt;br /&gt;SQL&gt; Exec DBMS_STATS.DELETE_ DATABASE _STATS&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;3. To Gather Statistics on schemas other than System schemas&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Exec DBMS_STATS.GATHER_SCHEMA_STATS(‘Ownername’);&lt;br /&gt;SQL&gt; Exec DBMS_STATS.DELETE_SCHEMA_STATS(‘Ownername’);&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;4. To Gather Statistics on individual tables&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;SQL&gt; Exec DBMS_STATS.GATHER_TABLE_STATS(‘Ownername’,’Tablename’);&lt;br /&gt;SQL&gt; Exec DBMS_STATS.DELETE_TABLE_STATS(‘Ownername’,’Tablename’);&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;5. To Gather Statistics on indexes&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Exec DBMS_STATS.GATHER_INDEX_STATS(‘Ownername’,’Indexname’);&lt;br /&gt;SQL&gt; Exec DBMS_STATS.DELETE_INDEX_STATS(‘Ownername’, ’Indexname’);&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;6. To Gather Statistics on individual columns of tables&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Exec DBMS_STATS.GET_COLUMN_STATS(‘Ownername’,’Tablename’,’Column’);&lt;br /&gt;SQL&gt; Exec DBMS_STATS.DELETE_ COLUMN _STATS(‘Owner’,’Tablename’,’column’);&lt;br /&gt;&lt;br /&gt;Note: Oracle invalidates the parsed SQL statements when new statistics are updated.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-8519716521080733520?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/8519716521080733520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=8519716521080733520&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8519716521080733520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8519716521080733520'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/manual-statistics-gathering.html' title='Manual Statistics Gathering'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6523762739584961545</id><published>2009-08-11T03:40:00.019+05:30</published><updated>2009-08-11T04:23:45.419+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='10g Features'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Automatic Statistic Gathering</title><content type='html'>From Oracle 10g, any DML operations performed on any objects are monitored by oracle. The information is stored in the view SYS.DBA_TAB_MODIFICATIONS. Based on the amount of changes, oracle decides whether to gather new statistics for an object.&lt;br /&gt;&lt;br /&gt;When you create the database using DBCA, oracle automatically creates a Job, GATHER_STATS_JOB, automatically and is scheduled to run during the maintenance window.&lt;br /&gt;&lt;br /&gt;The following query is used to find whether the job is running,&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select Job_name from dba_scheduler_jobs where job_name like 'GATHER_STAT%';&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Maintenance Windows&lt;/strong&gt;: Oracle Scheduler have two Maintenance windows,&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Weeknight window&lt;/u&gt; : Between 10 pm and 6 am (monday - friday)&lt;br /&gt;&lt;u&gt;Weekend window&lt;/u&gt;: Between 12 am saturday and 12 am sunday&lt;br /&gt;&lt;br /&gt;The job is closed when the maintenance window closes even if the job has not finished.&lt;br /&gt;&lt;br /&gt;To enable statistics collection to continue even after the maintenance window closes, set the stop_on_window_close attribute to false.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec DBMS_SCHEDULER.SET_ATTRIBUTE (‘GATHER_STATS_JOB’, ‘STOP_ON_WINDOW_CLOSE’, ‘FALSE’);&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Candidates for Statistics Gathering&lt;/strong&gt;: The job gathers statistics for objects with&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Missing Statistics&lt;/u&gt; : Objects without statistics&lt;br /&gt;&lt;u&gt;Stale Statistics&lt;/u&gt; : If more than 10% of the rows in an object is modified, its statistics are considered stale.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Note&lt;/u&gt;: System Statistics and the Fixed table (X$ tables) statistics are not gathered automatically.&lt;br /&gt;&lt;br /&gt;To Disable Automatic Statistic Gathering&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec DBMS_SCHEDULER.DISABLE(‘GATHER_STATS_JOB’);&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To get the details about the maintenance window&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select window_name, repeat_interval, duration, next_start_date&lt;br /&gt;From dba_scheduler_windows; &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To change the period of Maintenance Windows&lt;br /&gt;&lt;br /&gt;SQL&gt;&lt;strong&gt; Exec DBMS_SCHEDULER.SET_ATTRIBUTE(‘WEEKNIGHT_WINDOW’, ‘repeat_interval’, 'freq=daily;byday=MON, TUE, WED, THU, FRI;byhour=0; byminute=0; bysecond=0');&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Lock Statistics&lt;/strong&gt;: If you dont want to gather statistics for certain object or schema then you can lock it as follows,&lt;br /&gt;&lt;br /&gt;SQL&gt; Exec DBMS_STATS.LOCK_SCHEMA_STATS(‘SCOTT’);&lt;br /&gt;SQL&gt; Exec DBMS_STATS.LOCK_TABLE_STATS(‘SCOTT’, ‘EMP’);&lt;br /&gt;&lt;br /&gt;To unlock&lt;br /&gt;&lt;br /&gt;SQL&gt; Exec DBMS_STATS.UNLOCK_SCHEMA_STATS(‘SCOTT’);&lt;br /&gt;SQL&gt; Exec DBMS_STATS.UNLOCK_TABLE_STATS(‘SCOTT’, ‘EMP’);&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Note&lt;/u&gt;: When you perform bulk loads on tables gather statistics on those tables immediately.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6523762739584961545?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6523762739584961545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6523762739584961545&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6523762739584961545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6523762739584961545'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/automatic-statistic-gathering.html' title='Automatic Statistic Gathering'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3821158187142306016</id><published>2009-08-11T03:06:00.004+05:30</published><updated>2009-08-11T03:26:35.426+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Recompile Invalid Objects</title><content type='html'>Script to find the invalid objects in the database&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select * From dba_objects where status = 'INVALID';&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To Recompile Invalid Objects&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Method 1&lt;/strong&gt;: With access to SYS user&lt;br /&gt;&lt;br /&gt;SQL&gt;&lt;strong&gt;@$ORACLE_HOME/rdbms/admin/utlrp.sql&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Method 2&lt;/strong&gt;: Without access to SYS user (Cannot validate SYS objects)&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec DBMS_UTILITY.compile_schema('SYSTEM');&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Method 3&lt;/strong&gt;: Manual Script&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;select 'ALTER '  OBJECT_TYPE  ' ' OWNER  '.'  OBJECT_NAME &lt;br /&gt;' COMPILE;'from dba_objects where status = 'INVALID'and object_type in ('PACKAGE','FUNCTION','PROCEDURE', 'VIEW', 'TRIGGER', 'SYNONYM');&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt;  S&lt;strong&gt;elect 'ALTER PACKAGE'  ' ' OWNER  '.'  OBJECT_NAME  ' COMPILE BODY;'  From dba_objects where status = 'INVALID' &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;And object_type in ('PACKAGE BODY');&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt;  S&lt;strong&gt;elect 'ALTER MATERIALIZED VIEW'  ' ' OWNER  '.'  OBJECT_NAME  ' COMPILE;'  From dba_objects where status = 'INVALID'&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;and object_type in ('UNDEFINED');&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3821158187142306016?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3821158187142306016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3821158187142306016&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3821158187142306016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3821158187142306016'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/08/recompile-invalid-objects.html' title='Recompile Invalid Objects'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6052415506144400580</id><published>2009-07-30T00:47:00.002+05:30</published><updated>2009-07-30T01:07:02.691+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tracing'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>TkProf</title><content type='html'>TKPROF (Transient Kernel Profiler) is an utility to translate the trace files in to a readable format.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Syntax&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;$ &lt;strong&gt;TKPROF&lt;/strong&gt; &lt;em&gt;variable_list&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Where variable_list include&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tracefile&lt;/strong&gt; - The name of the trace file in the udump.&lt;br /&gt;&lt;strong&gt;Output_file&lt;/strong&gt; - The name of the output file in the udump.&lt;br /&gt;&lt;strong&gt;Explain=user/pass&lt;/strong&gt; - Run Explain plan on user’s SQL in trace file.&lt;br /&gt;&lt;strong&gt;Sys= Yes or No&lt;/strong&gt; - Display Recursive SQL statements in output file.&lt;br /&gt;&lt;strong&gt;Waits= Yes or No&lt;/strong&gt; - Record summary of for any waits.&lt;br /&gt;&lt;strong&gt;Aggregate = Yes or No&lt;/strong&gt; - If no, then SQL text is shown once if executed more than once.&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Sort=parameters&lt;/strong&gt; - A number of sorting options are available. Most common are:&lt;br /&gt;FCHCPU (Cpu time fetch), FCHDSK (Disk reads for fetch),&lt;br /&gt;FCHCU and FCHQRY (Memory Reads for fetch), FCHROW(no. of rows fetched),&lt;br /&gt;EXEDSK( Disk reads during execute), EXECU, EXEQRY, EXEROW, EXECPU,&lt;br /&gt;PRSCPU(Parse CPU) and PRSCNT (times parsed).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Table= schema.table&lt;/strong&gt; - Table in which tkprof temporarily put execution plans before writing them to output file.&lt;br /&gt;&lt;strong&gt;Insert=filename&lt;/strong&gt; - Creates a script to create a table and store the trace file statistics for each SQL stmt traced.&lt;br /&gt;&lt;strong&gt;Record=filename&lt;/strong&gt; - Produces a file of all the user’s SQL stmt.&lt;br /&gt;&lt;strong&gt;print= number&lt;/strong&gt; - The no. of statements in the output file. Default is all statement.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;$ cd $ORACLE_BASE/admin/gcuat/udump &lt;br /&gt;$ tkprof gcuat_ora_mytrace_704678.trc output.txt explain=system/manager aggregate=no sys=no waits=yes sort=(FCHCPU,EXECPU,PRSCPU)&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6052415506144400580?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6052415506144400580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6052415506144400580&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6052415506144400580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6052415506144400580'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/tkprof.html' title='TkProf'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6667412126970829804</id><published>2009-07-29T05:34:00.003+05:30</published><updated>2009-07-29T05:40:03.741+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tracing'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Event 10046 Tracing (Other's session)</title><content type='html'>&lt;strong&gt;Method 1:&lt;/strong&gt; Using oradebug utility&lt;br /&gt;&lt;br /&gt;Get the SPID of the session you want to trace.&lt;br /&gt;SQL&gt; Select p.spid, p.pid From v$session s, v$processs p&lt;br /&gt;         Where s.paddr = p.addr&lt;br /&gt;         And s.sid = 149  And s.serial#= 3643&lt;br /&gt;&lt;br /&gt;$ sqlplus / as sysdba&lt;br /&gt;SQL&gt; oradebug setospid 12345;&lt;br /&gt;-- 12345 is the p.spid value from the above query.&lt;br /&gt;&lt;br /&gt;SQL&gt; oradebug unlimit;&lt;br /&gt;SQL&gt; oradebug event 10046 trace name context forever, level 8;&lt;br /&gt;&lt;br /&gt;-- To turn off tracing&lt;br /&gt;SQL&gt; oradebug event 10046 trace name context off;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Method 2:&lt;/strong&gt; Using DBMS_MONITOR package in 10g or DBMS_SUPPORT package&lt;br /&gt;&lt;br /&gt;SQL&gt; Exec DBMS_MONITOR.session_trace_enable(149,3643, TRUE, TRUE)&lt;br /&gt;SQL&gt; Exec DBMS_MONITOR session_trace_disable(149,3643)&lt;br /&gt;&lt;br /&gt;or &lt;br /&gt;&lt;br /&gt;SQL&gt; Exec DBMS_SUPPORT.START_TRACE_IN_SESSION (149,3643, TRUE, TRUE);&lt;br /&gt;SQL&gt; Exec DBMS_SUPPORT.STOP_TRACE_IN_SESSION (149,3643);&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6667412126970829804?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6667412126970829804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6667412126970829804&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6667412126970829804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6667412126970829804'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/event-10046-tracing-others-session.html' title='Event 10046 Tracing (Other&apos;s session)'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7985357907474645327</id><published>2009-07-29T05:31:00.003+05:30</published><updated>2009-07-29T05:34:51.500+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tracing'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Event 10046 Tracing</title><content type='html'>To enable and disable event 10046 tracing for the current session,&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter session set events ‘10046 TRACE NAME CONTEXT FOREVER, LEVEL 12’;&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter session set events ‘10046 TRACE NAME CONTEXT OFF’;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To enable and disable event 10046 tracing for the entire instance&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter system set events ‘10046 TRACE NAME CONTEXT FOREVER, LEVEL 12’;&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter system set events ‘10046 TRACE NAME CONTEXT OFF’;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7985357907474645327?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7985357907474645327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7985357907474645327&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7985357907474645327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7985357907474645327'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/event-10046-tracing.html' title='Event 10046 Tracing'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7317571402485459754</id><published>2009-07-29T05:28:00.002+05:30</published><updated>2009-07-29T05:31:18.469+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tracing'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Event 10046 Levels</title><content type='html'>Event 10046 enables us to collect extended SQL trace data. There are four levels in event 10046 tracing. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Level 1&lt;/strong&gt;: Standard tracing with parse, fetch, execute, Explain plan.&lt;br /&gt;&lt;strong&gt;Level 2&lt;/strong&gt;: Level 1 + Bind Variables&lt;br /&gt;&lt;strong&gt;Level 3&lt;/strong&gt;: Level 1 + Waits&lt;br /&gt;&lt;strong&gt;Level 4&lt;/strong&gt;: Level 1 + Bind Variables + Waits&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7317571402485459754?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7317571402485459754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7317571402485459754&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7317571402485459754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7317571402485459754'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/event-10046-levels.html' title='Event 10046 Levels'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-2633855089571197795</id><published>2009-07-29T05:21:00.002+05:30</published><updated>2009-07-29T05:26:54.650+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tracing'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Tracing other's session</title><content type='html'>To trace other user's session prior to Oracle 10g use DBMS_SUPPORT package.&lt;br /&gt;&lt;br /&gt;If the package is not available, run the following script.&lt;br /&gt;&lt;br /&gt;SQL&gt;&lt;strong&gt;@$ORACLE_HOME/rdbms/admin/dbmssupp.sql&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Syntax&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;DBMS_SUPPORT.START_TRACE_IN_SESSION(sid, serial#, wait, bind)&lt;br /&gt;DBMS_SUPPORT.STOP_TRACE_IN_SESSION(sid, serial#)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To start tracing&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Exec DBMS_SUPPORT.START_TRACE_IN_SESSION (149,3643, TRUE, TRUE);&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To stop tracing&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Exec DBMS_SUPPORT.STOP_TRACE_IN_SESSION (149,3643);&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-2633855089571197795?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/2633855089571197795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=2633855089571197795&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2633855089571197795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2633855089571197795'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/tracing-others-session.html' title='Tracing other&apos;s session'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-2300975689030926691</id><published>2009-07-29T05:14:00.002+05:30</published><updated>2009-07-29T05:21:34.637+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tracing'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Tracing other's session in 10g</title><content type='html'>To trace the other user's session in Oracle 10g,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 1&lt;/strong&gt;: Set the init parameter.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter system set TIMED_STATISTICS = TRUE;&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter system set MAX_DUMP_SIZE = UNLIMITED;&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter system set TRACEFILE_IDENTIFIER = ‘mytrace’;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 2&lt;/strong&gt;: Enable Tracing&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec DBMS_MONITOR.session_trace_enable(149,3643, TRUE, TRUE);&lt;/strong&gt;&lt;br /&gt;Where &lt;br /&gt;1st Parameter: Session ID. (null means current session’s ID)&lt;br /&gt;2nd Parameter: Serial # (null means current session’s serial#)&lt;br /&gt;3rd Parameter: Trace Waits (Default True)&lt;br /&gt;4th Parameter: Bind Variables (Default False)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 3&lt;/strong&gt;: Disable Tracing&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec DBMS_MONITOR.SESSION_TRACE_DISABLE(149,3643);&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-2300975689030926691?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/2300975689030926691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=2300975689030926691&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2300975689030926691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2300975689030926691'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/tracing-others-session-in-10g.html' title='Tracing other&apos;s session in 10g'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3911618406757017127</id><published>2009-07-29T04:03:00.002+05:30</published><updated>2009-07-29T05:14:04.924+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tracing'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Tracing own session</title><content type='html'>To trace your own session follow the steps below,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 1&lt;/strong&gt;: Set the init parameters&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter session set TIMED_STATISTICS = TRUE;&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter session set MAX_DUMP_SIZE = UNLIMITED;&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter session set TRACEFILE_IDENTIFIER = ‘mytrace’;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Timed_statistics – Allows tracing to occur on the system.&lt;br /&gt;Max_dump_size – Maximum size of the trace file in OS level blocks.&lt;br /&gt;Tracefile_identifier - To identify the trace file generated for a particular session in the udump.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 2&lt;/strong&gt;: Enable the tracing&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter session set SQL_TRACE='TRUE';&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;or in 10g&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Execute DBMS_MONITOR.SESSION_TRACE_ENABLE(NULL,NULL, TRUE, TRUE);&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Note: In Oracle 10g SQL_TRACE parameter has been deprecated.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 3&lt;/strong&gt;: Disable the Tracing&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter session set SQL_TRACE= False;&lt;/strong&gt;&lt;br /&gt;Or &lt;br /&gt;SQL&gt; &lt;strong&gt;Execute DBMS_MONITOR.SESSION_TRACE_DISABLE;&lt;/strong&gt;&lt;br /&gt;Or&lt;br /&gt;SQL&gt; &lt;strong&gt;Exit&lt;/strong&gt;; &lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3911618406757017127?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3911618406757017127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3911618406757017127&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3911618406757017127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3911618406757017127'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/tracing-own-session.html' title='Tracing own session'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-144559867217646852</id><published>2009-07-13T04:07:00.002+05:30</published><updated>2009-07-13T04:25:32.944+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tracing'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Autotrace</title><content type='html'>Autotrace facility enables you to produce the EXPLAIN PLAN and Execution statistics for SQL Statement in SQL*Plus.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Requirements to use Autotrace&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. You must have a plan table to generate Explain plan report. If you don't have it then execute the following script to create it.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;@$ORACLE_HOME/rdbms/admin/utlxplan.sql&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;2. You must have PLUSTRACE role. If you don't have it, then run the following script as a SYS user and grant the role.&lt;br /&gt;&lt;br /&gt;$ sqlplus / as sysdba&lt;br /&gt;SQL&gt; &lt;strong&gt;@$ORACLE_HOME/sqlplus/admin/plustrce.sql&lt;/strong&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Grant plustrace to scott;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Turning on Autotrace&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Set Autotrace ON explain&lt;/strong&gt;  -- Generates only Explain plan report&lt;br /&gt;SQL&gt; &lt;strong&gt;Set Autotrace ON Statistics&lt;/strong&gt; -- Generates only Statistics report&lt;br /&gt;SQL&gt; &lt;strong&gt;Set Autotrace ON&lt;/strong&gt; -- Generates both Explain plan and Statistics.&lt;br /&gt;&lt;br /&gt;SQL&gt;&lt;strong&gt; Set Autotrace OFF&lt;/strong&gt; -- Turns off tracing&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Sample Output&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; Select * from test;&lt;br /&gt;&lt;br /&gt;no rows selected&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Execution Plan&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;     0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=2 Card=1 Bytes=22)   &lt;br /&gt;     1    0   TABLE ACCESS (FULL) OF 'TEST' (TABLE) (Cost=2 Card=1 Bytes=22)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Statistics&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;       314  recursive calls &lt;br /&gt;         0  db block gets&lt;br /&gt;        55  consistent gets&lt;br /&gt;         5  physical reads&lt;br /&gt;         0  redo size&lt;br /&gt;       143  bytes sent via SQL*Net to client    &lt;br /&gt;       210  bytes received via SQL*Net from client &lt;br /&gt;         1  SQL*Net roundtrips to/from client&lt;br /&gt;         5  sorts (memory)    &lt;br /&gt;         0  sorts (disk)   &lt;br /&gt;         0  rows processed       &lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-144559867217646852?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/144559867217646852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=144559867217646852&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/144559867217646852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/144559867217646852'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/autotrace.html' title='Autotrace'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-8418314220568244276</id><published>2009-07-06T17:15:00.002+05:30</published><updated>2009-07-06T17:20:53.544+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='10g Features'/><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Hit Ratio in Oracle 10g</title><content type='html'>From Oracle 10g, there is no need to run huge scripts to get the hit ratios. You can query the v$sysmetric view to get the hit ratios.&lt;br /&gt;&lt;br /&gt;SQL&gt; select * from gv$sysmetric&lt;br /&gt;where  metric_name like '%Ratio%'&lt;br /&gt;and intsize_csec in (Select max(intsize_csec) from gv$sysmetric where inst_id =&amp;id)&lt;br /&gt;and inst_id = &amp;&amp;id;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-8418314220568244276?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/8418314220568244276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=8418314220568244276&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8418314220568244276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8418314220568244276'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-in-oracle-10g.html' title='Hit Ratio in Oracle 10g'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-793126601077602426</id><published>2009-07-05T20:00:00.003+05:30</published><updated>2009-07-17T12:40:28.430+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Rollback Segment Wait to Get Ratio</title><content type='html'>The ratio of sum of WAITS to the sum of GETS in v$rollstat should be less than 5%.&lt;br /&gt;&lt;br /&gt;The V$WAITSTAT view is used to find the contention in rollback segment header block.&lt;br /&gt;A value over zero in the column UNDO_HEADER means there is contention.&lt;br /&gt;&lt;br /&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get the ratio.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-793126601077602426?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/793126601077602426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=793126601077602426&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/793126601077602426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/793126601077602426'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/rollback-segment-wait-to-get-ratio.html' title='Rollback Segment Wait to Get Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3129818703489746563</id><published>2009-07-05T19:58:00.002+05:30</published><updated>2009-07-17T12:45:58.716+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Database Wait Time to CPU Time Ratio</title><content type='html'>This ratio is available from Oracle 10g.&lt;br /&gt;&lt;br /&gt;CPU Time Ratio - Percentage of total time used in performing user requests.&lt;br /&gt;Wait Time Ratio- Percentage of total time used in waiting for resources.&lt;br /&gt;&lt;br /&gt;When Wait time ratio is higher than the CPU time ratio, perform the Wait event analysis.&lt;br /&gt;&lt;br /&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get the ratio.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3129818703489746563?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3129818703489746563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3129818703489746563&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3129818703489746563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3129818703489746563'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/database-wait-time-to-cpu-time.html' title='Database Wait Time to CPU Time Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6925519035404931445</id><published>2009-07-05T19:53:00.003+05:30</published><updated>2009-07-17T13:25:18.842+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Chained Row Ratio</title><content type='html'>Chained rows occurs as a result of row migration or row chaining.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Row chaining&lt;/strong&gt; When the size of a row is more than the size of the data block, then the row is spread across multiple blocks. This is called Row Chaining.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Row migration&lt;/strong&gt; When an update increases the row size and there is no free space available in the data block to accommodate the row, the entire row will be moved to a new block leaving only a pointer in the original block. A row migration can also lead to a row chain if the row becomes large enough.&lt;br /&gt;&lt;br /&gt;Row chaining affects index reads and full table scans. You cannot do much to avoid row chaining, one way is to calculate the length of the row and put it in a tablespace that has large block size. &lt;br /&gt;&lt;br /&gt;Row migration does not affect full table scans but affects index reads. Increase the PCTFREE to allow more space for future updates. Re-organize or recreate the tables and indexes to avoid row migration.&lt;br /&gt;&lt;br /&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get the ratio.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6925519035404931445?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6925519035404931445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6925519035404931445&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6925519035404931445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6925519035404931445'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/chained-row-ratio.html' title='Chained Row Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7774922263475837589</id><published>2009-07-05T19:38:00.003+05:30</published><updated>2009-07-17T13:32:10.964+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Latch Hit Ratio</title><content type='html'>It gives the ratio of the total number of latch misses to the number of latch gets for all latches. If the latch hit ratio is below 99 percent, it indicates a latching problem. A latch free wait event in the Top 5 wait events section of the statspack or AWR report confirms that. You must refer to the Latch section of the report for further analysis.&lt;br /&gt;&lt;br /&gt;Run the &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get the ratio.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7774922263475837589?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7774922263475837589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7774922263475837589&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7774922263475837589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7774922263475837589'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/latch-hit-ratio.html' title='Latch Hit Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-332168050295990676</id><published>2009-07-05T19:30:00.003+05:30</published><updated>2009-07-30T02:51:08.845+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Execute to Parse Ratio</title><content type='html'>This is an important ratio. Formula for finding this ratio:&lt;br /&gt;&lt;br /&gt;Execute to Parse ratio = &lt;strong&gt;100 - (Parse count/ Executions * 100)&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If you parse once and execute more, then the ratio will be near to 100%.&lt;br /&gt;If you parse every time you execute, then the ratio will be near to 1%.&lt;br /&gt;&lt;br /&gt;When the value is too low, it means the SQL is not sharable.&lt;br /&gt;&lt;br /&gt;You may need to set CURSOR_SHARING to FORCE. Set SESSION_CACHED_CURSORS init parameter. Increase OPEN_CURSORS init parameter.&lt;br /&gt;&lt;br /&gt;Find out which SQL statement has parse count equal to execute count. These statements are contributing to inefficient cursor sharing.&lt;br /&gt;&lt;br /&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get the ratio&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-332168050295990676?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/332168050295990676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=332168050295990676&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/332168050295990676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/332168050295990676'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/execute-to-parse-ratio.html' title='Execute to Parse Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3544012193987317245</id><published>2009-07-05T19:18:00.004+05:30</published><updated>2009-07-30T02:41:51.206+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Parse CPU to Parse Elapsed</title><content type='html'>Parse CPU means amount of CPU time used for parsing.&lt;br /&gt;Parse Elapsed means amount of clock time used for parsing.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Parse Elapsed = Parse CPU + Wait time.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Parse CPU to Parse Elapsed ratio = &lt;strong&gt;100 * parse CPU/ parse Elapsed&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Ideally Parse Elapsed must be equal to Parse CPU, i.e., only CPU time is used for parsing. In that case the ratio is 100%. If wait time is more then the ratio will be less.&lt;br /&gt;&lt;br /&gt;Low Value for this ratio is an indicator of latching problem. Investigate the latch sections in AWR and Statspack report for contention on library cache and shared pool latches.&lt;br /&gt;&lt;br /&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get the ratio.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3544012193987317245?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3544012193987317245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3544012193987317245&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3544012193987317245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3544012193987317245'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/parse-cpu-to-parse-elapsed.html' title='Parse CPU to Parse Elapsed'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-816353628397699590</id><published>2009-07-05T19:15:00.003+05:30</published><updated>2009-07-31T03:20:30.930+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Soft Parse Ratio</title><content type='html'>This ratio indicates the percentage of parses that were soft.&lt;br /&gt;&lt;br /&gt;Soft-Parse Ratio = 100 * Soft Parse/(Hard + Soft Parse)&lt;br /&gt;&lt;br /&gt;If the ratio is low, that is less than 80%, then set CURSOR_SHARING init parameter to FORCE.&lt;br /&gt;&lt;br /&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get the ratio.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-816353628397699590?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/816353628397699590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=816353628397699590&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/816353628397699590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/816353628397699590'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/soft-parse-ratio.html' title='Soft Parse Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3587475598292076532</id><published>2009-07-05T17:49:00.003+05:30</published><updated>2009-07-05T17:55:21.900+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Pin Hit Ratio</title><content type='html'>The Pin Hit Ratio indicates how frequently the executed statements found the associated parsed SQL already in the Library Cache.&lt;br /&gt;&lt;br /&gt;The value should be greater than 95%. Else increase shared pool size.&lt;br /&gt;&lt;br /&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get the ratio.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3587475598292076532?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3587475598292076532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3587475598292076532&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3587475598292076532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3587475598292076532'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/pin-hit-ratio.html' title='Pin Hit Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-1961322395968199238</id><published>2009-07-03T02:45:00.003+05:30</published><updated>2009-07-31T03:32:31.589+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Get Hit Ratio</title><content type='html'>Get Hit Ratio = GETS/GETHITS&lt;br /&gt;&lt;br /&gt;GETS = Statements that require parsing&lt;br /&gt;GETHITS =  Parsed statements already in the memory.&lt;br /&gt;&lt;br /&gt;The value should be greater than 95. In 10g the get hit ratio will be too low, this is a bug.&lt;br /&gt;&lt;br /&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get the ratio&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-1961322395968199238?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/1961322395968199238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=1961322395968199238&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1961322395968199238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1961322395968199238'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/get-hit-ratio.html' title='Get Hit Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-5248352290589492222</id><published>2009-07-03T02:39:00.002+05:30</published><updated>2009-07-03T02:45:29.103+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Dictionary Cache Hit Ratio</title><content type='html'>It indicates the percentage of time the data dictionary objects are read from memory rather than on disk.&lt;br /&gt;&lt;br /&gt;The value should be greater than 95%. If less then increase the shared pool (SHARED_POOL_SIZE init parameter).&lt;br /&gt;&lt;br /&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get dictionary cache hit ratio.&lt;br /&gt;&lt;br /&gt;A cache miss on Dictionary and Library cache is more expensive than a miss on buffer cache.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-5248352290589492222?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/5248352290589492222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=5248352290589492222&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5248352290589492222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5248352290589492222'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/dictionary-cache-hit-ratio.html' title='Dictionary Cache Hit Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-1802903704055159658</id><published>2009-07-03T02:32:00.003+05:30</published><updated>2009-07-31T03:24:04.907+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Library Cache Reload Ratio</title><content type='html'>When the Shared pool is not large enough, it cannot hold the parsed statement for a long time. When new statements are parsed the header of the old parsed statement is kept in the shared pool and the body is pushed out of the memory. Reloads occur when the body of previously parsed statements had to be loaded again.&lt;br /&gt;&lt;br /&gt;If the value of this ratio is greater than 1% then increase the shared pool by increasing the SHARED_POOL_SIZE init parameter.&lt;br /&gt;&lt;br /&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script for library cache reload ratio.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-1802903704055159658?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/1802903704055159658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=1802903704055159658&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1802903704055159658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1802903704055159658'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/library-cache-reload-ratio.html' title='Library Cache Reload Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-8854663526303166662</id><published>2009-07-03T02:23:00.004+05:30</published><updated>2009-07-31T03:24:54.093+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Library Cache Hit Ratio</title><content type='html'>This gives the percentage of Pin requests that result in pin hits.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PINS&lt;/strong&gt;: No. of times an item in the library cache was executed.&lt;br /&gt;&lt;strong&gt;PINHITS&lt;/strong&gt;: No. of times an item was executed without reloads.&lt;br /&gt;&lt;br /&gt;The value should be greater than 95%. If less then,&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Increase the SHARED_POOL_SIZE init parameter.&lt;/li&gt;&lt;li&gt;CURSOR_SHARING may need to be set to FORCE.&lt;/li&gt;&lt;li&gt;SHARED_POOL_RESERVED_SIZE may be too small.&lt;/li&gt;&lt;li&gt;Inefficient sharing of SQL, PLSQL or JAVA code.&lt;/li&gt;&lt;li&gt;Insufficient use of bind variables.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;scrip to get the Library hit ratio.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-8854663526303166662?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/8854663526303166662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=8854663526303166662&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8854663526303166662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8854663526303166662'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/library-cache-hit-ratio.html' title='Library Cache Hit Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-5721559252314210040</id><published>2009-07-03T02:16:00.004+05:30</published><updated>2009-07-30T02:59:49.661+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>In (PGA) Memory Sort Ratio</title><content type='html'>Sorts occur either in memory or in disk.&lt;br /&gt;&lt;br /&gt;Memory - PGA (Faster no I/O involved)&lt;br /&gt;Disk - Temporary Tablespace (Slower I/O involved)&lt;br /&gt;&lt;br /&gt;This ratio indicates the amount of sorts performed in the Memory rather than on Disk.&lt;br /&gt;&lt;br /&gt;OLTP database should have value greater than 95%.&lt;br /&gt;&lt;br /&gt;If the value is less than 95%, then&lt;br /&gt;&lt;ul&gt;&lt;li&gt;When not using Automatic PGA memory, then increase SORT_AREA_SIZE init parameter.&lt;/li&gt;&lt;li&gt;When using Automatic PGA memory, then increase PGA_AGGREGATE_TARGET init parameter.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Run &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get the memory-sort ratio.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-5721559252314210040?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/5721559252314210040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=5721559252314210040&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5721559252314210040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/5721559252314210040'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/in-pga-memory-sort-ratio.html' title='In (PGA) Memory Sort Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6732100896345771685</id><published>2009-07-03T02:08:00.003+05:30</published><updated>2009-07-30T05:39:36.836+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Buffer and Redo Nowait Ratio</title><content type='html'>&lt;strong&gt;Buffer Nowait Ratio&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If this ratio is greater than 99%, then it indicates that the server process is able to obtain the buffer immediately.&lt;br /&gt;&lt;br /&gt;If this ratio is less than 99%, then it indicates that the server process has to wait for something before obtaining the buffer. You must investigate the Buffer Waits Section of Statspack/ AWR report.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Redo Nowait Ratio&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It indicates the percentage of time the redo space is immediately available without having to wait. A low value indicates small redo log file and frequent redo switch. The value should be greater than 99%. If not then increase the redo log file size or use faster disks for redo log files.&lt;br /&gt;&lt;br /&gt;Run the &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio &lt;/a&gt;script to get the ratios.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6732100896345771685?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6732100896345771685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6732100896345771685&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6732100896345771685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6732100896345771685'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/buffer-and-redo-nowait-ratio.html' title='Buffer and Redo Nowait Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6338855919864940975</id><published>2009-07-03T01:59:00.004+05:30</published><updated>2009-07-30T02:53:36.943+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><title type='text'>Buffer Cache Hit Ratio</title><content type='html'>When the hit ratio is&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Too Low (&lt;50):&lt;/strong&gt; Check for indexing. Consider increasing the buffer cache. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Too High (&gt;99):&lt;/strong&gt; Check for bad SQL or index that is causing a surge in the logical reads (High Buffer_gets SQL).&lt;/p&gt;&lt;p&gt;A high hit ratio is not an indication of good performance, but a low ratio is a sign of performance that can be improved. &lt;/p&gt;&lt;p&gt;Run the script &lt;a href="http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html"&gt;hitratio&lt;/a&gt; script to get the buffer cache hit ratio.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6338855919864940975?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6338855919864940975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6338855919864940975&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6338855919864940975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6338855919864940975'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/buffer-cache-hit-ratio.html' title='Buffer Cache Hit Ratio'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-8126645493675202222</id><published>2009-07-01T05:15:00.002+05:30</published><updated>2009-07-01T05:18:25.183+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hit Ratio Analysis'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Hit Ratio Script</title><content type='html'>Execute the following script for the various hit ratio&lt;br /&gt;&lt;br /&gt;column Ratio format a30&lt;br /&gt;column Value format a5&lt;br /&gt;TTITLE '******Hit Ratio Report*****'&lt;br /&gt;BTITLE '*****End of Report*****'&lt;br /&gt;&lt;br /&gt;SELECT cur.inst_id, 'Buffer Cache Hit Ratio ' "Ratio", to_char(ROUND((1-(phy.value / (cur.value + con.value)))*100,2)) "Value"&lt;br /&gt;      FROM gv$sysstat cur, gv$sysstat con, gv$sysstat phy&lt;br /&gt;   WHERE cur.name = 'db block gets'&lt;br /&gt;    AND con.name = 'consistent gets'&lt;br /&gt;    AND phy.name = 'physical reads'&lt;br /&gt;    and phy.inst_id=1&lt;br /&gt;    and cur.inst_id=1&lt;br /&gt;    and con.inst_id=1&lt;br /&gt;union all&lt;br /&gt;SELECT cur.inst_id,'Buffer Cache Hit Ratio ' "Ratio", to_char(ROUND((1-(phy.value / (cur.value + con.value)))*100,2)) "Buffer Cache Hit Ratio"&lt;br /&gt;      FROM gv$sysstat cur, gv$sysstat con, gv$sysstat phy&lt;br /&gt;   WHERE cur.name = 'db block gets'&lt;br /&gt;    AND con.name = 'consistent gets'&lt;br /&gt;    AND phy.name = 'physical reads'&lt;br /&gt;    and phy.inst_id=2&lt;br /&gt;    and cur.inst_id=2&lt;br /&gt;    and con.inst_id=2&lt;br /&gt;union&lt;br /&gt;SELECT inst_id, 'Library Cache Hit Ratio ' "Ratio", to_char(Round(sum(pins) / (sum(pins)+sum(reloads)) * 100,2)) "Library Cache Hit Ratio"&lt;br /&gt;FROM gv$librarycache group by inst_id&lt;br /&gt;union&lt;br /&gt;SELECT inst_id,'Dictionary Cache Hit Ratio ' "Ratio",  to_char(ROUND ((1 - (SUM (getmisses) / SUM (gets))) * 100, 2)) "Percentage"&lt;br /&gt;FROM gv$rowcache group by inst_id&lt;br /&gt;union&lt;br /&gt;Select inst_id, 'Get Hit Ratio ' "Ratio",to_char(round((sum(GETHITRATIO))*100,2)) "Get Hit"--, round((sum(PINHITRATIO))*100,2)"Pin Hit"&lt;br /&gt;FROM GV$librarycache&lt;br /&gt;where namespace in ('SQL AREA')&lt;br /&gt;group by inst_id&lt;br /&gt;union&lt;br /&gt;Select inst_id, 'Pin Hit Ratio ' "Ratio", to_char(round((sum(PINHITRATIO))*100,2))"Pin Hit"&lt;br /&gt;FROM GV$librarycache&lt;br /&gt;where namespace in ('SQL AREA')&lt;br /&gt;group by inst_id&lt;br /&gt;union&lt;br /&gt;select a.inst_id,'Soft-Parse Ratio ' "Ratio",  to_char(round(100 * ((a.value - b.value) / a.value ),2))  "Soft-Parse Ratio"&lt;br /&gt;from (select inst_id,value from gv$sysstat where name like 'parse count (total)') a,&lt;br /&gt;(select inst_id, value from gv$sysstat where name like 'parse count (hard)')   b&lt;br /&gt;where a.inst_id = b.inst_id&lt;br /&gt;union&lt;br /&gt;select a.inst_id,'Execute Parse Ratio ' "Ratio", to_char(round(100 - ((a.value / b.value)* 100),2)) "Execute Parse Ratio"&lt;br /&gt;from (Select inst_id, value from gv$sysstat where name like 'parse count (total)') a,&lt;br /&gt;(select inst_id, value from gv$sysstat where name like 'execute count') b&lt;br /&gt;where a.inst_id = b.inst_id&lt;br /&gt;union&lt;br /&gt;select a.inst_id,'Parse CPU to Elapsed Ratio ' "Ratio", to_char(round((a.value / b.value)* 100,2)) "Parse CPU to Elapsed Ratio"&lt;br /&gt;from (Select inst_id, value from gv$sysstat where name like 'parse time cpu') a,&lt;br /&gt;(select inst_id, value from gv$sysstat where name like 'parse time elapsed') b&lt;br /&gt;where a.inst_id = b.inst_id&lt;br /&gt;union&lt;br /&gt;Select a.inst_id,'Chained Row Ratio ' "Ratio", to_char(round((a.val/b.val)*100,2)) "Chained Row Ratio"&lt;br /&gt;from (SELECT inst_id, SUM(value) val FROM gV$SYSSTAT WHERE name = 'table fetch continued row' group by inst_id) a,&lt;br /&gt;(SELECT inst_id, SUM(value) val FROM gV$SYSSTAT WHERE name IN ('table scan rows gotten', 'table fetch by rowid') group by inst_id) b&lt;br /&gt;where a.inst_id = b.inst_id&lt;br /&gt;union&lt;br /&gt;Select inst_id,'Latch Hit Ratio ' "Ratio", to_char(round(((sum(gets) - sum(misses))/sum(gets))*100,2)) "Latch Hit Ratio"&lt;br /&gt;from gv$latch&lt;br /&gt;group by inst_id&lt;br /&gt;/* Available from 10g&lt;br /&gt;union&lt;br /&gt;select inst_id, metric_name, to_char(value)&lt;br /&gt;from gv$sysmetric&lt;br /&gt;where metric_name in ( 'Database Wait Time Ratio', 'Database CPU Time Ratio')&lt;br /&gt;and intsize_csec = (select max(intsize_csec) from gv$sysmetric)&lt;br /&gt;order by inst_id&lt;br /&gt;*/&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-8126645493675202222?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/8126645493675202222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=8126645493675202222&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8126645493675202222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8126645493675202222'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/hit-ratio-script.html' title='Hit Ratio Script'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7228729672911531045</id><published>2009-07-01T00:55:00.003+05:30</published><updated>2009-07-31T04:29:49.401+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AWR'/><category scheme='http://www.blogger.com/atom/ns#' term='10g Features'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>AWR Basic Info</title><content type='html'>By default the Automatic Workload Repository (AWR) is populated every hour.&lt;br /&gt;&lt;br /&gt;Tablespace: &lt;strong&gt;SYSAUX&lt;/strong&gt; (Data is stored in this tablespace)&lt;br /&gt;Background Process : &lt;strong&gt;MMON&lt;/strong&gt; (Flushes data from Memory to Disk)&lt;br /&gt;&lt;br /&gt;To find the space used by AWR query the V$SYSAUX_OCCUPANTS view.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select * From V$SYSAUX_OCCUPANTS where occupant_name like '%AWR%';&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The space_usage_kbytes column gives the amount of space used by AWR in kilobytes.&lt;br /&gt;&lt;br /&gt;To find the oldest AWR information&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select dbms_stats.get_stats_history_availability From dual;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To find the retention period for AWR. Default is 7 days.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select dbms_stats.get_stats_history_retention From dual;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To change the retention period for AWR&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Exec dbms_stats.alter_stats_history_retention(10);&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7228729672911531045?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7228729672911531045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7228729672911531045&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7228729672911531045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7228729672911531045'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/awr-basic-info.html' title='AWR Basic Info'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7054690985940594670</id><published>2009-07-01T00:47:00.002+05:30</published><updated>2009-07-01T00:51:38.675+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Basic database Info</title><content type='html'>To get the basic database information such as the database name, dbid, creation time, archiving information etc query V$DATABASE view. &lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select * From V$DATABASE;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To view the oracle version query V$VERSION view.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select * From V$VERSION;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7054690985940594670?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7054690985940594670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7054690985940594670&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7054690985940594670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7054690985940594670'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/basic-database-info.html' title='Basic database Info'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7554930725507531555</id><published>2009-07-01T00:43:00.001+05:30</published><updated>2009-07-01T00:45:12.080+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>DBA Views</title><content type='html'>To get the underlying objects that make up the DBA_ views query the DBA_VIEWS view.&lt;br /&gt;&lt;br /&gt;SQL&gt;&lt;strong&gt; Select view_name, text From DBA_VIEWS where view_name like 'DBA%';&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7554930725507531555?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7554930725507531555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7554930725507531555&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7554930725507531555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7554930725507531555'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/dba-views.html' title='DBA Views'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3284177852807772512</id><published>2009-07-01T00:20:00.003+05:30</published><updated>2009-07-01T00:39:28.674+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>V$ Views</title><content type='html'>To get the list of all the V$ or GV$ Views, query the V$FIXED_TABLE view.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select name From V$FIXED_TABLE where name like 'V%';&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The difference between V$ and GV$ is GV$ includes inst_id column which is used in RAC instances.&lt;br /&gt;&lt;br /&gt;V$ views are created from the X$ tables. To know the details of the underlying X$ tables from which the v$ views are created, query the V$_FIXED_VIEW_DEFINITION view.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Select * From V$FIXED_VIEW_DEFINITION where view_name like 'GV$SESSION';&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3284177852807772512?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3284177852807772512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3284177852807772512&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3284177852807772512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3284177852807772512'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/07/v-views.html' title='V$ Views'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6418801384250116318</id><published>2009-06-18T03:44:00.002+05:30</published><updated>2009-06-18T03:48:48.328+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Top 10 Memory Abusers</title><content type='html'>The following query will show the top 10 SQL statements using memory as a percentage of the entire system.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL&gt;&lt;/strong&gt; select sum(pct_bufgets)&lt;br /&gt;from ( select rank() over ( order by buffer_gets desc ) as rank_bufgets,&lt;br /&gt;to_char(100 * ratio_to_report(buffer_gets) over (), '999.99') pct_bufgets&lt;br /&gt;from v$sqlarea )&lt;br /&gt;where rank_bufgets &lt; 11;&lt;br /&gt;&lt;br /&gt;If the percentage is&lt;br /&gt;&lt;br /&gt;&lt; 5% then good performance&lt;br /&gt;5 - 20% then average performance&lt;br /&gt;&gt; 25% then bad performance&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6418801384250116318?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6418801384250116318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6418801384250116318&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6418801384250116318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6418801384250116318'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/06/top-10-memory-abusers.html' title='Top 10 Memory Abusers'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-4696282463152966245</id><published>2009-06-18T03:12:00.002+05:30</published><updated>2009-06-18T03:18:36.748+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>Top 10 Disk-Read Abusers</title><content type='html'>The following query will show the top 10 heaviest disk reading statements as a percentage of the entire system.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL&lt;/strong&gt;&gt; select sum(pct_bufgets)&lt;br /&gt;from ( select rank() over ( order by disk_reads desc ) as rank_bufgets,&lt;br /&gt;to_char(100 * ratio_to_report(disk_reads) over (), '999.99') pct_bufgets&lt;br /&gt;from v$sqlarea )&lt;br /&gt;where rank_bufgets &lt; 11;&lt;br /&gt;&lt;br /&gt;If the percentage is&lt;br /&gt;&lt;br /&gt;&lt; 5% then good performance&lt;br /&gt;5 - 20% then average performance&lt;br /&gt;&gt;25% then bad performance &lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-4696282463152966245?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/4696282463152966245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=4696282463152966245&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4696282463152966245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4696282463152966245'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/06/top-10-disk-read-abusers.html' title='Top 10 Disk-Read Abusers'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-118780648297011976</id><published>2009-06-16T00:51:00.001+05:30</published><updated>2009-06-16T00:53:11.546+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='10g Features'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><category scheme='http://www.blogger.com/atom/ns#' term='Shrink'/><title type='text'>Segment Shrink Restrictions</title><content type='html'>You cannot shrink:&lt;br /&gt;&lt;br /&gt;• UNDO segments&lt;br /&gt;• Temporary segments&lt;br /&gt;• Clustered tables&lt;br /&gt;• Tables with a colmn of datatype LONG&lt;br /&gt;• LOB indexes&lt;br /&gt;• IOT mapping tables and IOT overflow segments&lt;br /&gt;• Tables with MVIEWS with ON COMMIT&lt;br /&gt;• Tables with MVIEWS which are based on ROWIDs&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-118780648297011976?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/118780648297011976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=118780648297011976&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/118780648297011976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/118780648297011976'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/06/segment-shrink-restrictions.html' title='Segment Shrink Restrictions'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7619835759213666575</id><published>2009-06-16T00:41:00.003+05:30</published><updated>2009-06-16T00:59:35.072+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='10g Features'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><category scheme='http://www.blogger.com/atom/ns#' term='Shrink'/><title type='text'>Segment Shrinking</title><content type='html'>Starting with ORACLE 10gR1 we can use a new feature for adjusting the high watermark, it is called segment shrinking and is only possible for segments which use Automatic Segment Space Management and locally managed.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Steps to perform segment shrink.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 1&lt;/strong&gt;: Enable Row movement for the segment&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;ALTER TABLE scott.emp ENABLE ROW MOVEMENT;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 2&lt;/strong&gt;: Recover space and amend the high water mark (HWM).&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;ALTER TABLE scott.emp SHRINK SPACE;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 2a&lt;/strong&gt;: Recover space, but don't amend the high water mark (HWM).&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;ALTER TABLE scott.emp SHRINK SPACE COMPACT;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 3&lt;/strong&gt;: Recover space for the object and all dependant objects.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;ALTER TABLE scott.emp SHRINK SPACE CASCADE;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note&lt;/strong&gt;: The COMPACT option allows the shrink operation to be broken into two stages. First the rows are moved using the COMPACT option but the HWM is not adjusted so no parsed SQL statements are invalidated. The HWM can be adjusted at a later date by reissuing the statement without the COMPACT option. At this point any dependant SQL statements will need to be reparsed.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7619835759213666575?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7619835759213666575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7619835759213666575&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7619835759213666575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7619835759213666575'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/06/segment-shrinking.html' title='Segment Shrinking'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-4146165696554201636</id><published>2009-06-16T00:26:00.002+05:30</published><updated>2009-06-16T00:29:38.658+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='10g Features'/><category scheme='http://www.blogger.com/atom/ns#' term='ADDM'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>ADDM Views</title><content type='html'>The following views are useful for ADDM analysis.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;DBA_ADVISOR_TASKS&lt;/strong&gt; - Basic information about existing tasks&lt;br /&gt;&lt;strong&gt;DBA_ADVISOR_LOG&lt;/strong&gt;  - Status information about existing tasks&lt;br /&gt;&lt;strong&gt;DBA_ADVISOR_FINDINGS&lt;/strong&gt; - Findings identified for an existing tasks&lt;br /&gt;&lt;strong&gt;DBA_ADVISOR_RECOMMENDATIONS&lt;/strong&gt; – Reco for problems identified by tasks&lt;br /&gt;&lt;strong&gt;DBA_ADVISOR_ACTIONS&lt;/strong&gt; - Actions to be taken for the existing tasks&lt;br /&gt;&lt;strong&gt;DBA_ADVISOR_RATIONALE&lt;/strong&gt; - Rationale for ADDM recommendations.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-4146165696554201636?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/4146165696554201636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=4146165696554201636&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4146165696554201636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4146165696554201636'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/06/addm-views.html' title='ADDM Views'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-4050893167052124681</id><published>2009-06-16T00:21:00.002+05:30</published><updated>2009-07-31T04:32:00.834+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='10g Features'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='ADDM'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Tuning'/><title type='text'>ADDM Findings, Recos and Actions</title><content type='html'>&lt;strong&gt;Query to find ADDM Findings, Recommendations and Actions&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL&lt;/strong&gt;&gt; Select a.execution_end, b.type, b.impact, d.rank, d.type,&lt;br /&gt;'Message:'b.message MESSAGE,&lt;br /&gt;'Command To correct:'c.command COMMAND,&lt;br /&gt;'Action Message:'c.message ACTION_MESSAGE&lt;br /&gt;From dba_advisor_tasks a, dba_advisor_findings b,Dba_advisor_actions c, dba_advisor_recommendations d&lt;br /&gt;Where a.owner=b.owner&lt;br /&gt;and a.task_id=b.task_id&lt;br /&gt;And b.task_id=d.task_id&lt;br /&gt;and b.finding_id=d.finding_id&lt;br /&gt;And a.task_id=c.task_id&lt;br /&gt;and d.rec_id=c.rec_Id&lt;br /&gt;And a.task_name like 'ADDM%'&lt;br /&gt;and a.status='COMPLETED'&lt;br /&gt;and to_char(execution_end,'dd/mm/yyyy')='12/06/2009'&lt;br /&gt;Order by 3 desc;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-4050893167052124681?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/4050893167052124681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=4050893167052124681&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4050893167052124681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4050893167052124681'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/06/addm-findings-recos-and-actions.html' title='ADDM Findings, Recos and Actions'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6448451360263026285</id><published>2009-05-28T21:00:00.002+05:30</published><updated>2009-05-28T21:06:08.217+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Errors'/><category scheme='http://www.blogger.com/atom/ns#' term='OEM'/><title type='text'>OEM dbconsole Start Failed</title><content type='html'>&lt;strong&gt;Problem&lt;/strong&gt; The dbconsole was working fine before the timezone setting (DST) was changed, but after the timezone was changed it stopped working.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;solution&lt;/strong&gt; When OEM dbconsole is started the agent timezone setting is recorded in the emd.properties. Everytime you start the dbconsole it will check the current timezone setting with the value in the emd.properties. When the two values mismatch the dbconsole will not start. We have to update the setting for the agent timezone. &lt;br /&gt;&lt;br /&gt;To update follow the steps given below.&lt;br /&gt;&lt;br /&gt;Check the timezone setting in /etc/environment.&lt;br /&gt;The setting for TZ must be one of the supported timezone setting listed in the ORACLE_HOME/sysman/admin/supportedtzs.lst file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$ &lt;strong&gt;export ORACLE_SID=gcprod1&lt;/strong&gt;&lt;br /&gt;$ &lt;strong&gt;emctl config agent updateTZ&lt;/strong&gt;&lt;br /&gt;The output could be a different setting from the TZ in /etc/environment.&lt;br /&gt;&lt;br /&gt;$ &lt;strong&gt;emctl stop dbconsole&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;$ &lt;strong&gt;emctl config agent updateTZ&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;$ &lt;strong&gt;emctl start dbconsole&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Vinod D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6448451360263026285?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6448451360263026285/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6448451360263026285&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6448451360263026285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6448451360263026285'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/05/oem-dbconsole-start-failed.html' title='OEM dbconsole Start Failed'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3306808050398491885</id><published>2009-05-06T03:46:00.001+05:30</published><updated>2009-05-06T04:06:38.190+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><category scheme='http://www.blogger.com/atom/ns#' term='Temporary Tablespace'/><title type='text'>Bugs in Temp segments in RAC</title><content type='html'>&lt;strong&gt;Bug 2934117&lt;/strong&gt; :  ORA-1652:Can’t acquire free extents owned by other node.The scripts fail as a result of the error&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Solution&lt;/strong&gt;: Do not use default temporary tablespace for a RAC configuration.&lt;br /&gt;&lt;u&gt;Workaround&lt;/u&gt;&lt;br /&gt;Step1: Create a small temporary tablespace def_temp.&lt;br /&gt;Step2: Set it as default temporary tablespace.&lt;br /&gt;Step3: Create other normal temporary tablespace temp.&lt;br /&gt;Step4: For all users change the temporary tablespace to temp.&lt;br /&gt;Step5: Shutdown immediate all instances.&lt;br /&gt;Step6: Startup all instances&lt;br /&gt;Step7: when new users are created set the temporary tablespace as temp.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Bug 2858082&lt;/strong&gt;  : Even if the free extents are available, ORA-1652 occurs in Alert Log on RAC. The scripts do not fail but errors appear inside alert.log of RAC instances.&lt;br /&gt;&lt;br /&gt;In this bug although scripts that need Temp tablespace space due to Sort Operations (order by, group by, join, etc) are successfull we may see this error message inside alert.log of RAC instances.&lt;br /&gt;&lt;br /&gt;When a RAC instance fills its own sort pool of extents, instead of allocation new extents it may ask for free temp extents from the other RAC instances. During this operation the ORA-1652 may appear inside the alert.log although the operation has succeeded.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Solution&lt;/strong&gt;: You may ignore this error.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3306808050398491885?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3306808050398491885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3306808050398491885&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3306808050398491885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3306808050398491885'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/05/bugs-in-temp-segments-in-rac.html' title='Bugs in Temp segments in RAC'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-7564277449489303981</id><published>2009-05-06T03:31:00.003+05:30</published><updated>2009-07-31T04:04:57.927+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Errors'/><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><category scheme='http://www.blogger.com/atom/ns#' term='Temporary Tablespace'/><title type='text'>ORA-01652 (RAC)</title><content type='html'>&lt;strong&gt;ORA-01652 Unable to extend temp segment by XX in tablespace tbs.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In an RAC environment this error occurs in the following situation&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Out of space in temporary tablespace.&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;/u&gt;&lt;br /&gt;SQL&gt; select sum(free_blocks) from gv$sort_segment where tablespace_name = '&lt;temp&gt;';&lt;br /&gt;&lt;br /&gt;If the query returns 0 then increase the size of the tablespace.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Error occurs even though space is available in the tablespace&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;This situation occurs when we are requesting the sort segments from another instance. This should be considered as a warning to the DBA that there is instance contention for temporary tablespace.&lt;br /&gt;&lt;br /&gt;Use the following query to monitor the instance wise temp space usage.&lt;br /&gt;&lt;br /&gt;SQL&gt; select inst_id, tablespace_name, total_blocks, used_blocks, free_blocks from gv$sort_segment;&lt;br /&gt;&lt;br /&gt;Unlike non RAC environment, where the statement fails when this error occurs, the sort operations in RAC is successful.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-7564277449489303981?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/7564277449489303981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=7564277449489303981&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7564277449489303981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/7564277449489303981'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/05/ora-01652-rac.html' title='ORA-01652 (RAC)'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3136288170449695623</id><published>2009-05-06T03:10:00.003+05:30</published><updated>2009-07-31T03:56:31.773+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Errors'/><category scheme='http://www.blogger.com/atom/ns#' term='Temporary Tablespace'/><title type='text'>ORA-01652 (Non RAC)</title><content type='html'>&lt;strong&gt;ORA-01652 Unable to extend temp segment by XX in tablespace tbs.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The space in the temporary tablespace is not enough to allocate for the temp segment.&lt;br /&gt;&lt;br /&gt;A temp segment, in the temporary tablespace, is not always used for sorting. It is sometimes used for creating objects such as index, CTAS etc. At the end of the creation these temp segments are converted in to the real objects. Hence rebuilding/creating a large index requires large temp segments thereby resulting in ORA-01652.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Solution&lt;/strong&gt;: Increase the size of the temp tablespace by using the statement&lt;br /&gt;&lt;br /&gt;SQL&gt; Alter tablespace add tempfile ‘path’ size ‘size’;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3136288170449695623?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3136288170449695623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3136288170449695623&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3136288170449695623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3136288170449695623'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/05/ora-01652-non-rac.html' title='ORA-01652 (Non RAC)'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-1327473509079372121</id><published>2009-04-10T02:30:00.005+05:30</published><updated>2009-10-11T02:39:01.419+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='Temporary Tablespace'/><title type='text'>Monitor Temporary Tablespace</title><content type='html'>&lt;strong&gt;To monitor the temporary Segment Usage &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SELECT A.tablespace_name tablespace, D.mb_total,&lt;br /&gt;SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_used,&lt;br /&gt;D.mb_total - SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_free&lt;br /&gt;FROM v$sort_segment A,&lt;br /&gt;( &lt;span style="color:#3366ff;"&gt;SELECT B.name, C.block_size, SUM (C.bytes) / 1024 / 1024 mb_total &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;FROM v$tablespace B, v$tempfile C&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;WHERE B.ts#= C.ts# &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;GROUP BY B.name, C.block_size&lt;/span&gt; ) D&lt;br /&gt;WHERE A.tablespace_name = D.name&lt;br /&gt;GROUP by A.tablespace_name, D.mb_total;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To monitor the temporary storage usage per session&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SELECT S.sid , S.serial#, S.username, S.osuser, P.spid,&lt;br /&gt;S.module, P.program, SUM (T.blocks) * TBS.block_size / 1024 / 1024 mb_used,&lt;br /&gt;T.tablespace, COUNT(*) statements&lt;br /&gt;FROM v$sort_usage T, v$session S, dba_tablespaces TBS, v$process P&lt;br /&gt;WHERE T.session_addr = S.saddr&lt;br /&gt;AND S.paddr = P.addr&lt;br /&gt;AND T.tablespace = TBS.tablespace_name&lt;br /&gt;GROUP BY S.sid, S.serial#, S.username, S.osuser, P.spid, S.module,&lt;br /&gt;P.program, TBS.block_size, T.tablespace&lt;br /&gt;ORDER BY sid, serial#;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To monitor the Temporary storage usage per statement&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SELECT S.sid , S.serial#, S.username, Q.hash_value, Q.sql_text,&lt;br /&gt;T.blocks * TBS.block_size / 1024 / 1024 mb_used, T.tablespace&lt;br /&gt;FROM v$sort_usage T, v$session S, v$sqlarea Q, dba_tablespaces TBS&lt;br /&gt;WHERE T.session_addr = S.saddrAND T.sqladdr = Q.address&lt;br /&gt;AND T.tablespace = TBS.tablespace_name&lt;br /&gt;ORDER BY S.sid;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-1327473509079372121?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/1327473509079372121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=1327473509079372121&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1327473509079372121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1327473509079372121'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/04/monitor-temporary-tablespace.html' title='Monitor Temporary Tablespace'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-3970335775285230887</id><published>2009-04-09T05:02:00.000+05:30</published><updated>2009-04-09T05:04:26.899+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Undo Tablespace'/><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>Switching Undo Tablepace in RAC</title><content type='html'>Switching undo tablespace is similar to single instance. If you want to switch the tablespace for instance 1, then issue the following statement from that instance&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;strong&gt;Alter system set undo_tablespace = undotbs10 scope = both;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;At the time of the switch, the instances maintain control of both the old and new undo tablespaces.The old undo tablespace is marked as pending-offline until all the transactions using it are completed.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-3970335775285230887?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/3970335775285230887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=3970335775285230887&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3970335775285230887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/3970335775285230887'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/04/switching-undo-tablepace-in-rac.html' title='Switching Undo Tablepace in RAC'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-6251295955008330568</id><published>2009-04-09T04:59:00.002+05:30</published><updated>2009-04-09T05:05:00.294+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Undo Tablespace'/><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>Undo Tablespace in RAC</title><content type='html'>In RAC there must be one UNDO tablepsace for each instance. The entry in pfile must be (for 2 node instance prod1 and prod2)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;prod1.undo_tablespace=UNDOTBS1&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;prod2.undo_tablespace=UNDOTBS2&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Each instance can use only one undo tablespace at a time (store undo information for that instance only).&lt;/li&gt;&lt;br /&gt;&lt;li&gt;All instances can read block from any or all undo tablespaces for the purpose of Read consistency.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Undo management mode must be same for all instances. Either Auto or Manual.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-6251295955008330568?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/6251295955008330568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=6251295955008330568&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6251295955008330568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/6251295955008330568'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/04/undo-tablespace-in-rac_09.html' title='Undo Tablespace in RAC'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-4508970889010714472</id><published>2009-04-09T01:38:00.002+05:30</published><updated>2009-04-09T01:42:29.604+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Undo Tablespace'/><title type='text'>Undo Advisor</title><content type='html'>Undo Advisor is used to do the following,&lt;br /&gt;&lt;br /&gt;1. Set the low threshold value for undo retention.&lt;br /&gt;&lt;br /&gt;2. Estimate the size of undo tablespace you'll need for various undo retention setting.&lt;br /&gt;&lt;br /&gt;3. Use different analysis time periods to get the recommendations, in the form of graph, about the right undo tablespace size for varying undo retention length.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-4508970889010714472?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/4508970889010714472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=4508970889010714472&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4508970889010714472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/4508970889010714472'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/04/undo-advisor.html' title='Undo Advisor'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-2896596828923990298</id><published>2009-04-09T01:18:00.004+05:30</published><updated>2009-04-09T01:29:17.085+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Undo Tablespace'/><title type='text'>Tuning Undo - Part 2</title><content type='html'>The V$UNDOSTAT provides useful information in tuning the undo tablespace.&lt;br /&gt;&lt;br /&gt;The V$UNDOSTAT view holds undo statistics for 10 minute intervals. This view represents statistics across instances, thus each begin time, end time, and statistics value will be a unique interval per instance.&lt;br /&gt;&lt;br /&gt;Important columns&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;UNXPSTEALCNT&lt;/strong&gt;   - The number of attempts when unexpired blocks were stolen from other undo segments to satisfy space requests.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;UNXPBLKRELCNT&lt;/strong&gt;  - The number of unexpired blocks removed from undo segments to be used by other transactions&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;UNXPBLKREUCNT&lt;/strong&gt;  - The number of unexpired undo blocks reused by transactions.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;EXPSTEALCNT&lt;/strong&gt;    - The number of attempts when expired extents were stolen from other undo segments to satisfy a space requests&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;EXPBLKRELCNT&lt;/strong&gt;   - The number of expired extents stolen from other undo segments to satisfy a space request&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;EXPBLKREUCNT&lt;/strong&gt;   - The number of expired undo blocks reused within the same undo segments&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SSOLDERRCNT&lt;/strong&gt;    - The number of ORA-1555 errors that occurred during the interval&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;NOSPACEERRCNT&lt;/strong&gt;  - The number of Out-of-Space errors&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Inference&lt;/u&gt;&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;1. When the columns UNXPSTEALCNT through EXPBLKREUCNT hold non-zero values, it is an indication of space pressure.&lt;br /&gt;&lt;br /&gt;2. If the column SSOLDERRCNT is non-zero, then UNDO_RETENTION is not properly set.&lt;br /&gt;&lt;br /&gt;3. If the column NOSPACEERRCNT is non-zero, then there is a serious space problem.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-2896596828923990298?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/2896596828923990298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=2896596828923990298&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2896596828923990298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/2896596828923990298'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/04/tuning-undo-part-2.html' title='Tuning Undo - Part 2'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-8153753307034626753</id><published>2009-04-09T01:09:00.003+05:30</published><updated>2009-04-09T01:18:27.272+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Undo Tablespace'/><title type='text'>Tuning Undo - Part 1</title><content type='html'>Execute the following query,&lt;br /&gt;&lt;br /&gt;SELECT inst_id, to_char(begin_time,'MM/DD/YYYY HH24:MI') begin_time, UNXPSTEALCNT "Unexpired Stolen", EXPSTEALCNT "Expired Reused",&lt;br /&gt;SSOLDERRCNT "Snapshot err", NOSPACEERRCNT "Out of space err",&lt;br /&gt;MAXQUERYLEN, tuned_undoretention&lt;br /&gt;FROM gv$undostat&lt;br /&gt;WHERE begin_time between to_date('&lt;start_query_time&gt;','MM/DD/YYYY HH24:MI:SS')and to_date('&lt;end_query_time&gt;','MM/DD/YYYY HH24:MI:SS')&lt;br /&gt;ORDER BY inst_id, begin_time;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Problem 1&lt;/strong&gt;: Out of space error and unexpired extents are stolen&lt;br /&gt;&lt;strong&gt;Solution&lt;/strong&gt; : Increase the undo Tablespace size.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Problem 2&lt;/strong&gt;: Snapshot error and Expired extents are reused&lt;br /&gt;&lt;strong&gt;Solution&lt;/strong&gt;: Increase the undo Retention&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-8153753307034626753?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/8153753307034626753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=8153753307034626753&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8153753307034626753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/8153753307034626753'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/04/tuning-undo-part-1.html' title='Tuning Undo - Part 1'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7487187377448369202.post-1569166347453428718</id><published>2009-04-09T00:53:00.002+05:30</published><updated>2009-04-09T01:09:36.369+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Undo Tablespace'/><title type='text'>Undo Extents</title><content type='html'>In Undo Segments there are three types of extents, they are&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Unexpired Extents&lt;/strong&gt; - Undo data whose age is less than the undo retention period.&lt;br /&gt;&lt;strong&gt;Expired Extents&lt;/strong&gt; - Undo data whose age is greater than the undo retention period.&lt;br /&gt;&lt;strong&gt;Active Extents&lt;/strong&gt; - Undo data that is part of the active transaction.&lt;br /&gt;&lt;br /&gt;The sequence for using extents is as follows,&lt;br /&gt;&lt;br /&gt;1. A new extent will be allocated from the undo tablespace when the requirement arises.  As undo is being written to an undo segment, if the undo reaches the end of the current extent and the next extent contains expired undo then the new undo (generated by the current transaction) will wrap into that expired extent, in preference to grabbing a free extent from the undo tablespace free extent pool.&lt;br /&gt;&lt;br /&gt;2. If this fails because of no available free extents and we cannot autoextend the datafile, then Oracle tries to steal an expired extent from another undo segment.&lt;br /&gt;&lt;br /&gt;3. If it still fails because there are no extents with expired status then Oracle tries to reuse an unexpired extent from the current undo segment.&lt;br /&gt;&lt;br /&gt;4. If even that fails, Oracle tries to steal an unexpired extent from another undo segment.&lt;br /&gt;&lt;br /&gt;5. If all the above fails, an Out-Of-Space error will be reported. &lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7487187377448369202-1569166347453428718?l=oracledba-vinod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracledba-vinod.blogspot.com/feeds/1569166347453428718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7487187377448369202&amp;postID=1569166347453428718&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1569166347453428718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7487187377448369202/posts/default/1569166347453428718'/><link rel='alternate' type='text/html' href='http://oracledba-vinod.blogspot.com/2009/04/undo-extents.html' title='Undo Extents'/><author><name>Vinod Dhandapani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://bp0.blogger.com/_8i4YP447MmQ/SH-KRovlAiI/AAAAAAAAAAU/SG-2tAUkCmg/S220/vinod.jpg'/></author><thr:total>0</thr:total></entry></feed>
