<?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-5521622797995039163</id><updated>2012-02-16T10:26:23.492+02:00</updated><title type='text'>Oracle Day to Day blog</title><subtitle type='html'>Agis Stamatopoulos</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default?start-index=101&amp;max-results=100'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>180</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3629905212928660867</id><published>2012-02-10T15:06:00.001+02:00</published><updated>2012-02-10T15:06:17.977+02:00</updated><title type='text'>Data warehouse Sizing and Haddop Capacity Planning</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;A very nice article called:&amp;nbsp;&lt;a href="http://blogs.oracle.com/datawarehousing/entry/sizing_for_data_volume_or"&gt;Sizing for data volume or performance or both?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hadoop Capacity Planning from Cloudera:&amp;nbsp;&lt;a href="http://www.cloudera.com/blog/2010/08/hadoophbase-capacity-planning/"&gt;Hadoop/HBase Capacity Planning&lt;/a&gt;&lt;br /&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/5521622797995039163-3629905212928660867?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3629905212928660867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2012/02/data-warehouse-sizing-and-haddop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3629905212928660867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3629905212928660867'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2012/02/data-warehouse-sizing-and-haddop.html' title='Data warehouse Sizing and Haddop Capacity Planning'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-381925735089891658</id><published>2012-02-08T11:08:00.001+02:00</published><updated>2012-02-08T11:08:47.192+02:00</updated><title type='text'>Oracle Scheduler does not works as expected</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;It is possible that the Oracle Scheduler to hang if you change a windows attribute and make a mistake or after upgrades from 10.2.0.3 - &amp;gt; 10.2.0.5.&lt;br /&gt;&lt;br /&gt;Usually you will see that shceduled jobs that no executed correct and in the cjq trace files you will find the follwoing:&lt;br /&gt;&lt;br /&gt;jsksGetCurWindowId:1 got error 27468&lt;br /&gt;jsksGetCurWindowId:1 got error 27468&lt;br /&gt;&lt;br /&gt;So if you fall into this please execute the follwoing as sysdba (Assuming default scheduler windows):&lt;br /&gt;&lt;br /&gt;variable v number;&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;&amp;nbsp; dbms_scheduler.disable('WEEKEND_WINDOW');&lt;br /&gt;&lt;code class="km"&gt;&amp;nbsp;dbms_scheduler.disable('WEEKNIGHT_WINDOW');&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;&amp;nbsp;dbms_scheduler.set_scheduler_attribute('SCHEDULER_DISABLED',&amp;nbsp;'TRUE');&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;&amp;nbsp;commit;&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;end;&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;/&lt;/code&gt;&lt;code class="km"&gt;&lt;br /&gt;&lt;/code&gt;&lt;code class="km"&gt;&lt;/code&gt;&lt;code class="km"&gt;select value from v$parameter where name='job_queue_processes';&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;--Please keep this number (assume J)&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;&lt;br /&gt;&lt;/code&gt;&lt;code class="km"&gt;alter&amp;nbsp;system&amp;nbsp;set&amp;nbsp;job_queue_processes=0;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;begin&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;&amp;nbsp;dbms_ijob.set_enabled(FALSE);&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;&amp;nbsp;commit;&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;end;&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;/&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;&lt;br /&gt;-- 2 times is a must&lt;br /&gt;alter&amp;nbsp;system&amp;nbsp;flush&amp;nbsp;shared_pool;&lt;br /&gt;alter&amp;nbsp;system&amp;nbsp;flush&amp;nbsp;shared_pool;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;declare&lt;br /&gt;cwo&amp;nbsp;number;&lt;br /&gt;begin&lt;br /&gt;select&amp;nbsp;o.obj#&amp;nbsp;into&amp;nbsp;cwo&amp;nbsp;from&amp;nbsp;sys.obj$&amp;nbsp;o&amp;nbsp;where&lt;br /&gt;o.name&amp;nbsp;=&amp;nbsp;'CURRENT_OPEN_WINDOW'&amp;nbsp;and&amp;nbsp;o.namespace&amp;nbsp;=&amp;nbsp;51;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;update&amp;nbsp;sys.scheduler$_global_attribute&amp;nbsp;set&amp;nbsp;value&amp;nbsp;=&amp;nbsp;null,&amp;nbsp;attr_tstamp&amp;nbsp;=&amp;nbsp;null,&lt;br /&gt;attr_intv&amp;nbsp;=&amp;nbsp;null,&amp;nbsp;additional_info&amp;nbsp;=&amp;nbsp;null&amp;nbsp;where&amp;nbsp;obj#&amp;nbsp;=&amp;nbsp;cwo;&lt;br /&gt;&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;div style="font-family: 'Times New Roman';"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;begin&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman';"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;&amp;nbsp;dbms_ijob.set_enabled(TRUE);&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman';"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;&amp;nbsp;commit;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman';"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;end;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman';"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;/&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;code class="km"&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;code class="km"&gt;&lt;/code&gt;&lt;br /&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;begin&lt;br /&gt;&amp;nbsp;dbms_scheduler.enable('WEEKEND_WINDOW');&lt;br /&gt;&amp;nbsp;dbms_scheduler.enable('WEEKNIGHT_WINDOW');&lt;br /&gt;&amp;nbsp;dbms_scheduler.set_scheduler_attribute('SCHEDULER_DISABLED',&amp;nbsp;'FALSE');&lt;br /&gt;&amp;nbsp;dbms_ijob.set_enabled(TRUE);&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;&amp;nbsp;commit;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;end;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;/&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;&lt;br /&gt;--Set job_queue_processes to its original setting using J&lt;br /&gt;alter&amp;nbsp;system&amp;nbsp;set&amp;nbsp;job_queue_processes=J;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;&lt;br /&gt;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;exit;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;&lt;br /&gt;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;Please check the the windows group you have created (MAINTENACE_WINDOW_GROUP) is the default in order to see if your windows are members or need to be added again(Use EM).&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;&lt;br /&gt;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;&lt;b&gt;References&amp;nbsp;&lt;/b&gt;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;&lt;code class="km"&gt;Oracle Support Note ID:&amp;nbsp;731678.1&lt;br /&gt;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;code class="km"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&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/5521622797995039163-381925735089891658?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/381925735089891658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2012/02/oracle-scheduler-does-not-works-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/381925735089891658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/381925735089891658'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2012/02/oracle-scheduler-does-not-works-as.html' title='Oracle Scheduler does not works as expected'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-395607318610470662</id><published>2011-12-21T16:08:00.000+02:00</published><updated>2011-12-21T16:08:20.049+02:00</updated><title type='text'>Give permissions to non oracle users to run sqlplus (10gR2)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;After 10.2.0.2 patch set a script that gives more "relaxing" permissions to users other than oracle and not belonging to dba or oinstall group was suspended.&lt;br /&gt;&lt;br /&gt;If you want to give permissions for other users to run Oracle Utils run :&lt;br /&gt;As oracle user:&lt;br /&gt;$ORACLE_HOME/install/changePerm.sh&lt;br /&gt;&lt;br /&gt;And you are done&lt;br /&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/5521622797995039163-395607318610470662?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/395607318610470662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/12/give-permissions-to-non-oracle-users-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/395607318610470662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/395607318610470662'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/12/give-permissions-to-non-oracle-users-to.html' title='Give permissions to non oracle users to run sqlplus (10gR2)'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-690627554057758624</id><published>2011-11-22T12:14:00.000+02:00</published><updated>2011-11-22T12:14:04.306+02:00</updated><title type='text'>Upgrade 10gR2 RAC to 11gR2 RAC on Linux</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Step By Step: Upgrade 10gR2 RAC to 11gR2 RAC on Oracle Enterprise Linux 5 (32bit)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.linkedin.com/news?viewArticle=&amp;amp;articleID=893905840&amp;amp;gid=77941&amp;amp;type=member&amp;amp;item=79060380&amp;amp;articleURL=http%3A%2F%2Fwww%2Eoracledba%2Eorg%2Fupgrade%2FUpgrade_10gR2_RAC_to_11gR2_RAC%2Ehtm&amp;amp;urlhash=CulU&amp;amp;goback=%2Egde_77941_member_79060380"&gt;http://www.linkedin.com/news?viewArticle=&amp;amp;articleID=893905840&amp;amp;gid=77941&amp;amp;type=member&amp;amp;item=79060380&amp;amp;articleURL=http%3A%2F%2Fwww%2Eoracledba%2Eorg%2Fupgrade%2FUpgrade_10gR2_RAC_to_11gR2_RAC%2Ehtm&amp;amp;urlhash=CulU&amp;amp;goback=%2Egde_77941_member_79060380&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Many thanks to Bhavin Hingu for sharing this document.&lt;br /&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/5521622797995039163-690627554057758624?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/690627554057758624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/11/upgrade-10gr2-rac-to-11gr2-rac-on-linux.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/690627554057758624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/690627554057758624'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/11/upgrade-10gr2-rac-to-11gr2-rac-on-linux.html' title='Upgrade 10gR2 RAC to 11gR2 RAC on Linux'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-6293255187188874013</id><published>2011-11-15T11:04:00.000+02:00</published><updated>2011-11-15T11:04:55.236+02:00</updated><title type='text'>DBConsole  Login Error Message: Element Not Found</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In DBConsole After click the login button in Internet Explorer (IE) 8 the following error is returned :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Webpage error details&lt;br /&gt;&lt;br /&gt;User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Zune 4.7)&lt;br /&gt;Timestamp: Tue, 15 Nov 2011 07:20:09 UTC&lt;br /&gt;Message: Element not found.&lt;br /&gt;&lt;br /&gt;Line: 2815&lt;br /&gt;Char: 1&lt;br /&gt;Code: 0&lt;br /&gt;URI: http://labdb01:1158/em/cabo/jsLibs/Common2_2_24_6.js&lt;br /&gt;&lt;br /&gt;FIX :&lt;br /&gt;1. Click Start, Run and type Regedit.exe&lt;br /&gt;2. Backup the registry&lt;br /&gt;3. Navigate to the following location:&lt;br /&gt;HKEY_CLASSES_ROOT\TypeLib\{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1\0\win32&lt;br /&gt;4. Double-click (default) and set C:\WINDOWS\system32\ieframe.dll as its data&lt;br /&gt;5. Quit Registry Editor.&lt;br /&gt;&lt;br /&gt;References : Metalink Note ID :&amp;nbsp;Note.1093475&lt;br /&gt;&lt;br /&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/5521622797995039163-6293255187188874013?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/6293255187188874013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/11/dbconsole-login-error-message-element.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/6293255187188874013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/6293255187188874013'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/11/dbconsole-login-error-message-element.html' title='DBConsole  Login Error Message: Element Not Found'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-4562478868901841359</id><published>2011-11-04T14:45:00.001+02:00</published><updated>2011-11-04T14:45:54.236+02:00</updated><title type='text'>Spliting a very large table into pieces using rowid nonverlapping ranges</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Below you will find a script that spliits a table into pieces in order to effectively process the data.&lt;br /&gt;Just replace [OWNER] with the table owner , [TABLE_NAME] with your table and [CHUNK] with the number of pieces you want.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select grp,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbms_rowid.rowid_create( 1, data_object_id, lo_fno, lo_block, 0 ) min_rid,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbms_rowid.rowid_create( 1, data_object_id, hi_fno, hi_block, 10000 ) max_rid&lt;br /&gt;&amp;nbsp; from (&lt;br /&gt;select distinct grp,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;first_value(relative_fno)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; over (partition by grp order by relative_fno, block_id&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rows between unbounded preceding and unbounded following) lo_fno,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;first_value(block_id &amp;nbsp; &amp;nbsp;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;over (partition by grp order by relative_fno, block_id&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rows between unbounded preceding and unbounded following) lo_block,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;last_value(relative_fno)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; over (partition by grp order by relative_fno, block_id&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rows between unbounded preceding and unbounded following) hi_fno,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;last_value(block_id+blocks-1)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; over (partition by grp order by relative_fno, block_id&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rows between unbounded preceding and unbounded following) hi_block,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sum(blocks) over (partition by grp) sum_blocks&lt;br /&gt;&amp;nbsp; from (&lt;br /&gt;select relative_fno,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;block_id,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;blocks,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;trunc( (sum(blocks) over (order by relative_fno, block_id)-0.01) /&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (sum(blocks) over ()/[CHUNK]) ) grp&lt;br /&gt;&amp;nbsp; from dba_extents&lt;br /&gt;&amp;nbsp;where segment_name = upper('[TABLE_NAME]')&lt;br /&gt;&amp;nbsp; &amp;nbsp;and owner = '[OWNER]'&lt;br /&gt;&amp;nbsp; &amp;nbsp;order by block_id&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;),&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(select data_object_id from dba_objects where owner='[OWNER]' and object_name = upper('[TABLE_NAME]') )&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;order by grp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;References&lt;br /&gt;Tom Kyte's "Efective Oracle by Design"&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-4562478868901841359?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/4562478868901841359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/11/spliting-very-large-table-to-pieces.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4562478868901841359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4562478868901841359'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/11/spliting-very-large-table-to-pieces.html' title='Spliting a very large table into pieces using rowid nonverlapping ranges'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-5791775873960050667</id><published>2011-11-02T13:42:00.003+02:00</published><updated>2011-11-03T15:48:42.883+02:00</updated><title type='text'>Parallel transaction recovery and SMON Monitoring</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;A very nice article to read when SMON is the actual blocker on other Database Sessions.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.dba-oracle.com/t_parallel_transaction_recovery_undo_cpu.htm"&gt;http://www.dba-oracle.com/t_parallel_transaction_recovery_undo_cpu.htm&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now in case the transaction rollback involves index block or when you querying the&amp;nbsp;V$FAST_START_SERVERS you find only one server to be working then you may force disable the parallel rollback.&lt;br /&gt;&lt;br /&gt;Follow these steps (If in RAC you must apply to all instances) :&lt;br /&gt;1) Find SMON PID&lt;br /&gt;select pid, program from v$process where program like '%SMON%';&lt;br /&gt;2) on SQLPLUS as sysdba disable SMON transaction rollback/recovery&lt;br /&gt;&lt;br /&gt;oradebug setorapid &amp;lt;SMON's Oracle PID&amp;gt;&lt;br /&gt;oradebug event 10513 trace name context forever, level 2&lt;br /&gt;&lt;br /&gt;3)&amp;nbsp;Kill the PQ slaves that are doing parallel transaction recovery.&lt;br /&gt;&lt;br /&gt;select 'alter system kill session '''||s.sid||','||s.serial#||''' immediate;', 'kill -9 '||spid&lt;br /&gt;from v$session s, (select * from v$process&lt;br /&gt;&amp;nbsp;where pid in (select pid from v$fast_start_servers)) p&lt;br /&gt;&amp;nbsp;where s.paddr=p.addr;&lt;br /&gt;&lt;br /&gt;4) &amp;nbsp;Disable parallel rollback&lt;br /&gt;alter system set fast_start_parallel_rollback=false;&lt;br /&gt;5) Enable SMON to do serial recovery again&lt;br /&gt;&lt;br /&gt;oradebug setorapid &amp;lt;SMON's Oracle PID&amp;gt;&lt;br /&gt;oradebug event 10513 trace name context off&lt;br /&gt;oradebug wakeup 13&lt;br /&gt;6) Use the follwoing query to verify serial recovery and estimate when it will finish&lt;br /&gt;&lt;br /&gt;select&lt;br /&gt;usn,&lt;br /&gt;state,&lt;br /&gt;undoblockstotal "Total",&lt;br /&gt;undoblocksdone "Done",&lt;br /&gt;undoblockstotal-undoblocksdone "ToDo",&lt;br /&gt;decode(cputime,0,'unknown',sysdate+(((undoblockstotal-undoblocksdone) / (undoblocksdone / cputime)) / 86400)) "Estimated time to complete" &amp;nbsp;&lt;br /&gt;from v$fast_start_transactions;&lt;br /&gt;&lt;br /&gt;REFERENCES :&lt;br /&gt;&lt;br /&gt;Metalink Note Ids:&amp;nbsp;414242.1, 238507.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-5791775873960050667?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/5791775873960050667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/11/parallel-transaction-recovery-and-smon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5791775873960050667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5791775873960050667'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/11/parallel-transaction-recovery-and-smon.html' title='Parallel transaction recovery and SMON Monitoring'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-7081966120308260796</id><published>2011-10-18T16:16:00.000+02:00</published><updated>2011-10-18T16:16:30.729+02:00</updated><title type='text'>Change ASM sys password (10gR2)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In order to change an ASM instance sys password do the following :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1.&amp;nbsp;Set the ORACLE_HOME and ORACLE_SID to the&amp;nbsp;ASM instance&lt;br /&gt;2. connect /as sysdba from sqlplus&lt;br /&gt;3. If the value of the "remote_login_passwordfile" parameter in the pfile or spfile is EXCLUSIVE, you must shutdown your instance &lt;br /&gt;4. RENAME or DELETE the existing password file PWD&amp;lt;SID&amp;gt;.ora( In Windows) /&amp;nbsp;orapw&amp;lt;SID&amp;gt; ( in UNIX)&lt;br /&gt;5. Issue the command: &lt;br /&gt;WINDOWS:&lt;br /&gt;orapwd file=&amp;lt;ORACLE_HOME&amp;gt;/database/PWD&amp;lt;SID&amp;gt;.ora password=&amp;lt;sys_password&amp;gt;&lt;br /&gt;&lt;br /&gt;UNIX:&lt;br /&gt;orapwd file=&amp;lt;ORACLE_HOME&amp;gt;/dbs/orapw&amp;lt;SID&amp;gt;&amp;nbsp;password=&amp;lt;sys_password&amp;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/5521622797995039163-7081966120308260796?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/7081966120308260796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/10/change-asm-sys-password-10gr2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7081966120308260796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7081966120308260796'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/10/change-asm-sys-password-10gr2.html' title='Change ASM sys password (10gR2)'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3614890394110338028</id><published>2011-10-06T11:32:00.006+02:00</published><updated>2011-10-06T11:43:19.496+02:00</updated><title type='text'>R.I.P Steve Jobs</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Even i never had an Apple Product , and sometimes i was against Apple principles on their products&amp;nbsp;, i beleive that its speech on the&amp;nbsp;Standford University gradution on 2005&amp;nbsp;&amp;nbsp;its the most inspring speach i have ever heard and try to follwoing its priciples.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://3.gvt0.com/vi/UF8uR6Z6KLc/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/UF8uR6Z6KLc&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266"  src="http://www.youtube.com/v/UF8uR6Z6KLc&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;These are my favorites !!!&lt;br /&gt;&lt;b&gt;&lt;i&gt;"you've got to find what you love&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style="display: inline !important;"&gt;&lt;b&gt;&lt;i&gt;the only way to do great work is to love what you do&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;if you have'nt find it yet keep lookinf and don't settle&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;connect the dots looking backwords&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;death is the destination we all share&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;have the courage follow your heart and intuition they somehow allready know what you trully want to becomae, everything else is secondary&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;stay hungry, stay foolish"&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;R.I.P Steve Jobs&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-3614890394110338028?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3614890394110338028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/10/rip-steve-jobs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3614890394110338028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3614890394110338028'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/10/rip-steve-jobs.html' title='R.I.P Steve Jobs'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-687599478578543593</id><published>2011-09-21T09:39:00.000+02:00</published><updated>2011-09-21T09:39:57.307+02:00</updated><title type='text'>Oracle Database Security</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #444444; font-family: Georgia, Palatino, 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 27px;"&gt;A very good collection of presentations on database security from Oracle University's instructor Pete Finnigan&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.petefinnigan.com/orasec.htm"&gt;http://www.petefinnigan.com/orasec.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Very useful.&lt;br /&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/5521622797995039163-687599478578543593?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/687599478578543593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/09/oracle-database-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/687599478578543593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/687599478578543593'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/09/oracle-database-security.html' title='Oracle Database Security'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3154332175722400999</id><published>2011-08-31T12:05:00.000+02:00</published><updated>2011-08-31T12:05:01.194+02:00</updated><title type='text'>Troubleshooting ORA-600 &amp; ORA-7445 internal errors : An initial guide</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;This is an excellent article written in Oracle Magazine issue for September/Oct 2011 by Tamzin Ascroft, a senior principal support&amp;nbsp;engineer in Oracle Database Support, so check this on &lt;a href="http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51support-453463.html"&gt;http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51support-453463.html&lt;/a&gt;&lt;br /&gt;&lt;br /&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/5521622797995039163-3154332175722400999?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3154332175722400999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/08/troubleshooting-ora-600-ora-7445.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3154332175722400999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3154332175722400999'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/08/troubleshooting-ora-600-ora-7445.html' title='Troubleshooting ORA-600 &amp; ORA-7445 internal errors : An initial guide'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2682328210137702154</id><published>2011-07-25T09:54:00.000+02:00</published><updated>2011-07-25T09:54:10.614+02:00</updated><title type='text'>From Arup Nanda Blog : Resolving Gaps in Data Guard Apply Using Incremental RMAN Backup</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"&gt;A must read blog post of a real life situation for resolving standby gaps !!!&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"&gt;&lt;a href="http://arup.blogspot.com/2009/12/resolving-gaps-in-data-guard-apply.html"&gt;http://arup.blogspot.com/2009/12/resolving-gaps-in-data-guard-apply.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 22px;"&gt;&lt;br /&gt;&lt;/span&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/5521622797995039163-2682328210137702154?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2682328210137702154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/07/from-arup-nanda-blog-resolving-gaps-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2682328210137702154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2682328210137702154'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/07/from-arup-nanda-blog-resolving-gaps-in.html' title='From Arup Nanda Blog : Resolving Gaps in Data Guard Apply Using Incremental RMAN Backup'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2002282178744680506</id><published>2011-07-20T09:57:00.000+02:00</published><updated>2011-07-20T09:57:40.303+02:00</updated><title type='text'>RMAN 10gR2 : Performing Incomplete Database Recovery (Full Disaster Scenario)</title><content type='html'>&lt;br /&gt;Scenario :&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;You have lost your Disks and You have only the last Backup and you do not use a Recovery Catalog.&lt;br /&gt;&lt;br /&gt;Solution :&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Perfrom Incomplete recovery until the time the last backup fiished&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;and roll forward to the last availiable archive log in the backup area.&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;Tips:&lt;br /&gt;&lt;br /&gt;1) Always register your DBID&lt;br /&gt;&lt;br /&gt;rman target /&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.5.0 - Production on Wed Jul 20 08:36:48 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2007, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;&lt;br /&gt;connected to target database: MYDB (DBID=3255826720)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) Always keep in to a file the show all command of RMAN in order to know the the controlfile autobackup format.&lt;br /&gt;&lt;br /&gt;$ rman target / msglog rman.out&lt;br /&gt;&amp;nbsp; RMAN&amp;gt; show all;&lt;br /&gt;&amp;nbsp; RMAN&amp;gt; exit&lt;br /&gt;$ vi rman.out&lt;br /&gt;&lt;br /&gt;3) If you use a Block Change Tracking File (BCF) , after you mount the DB&amp;nbsp;disable the use.&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; RMAN&amp;gt; sql 'alter database disable block change tracking';&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;4) You may need to recreat your password file again (Specially in a RAC database if its in the DB Area)&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; For Signle Instance Database&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; orapwd file=orapwmydb password=mypass&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; For RAC Database&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; orapwd file=/common_location/orapwmydb password=mypass&lt;br /&gt;&lt;br /&gt;Recovery&amp;nbsp;(The test has been made on a RAC DB , but its ok for single instance too):&lt;br /&gt;&lt;br /&gt;On one node :&lt;br /&gt;&lt;br /&gt;$export ORACLE_HOME=/MY_ORA_HOME_DIR&lt;br /&gt;$export ORACLE_SID=MYDB1&lt;br /&gt;$rman target /&lt;br /&gt;RMAN&amp;gt;startup force nomount;&lt;br /&gt;RMAN&amp;gt;set dbid=3255826720;&lt;br /&gt;RMAN&amp;gt;run {&lt;br /&gt;set controlfile autobackup format for device type disk to '/orabackup/mydb/%F';&lt;br /&gt;restore spfile from autobackup;&lt;br /&gt;}&lt;br /&gt;RMAN&amp;gt;startup force nomount;&lt;br /&gt;RMAN&amp;gt;run {&lt;br /&gt;set controlfile autobackup format for device type disk to '/orabackup/mydb/%F';&lt;br /&gt;restore controlfile from autobackup;&lt;br /&gt;alter database mount;&lt;br /&gt;}&lt;br /&gt;RMAN&amp;gt;restore database;&lt;br /&gt;Starting restore at 20-JUL-11&lt;br /&gt;using channel ORA_DISK_1&lt;br /&gt;using channel ORA_DISK_2&lt;br /&gt;using channel ORA_DISK_3&lt;br /&gt;&lt;br /&gt;.......&lt;br /&gt;&lt;br /&gt;Finished restore at 20-JUL-11&lt;br /&gt;&lt;br /&gt;RMAN&amp;gt; recover database;&lt;br /&gt;&lt;br /&gt;Starting recover at 20-JUL-11&lt;br /&gt;using channel ORA_DISK_1&lt;br /&gt;using channel ORA_DISK_2&lt;br /&gt;using channel ORA_DISK_3&lt;br /&gt;&lt;br /&gt;starting media recovery&lt;br /&gt;&lt;br /&gt;.....&lt;br /&gt;&lt;br /&gt;unable to find archive log&lt;br /&gt;archive log thread=1 sequence=14&lt;br /&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============&lt;br /&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-03002: failure of recover command at 07/20/2011 08:18:26&lt;br /&gt;RMAN-06054: media recovery requesting unknown log: thread 1 seq 14 lowscn 4955096&lt;br /&gt;&lt;br /&gt;# Since you do incomplete recovery&amp;nbsp;ignore&amp;nbsp;the error&lt;br /&gt;&lt;br /&gt;RMAN&amp;gt; alter database open resetlogs;&lt;br /&gt;&lt;br /&gt;database opened&lt;br /&gt;&lt;br /&gt;RMAN&amp;gt;exit;&lt;br /&gt;&lt;br /&gt;Recovery Manager complete.&lt;br /&gt;&lt;br /&gt;Restart Your database , start any service, dbconsole/agent and take an immediate full backup.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2002282178744680506?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2002282178744680506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/07/rman-10gr2-performing-incomplete.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2002282178744680506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2002282178744680506'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/07/rman-10gr2-performing-incomplete.html' title='RMAN 10gR2 : Performing Incomplete Database Recovery (Full Disaster Scenario)'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-220135671116926105</id><published>2011-07-18T15:03:00.001+02:00</published><updated>2011-07-18T15:05:17.813+02:00</updated><title type='text'>Restoring Voting Disk and OCR files from backup 10gR2</title><content type='html'>&lt;br /&gt;Use the info from the following post to identify or take a backup of the Voting Disk (CSS File) and OCR:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://agstamy.blogspot.com/2009/05/backing-up-css-and-ocr-files.html"&gt;http://agstamy.blogspot.com/2009/05/backing-up-css-and-ocr-files.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As oracle user&amp;nbsp;from one node :&lt;br /&gt;$export ORACLE_HOME=DB_HOME&lt;br /&gt;$srvctl stop database -d db_name&lt;br /&gt;$svrctl stop asm -n node_name&lt;br /&gt;$srvctl stop nodeapps -n node_name&lt;br /&gt;&lt;br /&gt;On each node:&lt;br /&gt;$emctl stop dbconsole&lt;br /&gt;$export ORACLE_HOME=ORA_CRS_HOME_DIR&lt;br /&gt;$su&lt;br /&gt;#crsctl stop crs&lt;br /&gt;&lt;br /&gt;From one node :&lt;br /&gt;&lt;br /&gt;For the voting disk oracle do:&lt;br /&gt;&lt;br /&gt;Copy the backup to the voting diks locations and set the correct permissions&lt;br /&gt;Use dd if your are in raw devices or simply cp if you are using cluster file system.&lt;br /&gt;&lt;br /&gt;e.g&lt;br /&gt;&lt;br /&gt;dd if=your_backup_file of=/dev/raw/css&lt;br /&gt;&lt;br /&gt;cp -p my_css_backup_file /my_css_mount_point/my_css_backup_file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For the OCR File as root do :&lt;br /&gt;If you are on cluster filesystem then you must create an empty file first with correct permissions&lt;br /&gt;touch /ocr_location_mount/ocr_filename&lt;br /&gt;chown root.oinstall /ocr_location_mount/ocr_filename&lt;br /&gt;&lt;br /&gt;Then restore from last system backup or use your latest dumpfile&lt;br /&gt;ocrconfig -restore backup00.ocr&lt;br /&gt;backup00.ocr : Is the last auto backup on $ORA_CRS_HOME/cdata/[cluster_name] the default autobackup configuration location on local disks on all nodes&lt;br /&gt;&lt;br /&gt;ocrconfig -import /your_ocr_last_dump_file&lt;br /&gt;&lt;br /&gt;Start the crs :&lt;br /&gt;&lt;br /&gt;crsctl start crs&lt;br /&gt;&lt;br /&gt;Watch to see if all cluster servcies are up and functional !!!&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Things to notice :&amp;nbsp;&lt;/b&gt;&lt;br /&gt;If you try this for full cluster restore then you must remember the directories ownerhips&lt;br /&gt;For the css file the owner is oracle and for the ocr is root.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;References :&lt;/b&gt;&lt;br /&gt;Oracle Clusterware and Oracle Real Application Clusters Administration and Deployment Guide &lt;br /&gt;10g Release 2 (10.2), Chapter 3 : Administering Oracle Clusterware Components.&lt;br /&gt;&lt;br /&gt;Metalink Note IDs: 1092293.1, 953914.1&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-220135671116926105?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/220135671116926105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/07/restoring-voting-disk-and-ocr-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/220135671116926105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/220135671116926105'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/07/restoring-voting-disk-and-ocr-files.html' title='Restoring Voting Disk and OCR files from backup 10gR2'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-7088610646621018102</id><published>2011-07-15T12:47:00.000+02:00</published><updated>2011-07-15T12:47:02.199+02:00</updated><title type='text'>OCFS2 Guide Lines for 10gR2 CRS and RAC on Linux x86_64</title><content type='html'>&lt;br /&gt;If you plan to&amp;nbsp;install&amp;nbsp;Oracle RAC on Linux using OCFS2 for CRS files and RAC DB files the&amp;nbsp;follow&amp;nbsp;the&amp;nbsp;recommendations&amp;nbsp;for the parameter mentioned ,&amp;nbsp;Recommendations&amp;nbsp;are for Version 1.4.7&lt;br /&gt;&lt;br /&gt;When Creating the OCFS2 Cluster&lt;br /&gt;&lt;br /&gt;&lt;b&gt;O2CB_HEARTBEAT_THRESHOLD&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;It should be set to the timeout value of the io layer. Most multipath solutions have a timeout ranging from 60 secs to 120 secs.&lt;br /&gt;For 60 secs, set it to 31. For 120 secs, set it to 61 according to the follwoing formula : O2CB_HEARTBEAT_THRESHOLD = (((timeout in secs) / 2) + 1)&lt;br /&gt;In general a value of 61 is suitable in most cases&lt;br /&gt;&lt;br /&gt;Change the value in the vi /etc/sysconfig/o2cb on all nodes of the OCFS2 Cluster and restart the cluster on all nodes.&lt;br /&gt;&lt;br /&gt;When formatting an OCFS2 filesystem.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cluster Size:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The cluster size is the smallest unit of space allocated to a file to hold &amp;nbsp;file data.&lt;br /&gt;Permissible cluster sizes include; 4, 8, 16, 32, 64, 128, 256, 512, and 1024Kb.&lt;br /&gt;Oracle recommends a cluster size of 128 KB or higher for datafiles and a cluster size of 32 or 64Kb for Oracle Home volumes or for OCRF and CSS Files.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ATTENTION : The cluster size cannot be modified after OCFS2 volume format.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Block Size:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The smallest unit of space addressable by the filesystem.&lt;br /&gt;Permissible block sizes include; 512 bytes (not recommended), 1Kb, 2Kb, or 4Kb (recommended for most volumes).&lt;br /&gt;4Kb Block Size works fine and Oracle Database Block should be equal or multiple to this 8K , 16K etc.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ATTENTION : The block size cannot be modified after OCFS2 volumes format.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When mounting an OCFS2 filesystem&lt;br /&gt;&lt;br /&gt;&lt;b&gt;datavolume:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Use this OCFS2 mount option to mount volumes storing Oracle datafiles, control files, redologs, archivelogs, Oracle clusterware files (voting disk and cluster registry), etc.&lt;br /&gt;The datavolume mount option ensures the Oracle database processes open datafiles with the o_direct flag, required by Oracle Real Application Clusters (RAC) to concurrently access shared files.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;noatime:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Users should add the "noatime" mount option to the mounts that hold the Oracle datafiles, redologs, archivelogs, voting file, etc. This is because OCFS2 1.4 supports atime (access time) which makes it update inodes even on a read. Like ls -l. As tracking access time is not useful for the database, users are advised to disable it for such mounts.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;References :&lt;br /&gt;OCFS2 1.4.7-1 Release Notes (Metalink Note ID 1086231.1)&lt;br /&gt;OCFS2 1.2 - FREQUENTLY ASKED QUESTIONS&lt;br /&gt;Meatalink Note ID : 727866.1&lt;br /&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/5521622797995039163-7088610646621018102?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/7088610646621018102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/07/ocfs2-guide-lines-for-10gr2-crs-and-rac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7088610646621018102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7088610646621018102'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/07/ocfs2-guide-lines-for-10gr2-crs-and-rac.html' title='OCFS2 Guide Lines for 10gR2 CRS and RAC on Linux x86_64'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-5838672330563706913</id><published>2011-07-14T12:38:00.000+02:00</published><updated>2011-07-14T12:38:11.636+02:00</updated><title type='text'>Oracle 10gR2 : Truncating a table causes "Enq: RO - FAST OBJECT REUSE" and DBW High CPU Usage</title><content type='html'>On Oracle 10gR2 (10.2.0.4) a table truncate is taking lots of minutes and your session si waiting on &amp;nbsp;"&lt;b&gt;&lt;i&gt;Enq: RO - FAST OBJECT REUSE"&amp;nbsp;&lt;/i&gt;&lt;/b&gt;then you probably have hit&amp;nbsp;&lt;b&gt;bug8544896 &lt;/b&gt;introduced in 10.2.0.4 and it&amp;nbsp;affects both Single instance and RAC environments, and a patch is&amp;nbsp;available.&lt;br /&gt;&lt;br /&gt;In order to confirm the bug as sys do :&lt;br /&gt;&lt;br /&gt;select&amp;nbsp;waiting_session,holding_session,lock_type,mode_held,mode_requested &lt;br /&gt;from dba_waiters;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select sid, serial#,program from v$session where sid = 1095;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SID &amp;nbsp; &amp;nbsp;SERIAL# PROGRAM&lt;br /&gt;---------- ---------- ------------------------------------------------&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1095 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &lt;b&gt;oracle@castor (CKPT)&lt;/b&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you see that the CKPT Process is then that's the case.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Workaround&lt;br /&gt;1) From an other session as sys issue :&lt;br /&gt;&amp;nbsp; &amp;nbsp; alter system flush buffer_cache;&lt;br /&gt;2) Set _db_fast_obj_truncate = FALSE to spfile/init.ora&lt;br /&gt;&lt;br /&gt;References :&lt;br /&gt;Metalink Note id :&amp;nbsp;888844.1&lt;br /&gt;&lt;a href="http://www.ora-solutions.net/web/2009/01/20/session-waiting-for-enq-ro-fast-object-reuse-dbwr-process-spinning-on-cpu/"&gt;http://www.ora-solutions.net/web/2009/01/20/session-waiting-for-enq-ro-fast-object-reuse-dbwr-process-spinning-on-cpu/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-5838672330563706913?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/5838672330563706913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/07/oracle-10gr2-truncating-table-causes.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5838672330563706913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5838672330563706913'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/07/oracle-10gr2-truncating-table-causes.html' title='Oracle 10gR2 : Truncating a table causes &quot;Enq: RO - FAST OBJECT REUSE&quot; and DBW High CPU Usage'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-8494461230578872883</id><published>2011-07-08T13:40:00.002+02:00</published><updated>2011-07-08T13:40:15.849+02:00</updated><title type='text'>Understading th SCN</title><content type='html'>A very nice article for the Oracle SCN&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dbapool.com/articles/1029200701.html"&gt;http://www.dbapool.com/articles/1029200701.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-8494461230578872883?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/8494461230578872883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/07/understading-th-scn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8494461230578872883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8494461230578872883'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/07/understading-th-scn.html' title='Understading th SCN'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3648801273042666730</id><published>2011-07-06T21:42:00.000+02:00</published><updated>2011-07-06T21:42:02.551+02:00</updated><title type='text'>Install 10gR2 RAC (CRS,DATABASE) on CentOS Enterprise / RHEL / Oracle Enterprise Linux x86_64 5.x</title><content type='html'>&lt;br /&gt;For the CRS and OCR files we will use OCFS2 and ASM for DATA and FRA&lt;br /&gt;&lt;br /&gt;on node1&lt;br /&gt;&lt;br /&gt;[root@node01 ~]# id nobody&lt;br /&gt;uid=99(nobody) gid=99(nobody) groups=99(nobody)&lt;br /&gt;&lt;br /&gt;[root@node02 ~]# groupadd -g 501 oinstall&lt;br /&gt;[root@node02 ~]# groupadd -g 502 dba&lt;br /&gt;[root@node02 ~]# useradd -u 501 -g oinstall -G dba oracle&lt;br /&gt;[root@node02 ~]# passwd oracle&lt;br /&gt;&lt;br /&gt;[root@node01 ~]# id oracle&lt;br /&gt;uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)&lt;br /&gt;&lt;br /&gt;on node2&lt;br /&gt;&lt;br /&gt;[root@node02 ~]# groupadd -g 501 oinstall&lt;br /&gt;[root@node02 ~]# groupadd -g 502 dba&lt;br /&gt;[root@node02 ~]# useradd -u 501 -g oinstall -G dba oracle&lt;br /&gt;[root@node02 ~]# passwd oracle&lt;br /&gt;&lt;br /&gt;You must use the same password also for convinience.&lt;br /&gt;&lt;br /&gt;Check date on both nodes and guide you sysadmins to install ntp&lt;br /&gt;&lt;br /&gt;Configure ssh equivelance&lt;br /&gt;&lt;br /&gt;on both nodes&lt;br /&gt;which scp if not in /usr/local/bin create link : cd /usr/local/bin ; ln -s /usr/bin/scp scp&lt;br /&gt;which ssh if not in /usr/local/bin create link : cd /usr/local/bin ; ln -s /usr/bin/ssh ssh&lt;br /&gt;&lt;br /&gt;On both nodes login as oracle&lt;br /&gt;&amp;nbsp;mkdir .ssh&lt;br /&gt;&amp;nbsp;chmod 700 .ssh&lt;br /&gt;&amp;nbsp;ssh-keygen -t rsa&lt;br /&gt;&amp;nbsp;ssh-keygen -t dsa&lt;br /&gt;&lt;br /&gt;on node01 as oracle:&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;cd .ssh&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ssh node01 cat /home/oracle/.ssh/id_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ssh node01 cat /home/oracle/.ssh/id_dsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ssh node02 cat /home/oracle/.ssh/id_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ssh node02 cat /home/oracle/.ssh/id_dsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;scp authorized_keys node02:/home/oracle/.ssh/&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;on node02 as oracle:&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;cd .ssh&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ssh node01 cat /home/oracle/.ssh/id_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ssh node01 cat /home/oracle/.ssh/id_dsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ssh node02 cat /home/oracle/.ssh/id_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ssh node02 cat /home/oracle/.ssh/id_dsa.pub &amp;gt;&amp;gt; authorized_keys&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;scp authorized_keys node01:/home/oracle/.ssh/&lt;br /&gt;&lt;br /&gt;On each node&lt;br /&gt;chmod 600 ~/.ssh/authorized_keys&lt;br /&gt;exec /usr/bin/ssh-agent $SHELL&lt;br /&gt;/usr/bin/ssh-add&lt;br /&gt;&lt;br /&gt;vi /home/oracle/.ssh/config ... add&lt;br /&gt;Host *&lt;br /&gt;ForwardX11 no&lt;br /&gt;&lt;br /&gt;vi .bashrc ... add&lt;br /&gt;if [ -t 0 ]; then&lt;br /&gt;stty intr ^C&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;vi .bash_profile&lt;br /&gt;umask 022&lt;br /&gt;export DISPLAY=X.X.X.X:0.0&lt;br /&gt;&lt;br /&gt;. ./.bash_profile&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Check ssh equiveleance&lt;br /&gt;&lt;br /&gt;From node01 as oracle&lt;br /&gt;ssh node01 date&lt;br /&gt;ssh node02 date&lt;br /&gt;from node02 date&lt;br /&gt;ssh node01 date&lt;br /&gt;ssh node02 date&lt;br /&gt;&lt;br /&gt;On both commands password must not be asked if all ok.&lt;br /&gt;&lt;br /&gt;As root on each node&lt;br /&gt;Check if SELinux is disabled otherwise disable it.&lt;br /&gt;# /usr/sbin/getenforce&lt;br /&gt;If returns Disabled you are ok !!!&lt;br /&gt;&lt;br /&gt;Install required packages !!!&lt;br /&gt;Check also : http://agstamy.blogspot.com/2010/11/installation-of-oracle-10gr2-database.html&lt;br /&gt;&lt;br /&gt;rpm -qa | grep [PACKAGE NAME] to check&lt;br /&gt;yum install [PACKAGE NAME] to install&lt;br /&gt;&lt;br /&gt;Pakcage List according to Metalink note : 421308.1 Requirements For Installing Oracle10gR2 On RHEL 5/OEL 5 (x86_64)&lt;br /&gt;binutils-2.17.50 (x86_64)&lt;br /&gt;compat-db-4.2.52 (x86_64)&lt;br /&gt;compat-libstdc++-296(i386)&lt;br /&gt;compat-libstdc++-33-3.2.3 (x86_64)&lt;br /&gt;compat-libstdc++-33-3.2.3(i386)&lt;br /&gt;control-center-2.16.0 (x86_64)&lt;br /&gt;gcc-4.1.1 (x86_64)&lt;br /&gt;gcc-c++-4.1.1 (x86_64)&lt;br /&gt;glibc-2.5-12 (x86_64)&lt;br /&gt;glibc-2.5-12 (i386)&lt;br /&gt;glibc-common-2.5-12 (x86_64)&lt;br /&gt;glibc-devel-2.5-12 (x86_64)&lt;br /&gt;glibc-devel-2.5-12(i386)&lt;br /&gt;glibc-headers-2.5-12 (x86_64)&lt;br /&gt;ksh-20060214-1.4 (x86_64)&lt;br /&gt;libaio-0.3.96 (x86_64)&lt;br /&gt;libaio-devel-0.3.106-3.2&lt;br /&gt;libgcc-4.1.1(i386)&lt;br /&gt;libgcc-4.1.1(x86_64)&lt;br /&gt;libgnome-2.16.0 (x86_64)&lt;br /&gt;libgnomeui-2.16.0 (x86_64)&lt;br /&gt;libgomp-4.1.1 (x86_64)&lt;br /&gt;libstdc++-4.1.1 (x86_64)&lt;br /&gt;libstdc++-devel-4.1.1 (x86_64)&lt;br /&gt;libXp-1.0.0-8 (i386)&lt;br /&gt;make-3.81 (x86_64)&lt;br /&gt;sysstat-7.0.0 (x86_64)&lt;br /&gt;&lt;br /&gt;Add virtual and private ips on /etc/hosts on each node (The hosts file must have the same format as the example)&lt;br /&gt;&lt;br /&gt;[root@node01 bin]# cat /etc/hosts&lt;br /&gt;# Do not remove the following line, or various programs&lt;br /&gt;# that require network functionality will fail.&lt;br /&gt;127.0.0.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; localhost localhost.localdomain &amp;nbsp;&lt;br /&gt;10.9.135.120 &amp;nbsp; &amp;nbsp;node01 node01.internal.upstreamsystems.com &amp;nbsp; &lt;br /&gt;10.9.135.121 &amp;nbsp; &amp;nbsp;node02 node02.internal.upstreamsystems.com &amp;nbsp; &lt;br /&gt;10.9.135.122 &amp;nbsp; &amp;nbsp;node01-vip node01-vip.internal.upstreamsystems.com &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;10.9.135.123 &amp;nbsp; &amp;nbsp;node02-vip node02-vip.internal.upstreamsystems.com &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;10.9.222.120 &amp;nbsp; &amp;nbsp;node01-priv&lt;br /&gt;10.9.222.121 &amp;nbsp; &amp;nbsp;node02-priv&lt;br /&gt;&lt;br /&gt;Also hostname in /etc/sysconfig/network must be without the domain.&lt;br /&gt;cat /etc/sysconfig/network&lt;br /&gt;NETWORKING=yes&lt;br /&gt;NETWORKING_IPV6=no&lt;br /&gt;HOSTNAME=node01&lt;br /&gt;GATEWAY=10.9.135.8&lt;br /&gt;&lt;br /&gt;vi /etc/hosts.equiv&lt;br /&gt;node01 oracle&lt;br /&gt;node02 oracle&lt;br /&gt;node01-priv oracle&lt;br /&gt;node02-priv oracle&lt;br /&gt;&lt;br /&gt;Check if firewall is enabled and if is stop it&lt;br /&gt;/etc/rc.d/init.d/iptables status&lt;br /&gt;Firewall is stopped.&lt;br /&gt;/etc/rc.d/init.d/iptables stop&lt;br /&gt;chkconfig iptables off&lt;br /&gt;&lt;br /&gt;Set the kernel parameters&lt;br /&gt;Add the following the lines in the file /etc/sysctl.conf&lt;br /&gt;&lt;br /&gt;kernel.shmmni = 4096&lt;br /&gt;kernel.sem = 250 32000 100 128&lt;br /&gt;fs.file-max = 65536&lt;br /&gt;net.ipv4.ip_local_port_range = 1024 65500&lt;br /&gt;net.core.rmem_default = 262144&lt;br /&gt;net.core.rmem_max = 262144&lt;br /&gt;net.core.wmem_default = 262144&lt;br /&gt;net.core.wmem_max = 262144&lt;br /&gt;net.ipv4.tcp_wmem = 262144 262144 262144&lt;br /&gt;net.ipv4.tcp_rmem = 4194304 4194304 4194304&lt;br /&gt;&lt;br /&gt;and run sysctl -p&lt;br /&gt;&lt;br /&gt;Set the session limits for Oracle user&lt;br /&gt;&lt;br /&gt;Add the following lines to the /etc/security/limits.conf file&lt;br /&gt;&lt;br /&gt;oracle soft nproc 2047&lt;br /&gt;oracle hard nproc 16384&lt;br /&gt;oracle soft nofile 1024&lt;br /&gt;oracle hard nofile 65536&lt;br /&gt;&lt;br /&gt;# As per Release Notes&lt;br /&gt;oracle soft memlock 3145728&lt;br /&gt;oracle hard memlock 3145728&lt;br /&gt;&lt;br /&gt;Add the following line in the /etc/pam.d/login file&lt;br /&gt;session required pam_limits.so&lt;br /&gt;&lt;br /&gt;Add the following lines to the /etc/profile.&lt;br /&gt;This assumes that oracle user is using bash shell which is given by default.&lt;br /&gt;Change this accordingly if the oracle user has a different shell&lt;br /&gt;&lt;br /&gt;if [ $USER = "oracle" ]; then&lt;br /&gt;&amp;nbsp;&amp;nbsp;ulimit -u 16384&lt;br /&gt;&amp;nbsp;&amp;nbsp;ulimit -n 65536&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;Create Oracle User base directories and crs home directories&lt;br /&gt;&lt;br /&gt;# mkdir -p /u01/app/oracle&lt;br /&gt;# chown -R oracle:oinstall /u01/app/oracle&lt;br /&gt;# chmod -R 775 /u01/app/oracle&lt;br /&gt;&lt;br /&gt;# mkdir -p /u01/app/oracle/crs&lt;br /&gt;# chown -R oracle:oinstall /u01/app/oracle/crs&lt;br /&gt;# chmod -R 775 /u01/app/oracle/crs&lt;br /&gt;&lt;br /&gt;Configure hangcheck timer&lt;br /&gt;lsmod | grep hang&lt;br /&gt;if not hangcheck_timer configured then&lt;br /&gt;insmod /lib/modules/[Kernel Version]/kernel/drivers/char/hangcheck-timer.ko hangcheck_tick=30 hangcheck_margin=180&lt;br /&gt;add the previous comand in /etc/rc.d/rc.local&lt;br /&gt;&lt;br /&gt;Configure partitions on SAN LUNS to be used as crs,voting and ASM Disks&lt;br /&gt;We have the above LUNs&lt;br /&gt;/dev/sde (LUN3): 2G for CRS&lt;br /&gt;/dev/sdf (LUN4): 2G for VOTING&lt;br /&gt;/dev/sdg (LUN5): 60G for DATA&lt;br /&gt;/dev/sdh (LUN6): 30G for FRA&lt;br /&gt;&lt;br /&gt;The following procedure must be used for each device&lt;br /&gt;&lt;br /&gt;[root@node01 app]# fdisk /dev/sde&lt;br /&gt;Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel&lt;br /&gt;Building a new DOS disklabel. Changes will remain in memory only,&lt;br /&gt;until you decide to write them. After that, of course, the previous&lt;br /&gt;content won't be recoverable.&lt;br /&gt;&lt;br /&gt;Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)&lt;br /&gt;&lt;br /&gt;Command (m for help): n&lt;br /&gt;Command action&lt;br /&gt;&amp;nbsp;&amp;nbsp; e &amp;nbsp; extended&lt;br /&gt;&amp;nbsp;&amp;nbsp; p &amp;nbsp; primary partition (1-4)&lt;br /&gt;p&lt;br /&gt;Partition number (1-4): 1&lt;br /&gt;First cylinder (1-1009, default 1): 1&lt;br /&gt;Last cylinder or +size or +sizeM or +sizeK (1-1009, default 1009): 1009&lt;br /&gt;&lt;br /&gt;Command (m for help): p&lt;br /&gt;&lt;br /&gt;Disk /dev/sde: 2147 MB, 2147483648 bytes&lt;br /&gt;67 heads, 62 sectors/track, 1009 cylinders&lt;br /&gt;Units = cylinders of 4154 * 512 = 2126848 bytes&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;br /&gt;/dev/sde1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1009 &amp;nbsp; &amp;nbsp; 2095662 &amp;nbsp; 83 &amp;nbsp;Linux&lt;br /&gt;&lt;br /&gt;Command (m for help): w&lt;br /&gt;The partition table has been altered!&lt;br /&gt;&lt;br /&gt;Calling ioctl() to re-read partition table.&lt;br /&gt;Syncing disks.&lt;br /&gt;&lt;br /&gt;At the end run partprobe on each node&lt;br /&gt;&lt;br /&gt;Install &amp;amp; Configure Oracle Cluster File System (OCFS2)&lt;br /&gt;&lt;br /&gt;Check if ocfs2 is allready installed&lt;br /&gt;rpm -qa | grep ocfs2 | sort&lt;br /&gt;&lt;br /&gt;go to http://oss.oracle.com/&lt;br /&gt;and download&lt;br /&gt;OCFS2 Kernel Driver,OCFS2 tools,OCFS2 console for your kernel version (You do not need the kernel-debug or xen module)&lt;br /&gt;And install them on both nodes&lt;br /&gt;rpm -Uhv ocfs2*&lt;br /&gt;&lt;br /&gt;on both Oracle RAC nodes&lt;br /&gt;export DISPLAY=10.9.13.252:0&lt;br /&gt;ocfs2console&lt;br /&gt;And do the cluster configuration to create /etc/ocfs2/cluster.conf&lt;br /&gt;on both nodes must be the same and looks like :&lt;br /&gt;&lt;br /&gt;node:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ip_port = 7777&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ip_address = 10.9.135.120&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;number = 0&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name = node01&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cluster = ocfs2&lt;br /&gt;&lt;br /&gt;node:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ip_port = 7777&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ip_address = 10.9.135.121&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;number = 1&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name = node02&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cluster = ocfs2&lt;br /&gt;&lt;br /&gt;cluster:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;node_count = 2&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name = ocfs2&lt;br /&gt;&lt;br /&gt;Configure O2CB to Start on Boot and Adjust O2CB Heartbeat Threshold to 61 on both nodes&lt;br /&gt;# /etc/init.d/o2cb offline ocfs2&lt;br /&gt;# /etc/init.d/o2cb unload&lt;br /&gt;# /etc/init.d/o2cb configure&lt;br /&gt;# /etc/init.d/o2cb status &amp;nbsp;to check status !!!&lt;br /&gt;&lt;br /&gt;Create directories for Oracle CRS and Votting file&lt;br /&gt;On both nodes&lt;br /&gt;# mkdir -p /u02/oradata/css&lt;br /&gt;# chown -R oracle:oinstall /u02/oradata/css&lt;br /&gt;# chmod -R 775 /u02/oradata/css&lt;br /&gt;mkdir -p /u02/oradata/ocr&lt;br /&gt;chown -R oracle:oinstall /u02/oradata/ocr&lt;br /&gt;chmod -R 775 /u02/oradata/ocr&lt;br /&gt;&lt;br /&gt;On first node create filesystems fromated with ocfs2&lt;br /&gt;mkfs.ocfs2 -b 4K -C 32K -N 4 -L cssfiles /dev/sde1&lt;br /&gt;mkfs.ocfs2 -b 4K -C 32K -N 4 -L ocrfiles /dev/sdf1&lt;br /&gt;&lt;br /&gt;on each node&lt;br /&gt;Mount the volumes&lt;br /&gt;mount -t ocfs2 -o datavolume,nointr -L "cssfiles" /u02/oradata/css&lt;br /&gt;mount -t ocfs2 -o datavolume,nointr -L "ocrfiles" /u02/oradata/ocr&lt;br /&gt;&lt;br /&gt;Add entries to /etc/fstab for auto mount on reboot&lt;br /&gt;LABEL=cssfiles &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/u02/oradata/css &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ocfs2 &amp;nbsp; _netdev,datavolume,nointr &amp;nbsp;0 0&lt;br /&gt;LABEL=ocrfiles &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/u02/oradata/ocr &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ocfs2 &amp;nbsp; _netdev,datavolume,nointr &amp;nbsp;0 0&lt;br /&gt;&lt;br /&gt;Check the permisions of the mount points&lt;br /&gt;# ls -ld /u02/oradata/css&lt;br /&gt;drwxr-xr-x 3 root root 4096 Feb 12 13:17 /u02/oradata/css&lt;br /&gt;# chown oracle:oinstall /u02/oradata/css&lt;br /&gt;# chmod 775 /u02/oradata/css&lt;br /&gt;# ls -ld /u02/oradata/css&lt;br /&gt;drwxrwxr-x 3 oracle oinstall 4096 Feb 12 13:17 /u02/oradata/css&lt;br /&gt;# ls -ld /u02/oradata/ocr&lt;br /&gt;drwxr-xr-x 3 root root 4096 Feb 12 13:18 /u02/oradata/ocr&lt;br /&gt;# chown oracle:oinstall /u02/oradata/ocr&lt;br /&gt;# chmod 775 /u02/oradata/ocr&lt;br /&gt;# ls -ld /u02/oradata/ocr&lt;br /&gt;drwxrwxr-x 3 oracle oinstall 4096 Feb 12 13:18 /u02/oradata/ocr&lt;br /&gt;&lt;br /&gt;Check if the o2cb is configured to start on reboot 2,3,4,5 must be on&lt;br /&gt;&lt;br /&gt;chkconfig --list o2cb&lt;br /&gt;o2cb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0:off &amp;nbsp; 1:off &amp;nbsp; 2:on &amp;nbsp; &amp;nbsp;3:on &amp;nbsp; &amp;nbsp;4:on &amp;nbsp; &amp;nbsp;5:on &amp;nbsp; &amp;nbsp;6:off&lt;br /&gt;&lt;br /&gt;REBOOT BOTH NODES !!!!!&lt;br /&gt;&lt;br /&gt;Install &amp;amp; Configure Automatic Storage Management (ASMLib 2.0)&lt;br /&gt;ASMLib Kernel Driver , Userspace Library , Driver Support Files&lt;br /&gt;Go to http://www.oracle.com/technology/software/tech/linux/asmlib/index.html&lt;br /&gt;Check if ASM Lib is allready installed&lt;br /&gt;&lt;br /&gt;On both nodes&lt;br /&gt;rpm -qa | grep oracleasm | sort&lt;br /&gt;Install them&lt;br /&gt;rpm -Uvh oracleasm*&lt;br /&gt;Configure asmlib&lt;br /&gt;/etc/init.d/oracleasm configure&lt;br /&gt;&lt;br /&gt;Configuring the Oracle ASM library driver.&lt;br /&gt;&lt;br /&gt;This will configure the on-boot properties of the Oracle ASM library&lt;br /&gt;driver. &amp;nbsp;The following questions will determine whether the driver is&lt;br /&gt;loaded on boot and what permissions it will have. &amp;nbsp;The current values&lt;br /&gt;will be shown in brackets ('[]'). &amp;nbsp;Hitting &amp;lt;ENTER&amp;gt; without typing an&lt;br /&gt;answer will keep that current value. &amp;nbsp;Ctrl-C will abort.&lt;br /&gt;&lt;br /&gt;Default user to own the driver interface []: oracle&lt;br /&gt;Default group to own the driver interface []: oinstall&lt;br /&gt;Start Oracle ASM library driver on boot (y/n) [n]: y&lt;br /&gt;Scan for Oracle ASM disks on boot (y/n) [y]: y&lt;br /&gt;Writing Oracle ASM library driver configuration: done&lt;br /&gt;Initializing the Oracle ASMLib driver: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;Scanning the system for Oracle ASMLib disks: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;&lt;br /&gt;From the first node&lt;br /&gt;# /etc/init.d/oracleasm listdisks&lt;br /&gt;If there are disk availiable delete them&lt;br /&gt;# /etc/init.d/oracleasm createdisk VOL1 /dev/sdg1&lt;br /&gt;Marking disk "VOL1" as an ASM disk: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;# /etc/init.d/oracleasm createdisk VOL2 /dev/sdh1&lt;br /&gt;Marking disk "VOL2" as an ASM disk: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;&lt;br /&gt;On the second node&lt;br /&gt;#/etc/init.d/oracleasm scandisks&lt;br /&gt;&lt;br /&gt;Verify on both nodes that you see the disks&lt;br /&gt;&lt;br /&gt;Now begin CRS Installation&lt;br /&gt;&lt;br /&gt;Install cvuqdisk&lt;br /&gt;as root on both nodes&lt;br /&gt;on first node&lt;br /&gt;cd /home/oracle/clusterware/rpm/&lt;br /&gt;rpm -ivh cvuqdisk-1.0.1-1.rpm&lt;br /&gt;Move rpm to second node&lt;br /&gt;scp cvuqdisk-1.0.1-1.rpm node02:/root&lt;br /&gt;rpm -ivh cvuqdisk-1.0.1-1.rpm&lt;br /&gt;&lt;br /&gt;As oracle run&lt;br /&gt;cd ~/clusterware/cluvfy&lt;br /&gt;./runcluvfy.sh stage -pre crsinst -n node01,node02&lt;br /&gt;&lt;br /&gt;./runcluvfy.sh stage -post hwos -n node01,node02&lt;br /&gt;To check for shared storage !!!&lt;br /&gt;&lt;br /&gt;Install crs&lt;br /&gt;export ORACLE_BASE=/u01/app/oracle&lt;br /&gt;export ORACLE_HOME=/u01/app/oracle/crs&lt;br /&gt;cd clustware&lt;br /&gt;./runInstaller -ignoreSysPrereqs&lt;br /&gt;&lt;br /&gt;as root first on node1 and then on node2 do:&lt;br /&gt;/u01/app/oracle/oraInventory/orainstRoot.sh&lt;br /&gt;&lt;br /&gt;Before run root.sh&lt;br /&gt;Apply workaround #2 for vipca errors as per Metalink Note:414163.1 (maybe not applying on ppc)&lt;br /&gt;as root first on node1 and then on node2 do:&lt;br /&gt;vi /u01/app/crs/bin/vipca&lt;br /&gt;Find lines :&lt;br /&gt;if [ "$arch" = "i686" -o "$arch" = "ia64" -o "$arch" = "x86_64" ]&lt;br /&gt;then&lt;br /&gt;&amp;nbsp;&amp;nbsp;LD_ASSUME_KERNEL=2.4.19&lt;br /&gt;&amp;nbsp;&amp;nbsp;export LD_ASSUME_KERNEL&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;unset LD_ASSUME_KERNEL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&amp;lt;== Line to be added&lt;br /&gt;&lt;br /&gt;run root.sh on first node and then on second node&lt;br /&gt;and if you see&lt;br /&gt;Error 0(Native: listNetInterfaces:[3])&lt;br /&gt;[Error 0(Native: listNetInterfaces:[3])]&lt;br /&gt;do&lt;br /&gt;&amp;lt;CRS_HOME&amp;gt;/bin # ./oifcfg setif -global eth0/192.168.1.0:public&lt;br /&gt;&amp;lt;CRS_HOME&amp;gt;/bin # ./oifcfg setif -global eth1/10.10.10.0:cluster_interconnect&lt;br /&gt;&amp;lt;CRS_HOME&amp;gt;/bin # ./oifcfg getif&lt;br /&gt;&amp;nbsp;eth0 192.168.1.0 global public&lt;br /&gt;&amp;nbsp;eth1 10.10.10.0 global cluster_interconnect&lt;br /&gt;&lt;br /&gt;The goal is to get the output of "oifcfg getif" to include both public and cluster_interconnect interfaces, of course you should exchange your own IP addresses and interface name from your environment. To get the proper IPs in your environment run this command:&lt;br /&gt;&lt;br /&gt;&amp;lt;CRS_HOME&amp;gt;/bin # ./oifcfg iflist&lt;br /&gt;eth0 192.168.1.0&lt;br /&gt;eth1 10.10.10.0&lt;br /&gt;&lt;br /&gt;Run vipca manually from failed node&lt;br /&gt;/u01/app/oracle/oracle/product/10.2.0/racdb&lt;br /&gt;&lt;br /&gt;WARNING !!!!&lt;br /&gt;If you use vlans then avoid to have interfaces with names like : eth0.100&lt;br /&gt;Try to use names like vlan100.&lt;br /&gt;Use the following configuration for the ifcfg-[interface] script&lt;br /&gt;&lt;br /&gt;VLAN=yes&lt;br /&gt;VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD&lt;br /&gt;DEVICE=vlan100&lt;br /&gt;PHYSDEV=eth0&lt;br /&gt;BOOTPROTO=static&lt;br /&gt;ONBOOT=yes&lt;br /&gt;TYPE=Ethernet&lt;br /&gt;IPADDR=10.254.5.254&lt;br /&gt;NETMASK=255.255.255.0&lt;br /&gt;&lt;br /&gt;Do these changes or oifcfg getif will not return the interfaces and vipca never run !!!&lt;br /&gt;&lt;br /&gt;Create a file for crs environment on both nodes&lt;br /&gt;e.g .crsenv&lt;br /&gt;unset ORACLE_BASE&lt;br /&gt;unset ORACLE_HOME&lt;br /&gt;unset ORACLE_SID&lt;br /&gt;unset PATH&lt;br /&gt;export ORACLE_BASE=/u01/app/oracle&lt;br /&gt;export ORACLE_HOME=/u01/app/crs&lt;br /&gt;export PATH=$ORACLE_HOME/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin&lt;br /&gt;&lt;br /&gt;Patch crs to the latest patch set. CRS must always have the same or higher patch level than the oracle database home.&lt;br /&gt;Then install Oracle Software using software only and selecting all Cluster Nodes.&lt;br /&gt;Patch the new oracle home to the latest patch set and then&lt;br /&gt;1) Create the ASM Instance and Configrue the Disk Groups&lt;br /&gt;2) Create your RAC database and choose to manage it with dbconsole.&lt;br /&gt;&lt;br /&gt;References&lt;br /&gt;&lt;br /&gt;Metalink Notes : 414163.1,421308.1&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-3648801273042666730?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3648801273042666730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/07/install-10gr2-rac-crsdatabase-on-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3648801273042666730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3648801273042666730'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/07/install-10gr2-rac-crsdatabase-on-centos.html' title='Install 10gR2 RAC (CRS,DATABASE) on CentOS Enterprise / RHEL / Oracle Enterprise Linux x86_64 5.x'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-1769181857603664478</id><published>2011-07-03T15:33:00.000+02:00</published><updated>2011-07-03T15:33:24.852+02:00</updated><title type='text'>Oracle 10gR2 CRS diagwait to avoid OPROCD node evictions</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;If your CRS is from 10.2.0.3 and up is a must to&amp;nbsp;apply&amp;nbsp;the following on each node on our cluster.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Execute as root &lt;br /&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;#crsctl stop crs &lt;br /&gt;#&amp;lt;CRS_HOME&amp;gt;/bin/oprocd stop&lt;/code&gt; &lt;/div&gt;&lt;/li&gt;&lt;li&gt;Ensure that Clusterware stack is down on all nodes by executing &lt;br /&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;#ps -ef |egrep "crsd.bin|ocssd.bin|evmd.bin|oprocd"&lt;/code&gt;&lt;/div&gt;This should return no processes. If there are clusterware processes running and you proceed to the next step, you will corrupt your OCR. Do not continue until the clusterware processes are down on all the nodes of the cluster.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;From one node of the cluster, change the value of the "diagwait" parameter to 13 seconds by issuing the command as root: &lt;br /&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;#crsctl set css diagwait 13 -force &lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;Check if diagwait is set successfully by executing. the following command. The command should return 13. If diagwait is not set, the following message will be returned "Configuration parameter diagwait is not defined"&lt;br /&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;#crsctl get css diagwait&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;Restart the Oracle Clusterware on all the nodes by executing: &lt;br /&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;#crsctl start crs &lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;Validate that the node is running by executing: &lt;br /&gt;&lt;div class="kmcodeblock" style="width: 95%;"&gt;&lt;code class="km"&gt;#crsctl check crs&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;The above procedure had set the diagwait parameter to 13. This parameter according to Oracle gives an additional time of 10 secs to flush the&amp;nbsp;necessary&amp;nbsp;CRS diagnostics on the disk during a node eviction. From my experience it resolves node evictions under heavy load (Specially in AIX) because changes the OPROCD default values that affect scheduling latencies. In most circumstances OPROCD default values can be overly very sensitive , especially under&amp;nbsp;heavy&amp;nbsp;loaded cluster and Oracle stated "To overcome these scheduling latencies, Oracle recommends that you set the Oracle Clusterware parameter DIAGWAIT to the value 13." on note id&amp;nbsp;567730.1&lt;br /&gt;&lt;br /&gt;Personally i set this parameter in every Oracle Clusterware 10gR2 (10.2.0.3 and up) installation.&lt;br /&gt;It does not apply in 11g since the logic has change.&lt;br /&gt;&lt;br /&gt;References&lt;br /&gt;&lt;br /&gt;Oracle Metalink Notes: 559365.1&amp;nbsp;,567730.1&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-1769181857603664478?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/1769181857603664478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/07/oracle-10gr2-crs-diagwait-to-avoid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1769181857603664478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1769181857603664478'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/07/oracle-10gr2-crs-diagwait-to-avoid.html' title='Oracle 10gR2 CRS diagwait to avoid OPROCD node evictions'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-9182540685969681281</id><published>2011-06-08T11:35:00.002+02:00</published><updated>2011-06-09T13:03:23.199+02:00</updated><title type='text'>Oracle 10gR2 Secure External Password Store</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Secure External Password Store is an Oracle 10g Release 2 feature that gives you the capability to encrypt password used from client scripts (sqlplus , shell , expdp/impdp exp/imp) &amp;nbsp;that connects to the database, using an Oracle Wallet.&lt;br /&gt;&lt;br /&gt;The configuration is very simple so just follow these steps (Unix/Linux):&lt;br /&gt;&lt;br /&gt;1) First verify that you have an entry in the tnsnames.ora for your Database by&amp;nbsp;creating&amp;nbsp;a valid&amp;nbsp;&lt;b&gt;db_tns_alias&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;2) Create the Oracle Wallet&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mkstore -wrl /your_wallet_store_dir -create (It will ask to enter a password twice)&lt;br /&gt;&lt;br /&gt;3) Create the database credentials inside the wallet&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mkstore -wrl&amp;nbsp;/your_wallet_store_dir&amp;nbsp;-createCredential tns_alias username password&lt;br /&gt;&lt;br /&gt;4) &amp;nbsp;Add the&amp;nbsp;following&amp;nbsp;lines on $ORACLE_HOME/network/admin/sqlnet.ora (or create it if not exists)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;WALLET_LOCATION =&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;(SOURCE = (METHOD = FILE)&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; (METHOD_DATA =&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;(DIRECTORY = /&lt;span class="Apple-style-span" style="font-style: normal;"&gt;your_wallet_store_dir&lt;/span&gt;)))&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;SQLNET.WALLET_OVERRIDE = TRUE&lt;/i&gt;&lt;br /&gt;&lt;i&gt;SSL_CLIENT_AUTHENTICATION = FALSE&lt;/i&gt;&lt;br /&gt;&lt;i&gt;SSL_VERSION = 0&lt;/i&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;5) Just use the &lt;b&gt;/@db_tns_alias&lt;/b&gt; when you want to connect to the specified user&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;sqlplus&amp;nbsp;/@db_tns_alias&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;expdp&amp;nbsp;/@tns_alias parfile=/mydir/mypar.par&lt;br /&gt;&lt;br /&gt;6) You have commands to delete, list , and modify the credentials using the mkstore utility&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mkstore -wrl&amp;nbsp;/your_wallet_store_dir&amp;nbsp;-listCredential&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mkstore -wrl&amp;nbsp;/your_wallet_store_dir&amp;nbsp;-deleteCredential&amp;nbsp;db_tns_alias&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mkstore -wrl&amp;nbsp;/your_wallet_store_dir&amp;nbsp;-modifyCredential&amp;nbsp;db_tns_alias username newpassword (Must have been changed on the database side first)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;References&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;Oracle Support Note :&amp;nbsp;Using The Secure External Password Store [ID 340559.1]&lt;br /&gt;&lt;a href="http://www.oracle.com/technetwork/database/security/twp-db-security-secure-ext-pwd-stor-133399.pdf"&gt;Oracle Secure External Password Store White Paper&lt;/a&gt;&lt;br /&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/5521622797995039163-9182540685969681281?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/9182540685969681281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/06/oracle-10gr2-secure-external-password.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9182540685969681281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9182540685969681281'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/06/oracle-10gr2-secure-external-password.html' title='Oracle 10gR2 Secure External Password Store'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2472114430630010004</id><published>2011-05-26T11:00:00.000+02:00</published><updated>2011-05-26T11:00:04.077+02:00</updated><title type='text'>Installing Oracle Grid Control 10.2.0.5 on RHEL 5.X</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;After several tries i managed to install and configure the EM Grid Control 10.2.0.3 and patch it to 10.2.0.5.&lt;br /&gt;&lt;br /&gt;This guide will help you bypass any issues.&lt;br /&gt;I will install using an existing database (RAC) and i will also tell you how you will make OMS RAC aware.&lt;br /&gt;&lt;br /&gt;1) Pre Installation &lt;br /&gt;&lt;br /&gt;Please go to &lt;a href="http://agstamy.blogspot.com/2008/11/oracle-10gr2-installation-on-rhel5.html"&gt;Oracle 10gr2 installation on RHEL5&lt;/a&gt;&amp;nbsp;and follwow the guide until step 11.&lt;br /&gt;&lt;br /&gt;Also check&lt;br /&gt;Oracle® Enterprise Manager Grid Control Installation and Basic Configuration 10g Release 3 (10.2.0.3.0)&lt;br /&gt;Part Number B40103-01&lt;br /&gt;Chapter 1 Preinstallation Requirements&lt;br /&gt;Appendix B Platform-Specific Package and Kernel Requirements&lt;br /&gt;&lt;br /&gt;Then go into rour software directory and run :&lt;br /&gt;export DISPLAY:YOUR_XHOST_CLIENT:0.0&lt;br /&gt;./runInstaller -ignoreSysPreReqs&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) Instalation&lt;br /&gt;- Choose Enterprise Manager Grid Control Using an Extsing Database.&lt;br /&gt;- Choose your oracle base location. If you have set ORACLE_BASE before installing it will go there.&lt;br /&gt;- Choose your language and click Next.&lt;br /&gt;- Choose an inventory location and user groups.&lt;br /&gt;- Make user verified the installer checks about O/S , O/S Packages and GLIBC package.&lt;br /&gt;- Give database connection details (For RAC DBs also give one node instance connect info, it will be fixed at the end)&lt;br /&gt;&amp;nbsp;&amp;nbsp;Press the "Prefill Tablespace Locations". If you use ASM it will open a Window that it will tell you to provide the desired Groups.&lt;br /&gt;&amp;nbsp;&amp;nbsp;If you have allready using DB console (SYSMAN Schema exists) you will get a warning. Do as desired !!&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Please ensure that you have aq_tm_processes=1 and session_cached_cursors=200 or you will get another warning&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Ensure that even if you use Automatic Memory Management that in the instacne you connect the shared_pool_size is greater than 150M.&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Just set it to bypass the installer prob and then reset back.&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;e.g for a RAC Instance&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;alter system set shared_pool_size=500M sid='rlabdb1';&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;alter system reset shared_pool_size sid='rlabdb1';&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Run the follwoing script : @?/rdbms/admin/dbmspool.sql on your DB&lt;br /&gt;- Configure your email and your smtp server for all notifications, Metalink Info and Proxy Configuration for patching and staging (You can do it later).&lt;br /&gt;- Set up your passwords and decide if you want the Agents to use SSL for communications with the OMS and Central Agent&lt;br /&gt;- Finally press Install !!!&lt;br /&gt;&lt;br /&gt;3) Installation Problems&lt;br /&gt;- If you take a warning that "OPMN Process Manager failed to start .. Check the logs in [ORACLE_BASE]/oms10g/opmn/logs" do the following:&lt;br /&gt;&amp;nbsp;&amp;nbsp;Go to the dir and vi the ipm.log. If you see "PM state file does not exist: [ORACLE_BASE]/oms10g/opmn/logs/states/.opmndat" touch the file manually&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;[oracle@vmsrv21 logs]$ touch [ORACLE_BASE]/oms10g/opmn/logs/states/.opmndat&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Check that opmn is allready started&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;[oracle@vmsrv21 logs]$ [ORACLE_BASE]/oms10g/opmn/bin/opmnctl status&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;If you see the following lines ... you are ok ... Press continue not Retry&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Processes in Instance: EnterpriseManager0.vmsrv21.internal.upstreamsystems.com&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;-------------------+--------------------+---------+---------&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ias-component &amp;nbsp; &amp;nbsp; &amp;nbsp;| process-type &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; pid | status&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;-------------------+--------------------+---------+---------&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;DSA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| DSA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;HTTP_Server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| HTTP_Server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;LogLoader &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| logloaderd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;dcm-daemon &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | dcm-daemon &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;OC4J &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | home &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;WebCache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | WebCache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;WebCache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | WebCacheAdmin &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Otherwise&lt;br /&gt;&amp;nbsp;&amp;nbsp;[oracle@vmsrv21 logs]$ [ORACLE_BASE]/oms10g/opmn/bin/opmnctl status&lt;br /&gt;&lt;br /&gt;4) Configuration Assistant Problems&lt;br /&gt;&lt;br /&gt;- OC4J Instance Configuration Assistant&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Check the details pane on installer. You may see &amp;nbsp;OC4JDeploy Tool completed but with errors&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;go to [ORACLE_BASE]/oms10g/cfgtoollogs and check the failed command&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;vi configToolFailedCommands&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;The first comand is the failed.&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;[ORACLE_BASE]/oms10g/jdk/bin/java -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=/tmp -mx512M -classpath [ORACLE_BASE]/oms10g/dcm/lib/dcm.jar:[ORACLE_BASE]/oms10g/dcm/lib/oc4j_deploy_tools.jar:[ORACLE_BASE]/oms10g/opmn/lib/opmnplugin.jar -Doracle.ias.sysmgmt.logging.logdir=[ORACLE_BASE]/oms10g/j2ee/home/log oracle.j2ee.tools.deploy.Oc4jDeploy -oraclehome [ORACLE_BASE]/oms10g -verbose -inifile [ORACLE_BASE]/oms10g/j2ee/deploy.ini&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;I resolved it doing a manuall restart of the opmn managed process&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;1. Check the status&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;[oracle@vmsrv21 bin]$ ./opmnctl status&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Processes in Instance: EnterpriseManager0.vmsrv21.internal.upstreamsystems.com&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;-------------------+--------------------+---------+---------&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ias-component &amp;nbsp; &amp;nbsp; &amp;nbsp;| process-type &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; pid | status&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;-------------------+--------------------+---------+---------&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;DSA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| DSA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;HTTP_Server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| HTTP_Server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;LogLoader &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| logloaderd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;dcm-daemon &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | dcm-daemon &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; 10901 | Alive&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;OC4J &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | home &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;WebCache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | WebCache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;WebCache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | WebCacheAdmin &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;2. Stop and start everything&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;[oracle@vmsrv21 bin]$ ./opmnctl stopall&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;opmnctl: stopping opmn and all managed processes...&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;[oracle@vmsrv21 bin]$ ./opmnctl startall&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;opmnctl: starting opmn and all managed processes...&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;3. Check the status again , if this is your case you will see more process in status "Alive"&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;[oracle@vmsrv21 bin]$ ./opmnctl status&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Processes in Instance: EnterpriseManager0.vmsrv21.internal.upstreamsystems.com&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;-------------------+--------------------+---------+---------&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ias-component &amp;nbsp; &amp;nbsp; &amp;nbsp;| process-type &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; pid | status&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;-------------------+--------------------+---------+---------&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;DSA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| DSA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;HTTP_Server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| HTTP_Server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; 12224 | Alive&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;LogLoader &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| logloaderd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;dcm-daemon &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | dcm-daemon &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; N/A | Down&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;OC4J &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | home &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; 12225 | Alive&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;WebCache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | WebCache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; 12246 | Alive&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;WebCache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | WebCacheAdmin &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; 12234 | Alive&lt;br /&gt;&lt;br /&gt;- OMS Configuration Assistant&lt;br /&gt;&amp;nbsp;&amp;nbsp;Check which process failed to start&lt;br /&gt;&amp;nbsp;&amp;nbsp;vi [ORACLE_BASE]/oms10g/cfgtoollogs/cfgfw/&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; &amp;nbsp;INFO: oracle.sysman.top.oms:PerformSecureCommand:runCmd:Command Output stderr:&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;'================================================================================&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;opmn id=vmsrv21.internal.upstreamsystems.com:6200&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;5 of 6 processes started.&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ias-instance id=EnterpriseManager0.vmsrv21.internal.upstreamsystems.com&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ias-component/process-type/process-set:&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;HTTP_Server/HTTP_Server/HTTP_Server&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Error&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;--&amp;gt; Process (pid=27421)&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;failed to start a managed process after the maximum retry limit&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;Log:[ORACLE_BASE]/oms10g/opmn/logs/HTTP_Server~1&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; Check the Apache Start Log :&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; This is the ouput of my Log.&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; [ORACLE_BASE]/oms10g/Apache/Apache/bin/apachectl startssl: execing httpd&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; Usually the problem is with the SSL Wallet Configuratiopn.&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; Edit the template httpd_em.conf on [ORACLE_BASE]/oms10g/sysman/config/httpd_em.conf.template&lt;br /&gt;&amp;nbsp;&amp;nbsp; Locate the follwoing 2 lines :&lt;br /&gt;&amp;nbsp;&amp;nbsp; SSLWallet file:&amp;amp;ORACLE_HOME&amp;amp;/sysman/wallets/oms.&amp;amp;THIS_DNS_HOST&amp;amp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; SSLWalletPassword &amp;amp;OMS_WALLET_PASSWORD&amp;amp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; Comment the second and make the first as follows in order to have the new output.&lt;br /&gt;&amp;nbsp;&amp;nbsp; SSLWallet file:&amp;amp;ORACLE_HOME&amp;amp;/Apache/Apache/conf/ssl.wlt/default&lt;br /&gt;&amp;nbsp;&amp;nbsp; #SSLWalletPassword &amp;amp;OMS_WALLET_PASSWORD&amp;amp;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Retry OMS configuration to proceed&lt;br /&gt;&lt;br /&gt;- Agent Configuration Assistan&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;You may get a message that the agent ca has failed but the central agent is up and running.&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Check the status of the central agent : [ORACLE_BASE]/agent10g/bin/emctl status agent&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Agent LogFiles Directory : [ORACLE_BASE]/agent10g/sysman/log&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Agent Configuration Directory : [ORACLE_BASE]/agent10g/sysman/log&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;5) Set EM Grid Control to Use RAC DB URL&lt;br /&gt;&lt;br /&gt;- Edit the emoms.properities&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;vi [ORACLE_BASE]/oms10g/sysman/config/emoms.properties&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Edit oracle.sysman.eml.mntr.emdRepConnectDescriptor property and put the in the field service_name a RAC configured service.&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;oracle.sysman.eml.mntr.emdRepConnectDescriptor=(DESCRIPTION\=(LOAD_BALANCE\=on)(FAILOVER\=on)(ADDRESS_LIST\=(ADDRESS\=(PROTOCOL\=TCP)(HOST\=labdb01.internal.upstreamsystems.com)(PORT\=1521))(ADDRESS\=(PROTOCOL\=TCP)(HOST\=labdb02.internal.upstreamsystems.com)(PORT\=1521)))(CONNECT_DATA\=(SERVICE_NAME\=raclabdb))(FAILOVER_MODE\=(TYPE\=select)(METHOD\=basic)))&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Restart All Processes !!&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;[ORACLE_BASE]/oms10g/opmn/bin/opmnctl stopall&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;[ORACLE_BASE]/oms10g/opmn/bin/opmnctl startall&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;[ORACLE_BASE]/oms10g/opmn/bin/opmnctl status&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;6) Apply 10.2.0.5 Patch Set&lt;br /&gt;&lt;br /&gt;Follow the README.txt that comes with the pact set and you will not have any problems.&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/5521622797995039163-2472114430630010004?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2472114430630010004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/05/installing-oracle-grid-control-10205-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2472114430630010004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2472114430630010004'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/05/installing-oracle-grid-control-10205-on.html' title='Installing Oracle Grid Control 10.2.0.5 on RHEL 5.X'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-9090326840975625679</id><published>2011-05-24T11:57:00.000+02:00</published><updated>2011-05-24T11:57:42.833+02:00</updated><title type='text'>Transport Tablespace and Re-mapping Schemas/Datafiles/Tablespaces 10gR2 (10.2.0.4)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Recently i tried to do an impdp using the remap_schema,remap_tablespace and remap_datafiles along with the transport_datafiles.&lt;br /&gt;&lt;br /&gt;This action hits BUG:6989875&amp;nbsp;which causes Data Pump&amp;nbsp;Worker process (DW) to hang when using paramter REMAP_DATAFILE. Also specifying REMAP_DATAFILE&amp;nbsp;during a datapump import job when also specifying&amp;nbsp;TRANSPORT_DATAFILES&amp;nbsp;is not allowed, according to Metalink Note:&amp;nbsp;762160.1&lt;br /&gt;&lt;br /&gt;This BUG is fix in 11.2 Release.&lt;br /&gt;&lt;br /&gt;The workaround is the only legal way to do the desired renaming of the datafiles:&lt;br /&gt;&lt;br /&gt;If you need to use a different filename for the imported tablespace simply copy or rename the affected datafile before starting the import using cp or mv&amp;nbsp;commands&amp;nbsp;for unix. Then in the&amp;nbsp;TRANSPORT_DATAFILES parameter use the new file names.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&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/5521622797995039163-9090326840975625679?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/9090326840975625679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/05/transport-tablespace-and-re-mapping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9090326840975625679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9090326840975625679'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/05/transport-tablespace-and-re-mapping.html' title='Transport Tablespace and Re-mapping Schemas/Datafiles/Tablespaces 10gR2 (10.2.0.4)'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3222384175172446618</id><published>2011-05-11T11:23:00.001+02:00</published><updated>2011-05-11T11:30:20.358+02:00</updated><title type='text'>CleanUp Temporary Segments Occupying Permanent Tablespace</title><content type='html'>Recently i did some objects reorganization but i left with some temporary segments occupying space which smon did not drop because the tablespace was READ ONLY. When i made it READ WRITE then the temporary segments dropped.If the problem persists you have by different reason please follow this article :http://askdba.org/weblog/2009/07/cleanup-temporary-segments-in-permanent-tablespace&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-3222384175172446618?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3222384175172446618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/05/cleanup-temporary-segments-occupying.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3222384175172446618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3222384175172446618'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/05/cleanup-temporary-segments-occupying.html' title='CleanUp Temporary Segments Occupying Permanent Tablespace'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-843179861399951898</id><published>2011-05-10T13:30:00.000+02:00</published><updated>2011-05-10T13:30:21.512+02:00</updated><title type='text'>ORA-39726 tying to drop column on compressed table (10g)</title><content type='html'>You get ORA-39726: unsupported add/drop column operation on compressed tables when you try to drop a column on a compressed table. In order to avoid drop and recreate the table and adding all indexes , constraints etc you can set the column unused.alter table mytable set unused (mycol1,mycol2);This statement does not actually remove the target column data or restore the disk space occupied by these columns. However, a column that is marked as unused is not displayed in queries or data dictionary views, and its name is removed so that a new column can reuse that name. All constraints, indexes, and statistics defined on the column are also removed.References:Oracle® Database Administrator's Guide 10g Release 2 (10.2)Chapter 15 -- Managing TablesTopic : Altering ColumnsNote:In 11g you can also drop columns on compressed tables If you enable compression for all operations on a table. If you enable compression for direct-path inserts only, you cannot drop columns.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-843179861399951898?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/843179861399951898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/05/ora-39726-tying-to-drop-column-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/843179861399951898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/843179861399951898'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/05/ora-39726-tying-to-drop-column-on.html' title='ORA-39726 tying to drop column on compressed table (10g)'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-74334523468598374</id><published>2011-04-14T13:39:00.000+02:00</published><updated>2011-04-14T13:39:49.816+02:00</updated><title type='text'>Constraints : FKs influence in performance , Deferrable Decleration</title><content type='html'>Very useful articles about constrains from Tom Kyte.About Fks and the affect on Query Optimizer.http://www.oracle.com/technetwork/issue-archive/2009/09-may/o39asktom-096149.htmlAbout the deferrable status and suggestion when to implement it. (First Part of the Article)http://www.oracle.com/technetwork/issue-archive/2011/11-may/o31asktom-354139.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-74334523468598374?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/74334523468598374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/04/constraints-fks-influence-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/74334523468598374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/74334523468598374'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/04/constraints-fks-influence-in.html' title='Constraints : FKs influence in performance , Deferrable Decleration'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3196203865493959043</id><published>2011-03-18T12:36:00.000+02:00</published><updated>2011-03-18T12:36:07.894+02:00</updated><title type='text'>Oracle 11gR2 on AIX Memory Issue after Upgrade</title><content type='html'>Check this article if you plan or already upgraded to 11gR2 on AIX.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;a href="http://www.ora600.be/Memory+Footprint+For+Dedicated+Server+Processes+More+Than+Doubled+After+11g+Upgrade+On+AIX+Platform"&gt;http://www.ora600.be/Memory+Footprint+For+Dedicated+Server+Processes+More+Than+Doubled+After+11g+Upgrade+On+AIX+Platform&lt;/a&gt;&lt;/i&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-3196203865493959043?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3196203865493959043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/03/oracle-11gr2-on-aix-memory-issue-after.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3196203865493959043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3196203865493959043'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/03/oracle-11gr2-on-aix-memory-issue-after.html' title='Oracle 11gR2 on AIX Memory Issue after Upgrade'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-7778347369479451131</id><published>2011-03-18T09:45:00.006+02:00</published><updated>2011-03-18T10:02:00.640+02:00</updated><title type='text'>Profile and Resource Limit</title><content type='html'>Recently i decided to set an idle_time limit for some of my production database users, beacause all the time left their sessions connected to the database after finishing their work consuming resources.&lt;br /&gt;&lt;br /&gt;I create a profile limiting idle time to 2 hours , but i found out that its not working. &lt;br /&gt;&lt;br /&gt;In order a profile to limit a resource you must set the RESOURCE_LIMIT initialization parameter to TRUE. Fortunately this parameter is dynamic so :&lt;br /&gt;&lt;br /&gt;Issue : &lt;br /&gt;&lt;br /&gt;For RAC DBs:&lt;br /&gt;alter system set resource_limit = TRUE scope=both SID='*';&lt;br /&gt;create profile tst_profile limit idle_time 120;&lt;br /&gt;alter user my user profile tst_profile;&lt;br /&gt;&lt;br /&gt;For non RAC DBs omit the sid='*'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For more info check the &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Oracle® Database Security Guide 10g Release 2 (10.2) &lt;br /&gt;Part Number B14266-06&lt;span style="font-weight:bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-7778347369479451131?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/7778347369479451131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/03/profile-and-resource-limit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7778347369479451131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7778347369479451131'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/03/profile-and-resource-limit.html' title='Profile and Resource Limit'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-4416070890151346001</id><published>2011-03-14T17:01:00.002+02:00</published><updated>2011-03-14T17:04:21.514+02:00</updated><title type='text'>ORA-00600: internal error code, arguments: [kdsgrp1]</title><content type='html'>ORA-00600: internal error code, arguments: [kdsgrp1] , This error may occur on a RAC database when (re)building index online. &lt;br /&gt;&lt;br /&gt;The fixes for this bug are in Metalink Note : 285586.1&lt;br /&gt;&lt;br /&gt;As a workaround please try to rebuild the index either offline or online with as little as possible activity on the affected table.&lt;br /&gt;&lt;br /&gt;If error continues check the table for chained rows.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-4416070890151346001?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/4416070890151346001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/03/ora-00600-internal-error-code-arguments.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4416070890151346001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4416070890151346001'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/03/ora-00600-internal-error-code-arguments.html' title='ORA-00600: internal error code, arguments: [kdsgrp1]'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2770660885594012056</id><published>2011-03-14T10:46:00.002+02:00</published><updated>2011-03-14T10:57:53.336+02:00</updated><title type='text'>ORA-00230 operation disallowed: snapshot controlfile enqueue unavailable</title><content type='html'>On RMAN backup with automated controlfile backup enabled this error means that another process currently holds the snapshot controlfile enqueue , so the current process cannot backup it.&lt;br /&gt;&lt;br /&gt;If you have this error with multiple channels, you may hit a bug. Search Oracle Support.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2770660885594012056?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2770660885594012056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/03/ora-00230-operation-disallowed-snapshot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2770660885594012056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2770660885594012056'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/03/ora-00230-operation-disallowed-snapshot.html' title='ORA-00230 operation disallowed: snapshot controlfile enqueue unavailable'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3239043824400668233</id><published>2011-03-09T12:05:00.000+02:00</published><updated>2011-03-09T12:06:28.486+02:00</updated><title type='text'>Oracle Data Types</title><content type='html'>A very nice article about the Oracle Data Types.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.asktheoracle.net/oracle-data-types.html"&gt;http://www.asktheoracle.net/oracle-data-types.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-3239043824400668233?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3239043824400668233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/03/oracle-data-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3239043824400668233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3239043824400668233'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/03/oracle-data-types.html' title='Oracle Data Types'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-5218551712763879036</id><published>2011-03-02T11:52:00.003+02:00</published><updated>2011-03-02T11:55:36.047+02:00</updated><title type='text'>Exchanging Partitions Example</title><content type='html'>1) Exchanging a List partition table &lt;br /&gt;&lt;br /&gt;The following example will show how to move from one partition table to a new one using an intermediate table.&lt;br /&gt;&lt;br /&gt;-- Create our set of tables and populate with some data&lt;br /&gt;&lt;br /&gt;CREATE TABLE myschema.my_part_table&lt;br /&gt;(a char(1),&lt;br /&gt;b int&lt;br /&gt;) partition by list(b)&lt;br /&gt;  (&lt;br /&gt;    partition p_initial values (0),&lt;br /&gt;    partition p_part values (1)&lt;br /&gt;    &lt;br /&gt;  );&lt;br /&gt;&lt;br /&gt;create index myschema.my_part_table_idx on myschema.my_part_table(b) local;&lt;br /&gt;&lt;br /&gt;insert into myschema.my_part_table&lt;br /&gt;select 'A',1&lt;br /&gt;from all_objects;&lt;br /&gt;&lt;br /&gt;commit;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;create table myschema.my_int_table as select * from myschema.my_part_table where 1=2;&lt;br /&gt;create index myschema.int_my_part_table_idx on myschema.my_int_table(b);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE TABLE myschema.my_new_part_table&lt;br /&gt;(a char(1),&lt;br /&gt;b int&lt;br /&gt;) partition by list(b)&lt;br /&gt;  (&lt;br /&gt;    partition p_initial values (0),&lt;br /&gt;    partition p_part values (1)&lt;br /&gt;    &lt;br /&gt;  );&lt;br /&gt;&lt;br /&gt;create index myschema.my_part_table_idx on myschema.my_new_part_table(b) local;&lt;br /&gt;&lt;br /&gt;-- Exchange original partition with intermediate table&lt;br /&gt;&lt;br /&gt;alter table myschema.my_part_table exchange partition p_part with table myschema.my_int_table &lt;br /&gt;including indexes without validation;&lt;br /&gt;&lt;br /&gt;-- Exchange intermediate table with target partition table&lt;br /&gt;&lt;br /&gt;alter table myschema.my_new_part_table exchange partition p_part with table myschema.my_int_table &lt;br /&gt;including indexes without validation;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- Verify the data are in the new partition table&lt;br /&gt;select * from myschema.my_part_table partition (p_part);&lt;br /&gt;select * from myschema.my_new_part_table partition (p_part);&lt;br /&gt;select * from myschema.my_int_table;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-5218551712763879036?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/5218551712763879036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/03/exchanging-partitions-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5218551712763879036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5218551712763879036'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/03/exchanging-partitions-example.html' title='Exchanging Partitions Example'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-9055104416076891200</id><published>2011-03-01T12:04:00.000+02:00</published><updated>2011-03-01T12:05:46.424+02:00</updated><title type='text'>ORA-00054 Resource busy and acquire with NOWAIT specified</title><content type='html'>A very nice entry for Oracle lock analysis &lt;br /&gt;&lt;br /&gt;http://arjudba.blogspot.com/2009/01/ora-00054-resource-busy-and-acquire.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-9055104416076891200?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/9055104416076891200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/03/ora-00054-resource-busy-and-acquire.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9055104416076891200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9055104416076891200'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/03/ora-00054-resource-busy-and-acquire.html' title='ORA-00054 Resource busy and acquire with NOWAIT specified'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-1636199393042140181</id><published>2011-02-25T10:29:00.002+02:00</published><updated>2011-02-25T10:36:44.862+02:00</updated><title type='text'>ORA-20401: A job with the specified name already exists</title><content type='html'>Sometimes in EM Dbconsole 10.2 you try to create a new job and you get the follwoing error:&lt;br /&gt;&lt;br /&gt;ORA-20401: A job with the specified name already exists ORA-06512: at "SYSMAN.MGMT_JOBS&lt;br /&gt;&lt;br /&gt;First thing is to check the Job and Job library EM screens to check if the job appears there. If so check the status and try to delete from there. &lt;br /&gt;&lt;br /&gt;If you cannot change the status please follow :&lt;br /&gt;&lt;br /&gt;&lt;a href="http://agstamy.blogspot.com/2009/10/stop-dbconsole-job-hung-in-status-stop.html"&gt;Stop dbconsole job hung in status Stop Pending&lt;/a&gt; on this blog to change the status to stopped.&lt;br /&gt;&lt;br /&gt;The if you want to delete it , and you are sure there is other instance of the job scheduled execute :&lt;br /&gt;&lt;br /&gt;as sysman:&lt;br /&gt;&lt;br /&gt;select job_id, job_name, job_owner from mgmt_job where job_name like '%[JOB_NAME]%'; &lt;br /&gt;exec mgmt_job_engine.delete_job('[JOB_ID_FROM_PREVIOUS_STEP]');&lt;br /&gt;commit;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;References&lt;br /&gt;&lt;br /&gt;Oracle Metalink Note ID 430626.1&lt;br /&gt;&lt;a href="http://vijaydumpa.blogspot.com/2008/02/how-to-delete-jobs-stay-in-running.html"&gt;Vijay R. Dumpa Oracle Blog&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-1636199393042140181?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/1636199393042140181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/02/ora-20401-job-with-specified-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1636199393042140181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1636199393042140181'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/02/ora-20401-job-with-specified-name.html' title='ORA-20401: A job with the specified name already exists'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-8601202819369791345</id><published>2011-02-16T11:55:00.001+02:00</published><updated>2011-02-16T11:56:35.396+02:00</updated><title type='text'>Oracle 9i and 10g Documentation Online</title><content type='html'>Here is a link with the Oracle 9iR2 and 10g R1 &amp; R2 online.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.stanford.edu/dept/itss/docs/oracle/"&gt;http://www.stanford.edu/dept/itss/docs/oracle/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-8601202819369791345?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/8601202819369791345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/02/oracle-9i-and-10g-documentation-online.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8601202819369791345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8601202819369791345'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/02/oracle-9i-and-10g-documentation-online.html' title='Oracle 9i and 10g Documentation Online'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-8350678259179406730</id><published>2011-02-09T11:04:00.001+02:00</published><updated>2011-02-09T11:05:56.635+02:00</updated><title type='text'></title><content type='html'>A very nice article about the 11g Result Cache Feature. It also discusses how RAC benefits from this feature and differences between 11g and 10g.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.oracle.com/technetwork/articles/datawarehouse/vallath-resultcache-rac-284280.html?msgid=3-3351742848"&gt;http://www.oracle.com/technetwork/articles/datawarehouse/vallath-resultcache-rac-284280.html?msgid=3-3351742848&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-8350678259179406730?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/8350678259179406730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/02/very-nice-article-about-11g-result.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8350678259179406730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8350678259179406730'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/02/very-nice-article-about-11g-result.html' title=''/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-7006716324978828912</id><published>2011-02-08T12:09:00.002+02:00</published><updated>2011-02-08T12:14:16.759+02:00</updated><title type='text'>Global Temporary Tables</title><content type='html'>A very nice article for Global Temporary Tables from Jonathan Lewis&lt;br /&gt;&lt;a href="http://jonathanlewis.wordpress.com/2011/02/06/gtts/"&gt;http://jonathanlewis.wordpress.com/2011/02/06/gtts/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-7006716324978828912?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/7006716324978828912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/02/global-temporary-tables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7006716324978828912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7006716324978828912'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/02/global-temporary-tables.html' title='Global Temporary Tables'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-4238325176633470126</id><published>2011-02-03T16:04:00.006+02:00</published><updated>2011-02-24T18:23:25.762+02:00</updated><title type='text'>TSPITR Fails with ORA-29308: view TS_PITR_CHECK failure</title><content type='html'>Trying to do automated tablespace point in time recovery(TSPITR) containing an IOT with a LOB column and fails to the Export Face of the recovered tablespace with the following : &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Export: Release 10.2.0.4.0 - Production on Thu Feb 3 15:18:34 2011&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2007, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, OLAP, Data Mining&lt;br /&gt;and Real Application Testing options&lt;br /&gt;Export done in US7ASCII character set and UTF8 NCHAR character set&lt;br /&gt;server uses UTF8 character set (possible charset conversion)&lt;br /&gt;Note: table data (rows) will not be exported&lt;br /&gt;&lt;br /&gt;About to export Tablespace Point-in-time Recovery objects...&lt;br /&gt;EXP-00008: ORACLE error 29308 encountered&lt;br /&gt;ORA-29308: view TS_PITR_CHECK failure&lt;br /&gt;ORA-06512: at "SYS.DBMS_PITR", line 889&lt;br /&gt;ORA-06512: at line 1&lt;br /&gt;EXP-00000: Export terminated unsuccessfully&lt;br /&gt;host command complete&lt;br /&gt;&lt;br /&gt;Removing automatic instance&lt;br /&gt;shutting down automatic instance&lt;br /&gt;Oracle instance shut down&lt;br /&gt;Automatic instance removed&lt;br /&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============&lt;br /&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-03002: failure of recover command at 02/03/2011 15:18:38&lt;br /&gt;RMAN-03015: error occurred in stored script Memory Script&lt;br /&gt;RMAN-06135: error executing host command: Additional information: 256&lt;br /&gt;Additional information: 11&lt;br /&gt;&lt;br /&gt;Bug 6620517  ORA-29308 from TSPITR with IOT with LOB column&lt;br /&gt;Fixed in 10.2.0.5&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;ATTENTION !!!!&lt;br /&gt;Bug 6620517 is not only to IOT's with LOB's but more issue with IOT's and TSPITR.&lt;br /&gt;&lt;br /&gt;This an except from an Oracle SR i opened :&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;br /&gt;"&lt;br /&gt;So the option for 10.2.0.4 and 10.2.0.5, when IOT's are involved, is to do the Tablespace Point In Time Recovery manually.&lt;br /&gt;&lt;br /&gt;- DUPLICATE DATABASE SKIP TABLESPACE &lt;all none relevant tablespaces&gt;&lt;br /&gt;- Transportable Tablespace export of the related tablespace on the duplicate database&lt;br /&gt;- Transportable Tablespace import of the related tablespace into the source database.&lt;br /&gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;Indeed Bug 6620517 is not resolving the 'IOT with NO LOB 'issue in 10.2.0.5.&lt;br /&gt;That is fixed in 11g.&lt;br /&gt;"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And you can use the same workaround for Bug:7016765 as here:&lt;br /&gt;&lt;a href="http://agstamy.blogspot.com/2010/12/rman-tablespace-point-in-time-recovery.html"&gt;RMAN Tablespace Point-in-Time Recovery and ORA-19602&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The bug case can be cheked with the following procedure:&lt;br /&gt;&lt;br /&gt;1) the recovery-set of tablespaces (eg 'MYTBS') fully contains all the storage objects of an Index-Organized Table (IOT) with a LOB column.&lt;br /&gt;select&lt;br /&gt;  tablespace_name,&lt;br /&gt;  segment_type,&lt;br /&gt;  owner||'.'||segment_name "OWNER.OBJECT"&lt;br /&gt;from&lt;br /&gt;  dba_segments&lt;br /&gt;where&lt;br /&gt;  tablespace_name = 'MYTBS' &lt;br /&gt;order by&lt;br /&gt;  2,3;&lt;br /&gt;&lt;br /&gt;2) Query the TS_PITR_CHECK view shows the IOT-with-LOB consists of storage objects in the recovery set of tablespaces and the IOT also has a storage object in the SYSTEM tablespace, for example if the following query returns at least one row:&lt;br /&gt;&lt;br /&gt;select * from&lt;br /&gt;  sys.ts_pitr_check&lt;br /&gt;where ( ts1_name in ('MYTBS')&lt;br /&gt;and ts2_name not in ('MYTBS') )&lt;br /&gt;or ( ts1_name not in ('MYTBS')&lt;br /&gt;and ts2_name in ('MYTBS') );&lt;br /&gt;&lt;br /&gt;with one object is reported as being a TABLE in the SYSTEM tablespace and the other object is reported as being an INDEX in one of the tablespaces in the recovery-set     and the reason is: "Tables and associated indexes not fully contained in the recovery set"&lt;br /&gt;&lt;br /&gt;3) Assure that the table is an IOT:&lt;br /&gt;select iot_type from dba_tables where table_name='[Paste the table_name from the above query]';&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;It must return IOT&lt;/span&gt;     &lt;br /&gt;Verify the INDEX is a LOB index:&lt;br /&gt;select index_type from dba_indexes where index_name='Paste the table_name from the above query';&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;It must return LOB&lt;/span&gt;&lt;br /&gt;The (bogus) violation reported above is not reported by the following method (correctly):&lt;br /&gt;execute dbms_tts.transport_set_check('MYTBS',TRUE,TRUE);    &lt;br /&gt;select * from transport_set_violations;&lt;br /&gt;&lt;br /&gt;This method is also (also) used to check if a set of tablespaces are fully contained and for that reason you can export the recovered tablespace from the auxiliary instance as the workround mentioned previous in the article.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-4238325176633470126?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/4238325176633470126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/02/tspitr-fails-with-ora-29308-view.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4238325176633470126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4238325176633470126'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/02/tspitr-fails-with-ora-29308-view.html' title='TSPITR Fails with ORA-29308: view TS_PITR_CHECK failure'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-4784362963752449174</id><published>2011-01-25T12:14:00.004+02:00</published><updated>2011-02-03T15:43:57.731+02:00</updated><title type='text'>TSPITR using restore point on 10gR2 fails</title><content type='html'>When try to do RMAN TSPITR using a previous created restore point (no guarantee) rman fails : &lt;br /&gt;&lt;br /&gt;RMAN&gt; run {&lt;br /&gt;recover tablespace 'MYTBS' until restore point TEST_RESTORE_POINT2 auxiliary destination = '/data/ttbs/testdb/data';&lt;br /&gt;sql 'alter tablespace "MYTBS" online';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Starting recover at 25-JAN-11&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: sid=200 instance=testdb1 devtype=DISK&lt;br /&gt;allocated channel: ORA_DISK_2&lt;br /&gt;channel ORA_DISK_2: sid=186 instance=testdb1 devtype=DISK&lt;br /&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============&lt;br /&gt;RMAN-00571: ===========================================================&lt;br /&gt;RMAN-03002: failure of recover command at 01/25/2011 12:11:09&lt;br /&gt;RMAN-00600: internal error, arguments [5085] [point] [] [] []&lt;br /&gt;&lt;br /&gt;Searching in metalink gave me this : &lt;br /&gt;&lt;br /&gt;Bug 8571266 : RMAN TSPITR to restore point fails with RMAN-600 [5085] &lt;br /&gt;Cannot specify TO RESTORE POINT for RMAN TSPITR (tablespace point in time recovery)&lt;br /&gt;&lt;br /&gt;Range of versions believed to be affected Versions BELOW 11.2.0.2  &lt;br /&gt;11.2.0.1, 11.1.0.7 and i have also tried 10.2.0.4&lt;br /&gt; &lt;br /&gt;This issue is fixed in 11.2.0.2 (Server Patch Set) &lt;br /&gt; &lt;br /&gt;The documentation states that DB Point in time Recovery can be done using restore points (I have tested and worked fine with RMAN doing incomplete recovery to restore point) and Oracle recommends to create restore point to make point-in-time recovery more manageable.&lt;br /&gt;&lt;br /&gt;So i wanted to try using the restore point with TSPITR and its not working. I believe this is a silly RMAN bug because when you create a restore point the database records the scn and time of the restore point !!!&lt;br /&gt;&lt;br /&gt;select name, scn , time&lt;br /&gt;from v$restore_point where name='TEST_RESTORE_POINT2';&lt;br /&gt;&lt;br /&gt;NAME                    SCN             TIME&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;TEST_RESTORE_POINT2 15940639418 25/01/11 10:10:25,000000000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So the workaround for this bug (silly if you imagine) is to using TSPITR using until scn or until time !!!&lt;br /&gt;&lt;br /&gt;run {&lt;br /&gt;recover tablespace 'MYTBS' until scn 15940639418 auxiliary destination = '/data/ttbs/testdb/data';&lt;br /&gt;sql 'alter tablespace "MYTBS" online';&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-4784362963752449174?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/4784362963752449174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/01/tspitr-using-restore-point-on-10gr2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4784362963752449174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4784362963752449174'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/01/tspitr-using-restore-point-on-10gr2.html' title='TSPITR using restore point on 10gR2 fails'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-991376153997100913</id><published>2011-01-13T11:16:00.002+02:00</published><updated>2011-01-13T11:20:35.863+02:00</updated><title type='text'>ORA-01666 When Trying to Activate Standby Database</title><content type='html'>When Trying to Activate Standby Database , and you use startup or startup mount you will get ORA-01666: controlfile is for a standby database&lt;br /&gt;&lt;br /&gt;You must not forget that since this is the standby you must do :&lt;br /&gt;&lt;br /&gt;sqlplus / as sysdba&lt;br /&gt;startup nomount&lt;br /&gt;alter database mount standby database;&lt;br /&gt;&lt;br /&gt;Then you can perform any operation you want &lt;br /&gt;e.g &lt;br /&gt;start the automatic recovery session &lt;br /&gt;fix a gap on log sequences &lt;br /&gt;etc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-991376153997100913?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/991376153997100913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/01/ora-01666-when-trying-to-activate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/991376153997100913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/991376153997100913'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/01/ora-01666-when-trying-to-activate.html' title='ORA-01666 When Trying to Activate Standby Database'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-115580775675791227</id><published>2011-01-05T12:30:00.001+02:00</published><updated>2011-01-05T12:31:41.259+02:00</updated><title type='text'>11g RAC Install on Centos VM</title><content type='html'>The follwoing link can be used to test 11g RAC on x86_64 Linux using vm machines and CentOs.&lt;br /&gt;&lt;br /&gt;http://www.pafumi.net/RAC11g_and_ASM_on_VMware.pdf&lt;br /&gt;&lt;br /&gt;Can also be used as a general guide for installing 11gRAC&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-115580775675791227?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/115580775675791227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/01/11g-rac-install-on-centos-vm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/115580775675791227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/115580775675791227'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/01/11g-rac-install-on-centos-vm.html' title='11g RAC Install on Centos VM'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-350676182047629520</id><published>2011-01-03T11:12:00.001+02:00</published><updated>2011-01-03T11:14:25.157+02:00</updated><title type='text'>ORA-19573: cannot obtain exclusive enqueue for datafile</title><content type='html'>This errors is usually happens when tried to restore the tablespace and the tablespace was online and the database open.&lt;br /&gt;&lt;br /&gt;Solution : &lt;br /&gt;&lt;br /&gt;1) Take the tablespace offline before trying to restore it.&lt;br /&gt;2) DO recovery on the datafiles belonging to the tablespace.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-350676182047629520?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/350676182047629520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2011/01/ora-19573-cannot-obtain-exclusive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/350676182047629520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/350676182047629520'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2011/01/ora-19573-cannot-obtain-exclusive.html' title='ORA-19573: cannot obtain exclusive enqueue for datafile'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-5017754481992185573</id><published>2010-12-21T09:35:00.003+02:00</published><updated>2010-12-21T12:00:26.795+02:00</updated><title type='text'>Oracle block browser and editor (BBED)</title><content type='html'>Oracle BBED is there from Oracle7 to Oracle10g and is designed for internal use only.&lt;br /&gt;&lt;br /&gt;Check the above links for more info on this tool:&lt;br /&gt;&lt;br /&gt;http://www.dba-oracle.com/t_bbed.htm&lt;br /&gt;http://www.dba-oracle.com/forensics/t_forensics_bbed.htm&lt;br /&gt;&lt;br /&gt;http://orafaq.com/papers/dissassembling_the_data_block.pdf&lt;br /&gt;http://www.oracle-internals.com/?p=17&lt;br /&gt;&lt;br /&gt;Also check this : http://www.freelists.org/post/oracle-l/is-it-the-bbed&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is a very dangerous tool to use it in production with out Oracle Support guidance and suggestion. Also the tool is password protected so you must find the password to run it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-5017754481992185573?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/5017754481992185573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/12/oracle-block-browser-and-editor-bbed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5017754481992185573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5017754481992185573'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/12/oracle-block-browser-and-editor-bbed.html' title='Oracle block browser and editor (BBED)'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-8142929289103747968</id><published>2010-12-16T09:27:00.001+02:00</published><updated>2010-12-16T09:27:50.808+02:00</updated><title type='text'>Building an Oracle RAC 11g R2 on Linux - (RHEL 5.5)</title><content type='html'>A very nice article about build Oracle 11gR2 RAC on Linux&lt;br /&gt;http://www.idevelopment.info/data/Oracle/DBA_tips/Oracle11gRAC/CLUSTER_12.shtml&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-8142929289103747968?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/8142929289103747968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/12/building-oracle-rac-11g-r2-on-linux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8142929289103747968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8142929289103747968'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/12/building-oracle-rac-11g-r2-on-linux.html' title='Building an Oracle RAC 11g R2 on Linux - (RHEL 5.5)'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-9194712370684283636</id><published>2010-12-15T15:58:00.001+02:00</published><updated>2010-12-15T15:58:27.183+02:00</updated><title type='text'>How is 'skip tablespace' handled by the RMAN duplicate command</title><content type='html'>Once RMAN opens the Auxilary database it will attempt to drop all tablespaces which are skipped.&lt;br /&gt;RMAN does the drop of these tablespaces in reverse sorted tablespace names to be skipped.&lt;br /&gt;Depending on what is in these tablespaces, or if it is the system default tablespace, the 'drop&lt;br /&gt;tablespace' command can fail.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-9194712370684283636?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/9194712370684283636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/12/how-is-skip-tablespace-handled-by-rman.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9194712370684283636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9194712370684283636'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/12/how-is-skip-tablespace-handled-by-rman.html' title='How is &apos;skip tablespace&apos; handled by the RMAN duplicate command'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-6608098773363165538</id><published>2010-12-14T16:35:00.010+02:00</published><updated>2011-02-03T15:51:06.597+02:00</updated><title type='text'>RMAN Tablespace Point-in-Time Recovery and ORA-19602</title><content type='html'>Bug: 7016765 10.2.0.3.0 RDBMS 10.2.0.3.0 RMAN &lt;br /&gt;Abstract: ORA-19602 WHEN RUNNING RMAN'S TSPITR&lt;br /&gt;RMAN TSPITR does not always work using datafilecopies. Not an issue with backupsets.&lt;br /&gt;This is fix in 10.2.0.5&lt;br /&gt;&lt;br /&gt;Path 7016765 have been ported for Linux x86_64. You can also check on Metalink patch search for other platforms.&lt;br /&gt;&lt;br /&gt;This bug also states for the 10.2.0.4 version and if you hit this there is no workaround until you apply 10.2.0.5.So in order to avoid this bug , you must manual duplicate the database to another instance and applying incomplete recovery and then do a transaportable tablespace set export/import to the target database for tbs you want to perform TSPITR.&lt;br /&gt;&lt;br /&gt;My scenario is based on a 3 Node Oracle 10gR2 (10.2.0.4) RAC database.&lt;br /&gt;&lt;br /&gt;A tablespace called MYTBS must be recovered back in time before an accidentally "drop user cascade" occurred. The user dropped at 14:00 and itried to use TSPITR but RMAN failed with ORA-19602 as stated in the beginning of the article.&lt;br /&gt;&lt;br /&gt;The only valid workaround to this very annoying issue (believe me , i have fall into this bug on my production 24x7 system) is to use the duplicate database feature doing a whole database point in time recovery skipping all the tablespaces you except SYSTEM,SYSAUX,UNDO and the tablespace you want to recover.&lt;br /&gt;&lt;br /&gt;In this example ORACLE_BASE=/u01/app/oracle&lt;br /&gt;&lt;br /&gt;1) Create an AUX init.ora file like you do in manual TSPITR having the following entries.&lt;br /&gt;&lt;br /&gt;# FILE: initAUX.ora&lt;br /&gt;audit_file_dest =/u01/app/oracle/admin/AUX/adump &lt;br /&gt;background_dump_dest =/u01/app/oracle/admin/AUX/bdump &lt;br /&gt;core_dump_dest =/u01/app/oracle/admin/AUX/cdump &lt;br /&gt;user_dump_dest =/u01/app/oracle/admin/AUX/udump &lt;br /&gt;db_name =AUX &lt;br /&gt;instance_name =AUX &lt;br /&gt;db_unique_name=AUX&lt;br /&gt;db_create_file_dest=/data/ttbs&lt;br /&gt;db_recovery_file_dest=/data/ttbs&lt;br /&gt;db_recovery_file_dest_size=100000M # Resize according to the size on the mount point you are duplicating&lt;br /&gt;db_block_size = 8192 &lt;br /&gt;compatible=10.2.0.4.0&lt;br /&gt;db_block_size=8192&lt;br /&gt;db_files=1000&lt;br /&gt;large_pool_size=1M&lt;br /&gt;shared_pool_size=110M&lt;br /&gt;remote_login_passwordfile=exclusive&lt;br /&gt;undo_management=AUTO&lt;br /&gt;undo_retention=900&lt;br /&gt;undo_tablespace=UNDO2 # Must be the same as the target instance&lt;br /&gt;&lt;br /&gt;I have placed my file in the [oracle@labdb01 AUX]$ORACLE_HOME/dbs in order sqlplus to use it by default.&lt;br /&gt;&lt;br /&gt;2) Create the following directories and the password file&lt;br /&gt;[oracle@labdb01 AUX]$ mkdir -p /data/ttbs/AUX&lt;br /&gt;[oracle@labdb01 AUX]$ mkdir -p /u01/app/oracle/admin/AUX/adump&lt;br /&gt;[oracle@labdb01 AUX]$ mkdir -p /u01/app/oracle/admin/AUX/bdump&lt;br /&gt;[oracle@labdb01 AUX]$ mkdir -p /u01/app/oracle/admin/AUX/udump&lt;br /&gt;[oracle@labdb01 AUX]$ mkdir -p /u01/app/oracle/admin/AUX/cdump&lt;br /&gt;&lt;br /&gt;[oracle@labdb01 AUX]$ orapwd file=[oracle@labdb01 AUX]$ORACLE_HOME/dbs/orapwAUX password=pass&lt;br /&gt;&lt;br /&gt;3) Startup nomount the AUX instance&lt;br /&gt;[oracle@labdb01 AUX]$ export ORACLE_SID=AUX&lt;br /&gt;[oracle@labdb01 AUX]$ sqlplus / as sysdba&lt;br /&gt;SQL&gt; create spfile from pfile;&lt;br /&gt;&lt;br /&gt;File created.&lt;br /&gt;&lt;br /&gt;SQL&gt; startup nomount&lt;br /&gt;ORACLE instance started.&lt;br /&gt;&lt;br /&gt;Total System Global Area  205520896 bytes&lt;br /&gt;Fixed Size                  2082752 bytes&lt;br /&gt;Variable Size             146802752 bytes&lt;br /&gt;Database Buffers           50331648 bytes&lt;br /&gt;Redo Buffers                6303744 bytes&lt;br /&gt;SQL&gt; exit&lt;br /&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, OLAP, Data Mining&lt;br /&gt;and Real Application Testing options&lt;br /&gt;[oracle@labdb01 AUX]$&lt;br /&gt;&lt;br /&gt;4) Create an rman script for the duplication (dup.rcv)&lt;br /&gt;Keep in mind that SYSTEM,SYSAUX and UNDO tablespaces can not be skipped.&lt;br /&gt;Also the recovery set of tablespaces must consist of all dependable objects e.g table and indexes , tables/partitions, lob segments , lob indexes. &lt;br /&gt;Check also the v$archived_log in order to find the exact time to use.&lt;br /&gt;&lt;br /&gt;RUN &lt;br /&gt;  { &lt;br /&gt;   sql 'alter system archive log current';&lt;br /&gt;   allocate channel C1 device type disk; &lt;br /&gt;   allocate auxiliary channel C2 device type disk; &lt;br /&gt;   set until time "to_date('14/12/2010 13:20:00','DD/MM/YYYY HH24:MI:SS')"; &lt;br /&gt;   DUPLICATE TARGET DATABASE TO AUX &lt;br /&gt;      SKIP TABLESPACE USERS; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;5) Connect to rman and run the script&lt;br /&gt;NOTE: if your target db is using a catalog then add the string catalog user/pass@catalog_sid&lt;br /&gt;&lt;br /&gt;[oracle@labdb01 ~]$ rman target sys@testdb1 auxiliary /&lt;br /&gt;RMAN&gt;@dup.rcv&lt;br /&gt;&lt;br /&gt;NOTE: You cannot skip the default temporary tablespace from the recovery set.&lt;br /&gt;&lt;br /&gt;6) Begin transport tablespace procedure.&lt;br /&gt;&lt;br /&gt;on AUX :&lt;br /&gt;&lt;br /&gt;SQL&gt;begin&lt;br /&gt;SQL&gt;sys.dbms_tts.transport_set_check('MYTBS',TRUE);&lt;br /&gt;SQL&gt;end;&lt;br /&gt;SQL&gt;/&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;SQL&gt;select * from sys.transport_set_violations; &lt;br /&gt;&lt;br /&gt;If this query returns rows then fix them before proceed.&lt;br /&gt;&lt;br /&gt;SQL&gt;alter tablespace mytbs read only;&lt;br /&gt;&lt;br /&gt;SQL&gt; create or replace directory exp_dir as '/data/ttbs/AUX';&lt;br /&gt;&lt;br /&gt;Directory created.&lt;br /&gt;&lt;br /&gt;SQL&gt; grant read,write on directory exp_dir to system;&lt;br /&gt;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;SQL&gt;exit;&lt;br /&gt;&lt;br /&gt;[oracle@labdb01 ~]$ expdp system dumpfile=mytbs.dmp directory=EXP_DIR TRANSPORT_TABLESPACES=MYTBS TRANSPORT_FULL_CHECK=Y &lt;br /&gt;&lt;br /&gt;If the expdp fails then :&lt;br /&gt;&lt;br /&gt;SQL&gt;select reason,count(*) from sys.pluggable_set_check where ts1_name like '%MYTBS%' group by reason;&lt;br /&gt;&lt;br /&gt;And resolve each reason !!!&lt;br /&gt;&lt;br /&gt;Copy the dmp file and the datafile(s) of the tabelspace to the desired target db directory.&lt;br /&gt;[oracle@labdb01 ~]$ cp /data/ttbs/AUX/mytbs.dmp /data/ttbs/testdb/&lt;br /&gt;[oracle@labdb01 ~]$ cp /data/ttbs/AUX/datafile/o1_mf_mytbs_6jgv6obd_.dbf /data/ttbs/testdb/&lt;br /&gt;&lt;br /&gt;IF you are recovering form a user error like our scenario drop the tabelspace from the target !!&lt;br /&gt;Re create the dropped user. Remember to grant his roles and give him his object grants.&lt;br /&gt;My user had the dba role granted so.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[oracle@labdb01 ~]$ sqlplus sys@testdb as sysdba&lt;br /&gt;SQL&gt; drop tablespace mytbs including contents and datafiles cascade constraints;&lt;br /&gt;SQL&gt; grant dba to agis identified by agis;&lt;br /&gt;SQL&gt; alter user agis default tablespace users;&lt;br /&gt;SQL&gt; exit;&lt;br /&gt;&lt;br /&gt;Go to the directory you copied the files:&lt;br /&gt;&lt;br /&gt;[oracle@labdb01 ~]$ cd /data/ttbs/testdb/&lt;br /&gt;&lt;br /&gt;I have a directory object TTS_DIR that points to the correct O/S directory. If not create one as in previous section&lt;br /&gt;[oracle@labdb01 testdb]$ export ORACLE_SID=testdb&lt;br /&gt;[oracle@labdb01 testdb]$ impdp system dumpfile=mytbs.dmp logfile=imp.log DIRECTORY=TTS_DIR TRANSPORT_DATAFILES='/data/ttbs/testdb/o1_mf_mytbs_6jgv6obd_.dbf'&lt;br /&gt;&lt;br /&gt;If you want you can omit to gather statistics again using : EXCLUDE=TABLE_STATISTICS EXCLUDE=INDEX_STATISTICS on the impdp&lt;br /&gt;&lt;br /&gt;At this point the tablespace mytbs has been restored bur its read only and unknown to the control file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[oracle@labdb01 testdb]$ sqlplus agis/agis&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.4.0 - Production on Tue Dec 14 15:40:17 2010&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, OLAP, Data Mining&lt;br /&gt;and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&gt; select table_name from user_tables;&lt;br /&gt;&lt;br /&gt;TABLE_NAME&lt;br /&gt;------------------------------&lt;br /&gt;TEST&lt;br /&gt;&lt;br /&gt;SQL&gt; select count(*) from test;&lt;br /&gt;&lt;br /&gt;  COUNT(*)&lt;br /&gt;----------&lt;br /&gt;     49643&lt;br /&gt;&lt;br /&gt;BUT !!!&lt;br /&gt;&lt;br /&gt;[oracle@labdb01 testdb]$ rman target /&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.4.0 - Production on Tue Dec 14 15:41:02 2010&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2007, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;connected to target database: TESTDB (DBID=2520745547)&lt;br /&gt;&lt;br /&gt;RMAN&gt; report schema;&lt;br /&gt;&lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;Report of database schema&lt;br /&gt;&lt;br /&gt;List of Permanent Datafiles&lt;br /&gt;===========================&lt;br /&gt;File Size(MB) Tablespace           RB segs Datafile Name&lt;br /&gt;---- -------- -------------------- ------- ------------------------&lt;br /&gt;1    490      SYSTEM               ***     /data/ttbs/testdb/system01.dbf&lt;br /&gt;2    90       UNDOTBS1             ***     /data/ttbs/testdb/undotbs01.dbf&lt;br /&gt;3    360      SYSAUX               ***     /data/ttbs/testdb/sysaux01.dbf&lt;br /&gt;4    5        USERS                ***     /data/ttbs/testdb/users01.dbf&lt;br /&gt;5    25       UNDOTBS2             ***     /data/ttbs/testdb/undotbs02.dbf&lt;br /&gt;&lt;br /&gt;List of Temporary Files&lt;br /&gt;=======================&lt;br /&gt;File Size(MB) Tablespace           Maxsize(MB) Tempfile Name&lt;br /&gt;---- -------- -------------------- ----------- --------------------&lt;br /&gt;1    166      TEMP                 32767       /data/ttbs/testdb/temp01.dbf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now its the time to rename the datafile if you want or make it writable in order to inform the controlfile.&lt;br /&gt;&lt;br /&gt;On the target instance &lt;br /&gt;[oracle@labdb01 testdb]$ sqlplus / as sysdba&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.4.0 - Production on Tue Dec 14 15:43:34 2010&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, OLAP, Data Mining&lt;br /&gt;and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&gt; select file_id,file_name from dba_data_files where tablespace_name='MYTBS';&lt;br /&gt;&lt;br /&gt;   FILE_ID&lt;br /&gt;----------&lt;br /&gt;FILE_NAME&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;         6&lt;br /&gt;/data/ttbs/testdb/o1_mf_mytbs_6jgv6obd_.dbf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; alter tablespace mytbs offline;&lt;br /&gt;SQL&gt; !mv /data/ttbs/testdb/o1_mf_mytbs_6jgv6obd_.dbf /data/ttbs/testdb/mytbs.dbf&lt;br /&gt;SQL&gt; alter tablespace mytbs rename datafile '/data/ttbs/testdb/o1_mf_mytbs_6jgv6obd_.dbf' to '/data/ttbs/testdb/mytbs.dbf';&lt;br /&gt;&lt;br /&gt;Tablespace altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; select file_id,file_name from dba_data_files where tablespace_name='MYTBS';&lt;br /&gt;&lt;br /&gt;   FILE_ID&lt;br /&gt;----------&lt;br /&gt;FILE_NAME&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;         6&lt;br /&gt;/data/ttbs/testdb/mytbs.dbf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; alter tablespace mytbs online;&lt;br /&gt;&lt;br /&gt;Tablespace altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter tablespace mytbs read write;&lt;br /&gt;&lt;br /&gt;Tablespace altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; exit&lt;br /&gt;&lt;br /&gt;Backup your tabelspace imemdiate after the restore !!!&lt;br /&gt;&lt;br /&gt;7) Drop the AUX database&lt;br /&gt;[oracle@labdb01 ~]$ export ORACLE_SID=AUX&lt;br /&gt;[oracle@labdb01 ~]$ sqlplus / as sysdba&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.4.0 - Production on Tue Dec 14 15:56:22 2010&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, OLAP, Data Mining&lt;br /&gt;and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&gt; shutdown abort;&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;SQL&gt; exit&lt;br /&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, OLAP, Data Mining&lt;br /&gt;and Real Application Testing options&lt;br /&gt;[oracle@labdb01 ~]$ rm -fr /data/ttbs/AUX&lt;br /&gt;[oracle@labdb01 ~]$&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We keep the password file and the init file in order to use the same configuration for other point int time recovery scenarios.&lt;br /&gt;&lt;br /&gt;If you database uses ASM you must put the tabelspace in ASM.&lt;br /&gt;&lt;br /&gt;From sqlplus &lt;br /&gt;SQL&gt; alter database tablespace mytbs offline;&lt;br /&gt;&lt;br /&gt;Use RMAN to transfer the tablespace to ASM&lt;br /&gt;&lt;br /&gt;rman target /&lt;br /&gt;RMAN&gt; &lt;br /&gt;RMAN&gt; backup as copy tablespace mytbs format '+DATA';&lt;br /&gt;RMAN&gt; switch tablespace mytbs to copy;&lt;br /&gt;RMAN&gt; recover tablespace mytbs;&lt;br /&gt;&lt;br /&gt;From sqlplus &lt;br /&gt;&lt;br /&gt;SQL&gt; alter database tablespace mytbs online;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;And you are done !!!&lt;br /&gt;&lt;br /&gt;References:&lt;br /&gt;&lt;br /&gt;Metalink Documnet IDs:&lt;br /&gt;340848.1&lt;br /&gt;368029.1&lt;br /&gt;153981.1&lt;br /&gt;388424.1&lt;br /&gt;371556.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-6608098773363165538?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/6608098773363165538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/12/rman-tablespace-point-in-time-recovery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/6608098773363165538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/6608098773363165538'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/12/rman-tablespace-point-in-time-recovery.html' title='RMAN Tablespace Point-in-Time Recovery and ORA-19602'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-981396632791912722</id><published>2010-11-26T12:35:00.001+02:00</published><updated>2010-11-26T12:37:08.755+02:00</updated><title type='text'>Oracle enqueue wait tips</title><content type='html'>Oracle enqueue wait tips from Burleson Consulting site&lt;br /&gt;&lt;br /&gt;http://www.dba-oracle.com/t_enqueue_wait_types_.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-981396632791912722?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/981396632791912722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/11/oracle-enqueue-wait-tips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/981396632791912722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/981396632791912722'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/11/oracle-enqueue-wait-tips.html' title='Oracle enqueue wait tips'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3815089393152043318</id><published>2010-11-17T12:37:00.002+02:00</published><updated>2010-11-17T12:42:03.444+02:00</updated><title type='text'>Installation of Oracle 10gR2 database on RedHat Enterprise Linux/Oracle Enterprise Linux 5 (x86_64)</title><content type='html'>As root&lt;br /&gt;&lt;br /&gt;1) Check Hardware Requirements&lt;br /&gt;&lt;br /&gt;# grep MemTotal /proc/meminfo &gt;= 1Gb&lt;br /&gt;# grep SwapTotal /proc/meminfo &lt;br /&gt;Between 1024 MB and 2048 MB 1.5 times the size of RAM &lt;br /&gt;Between 2049 MB and 8192 MB Equal to the size of RAM &lt;br /&gt;More than 8192 MB 0.75 times the size of RAM &lt;br /&gt;&lt;br /&gt;# df -h &lt;br /&gt;400 MB of disk space in the /tmp directory &lt;br /&gt;Between 1.5 GB and 3.5 GB of disk space for the Oracle software, depending on the installation type &lt;br /&gt;1.2 GB of disk space for a preconfigured database that uses file system storage (optional) &lt;br /&gt;To determine the amount of free disk space on the system, enter the following command&lt;br /&gt;&lt;br /&gt;2) Kernel Requirements &lt;br /&gt;&lt;br /&gt;# uname -a &gt;= 2.6.18-8 &lt;br /&gt;&lt;br /&gt;3) Disable SELinux or switch it to "Permissive" mode&lt;br /&gt;&lt;br /&gt;#/usr/sbin/sestatus  &lt;br /&gt;SELinux status:                 disabled&lt;br /&gt; or &lt;br /&gt;#/usr/sbin/getenforce&lt;br /&gt;Disabled&lt;br /&gt;&lt;br /&gt;If you see the previous output SELinux is disabled.&lt;br /&gt;&lt;br /&gt;If SELInux is enabled then run :&lt;br /&gt;&lt;br /&gt;Commands, as root: &lt;br /&gt;====================== &lt;br /&gt;getenforce       (returns "Enforcing") &lt;br /&gt;setenforce 0 &lt;br /&gt;getenforce       (returns "Permissive") &lt;br /&gt;&lt;br /&gt;End to restore it to enforcing &lt;br /&gt;setenforce 1 &lt;br /&gt;getenforce       (returns "Enforcing") &lt;br /&gt;&lt;br /&gt;For more info check Oracle Metalink Note: 454196.1&lt;br /&gt;&lt;br /&gt;4) Installing Required packages&lt;br /&gt;&lt;br /&gt;Use rpm -qa | grep package_name for the following packages&lt;br /&gt;&lt;br /&gt;binutils-2.17.50.0.6-2 (x86_64)&lt;br /&gt;compat-db-4.2.52-5.1 (x86_64)&lt;br /&gt;compat-libstdc++-296-2.96-138 (i386)&lt;br /&gt;compat-libstdc++-33-3.2.3-61(x86_64)&lt;br /&gt;compat-libstdc++-33-3.2.3-61 (i386)&lt;br /&gt;control-center-2.16.0-14 (x86_64)&lt;br /&gt;gcc-4.1.1-52 (x86_64)&lt;br /&gt;gcc-c++-4.1.1-52 (x86_64)&lt;br /&gt;glibc-2.5-12 (x86_64)&lt;br /&gt;glibc-2.5-12 (i686)&lt;br /&gt;glibc-common-2.5-12 (x86_64)&lt;br /&gt;glibc-devel-2.5-12 (x86_64)&lt;br /&gt;glibc-devel-2.5-12 (i386)&lt;br /&gt;glibc-headers-2.5-12 (x86_64)&lt;br /&gt;ksh-20060214-1.4 (x86_64)&lt;br /&gt;libaio-0.3.106-3.2 (x86_64)&lt;br /&gt;libgcc-4.1.1-52 (i386)&lt;br /&gt;libgcc-4.1.1-52 (x86_64)&lt;br /&gt;libgnome-2.16.0-6 (x86_64)&lt;br /&gt;libgnomeui-2.16.0-5 (x86_64)&lt;br /&gt;libgomp-4.1.1-52 (x86_64)&lt;br /&gt;libstdc++-4.1.1-52 (x86_64)&lt;br /&gt;libstdc++-devel-4.1.1-52 (x86_64)&lt;br /&gt;libXp-1.0.0-8 (i386)&lt;br /&gt;make-3.81-1.1 (x86_64)&lt;br /&gt;sysstat-7.0.0-3 (x86_64)&lt;br /&gt;&lt;br /&gt;The version of the above packages is the lower needed. So if you are in higher you are OK&lt;br /&gt;&lt;br /&gt;e.g&lt;br /&gt;&lt;br /&gt;# rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep binutils&lt;br /&gt;binutils-2.17.50.0.6-14.el5 (x86_64)&lt;br /&gt;&lt;br /&gt;5) Set the kernel parameters&lt;br /&gt;&lt;br /&gt;kernel.shmall = physical RAM size / pagesize (getconf PAGESIZE) -- If the defaults are greater then leave it.&lt;br /&gt;kernel.shmmax = 1/2 of physical RAM, but not greater than 4GB -- If the defaults are greater then leave it.&lt;br /&gt;kernel.shmmni = 4096 &lt;br /&gt;kernel.sem = 250 32000 100 128 &lt;br /&gt;fs.file-max = 512 x processes (for example 65536 for 128 processes) &lt;br /&gt;net.ipv4.ip_local_port_range =9000 65500&lt;br /&gt;    a.) The runInstaller (OUI) checks may expect this to be the old guidance of “1024 65000”. The new guidance from Oracle development is “9000 65500”. Please allow the runInstaller (OUI) to proceed with the new guidance from Oracle development.&lt;br /&gt;net.core.rmem_default = 262144 &lt;br /&gt;net.core.rmem_max = 262144 &lt;br /&gt;net.core.wmem_default = 262144 &lt;br /&gt;net.core.wmem_max = 1048576 &lt;br /&gt;&lt;br /&gt;# vi /etc/sysctl.conf &lt;br /&gt;&lt;br /&gt;Set the values and then run :&lt;br /&gt;&lt;br /&gt;# sysctl -p &lt;br /&gt;&lt;br /&gt;6) Add Oracle user and groups and create the ORACLE_BASE directory for Oracle Software and database.&lt;br /&gt;&lt;br /&gt;# groupadd oinstall &lt;br /&gt;# groupadd dba &lt;br /&gt;# useradd -g oinstall -G dba oracle &lt;br /&gt;# passwd oracle &lt;br /&gt;&lt;br /&gt;e.g&lt;br /&gt;# mkdir -p /u01/app/oracle &lt;br /&gt;# chown -R oracle:oinstall /u01/app/oracle&lt;br /&gt;&lt;br /&gt;7) Set the session limits for Oracle User&lt;br /&gt;&lt;br /&gt;Set the following to the /etc/security/limits.conf &lt;br /&gt;oracle soft nproc 2047 &lt;br /&gt;oracle hard nproc 16384 &lt;br /&gt;oracle soft nofile 1024 &lt;br /&gt;oracle hard nofile 65536&lt;br /&gt;&lt;br /&gt;Set the following to the /etc/pam.d/login &lt;br /&gt;session required pam_limits.so &lt;br /&gt;&lt;br /&gt;Add the following to /etc/profile if Oracle user will use the bash shell.&lt;br /&gt;&lt;br /&gt;if [ $USER = "oracle" ]; then &lt;br /&gt;  ulimit -u 16384 &lt;br /&gt;  ulimit -n 65536 &lt;br /&gt;fi &lt;br /&gt;&lt;br /&gt;As oracle user&lt;br /&gt;8) Login as Oracle and change the .bash_profile&lt;br /&gt;Add the following in order to begin the installation&lt;br /&gt;export ORACLE_BASE=/u01/app/oracle&lt;br /&gt;export ORACLE_SID=orcl # You can not set the ORACLE_SID if you do not want write now&lt;br /&gt;export DISPLAY=YOUR_XTERM_IP:0 in order to you an X session for the installation&lt;br /&gt;unset ORACLE_HOME&lt;br /&gt;$ . ./.bash_profile&lt;br /&gt;&lt;br /&gt;to apply the new settings&lt;br /&gt; &lt;br /&gt;9) Put the software for 10gR2 to a desired server directory.&lt;br /&gt;&lt;br /&gt;10201_database_linux_x86_64.cpio.gz&lt;br /&gt;10201_companion_linux_x86_64.cpio.gz&lt;br /&gt;p6810189_10204_Linux-x86-64.zip&lt;br /&gt;&lt;br /&gt;Unzip the database and run &lt;br /&gt;$ gunzip 10201_database_linux_x86_64.cpio.gz&lt;br /&gt;$ cpio -idmv &lt; 10201_database_linux_x86_64.cpio&lt;br /&gt;$ cd database&lt;br /&gt;$./runInstaller –ignoreSysPrereqs&lt;br /&gt;&lt;br /&gt;Then unzip the companion and run&lt;br /&gt;$ gunzip 10201_companion_linux_x86_64.cpio.gz&lt;br /&gt;$ cpio -idmv &lt; 10201_companion_linux_x86_64.cpio&lt;br /&gt;$ cd companion&lt;br /&gt;$./runInstaller –ignoreSysPrereqs&lt;br /&gt;&lt;br /&gt;Finally unzip the 10.2.0.4 Patch Set and run (At the time this post was written only the 10.2.0.4 patch was available): &lt;br /&gt;$ unzip p6810189_10204_Linux-x86-64.zip&lt;br /&gt;$ cd Disk1&lt;br /&gt;$ ./runInstaller –ignoreSysPrereqs&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;10) Create the database&lt;br /&gt;Add the following to the .bash_profile&lt;br /&gt;export ORACLE_HOME=[YOUR_ORACLE_HOME]&lt;br /&gt;export PATH=$ORACLE_HOME/bin:.:$PATH&lt;br /&gt;&lt;br /&gt;Run &lt;br /&gt;$ . ./.bash_profile&lt;br /&gt;$ dbca&lt;br /&gt;&lt;br /&gt;Create your desired database and you finished&lt;br /&gt;After that run &lt;br /&gt;&lt;br /&gt;$ netca &lt;br /&gt;&lt;br /&gt;To create a listener&lt;br /&gt;&lt;br /&gt;ATTENTION if your host name is more than 32 characters then you are about to have the following situation:&lt;br /&gt;&lt;br /&gt;If you have choose to install EM and during its creation you get from dbca&lt;br /&gt;ORA-06502: PL/SQL: numeric or value error: character string buffer too small &lt;br /&gt;&lt;br /&gt;then apply the following workaround:&lt;br /&gt;&lt;br /&gt;1) Ignore error and continue with database creation&lt;br /&gt;2) After successful finish of dbca do :&lt;br /&gt;&lt;br /&gt;Verify the case using sqlplus&lt;br /&gt;SQL&gt; select length(host_name) from v$instance where rownum=1;&lt;br /&gt;&lt;br /&gt;LENGTH(HOST_NAME)&lt;br /&gt;-----------------&lt;br /&gt;               36&lt;br /&gt;&lt;br /&gt;Here the length is 36 (&gt;32) and for 10.2 this is a bug and em repository creation fails.&lt;br /&gt;So &lt;br /&gt;a) Make a backup copy of the file&lt;br /&gt;&lt;br /&gt;$ cp $ORACLE_HOME/sysman/admin/emdrep/sql/core/latest/self_monitor/self_monitor_post_creation.sql $ORACLE_HOME/sysman/admin/emdrep/sql/core/latest/self_monitor/self_monitor_post_creation.sql_bak&lt;br /&gt;&lt;br /&gt;b) Change the l_host_name variable in self_monitor_post_creation.sql to have 128 characters&lt;br /&gt;The l_host_name variable needs to be changed twice in the script.&lt;br /&gt;$ vi $ORACLE_HOME/sysman/admin/emdrep/sql/core/latest/self_monitor/self_monitor_post_creation.sql&lt;br /&gt;&lt;br /&gt;c) Drop and recreate the DB Control configuration files and repository&lt;br /&gt;$ $ORACLE_HOME/bin/emca -deconfig dbcontrol db -repos drop&lt;br /&gt;$ $ORACLE_HOME/bin/emca -config dbcontrol db -repos create&lt;br /&gt;&lt;br /&gt;Check your em by using the URL mentioned.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;REFERENCES &lt;br /&gt;Metalink Note ID 421308.1, 335118.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-3815089393152043318?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3815089393152043318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/11/installation-of-oracle-10gr2-database.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3815089393152043318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3815089393152043318'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/11/installation-of-oracle-10gr2-database.html' title='Installation of Oracle 10gR2 database on RedHat Enterprise Linux/Oracle Enterprise Linux 5 (x86_64)'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3701332049334693668</id><published>2010-11-11T12:35:00.003+02:00</published><updated>2010-11-24T10:15:49.653+02:00</updated><title type='text'>Flushing and closing trace files using oradebug</title><content type='html'>Lots of times we erase trace files on the $ORACLE_BASE/admin directory but the database is still open. The processes that have created these files have the inode of the file opened and thus removing the file any new information goes to it but we can not see the file until the process rotates it or close its.&lt;br /&gt;&lt;br /&gt;We can use the oradebug utility to manual flush and close the file.&lt;br /&gt;&lt;br /&gt;e.g&lt;br /&gt;&lt;br /&gt;[oracle@labdb01 udump]$ sqlplus / as sysdba&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 11 12:29:35 2010&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, OLAP, Data Mining&lt;br /&gt;and Real Application Testing options&lt;br /&gt;&lt;br /&gt;SQL&gt; SELECT&lt;br /&gt;s.sid, s.serial#, p.pid&lt;br /&gt;FROM v$session s, v$process p&lt;br /&gt;      WHERE s.paddr=p.addr&lt;br /&gt;      and s.program like '%LMD%';  2    3    4    5&lt;br /&gt;&lt;br /&gt;       SID    SERIAL#        PID&lt;br /&gt;---------- ---------- ----------&lt;br /&gt;      1101          1          6&lt;br /&gt;&lt;br /&gt;SQL&gt; oradebug setorapid 6&lt;br /&gt;Unix process pid: 17652, image: oracle@labdb01 (LMD0)&lt;br /&gt;SQL&gt; oradebug close_trace&lt;br /&gt;Statement processed.&lt;br /&gt;SQL&gt; oradebug flush&lt;br /&gt;Statement processed.&lt;br /&gt;SQL&gt; exit&lt;br /&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;br /&gt;With the Partitioning, Real Application Clusters, OLAP, Data Mining&lt;br /&gt;and Real Application Testing options&lt;br /&gt;&lt;br /&gt;In the above example we use the query to find the PID for the oracle lmd0 process.&lt;br /&gt;The we use the oradebug in order to flush the data and close the file.&lt;br /&gt;&lt;br /&gt;We can also use the O/S PID.&lt;br /&gt;&lt;br /&gt;$ ps -ef | grep $ORACLE_SID | grep lmd&lt;br /&gt;&lt;br /&gt;Would return the PID for Oracle background process LMD.&lt;br /&gt;&lt;br /&gt;Now:&lt;br /&gt;&lt;br /&gt;$ sqlplus / as sysdba&lt;br /&gt;SQL&gt;oradebug setospid &lt;PID&gt; &lt;br /&gt;SQL&gt;oradebug close_trace &lt;br /&gt;SQL&gt;oradebug flush &lt;br /&gt;SQL&gt;exit &lt;br /&gt;Now check the file in the bdump location, a new file would have been created&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-3701332049334693668?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3701332049334693668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/11/flushing-and-closing-trace-files-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3701332049334693668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3701332049334693668'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/11/flushing-and-closing-trace-files-using.html' title='Flushing and closing trace files using oradebug'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-5093157505727950007</id><published>2010-11-10T10:59:00.002+02:00</published><updated>2010-11-10T11:03:36.376+02:00</updated><title type='text'>Oracle 10G Composite RANGE-LIST partitioning</title><content type='html'>Composite RANGE-LIST partitioned table maintenace.&lt;br /&gt;&lt;br /&gt;1) Create&lt;br /&gt;&lt;br /&gt;create&lt;br /&gt;  table mytable&lt;br /&gt;  (&lt;br /&gt;    PROC        varchar2(30 byte),&lt;br /&gt;    ACTION      varchar2(100 byte),&lt;br /&gt;    START_TIME date,&lt;br /&gt;    END_TIME date,&lt;br /&gt;  )&lt;br /&gt;  tablespace USERS enable row movement &lt;br /&gt;  partition by range (start_time) &lt;br /&gt;    subpartition by list (action)&lt;br /&gt;      subpartition template &lt;br /&gt;      (&lt;br /&gt;      subpartition added values ('ADD') tablespace users ,&lt;br /&gt;      subpartition removed values ('REMOVE') tablespace users       &lt;br /&gt;      )&lt;br /&gt;  (&lt;br /&gt;    partition nov10 values less than (to_date('01/12/10','DD/MM/YYYY')) tablespace users,&lt;br /&gt;    partition dec10 values less than (to_date('01/01/11','DD/MM/YYYY')) tablespace users,&lt;br /&gt;    partition jan11 values less than (to_date('01/02/11','DD/MM/YYYY')) tablespace users&lt;br /&gt;  );&lt;br /&gt;&lt;br /&gt;create index my_idx on mytable (ACTION) local;&lt;br /&gt;&lt;br /&gt;All partitions are stored in the same tablespace and a local index is created too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-5093157505727950007?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/5093157505727950007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/11/oracle-10g-composite-range-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5093157505727950007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5093157505727950007'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/11/oracle-10g-composite-range-list.html' title='Oracle 10G Composite RANGE-LIST partitioning'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-1786737033391237434</id><published>2010-11-10T09:21:00.003+02:00</published><updated>2010-11-10T09:28:20.977+02:00</updated><title type='text'>ORA-01450 maximum key length (num) exceeded</title><content type='html'>I faced this error when i was rebuilding and index online but without the online the index rebuilds fine. &lt;br /&gt;&lt;br /&gt;This is caused by Bug:2525767. The online rebuild of the index creates a journal table and index and the table contains more columns in its index with total length greater than number reported in ORA-01450 error message.This is a feature of online rebuild.&lt;br /&gt;&lt;br /&gt;Maximum key length is calculated with respect to the database block size. It &lt;br /&gt;means that current value of the initialization parameter db_block_size is not &lt;br /&gt;large enough so that the internal journal IOT can be created without errors.&lt;br /&gt;&lt;br /&gt;Workaround to rebuild the index offline.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-1786737033391237434?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/1786737033391237434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/11/ora-01450-maximum-key-length-3215.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1786737033391237434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1786737033391237434'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/11/ora-01450-maximum-key-length-3215.html' title='ORA-01450 maximum key length (num) exceeded'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-8753901445558216486</id><published>2010-11-01T16:00:00.001+02:00</published><updated>2010-11-01T16:01:48.600+02:00</updated><title type='text'>Oracle Event Codes</title><content type='html'>In the following link you can find all Oracle event Codes.&lt;br /&gt;&lt;br /&gt;http://www.kevinloney.com/free/events.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-8753901445558216486?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/8753901445558216486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/11/oracle-event-codes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8753901445558216486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8753901445558216486'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/11/oracle-event-codes.html' title='Oracle Event Codes'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2587989275410655026</id><published>2010-11-01T12:27:00.002+02:00</published><updated>2010-11-01T12:33:22.548+02:00</updated><title type='text'>WARNING: inbound connection timed out (ORA-3136)</title><content type='html'>The "WARNING: inbound connection timed out (ORA-3136)" in the alert log indicates that the client was not able to complete  it's authentication within the SQLNET.INBOUND_CONNECT_TIMEOUT time.(Defaults to 60 secs after 10.2)&lt;br /&gt;&lt;br /&gt;Take look of the following&lt;br /&gt;&lt;br /&gt;1. Check whether local connection on the database server is successful &amp; quick.&lt;br /&gt;2. If local connections are quick ,then check for underlying network delay with the help of your network administrator.&lt;br /&gt;3. Check whether your Database performance has degraded in anyway.&lt;br /&gt;4. Check alert log for any critical errors for eg, ORA-600 or ORA-7445 and get them  resolved first. &lt;br /&gt;These critical errors might have triggered the slowness of the database server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2587989275410655026?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2587989275410655026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/11/warning-inbound-connection-timed-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2587989275410655026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2587989275410655026'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/11/warning-inbound-connection-timed-out.html' title='WARNING: inbound connection timed out (ORA-3136)'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-9181643005957848376</id><published>2010-10-13T16:08:00.002+02:00</published><updated>2010-10-13T16:13:15.782+02:00</updated><title type='text'>Oracle 10g External Table Example</title><content type='html'>If you have some temporary data to import to the database you can use an external table instead.&lt;br /&gt;&lt;br /&gt;Lets amuse that you have the following file.&lt;br /&gt;&lt;br /&gt;myfile.txt&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;1) You must create a directory and grant read writes to your user.&lt;br /&gt;&lt;br /&gt;create or replace directory my_dir as '/home/oracle';&lt;br /&gt;&lt;br /&gt;grant read on directory my dir to my_user;&lt;br /&gt;&lt;br /&gt;2) Put your file there and&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;create table mytable_load&lt;br /&gt;(&lt;br /&gt;  a int&lt;br /&gt;) &lt;br /&gt;organization external &lt;br /&gt;(&lt;br /&gt;  type oracle_loader default directory my_dir&lt;br /&gt;  access parameters (RECORDS DELIMITED BY NEWLINE FIELDS)&lt;br /&gt;  location ('myfile.txt')&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;... and you have your table.&lt;br /&gt;&lt;br /&gt;For more options and details check the Concepts Guide.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-9181643005957848376?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/9181643005957848376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/10/oracle-10g-external-table-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9181643005957848376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9181643005957848376'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/10/oracle-10g-external-table-example.html' title='Oracle 10g External Table Example'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2550324439913288134</id><published>2010-10-07T08:30:00.002+02:00</published><updated>2010-10-07T08:35:48.876+02:00</updated><title type='text'>ORA-600 [17018] And ORA-21522</title><content type='html'>In your alert log you find out : You have &lt;br /&gt;&lt;br /&gt;ORA-00600: internal error code, arguments: [17018], [0], [], [], [], [], [], []&lt;br /&gt;&lt;br /&gt;In the trace file you find out that :&lt;br /&gt;&lt;br /&gt;Error on rollback: ORA-22303: type "SYS"."AQ$_RECIPIENTS" not found&lt;br /&gt;ORA-21522: attempted to use an invalid connection in OCI (object mode only)&lt;br /&gt;*** 2010-10-05 07:23:34.517&lt;br /&gt;ksedmp: internal or fatal error&lt;br /&gt;ORA-00600: internal error code, arguments: [17018], [0], [], [], [], [], [], []&lt;br /&gt;&lt;br /&gt;The call stack has one of the following:&lt;br /&gt;&lt;br /&gt;kglrls kxsReleaseLookupLoc kxsUnlock kksCloseCursor opicca &lt;br /&gt;or &lt;br /&gt;kglrls kxsReleaseParentLoc kxsFreeXsc kksCloseCursor opicca &lt;br /&gt;&lt;br /&gt;The cause of this problem has been identified and verified in unpublished Bug 5444620, which is a duplicate of unpublished Bug 5675310. &lt;br /&gt;&lt;br /&gt;There is no known workaround for this bug which is fixed in 11.1  &lt;br /&gt;According to development, it is not feasible to fix this issue in the 10.2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2550324439913288134?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2550324439913288134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/10/ora-600-17018-and-ora-21522.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2550324439913288134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2550324439913288134'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/10/ora-600-17018-and-ora-21522.html' title='ORA-600 [17018] And ORA-21522'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-7707452995523276034</id><published>2010-09-28T12:15:00.002+03:00</published><updated>2010-09-28T12:26:21.554+03:00</updated><title type='text'>Un Indexed Foreign Keys</title><content type='html'>Un indexed foreign keys is meaning a bad schema design. If you do not have index on foreign keys you will probably face situations of &lt;br /&gt;1) deadlocks (http://agstamy.blogspot.com/2010/09/oracle-deadlocks.html) &lt;br /&gt;2) But query plans when joining parent/child table&lt;br /&gt;3) Full table scans causing locks on child tables while updating the parent table pk &lt;br /&gt;4) Problem with cascade delete&lt;br /&gt;&lt;br /&gt;There is always an overhead for too many indexes specially on tables that may be high transactional but you will not face the above situations. Bellow are too interesting scripts.&lt;br /&gt;&lt;br /&gt;First one you can find the foreign keys referencing a list of parent tables.&lt;br /&gt;&lt;br /&gt;select table_name,constraint_name &lt;br /&gt;from dba_constraints&lt;br /&gt;where owner='MY_OWNER'&lt;br /&gt;and r_constraint_name in (&lt;br /&gt;select constraint_name from dba_constraints &lt;br /&gt;where owner='MY_OWNER'&lt;br /&gt;and table_name in ('MY_TABLE','MY_TABLE2',......)&lt;br /&gt;and constraint_type in ('P'));&lt;br /&gt;&lt;br /&gt;You can then go and add indexes on the tables FKs columns.&lt;br /&gt;&lt;br /&gt;A more automated script by Tomas Kyte.&lt;br /&gt;&lt;br /&gt;SELECT &lt;br /&gt;'create index '||owner||'.'||SUBSTR(table_name,INSTR(table_name,'_',1,1)+1)||'_idx'||TO_CHAR(rnk)||' on '||owner||'.'||table_name||'('||col1||');'&lt;br /&gt;  FROM (&lt;br /&gt;SELECT &lt;br /&gt;status,owner,table_name,col1,col2&lt;br /&gt;,rnk+1 rnk&lt;br /&gt;FROM( &lt;br /&gt;SELECT status,owner,table_name,col1,col2&lt;br /&gt;,ROW_NUMBER() OVER (PARTITION BY owner ORDER BY owner) rnk &lt;br /&gt; FROM (&lt;br /&gt;SELECT DECODE( b.table_name, NULL, '****', 'ok' ) Status, owner,&lt;br /&gt;                   a.table_name, a.COLUMNS col1, b.COLUMNS col2&lt;br /&gt;FROM &lt;br /&gt;( SELECT SUBSTR(a.table_name,1,30) table_name, a.owner,&lt;br /&gt;                                 SUBSTR(a.constraint_name,1,30) constraint_name, &lt;br /&gt;                     MAX(DECODE(position, 1,     SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position, 2,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position, 3,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position, 4,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position, 5,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position, 6,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position, 7,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position, 8,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position, 9,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position,10,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position,11,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position,12,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position,13,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position,14,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position,15,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(position,16,', '||SUBSTR(column_name,1,30),NULL)) COLUMNS&lt;br /&gt;    FROM dba_cons_columns a, dba_constraints b&lt;br /&gt;   WHERE a.owner LIKE 'MY_OWNER' &lt;br /&gt;       AND a.owner=b.owner &lt;br /&gt;      AND a.constraint_name = b.constraint_name&lt;br /&gt;     AND b.constraint_type = 'R'&lt;br /&gt;   GROUP BY a.owner,SUBSTR(a.table_name,1,30), SUBSTR(a.constraint_name,1,30) ) a, &lt;br /&gt;( SELECT SUBSTR(table_name,1,30) table_name, SUBSTR(index_name,1,30) index_name, &lt;br /&gt;                     MAX(DECODE(column_position, 1,     SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position, 2,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position, 3,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position, 4,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position, 5,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position, 6,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position, 7,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position, 8,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position, 9,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position,10,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position,11,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position,12,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position,13,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position,14,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position,15,', '||SUBSTR(column_name,1,30),NULL)) || &lt;br /&gt;                     MAX(DECODE(column_position,16,', '||SUBSTR(column_name,1,30),NULL)) COLUMNS&lt;br /&gt;    FROM dba_ind_columns&lt;br /&gt;                WHERE index_owner LIKE 'MY_OWNER' &lt;br /&gt;   GROUP BY SUBSTR(table_name,1,30), SUBSTR(index_name,1,30) ) b&lt;br /&gt;WHERE a.table_name = b.table_name (+)&lt;br /&gt;  AND b.COLUMNS (+) LIKE a.COLUMNS || '%'&lt;br /&gt;) WHERE status !='ok' ORDER BY 2&lt;br /&gt;))&lt;br /&gt;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any one can use its own naming conversion for the indexes by altering the first statement and the x on the rnk+x rnk column of the second select.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-7707452995523276034?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/7707452995523276034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/09/un-indexed-foreign-keys.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7707452995523276034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7707452995523276034'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/09/un-indexed-foreign-keys.html' title='Un Indexed Foreign Keys'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2010714032565893608</id><published>2010-09-28T11:46:00.002+03:00</published><updated>2010-09-28T12:14:53.385+03:00</updated><title type='text'>Oracle Deadlocks</title><content type='html'>Recently , i had a j2ee application that suddenly caused deadlocks ORA-00060 on a test environment. After that i had to refresh my memory about deadlocks.&lt;br /&gt;&lt;br /&gt;In general a deadlock occurs when a session (A) wants a resource held by another  session (B) , but that session also wants a resource held by the first session (A). There can be more than 2 sessions involved but the idea is the same.&lt;br /&gt;&lt;br /&gt;You will find an entry in the alert.log pointing to the trace file that has all the info regarding the deadlock , the deadlock graph,, the sessions involved , the sql statements , the rwoid of the objects waited and other info.&lt;br /&gt;&lt;br /&gt;The most common lock types seen in deadlock graphs are TX and TM locks.It is the  lock type and modes which help determine what situation has caused the deadlock. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Lock  Mode&lt;br /&gt; Type Requested Probable Cause&lt;br /&gt; ~~~~ ~~~~~~~~~ ~~~~~~~~~~~~~~&lt;br /&gt; TX  X (mode 6) Application row level conflict.&lt;br /&gt;    Avoid by recoding the application to ensure&lt;br /&gt;    rows are always locked in a particular order.&lt;br /&gt;&lt;br /&gt; TX S (mode 4)  There are a number of reasons that a TX lock&lt;br /&gt;    may be requested in S mode usually caused by waits&lt;br /&gt;        E.g&lt;br /&gt;        &lt;br /&gt;        Waits due to Row being locked by an active Transaction&lt;br /&gt; Waits due to Unique or Primary Key Constraint enforcement&lt;br /&gt; Waits due to Insufficient 'ITL' slots in the Block&lt;br /&gt; Waits due to rows being covered by the same BITMAP index fragment&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; TM SSX (mode 5)  This is usually related to the existence of&lt;br /&gt;         or  foreign key constraints where the columns&lt;br /&gt;         S (mode 4)  are not indexed on the child table.&lt;br /&gt;    &lt;br /&gt;ID1 of a TM lock indicates which object is being locked. &lt;br /&gt;The TM lock id in the form TM-AAAAAAAA-BBBBBBBB by converting AAAAAAAA from hexadecimal to a decimal number DDDD we have the object_id. Then locate the object using SELECT * FROM dba_objects WHERE object_id= DDDD;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We also have deadlocks that concerns library cache locks with error ora-04020. The first thing is to check if they are invalid objects used, and try to recompile/validate them. &lt;br /&gt;Secondly, check if DDL commands are executed by different sessions at the same time, and serialize this processing.&lt;br /&gt;&lt;br /&gt;Great info in the web&lt;br /&gt;http://yong321.freeshell.org/computer/deadlocks.txt&lt;br /&gt;http://www.oratechinfo.co.uk/deadlocks.html&lt;br /&gt;&lt;br /&gt;Always&lt;br /&gt;asktom.oracle.com &lt;br /&gt;&lt;br /&gt;And &lt;br /&gt;Metalink Note IDs : 62365.1 , 62354.1, 33453.1, 166924.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2010714032565893608?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2010714032565893608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/09/oracle-deadlocks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2010714032565893608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2010714032565893608'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/09/oracle-deadlocks.html' title='Oracle Deadlocks'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-4834716865821456510</id><published>2010-09-09T16:46:00.001+02:00</published><updated>2010-09-09T16:48:08.918+02:00</updated><title type='text'>Getting Milliseconds from Oracle Timestamps</title><content type='html'>http://www.dba-oracle.com/t_timestamp_math_elapsed_times.htm&lt;br /&gt;&lt;br /&gt;An example procedure based on the link calculations.&lt;br /&gt;&lt;br /&gt;create table test (a int, b int, primary key (a,b));&lt;br /&gt;&lt;br /&gt;declare&lt;br /&gt;startt timestamp;&lt;br /&gt;endt timestamp;&lt;br /&gt;ms int;&lt;br /&gt;begin&lt;br /&gt;dbms_output.enable(1000000);&lt;br /&gt;startt:=systimestamp;&lt;br /&gt;for i in 1 .. 1001&lt;br /&gt;loop&lt;br /&gt;  insert into test values (i,i+1);&lt;br /&gt;  commit;&lt;br /&gt;end loop;&lt;br /&gt;endt:=systimestamp;&lt;br /&gt;select sum(&lt;br /&gt;  (extract(hour from endt)-extract(hour from startt))*3600+&lt;br /&gt;  (extract(minute from endt)-extract(minute from startt))*60+&lt;br /&gt;  extract(second from endt)-extract(second from startt))*1000 into ms from dual;&lt;br /&gt;dbms_output.put_line(ms);&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;drop table test purge;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-4834716865821456510?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/4834716865821456510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/09/getting-milliseconds-from-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4834716865821456510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4834716865821456510'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/09/getting-milliseconds-from-oracle.html' title='Getting Milliseconds from Oracle Timestamps'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-7704164709880439238</id><published>2010-09-09T16:09:00.001+02:00</published><updated>2010-09-09T16:12:07.753+02:00</updated><title type='text'>Creating materialized view in other schema reports error ORA-01031</title><content type='html'>While creating materialized view in other schema reports error ORA-01031.&lt;br /&gt;&lt;br /&gt;The user you are using has the SELECT ANY TABLE,CREATE MATERIALIZED VIEW,CREATE ANY VIEW,CREATE ANY MATERIALIZED VIEW,CREATE ANY TABLE,CREATE SESSION.&lt;br /&gt;&lt;br /&gt;This is due a bug. Grant explicitly the create table privilege to the user has the tables the materialized view relies.&lt;br /&gt;&lt;br /&gt;Metalink Note Id: 749112.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-7704164709880439238?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/7704164709880439238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/09/creating-materialized-view-in-other.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7704164709880439238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7704164709880439238'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/09/creating-materialized-view-in-other.html' title='Creating materialized view in other schema reports error ORA-01031'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-497507421253938835</id><published>2010-09-03T16:11:00.003+02:00</published><updated>2010-09-03T16:17:05.340+02:00</updated><title type='text'>Reload Oracle JVM Oracle 10g</title><content type='html'>In order to reload the Oracle JVM in an Oracle Database 10g do the following:&lt;br /&gt;&lt;br /&gt;1) shutdown the database&lt;br /&gt;&lt;br /&gt;2) create the following script to remove the installed JVM:&lt;br /&gt;&lt;br /&gt;spool full_rmjvm.log &lt;br /&gt; set echo on &lt;br /&gt; connect / as sysdba &lt;br /&gt; startup mount &lt;br /&gt; alter system set "_system_trig_enabled" = false scope=memory; &lt;br /&gt; alter system enable restricted session; &lt;br /&gt; alter database open; &lt;br /&gt; @?/rdbms/admin/catnoexf.sql &lt;br /&gt; @?/rdbms/admin/catnojav.sql &lt;br /&gt; @?/xdk/admin/rmxml.sql &lt;br /&gt; @?/javavm/install/rmjvm.sql &lt;br /&gt; truncate table java$jvm$status; &lt;br /&gt; select * from obj$ where obj#=0 and type#=0; &lt;br /&gt; delete from obj$ where obj#=0 and type#=0; &lt;br /&gt; commit; &lt;br /&gt; select owner, count(*) from all_objects &lt;br /&gt;   where object_type like '%JAVA%' group by owner; &lt;br /&gt; select obj#, name from obj$ &lt;br /&gt;   where type#=28 or type#=29 or type#=30 or namespace=32; &lt;br /&gt; select o1.name from obj$ o1,obj$ o2 &lt;br /&gt;   where o1.type#=5 and o1.owner#=1 and o1.name=o2.name and o2.type#=29; &lt;br /&gt; shutdown immediate &lt;br /&gt; set echo off &lt;br /&gt; spool off &lt;br /&gt; exit &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3) create the following script to reinstall JVM&lt;br /&gt;spool full_jvminst.log; &lt;br /&gt; set echo on &lt;br /&gt; connect / as sysdba &lt;br /&gt; startup mount &lt;br /&gt; alter system set "_system_trig_enabled" = false scope=memory; &lt;br /&gt; alter database open; &lt;br /&gt; select obj#, name from obj$ &lt;br /&gt;   where type#=28 or type#=29 or type#=30 or namespace=32; &lt;br /&gt; @?/javavm/install/initjvm.sql &lt;br /&gt; select count(*), object_type from all_objects &lt;br /&gt;   where object_type like '%JAVA%' group by object_type; &lt;br /&gt; @?/xdk/admin/initxml.sql &lt;br /&gt; select count(*), object_type from all_objects &lt;br /&gt;   where object_type like '%JAVA%' group by object_type; &lt;br /&gt; @?/xdk/admin/xmlja.sql &lt;br /&gt; select count(*), object_type from all_objects &lt;br /&gt;   where object_type like '%JAVA%' group by object_type; &lt;br /&gt; @?/rdbms/admin/catjava.sql &lt;br /&gt; select count(*), object_type from all_objects &lt;br /&gt;   where object_type like '%JAVA%' group by object_type; &lt;br /&gt; @?/rdbms/admin/catexf.sql &lt;br /&gt; select count(*), object_type from all_objects &lt;br /&gt;   where object_type like '%JAVA%' group by object_type; &lt;br /&gt; shutdown immediate &lt;br /&gt; set echo off &lt;br /&gt; spool off &lt;br /&gt; exit &lt;br /&gt;&lt;br /&gt;4) Compile all invalid objects&lt;br /&gt;&lt;br /&gt;@?/rdbms/admin/utlrp.sql &lt;br /&gt;&lt;br /&gt;5) Check for the jvm installed&lt;br /&gt;&lt;br /&gt;select version, status from dba_registry where comp_id='JAVAVM';&lt;br /&gt;&lt;br /&gt;and / or &lt;br /&gt;&lt;br /&gt;select owner, count(*) from all_objects where object_type like '%JAVA%' group by owner;&lt;br /&gt;&lt;br /&gt;6) If you previously have installed InterMedia (ORDSYS), UltraSearch (WKSYS) Data Mining (DMSYS), Spatial (MDSYS) or (EXFSYS) then create and runt the following script&lt;br /&gt;&lt;br /&gt;spool jvm_refresh.log &lt;br /&gt; connect / as sysdba &lt;br /&gt; @?/ord/im/admin/iminst.sql; &lt;br /&gt; connect / as sysdba &lt;br /&gt; @?/dm/admin/dminst1.sql SYSAUX TEMP &lt;Your $ORACLE_HOME/dm/admin directory&gt;; &lt;br /&gt; connect / as sysdba &lt;br /&gt; @?/md/admin/mdinst.sql; &lt;br /&gt; connect / as sysdba &lt;br /&gt; @?/dm/admin/dminst2.sql; &lt;br /&gt; connect / as sysdba &lt;br /&gt; @?/ultrasearch/admin/wk0deinst.sql SYS change_on_install ""; &lt;br /&gt; connect / as sysdba &lt;br /&gt; @?/ultrasearch/admin/wk0install.sql SYS change_on_install change_on_install &lt;br /&gt; SYSAUX TEMP "" PORTAL false; &lt;br /&gt; connect / as sysdba &lt;br /&gt; alter user WKSYS account unlock identified by change_on_install; &lt;br /&gt; @?/ultrasearch/admin/wk0config.sql change_on_install &lt;br /&gt;   (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP) &lt;br /&gt;   (HOST=&lt;Your hostname&gt;)(PORT=1521)) &lt;br /&gt;   (CONNECT_DATA=(SERVER=DEDICATED) &lt;br /&gt;   (SERVICE_NAME=&lt;Your SID NAME&gt;.&lt;Your Domain Name&gt;))) &lt;br /&gt;   false " "; &lt;br /&gt; spool off &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;7) Recompile all invalid objects as in step 4&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-497507421253938835?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/497507421253938835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/09/reload-oracle-jvm-oracle-10g.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/497507421253938835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/497507421253938835'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/09/reload-oracle-jvm-oracle-10g.html' title='Reload Oracle JVM Oracle 10g'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-1019727452778869651</id><published>2010-09-01T10:46:00.000+02:00</published><updated>2010-09-01T10:47:26.042+02:00</updated><title type='text'>Oracle Database 11g: The Top New Features for DBAs and Developers</title><content type='html'>Oracle Database 11g:&lt;br /&gt;The Top New Features for DBAs and Developers&lt;br /&gt;&lt;br /&gt;http://www.oracle.com/technetwork/articles/sql/index-099021.html&lt;br /&gt;&lt;br /&gt;The best series in order to understand the new features of 11g Database.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-1019727452778869651?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/1019727452778869651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/09/oracle-database-11g-top-new-features.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1019727452778869651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1019727452778869651'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/09/oracle-database-11g-top-new-features.html' title='Oracle Database 11g: The Top New Features for DBAs and Developers'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3473632402519273291</id><published>2010-07-29T13:01:00.002+03:00</published><updated>2010-07-29T14:19:04.785+03:00</updated><title type='text'>RMAN Tablespace Point-in-Time Recovery</title><content type='html'>Recovery Manager (RMAN) automatic tablespace point-in-time recovery (commonly abbreviated TSPITR) enables you to quickly recover one or more tablespaces in an Oracle database to an earlier time, without affecting the state of the rest of the tablespaces and other objects in the database.&lt;br /&gt;&lt;br /&gt;Check online Oracle documentation for TSPITR limitations and how tos.&lt;br /&gt;&lt;br /&gt;Known bugs :&lt;br /&gt;&lt;br /&gt;TS_PITR_CHECK SHOWS MISLEADING MESSAGES WHEN STATISTICS ARE LOCK (BUG 5192382)&lt;br /&gt;&lt;br /&gt;Workaround &lt;br /&gt;&lt;br /&gt;1) Apply patch 5192382&lt;br /&gt;2) Unlock affected table statistics.&lt;br /&gt;   exec DBMS_STATS.UNLOCK_TABLE_STATS ('table_owner','table_name');&lt;br /&gt;&lt;br /&gt;TS_PITR_CHECK REPORTS "MASTER TABLE USED FOR SNAPSHOTS/REPLICATION NOT "&lt;br /&gt;&lt;br /&gt;No workaorund &lt;br /&gt;&lt;br /&gt;Apply patch 5192382&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-3473632402519273291?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3473632402519273291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/07/rman-tablespace-point-in-time-recovery.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3473632402519273291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3473632402519273291'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/07/rman-tablespace-point-in-time-recovery.html' title='RMAN Tablespace Point-in-Time Recovery'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-4530387843778218142</id><published>2010-07-21T14:21:00.002+03:00</published><updated>2010-07-21T14:38:04.296+03:00</updated><title type='text'>Ora-30078 Error Creating A Partition Table With Timestamp As The Range</title><content type='html'>Partitions on column with datatype timestamp with or without tiem zone information on Oracle 9i and up(If this capability is implemented in the 11g i will edit the article).&lt;br /&gt;&lt;br /&gt;You have the following table test and you want to partition it on the d column.&lt;br /&gt;You write the following SQL:&lt;br /&gt;&lt;br /&gt;create table test(&lt;br /&gt;     a         varchar2(5)    not null,&lt;br /&gt;     d         timestamp      not null&lt;br /&gt; ) partition by range (d) (&lt;br /&gt;  partition p1 values less than (to_timestamp('2010-08-15','YYYY-MM-DD')), &lt;br /&gt;  partition p_max values less than (maxvalue)&lt;br /&gt;  )&lt;br /&gt;;&lt;br /&gt;&lt;br /&gt;ORA-30078: partition bound must be TIME/TIMESTAMP WITH TIME ZONE literals&lt;br /&gt;&lt;br /&gt;In order to create the table  that you must write the SQL as follows:&lt;br /&gt;&lt;br /&gt;create table test(&lt;br /&gt;     a         varchar2(5)    not null,&lt;br /&gt;     d         timestamp      not null&lt;br /&gt; ) partition by range (d) (&lt;br /&gt;  partition p1 values less than (timestamp '2010-08-15 00:00:00'), &lt;br /&gt;  partition p_max values less than (maxvalue)&lt;br /&gt;  )&lt;br /&gt;;&lt;br /&gt;&lt;br /&gt;create table succeeded.&lt;br /&gt;&lt;br /&gt;Be careful of the nls_timestamp_format setting of your database.&lt;br /&gt;&lt;br /&gt;If your column d was timestamp with time zone the statement would fail with :&lt;br /&gt;&lt;br /&gt;ORA-03001: unimplemented feature&lt;br /&gt;&lt;br /&gt;In 11g &lt;br /&gt;&lt;br /&gt;But if you use the local time zone for column d&lt;br /&gt;&lt;br /&gt;create table test(&lt;br /&gt;     a         varchar2(5)    not null,&lt;br /&gt;     d         timestamp with local time zone     not null&lt;br /&gt; ) partition by range (d) (&lt;br /&gt;  partition p1 values less than (timestamp '2010-08-15 00:00:00 +00:00'), &lt;br /&gt;  partition p_max values less than (maxvalue)&lt;br /&gt;  )&lt;br /&gt;;&lt;br /&gt;&lt;br /&gt;create table succeeded.&lt;br /&gt;&lt;br /&gt;Be carefull that when you use the local time zone :&lt;br /&gt;1 Data is normalized to the database time zone when it is stored in the database.&lt;br /&gt;2 When the data is retrieved, users see the data in the session time zone.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-4530387843778218142?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/4530387843778218142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/07/ora-30078-error-creating-partition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4530387843778218142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4530387843778218142'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/07/ora-30078-error-creating-partition.html' title='Ora-30078 Error Creating A Partition Table With Timestamp As The Range'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-1611176181781476842</id><published>2010-07-14T13:08:00.003+03:00</published><updated>2010-07-14T16:54:18.183+03:00</updated><title type='text'>ORA-12012</title><content type='html'>ORA-12012: error on auto execute of job [num]&lt;br /&gt;&lt;br /&gt;If this is a job created with the dbms_job package then you can find information using the following select&lt;br /&gt;&lt;br /&gt;select * from dba_jobs where job=[num];&lt;br /&gt;&lt;br /&gt;If you have created the job using the dbms_scheduler then execute the following:&lt;br /&gt;&lt;br /&gt;select obj# , object_name &lt;br /&gt;from sys.scheduler$_job a, dba_objects b&lt;br /&gt;where a.obj# = b.object_id&lt;br /&gt;and a.obj#=[num];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The using the EM Dbconsole you can find more details about the job.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-1611176181781476842?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/1611176181781476842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/07/ora-12012.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1611176181781476842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1611176181781476842'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/07/ora-12012.html' title='ORA-12012'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3826576893131529386</id><published>2010-06-04T16:53:00.007+03:00</published><updated>2010-06-04T17:08:20.892+03:00</updated><title type='text'>ORA-959 Tablespace '_$deleted$0$0' Does Not Exist or users has '_$deleted$0$0' as default tablespace.</title><content type='html'>You definitely have seen this if you use OEM tablespace reorganize feature using rename tablespace method. &lt;br /&gt;&lt;br /&gt;The case is that a tablespace is renamed to one that use to exist on the database.  Here are the steps that will cause this problem.&lt;br /&gt;&lt;br /&gt;create tablespace aa &lt;br /&gt;create tablespace bb &lt;br /&gt;drop tablespace aa &lt;br /&gt;rename bb to aa &lt;br /&gt;&lt;br /&gt;Then why it occurs is because when a tablespace is dropped, its ts$ entry is set to an invalid state, but it is not deleted.  When a rename is done, if the target name already has a ts$ entry, then during the rename, because we cannot have two ts$ entries with the same name, the _$deleted$ construct is introduced.  The change is not taken care of properly, and is flushed to other dictionary tables causing this problem.&lt;br /&gt;&lt;br /&gt;It also counts for temporary tbs.&lt;br /&gt;&lt;br /&gt;Confirmed on to 10.2.0.3 and 10.2.0.4 &lt;br /&gt;&lt;br /&gt;Solution&lt;br /&gt;&lt;br /&gt;1) Apply Patch 5769963 &lt;br /&gt;&lt;br /&gt;2) Using SQL&lt;br /&gt; &lt;br /&gt;Alter the user to have as default/temp tablespace the new tbs&lt;br /&gt;If an object is offended such and index partition or table partition default tbs   then alter the object.&lt;br /&gt;Check &lt;br /&gt;&lt;a href="http://agstamy.blogspot.com/2009/12/ora-00959-tablespace-deleted00-does-not.html"&gt;http://agstamy.blogspot.com/2009/12/ora-00959-tablespace-deleted00-does-not.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;References &lt;br /&gt;Oracle Metalink Notes 604648.1, 789023.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-3826576893131529386?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3826576893131529386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/06/this-is-case-if-you-use-oem-tablespace.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3826576893131529386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3826576893131529386'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/06/this-is-case-if-you-use-oem-tablespace.html' title='ORA-959 Tablespace &apos;_$deleted$0$0&apos; Does Not Exist or users has &apos;_$deleted$0$0&apos; as default tablespace.'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-1778026861341672473</id><published>2010-06-01T17:54:00.001+03:00</published><updated>2010-06-01T17:55:54.578+03:00</updated><title type='text'>IBM Technical Articles for AIX</title><content type='html'>IBM Technical Articles for AIX&lt;br /&gt;&lt;br /&gt;http://www.ibm.com/developerworks/views/aix/library.jsp&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-1778026861341672473?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/1778026861341672473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/06/ibm-technical-articles-for-aix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1778026861341672473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1778026861341672473'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/06/ibm-technical-articles-for-aix.html' title='IBM Technical Articles for AIX'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-8394499793963408362</id><published>2010-05-27T13:39:00.001+03:00</published><updated>2010-05-27T13:39:44.094+03:00</updated><title type='text'>Backup Job fails with Agent unreachable when agent in one of rac nodes is down.</title><content type='html'>Please run the below procedure connecting as SYSMAN to the repository database&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;EMD_RAC.REGISTER_AVAILABILITY( 'rac_database', 'Response', 'Status', 'oracle_database','3.1');&lt;br /&gt;COMMIT;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;Bounce the DB Control.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-8394499793963408362?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/8394499793963408362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/05/backup-job-fails-with-agent-unreachable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8394499793963408362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8394499793963408362'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/05/backup-job-fails-with-agent-unreachable.html' title='Backup Job fails with Agent unreachable when agent in one of rac nodes is down.'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2019262614158043368</id><published>2010-05-27T12:49:00.003+03:00</published><updated>2010-05-27T14:03:25.112+03:00</updated><title type='text'>The Cpu &amp; Active Sessions Charts Show "No Data Is Currently Available" For Cluster Database</title><content type='html'>On the EM dbconsole home page the Cpu &amp; Active Sessions Charts Show "No Data Is Currently Available" For Cluster Database. In emagent.trc you find the following lines:&lt;br /&gt;&lt;br /&gt;emagent.trc shows:-&lt;br /&gt;2008-07-02 09:06:10 Thread-4124015504 WARN TargetManager: Query returned 0 rows (only one expected) for the dynamic property DGPrimaryDBName&lt;br /&gt;2008-07-02 09:06:10 Thread-4124015504 WARN TargetManager: The execution of the query for DGPrimaryDBName in {RACDB, rac_database} is missing the following required property values : DGPrimaryDBName &lt;br /&gt;&lt;br /&gt;This is can happen after a RAC node reboot.&lt;br /&gt;&lt;br /&gt;To fix this issue you must apply  patch for BUG:6005707&lt;br /&gt;&lt;br /&gt;The following workaround is available:&lt;br /&gt;&lt;br /&gt;$ORACLE_HOME/bin/emctl reload agent dynamicproperties [targetname]:[targettype]&lt;br /&gt;&lt;br /&gt;eg.&lt;br /&gt;&lt;br /&gt;emctl reload agent dynamicproperties RACDB:rac_database&lt;br /&gt;&lt;br /&gt;Wait 5 minutes , after this the charts should be visible.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2019262614158043368?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2019262614158043368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/05/cpu-active-sessions-charts-show-no-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2019262614158043368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2019262614158043368'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/05/cpu-active-sessions-charts-show-no-data.html' title='The Cpu &amp; Active Sessions Charts Show &quot;No Data Is Currently Available&quot; For Cluster Database'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-4841816506883166079</id><published>2010-05-20T10:18:00.002+03:00</published><updated>2010-05-20T10:22:14.175+03:00</updated><title type='text'>10gR2 RAC ORA-00600 kgeade_is_0</title><content type='html'>Full Error on alert.log :&lt;br /&gt;ORA-00600: internal error code, arguments: [kgeade_is_0], [], [], [], [], [], [], []&lt;br /&gt;&lt;br /&gt;Line from trace file :&lt;br /&gt;select tablespace_id, rfno, allocated_space, file_size, file_maxsize, changescn_base, changescn_wrap, flag from GV$FILESPACE_USAGE where inst_id != :inst and (changescn_wrap &gt;= :&lt;br /&gt;w or (changescn_wrap = :w and changescn_base &gt;= :b))&lt;br /&gt;&lt;br /&gt;Having the initialization parameter PARALLEL_EXECUTION_MESSAGE_SIZE set to a different value on one or more instances in the cluster could cause an error when querying the gv$ views. &lt;br /&gt;&lt;br /&gt;Solution&lt;br /&gt;&lt;br /&gt;Make the parameter same across all RAC instances.&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM SET parallel_execution_message_size=2148 SCOPE=SPFILE SID='*';&lt;br /&gt;&lt;br /&gt;Restart instance having this errors !!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-4841816506883166079?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/4841816506883166079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/05/10gr2-rac-ora-00600-kgeadeis0.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4841816506883166079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4841816506883166079'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/05/10gr2-rac-ora-00600-kgeadeis0.html' title='10gR2 RAC ORA-00600 kgeade_is_0'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-698900423959963905</id><published>2010-05-18T17:21:00.001+03:00</published><updated>2010-05-18T17:22:32.828+03:00</updated><title type='text'>Oracle Blogs on the WEB</title><content type='html'>One of the coolest blogs about Oracle in the Web.&lt;br /&gt;&lt;br /&gt;http://jarneil.wordpress.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-698900423959963905?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/698900423959963905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/05/oracle-blogs-on-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/698900423959963905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/698900423959963905'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/05/oracle-blogs-on-web.html' title='Oracle Blogs on the WEB'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3144877671880106612</id><published>2010-05-13T15:38:00.001+03:00</published><updated>2010-05-13T15:39:39.288+03:00</updated><title type='text'>Oracle 10g RAC articles</title><content type='html'>A nice collection of articles concerning Oracle 10g RAC from database journal.&lt;br /&gt;&lt;br /&gt;http://www.databasejournal.com/article.php/3559996&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-3144877671880106612?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3144877671880106612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/05/oracle-10g-rac-articles.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3144877671880106612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3144877671880106612'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/05/oracle-10g-rac-articles.html' title='Oracle 10g RAC articles'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-7973831527446774683</id><published>2010-04-22T10:28:00.002+02:00</published><updated>2010-04-22T10:34:04.168+02:00</updated><title type='text'>CRS-1006 : No more members to consider</title><content type='html'>When trying to start a service that in crs_stat -t seems offline.&lt;br /&gt;&lt;br /&gt;ora.DB.MYSRV.DB1.srv  ONLINE  OFFLINE on node1  &lt;br /&gt;&lt;br /&gt;Trying to stop the service saids that the service is stopped.&lt;br /&gt;Trying to remove the service saids that the service is running.&lt;br /&gt;&lt;br /&gt;The you have to stop the service manually from each instance.&lt;br /&gt;&lt;br /&gt;On each instance do.&lt;br /&gt;&lt;br /&gt;sqlplus / as sysdba&lt;br /&gt;show parameter service &lt;br /&gt;&lt;br /&gt;-- If you see you service listed there then do&lt;br /&gt;&lt;br /&gt;exec DBMS_SERVICE.STOP_SERVICE('MYSERVICE','MYINSTANCE');&lt;br /&gt;&lt;br /&gt;show parameter service &lt;br /&gt;&lt;br /&gt;-- The service must have been disappeared now.&lt;br /&gt;&lt;br /&gt;After you complete the following procedure then start the service again on the preferred instance.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;References&lt;br /&gt;&lt;br /&gt;http://forums.oracle.com/forums/thread.jspa?messageID=3626152&lt;br /&gt;http://surachartopun.com/2009/03/srvctl-start-service-prkp-1030-failed.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-7973831527446774683?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/7973831527446774683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/04/crs-1006-no-more-members-to-consider.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7973831527446774683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7973831527446774683'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/04/crs-1006-no-more-members-to-consider.html' title='CRS-1006 : No more members to consider'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-5531884806824307051</id><published>2010-04-15T14:26:00.002+02:00</published><updated>2010-04-15T14:27:08.229+02:00</updated><title type='text'>11g new features Articles</title><content type='html'>A very nice collection of Articles for the 11g new features in ORACLE-BASE.&lt;br /&gt;&lt;br /&gt;http://www.oracle-base.com/articles/11g/Articles11g.php&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-5531884806824307051?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/5531884806824307051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/04/11g-new-features-articles.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5531884806824307051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5531884806824307051'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/04/11g-new-features-articles.html' title='11g new features Articles'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2017167717524121781</id><published>2010-03-09T18:20:00.003+02:00</published><updated>2010-03-09T18:29:58.083+02:00</updated><title type='text'>ORA-00005</title><content type='html'>Usually this error comes from Application side in the form : &lt;br /&gt;&lt;br /&gt;ORA-00005:&lt;br /&gt;Message 5 not found; product=RDBMS; facility=ORA&lt;br /&gt;ORA-06512: at "SYS.DBMS_UTILITY", line 70&lt;br /&gt;ORA-06512: at line 1&lt;br /&gt;&lt;br /&gt;and its related with the timezones that are supported on the database.&lt;br /&gt;Oracle has 2 Timezone files on the $ORACLE_HOME/oracore/zoneinfo/ directory.&lt;br /&gt;&lt;br /&gt;timezone.dat -- small file&lt;br /&gt;timezlrg.dat -- large file&lt;br /&gt;&lt;br /&gt;From 9.2.0.5 onwards, $ORACLE_HOME/oracore/zoneinfo/timezlrg.dat is the default timezone file and will be used if ORA_TZFILE parameter is not set. &lt;br /&gt;&lt;br /&gt;if you use on the application side a timezone that is not in the timezlrg.dat then this error is raised. &lt;br /&gt;&lt;br /&gt;You can query this view by to see the timezones with:&lt;br /&gt;&lt;br /&gt;select *&lt;br /&gt;from v$timezone_names;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2017167717524121781?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2017167717524121781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/03/ora-00005.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2017167717524121781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2017167717524121781'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/03/ora-00005.html' title='ORA-00005'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-8887999969498838572</id><published>2010-02-11T17:11:00.002+02:00</published><updated>2010-02-11T17:26:05.463+02:00</updated><title type='text'>Finding CRS Master Node</title><content type='html'>As Metalink Document 220970.1(RAC: Frequently Asked Questions) states: &lt;br /&gt;"For the cluster synchronization service (CSS), the master can be found by searching $ORACLE_HOME/log/cssd/ocssd.log" Where ORACLE_HOME is the CRS Home.&lt;br /&gt;&lt;br /&gt;e.g &lt;br /&gt;Use olsnodes -n to find out the node numbers:&lt;br /&gt;&lt;br /&gt;nodea 1&lt;br /&gt;nodeb  2&lt;br /&gt;nodec  3&lt;br /&gt;&lt;br /&gt;Then on the directory mentioned check for each node the latest entry : &lt;br /&gt;e.g from nodec (3) &lt;br /&gt;grep MASTER ocsdd.log&lt;br /&gt;ocssd.log:[    CSSD]2010-02-05 03:26:03.320 [3861] &gt;TRACE:   clssgmEstablishMasterNode: MASTER for 63 is node(2) birth(58)&lt;br /&gt;&lt;br /&gt;This tell as that for incarnation 63 the master node is 2&lt;br /&gt;&lt;br /&gt;But is this the last incarnation ??? You must also check the other nodes to see.&lt;br /&gt;&lt;br /&gt;For more accurate information (always combined with the previous method) check the crsd.log&lt;br /&gt;&lt;br /&gt;cd $ORACLE_HOME/log/crsd/crsd.log&lt;br /&gt;&lt;br /&gt;2010-02-05 02:32:32.139: [  OCRMAS][3348]th_master:13: I AM THE NEW OCR MASTER at incar 67. Node Number 3&lt;br /&gt;&lt;br /&gt;This means that we had another incarnation and the master node is 2.&lt;br /&gt;&lt;br /&gt;Confusing a little beat. This is happening because the logs rotate or are write in a matter of events happening between the nodes.&lt;br /&gt;&lt;br /&gt;So for my opinion please check the &lt;span style="font-weight:bold;"&gt;crsd.log&lt;/span&gt; from each node and the master is the one in the latest incarnation.&lt;br /&gt;&lt;br /&gt;e.g&lt;br /&gt;&lt;br /&gt;From node1 crsd.log :&lt;br /&gt;2010-02-02 13:05:44.424: [  OCRMAS][3348]th_master:13: I AM THE NEW OCR MASTER at incar 62. Node Number 1&lt;br /&gt;&lt;br /&gt;From node2 crsd.log :&lt;br /&gt;2010-01-18 09:58:19.932: [  OCRMAS][3352]th_master:13: I AM THE NEW OCR MASTER at incar 53. Node Number 2&lt;br /&gt;&lt;br /&gt;From node3 crsd.log : &lt;br /&gt;2010-02-05 02:32:32.139: [  OCRMAS][3348]th_master:13: I AM THE NEW OCR MASTER at incar 67. Node Number 3&lt;br /&gt;&lt;br /&gt;So the master node is 3 !!!&lt;br /&gt;&lt;br /&gt;You can also check with :&lt;br /&gt;&lt;br /&gt;ocrconfig -showbackup&lt;br /&gt;&lt;br /&gt;where the latest backup is, that's the master node. But remember that by default ocrbackups are taken every 4 hours.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-8887999969498838572?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/8887999969498838572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/02/finding-crs-master-node.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8887999969498838572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8887999969498838572'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/02/finding-crs-master-node.html' title='Finding CRS Master Node'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-9117373810260014595</id><published>2010-02-05T18:26:00.003+02:00</published><updated>2010-02-05T18:29:00.903+02:00</updated><title type='text'>Collecting CRS diagnostic files 1OgR2</title><content type='html'>In order to collect all crs all at once ou can run the following command :&lt;br /&gt;&lt;br /&gt;As root : &lt;br /&gt;&lt;br /&gt;diagcollection.pl --collect --crs --crshome [$ORA_CRS_HOME]&lt;br /&gt;&lt;br /&gt;e.g&lt;br /&gt;&lt;br /&gt;diagcollection.pl --collect --crs --crshome /u01/app/oracle/product/crs&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-9117373810260014595?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/9117373810260014595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/02/collecting-crs-diagnostic-files-1ogr2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9117373810260014595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/9117373810260014595'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/02/collecting-crs-diagnostic-files-1ogr2.html' title='Collecting CRS diagnostic files 1OgR2'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-1196325428858757102</id><published>2010-01-19T15:46:00.006+02:00</published><updated>2010-06-11T11:17:30.117+03:00</updated><title type='text'>ORA-27061: waiting for async I/Os failed on AIX</title><content type='html'>When you see this error and the database crashes , hangs or does not shutdown/startup then there is a problem with Async I/O servers on AIX.&lt;br /&gt;&lt;br /&gt;Syptomps&lt;br /&gt;&lt;br /&gt;The following messages in the alert log&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;.............&lt;br /&gt;Mon Oct 8 22:57:05 2007&lt;br /&gt;Errors in file /dwrac/BDUMP/dwhp_p009_1941690.trc:&lt;br /&gt;ORA-27061: waiting for async I/Os failed                       &lt;&lt;&lt;&lt;&lt;br /&gt;IBM AIX RISC System/6000 Error: 22: Invalid argument&lt;br /&gt;&lt;br /&gt; Users affected:&lt;br /&gt;    * systems running aix 5.3 with the bos.rte.aio fileset at the 5.3.0.60 or 5.3.0.61 level.&lt;br /&gt;    * this problem is known to affect oracle.&lt;br /&gt;&lt;br /&gt;Problem description:&lt;br /&gt;When the maximum requests (maxreqs) is exceeded, lio_listio will update the control blocks, but may not return an error  to indicate that some i/os were not started. this results in an unexpected einval from aio_nwait later when these i/os are waited for.&lt;br /&gt;&lt;br /&gt;* errors similar to the following may be logged by oracle:&lt;br /&gt;* ora-27061: waiting for async i/os failed&lt;br /&gt;* ibm aix risc system/6000 error: 22: invalid argument&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are 3 actions to try : &lt;br /&gt;&lt;br /&gt;1) Increase the number of aios and the maxreqs&lt;br /&gt;&lt;br /&gt;Check aio the current settings:&lt;br /&gt;aioo -a&lt;br /&gt;or&lt;br /&gt;lsattr –El aio0&lt;br /&gt;&lt;br /&gt;Set maxreqs at least 8192.&lt;br /&gt;&lt;br /&gt;chdev -P -l aio0 -a maxreqs=8192&lt;br /&gt;or &lt;br /&gt;aioo -p -o maxreqs=8192 (AIX 5.3 and up)&lt;br /&gt;&lt;br /&gt;If this does not resolve the problem increase the number of min/max aio servers&lt;br /&gt;&lt;br /&gt;chdev -P -l aio0 -a maxservers=[new value] -a minservers=[new value]&lt;br /&gt;&lt;br /&gt;To make changes persistance on reboot&lt;br /&gt;&lt;br /&gt;aioo -p -o maxservers=[new value] -o minservers=[new value] &lt;br /&gt;&lt;br /&gt;To apply new values online (AIX 5.3 and up)&lt;br /&gt;&lt;br /&gt;2) Decrease the parallel_min_servers and parallel_max_servers on the failing instance.&lt;br /&gt;&lt;br /&gt;FOR RAC&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM SET parallel_min_servers = [NUM] SCOPE=BOTH SID='MYINSTANCE1';&lt;br /&gt;ALTER SYSTEM SET parallel_max_servers = [NUM] SCOPE=BOTH SID='MYINSTANCE1';&lt;br /&gt;&lt;br /&gt;FOR SINGLE DB&lt;br /&gt;ALTER SYSTEM SET parallel_min_servers = [NUM] SCOPE=BOTH;&lt;br /&gt;ALTER SYSTEM SET parallel_max_servers = [NUM] SCOPE=BOTH;&lt;br /&gt;&lt;br /&gt;3) IBM FIX for AIX 5.3 ML6 and UP&lt;br /&gt;Install fix for apar iz03260&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;REFERENCES&lt;br /&gt;Metalink Note 464768.1&lt;br /&gt;http://www-01.ibm.com/support/docview.wss?uid=isg1IZ03260&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-1196325428858757102?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/1196325428858757102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/01/ora-27061-waiting-for-async-ios-failed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1196325428858757102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1196325428858757102'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/01/ora-27061-waiting-for-async-ios-failed.html' title='ORA-27061: waiting for async I/Os failed on AIX'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-3463638822780369990</id><published>2010-01-15T11:56:00.003+02:00</published><updated>2010-01-15T13:59:06.646+02:00</updated><title type='text'>Oracle 10g REDO LOGS sizing</title><content type='html'>The size of the redo log files can influence performance, because the behavior of&lt;br /&gt;the dbw and arc processes depend on their sizes.&lt;br /&gt;Larger redo log files provide better performance but instance recovery time is increased. Sou you must find a good balance depending the type of your system and your instance recovery time needed.&lt;br /&gt;&lt;br /&gt;Also be careful that undersized log files increase checkpoint activity and increase CPU usage.Checkpoint frequency is affected by several factors, including log file size and &lt;br /&gt;the setting of the FAST_START_MTTR_TARGET.&lt;br /&gt;&lt;br /&gt;If the FAST_START_MTTR_TARGET parameter is set to limit the instance recovery time, &lt;br /&gt;Oracle automatically tries to checkpoint as frequently as necessary. &lt;br /&gt;Under this condition, the size of the log files should be large enough to avoid&lt;br /&gt;additional checkpointing due to under sized log files.&lt;br /&gt;&lt;br /&gt;In Oracle 10g the redo logfile size can tuned as per recommendation specified by column optimal_logfile_size of v$instance_recovery or in the EM Dbconsole under Administration Page under Storage on the Redo Log Groups Link  on the Actions List.&lt;br /&gt;&lt;br /&gt;In order to enable this feature you must set the parameter "fast_start_mttr_target" in order to activate the advisory and the population of the column optimal_logfile_size.&lt;br /&gt;&lt;br /&gt;The key columns in v$instance_recovery view are : &lt;br /&gt;&lt;br /&gt;ACTUAL_REDO_BLKS &lt;br /&gt;The current actual number of redo blocks required for recovery. &lt;br /&gt;&lt;br /&gt;TARGET_MTTR &lt;br /&gt;Effective MTTR (mean time to recover) target value in seconds. The TARGET_MTTR value is calculated based on the value of the FAST_START_MTTR_TARGET parameter and is usually an approximation of the parameter's value. However, if the FAST_START_MTTR_TARGET parameter value is very small (for example, one second), or very large (for example, 3600 seconds), the calculation will produce a target value dictated by system limitations. In such cases, the TARGET_MTTR value will be the shortest calculated time, or the longest calculated time that recovery is expected to take. &lt;br /&gt;&lt;br /&gt;ESTIMATED_MTTR&lt;br /&gt;The current estimated mean time to recover (MTTR) based on the number of dirty buffers and log blocks (0 if FAST_START_MTTR_TARGET is not specified). Basically, this value tells you how long you could expect recovery to take based on the work your system is doing right now. &lt;br /&gt;&lt;br /&gt;OPTIMAL_LOGFILE_SIZE&lt;br /&gt;The recommended optimal redolog file size for the current setting of FAST_START_MTTR_TARGET.&lt;br /&gt;&lt;br /&gt;select ACTUAL_REDO_BLKS,TARGET_MTTR,ESTIMATED_MTTR,OPTIMAL_LOGFILE_SIZE&lt;br /&gt;from v$instance_recovery;&lt;br /&gt;&lt;br /&gt;The target is to reduce ACTUAL_REDO_BLKS by setting an appropriate value of FAST_START_MTTR_TARGET and finding the OPTIMAL_LOGFILE_SIZE for the work your system does.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-3463638822780369990?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/3463638822780369990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2010/01/oracle-10g-redo-logs-sizing-advisory.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3463638822780369990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/3463638822780369990'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2010/01/oracle-10g-redo-logs-sizing-advisory.html' title='Oracle 10g REDO LOGS sizing'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-8633311484578911549</id><published>2009-12-23T16:27:00.002+02:00</published><updated>2009-12-23T16:30:15.125+02:00</updated><title type='text'>Setting db_file_multiblock_read_count</title><content type='html'>A very nice procedure to see the effects on a full table scan query and to estimate the value for db_file_multiblock_read_count.&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;    l_count PLS_INTEGER;&lt;br /&gt;      l_time PLS_INTEGER;&lt;br /&gt;      l_starting_time PLS_INTEGER;&lt;br /&gt;      l_ending_time PLS_INTEGER;&lt;br /&gt;    BEGIN&lt;br /&gt;      dbms_output.put_line('dbfmbrc seconds');&lt;br /&gt;      FOR l_dbfmbrc IN 1..32&lt;br /&gt;      LOOP&lt;br /&gt;       EXECUTE IMMEDIATE 'ALTER SESSION SET db_file_multiblock_read_count='||l_dbfmbrc;&lt;br /&gt;       l_starting_time := dbms_utility.get_time();&lt;br /&gt;       SELECT /*+ full(t) */ count(*) INTO l_count FROM big_table t;&lt;br /&gt;       l_ending_time := dbms_utility.get_time();&lt;br /&gt;       l_time := round((l_ending_time-l_starting_time)/100);&lt;br /&gt;       dbms_output.put_line(l_dbfmbrc||' '||l_time);&lt;br /&gt;     END LOOP;&lt;br /&gt;  END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;Table must be enough big in order not to be cached !!!&lt;br /&gt;&lt;br /&gt;Taken by an excellent book (Apress:Troubleshooting Oracle Performance)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-8633311484578911549?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/8633311484578911549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/12/setting-dbfilemultiblockreadcount.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8633311484578911549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/8633311484578911549'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/12/setting-dbfilemultiblockreadcount.html' title='Setting db_file_multiblock_read_count'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-7001253353713115511</id><published>2009-12-07T11:22:00.001+02:00</published><updated>2009-12-07T11:24:39.429+02:00</updated><title type='text'>ORA-19588</title><content type='html'>RMAN backup of archivelogs fails:&lt;br /&gt;&lt;br /&gt;ORA-19588: archived log recid xxxx stamp xxxxxxxx is no longer valid &lt;br /&gt;&lt;br /&gt;The rman backup job had been started TWICE.&lt;br /&gt;&lt;br /&gt;The initial resync for each job identified the same set of logs to be backed up.&lt;br /&gt;Both jobs were trying to backup and delete the SAME archivelog set, one of which failed eventually as the other job had already backed up and deleted the log.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Make sure that concurrent backups of the archivelogs are not run.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-7001253353713115511?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/7001253353713115511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/12/ora-19588.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7001253353713115511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7001253353713115511'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/12/ora-19588.html' title='ORA-19588'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2265671319584931310</id><published>2009-12-04T12:28:00.002+02:00</published><updated>2009-12-04T12:56:36.244+02:00</updated><title type='text'>CTAS and column default values</title><content type='html'>Affecting 8i up to 10gR2&lt;br /&gt;&lt;br /&gt;If you use CTAS ( Create Table As Select ) to copy a table, the new duplicate table does not contain the default values of the original table. As a result, if you use DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS, it does not copy column's default values.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To implement the solution, please execute the following steps:&lt;br /&gt;&lt;br /&gt;1) Do not use CTAS to copy the table, use another method.&lt;br /&gt;&lt;br /&gt;2) Use CTAS and then modify columns giving them their default values where necessary.&lt;br /&gt;&lt;br /&gt;3) If you want the column's default values to be copied when using DBMS_REDEFINITION, the table has to be pre-created with the default column values before getting re-organized with DBMS_REDEFINITION.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2265671319584931310?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2265671319584931310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/12/ctas-and-column-default-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2265671319584931310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2265671319584931310'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/12/ctas-and-column-default-values.html' title='CTAS and column default values'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-863143214288856164</id><published>2009-12-04T11:44:00.000+02:00</published><updated>2009-12-04T11:45:12.376+02:00</updated><title type='text'>Manually purge scheduler jobs logs</title><content type='html'>From sqlplus as sys or system run :&lt;br /&gt;&lt;br /&gt;exec DBMS_SCHEDULER.PURGE_LOG();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-863143214288856164?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/863143214288856164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/12/manually-purge-scheduler-jobs-logs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/863143214288856164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/863143214288856164'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/12/manually-purge-scheduler-jobs-logs.html' title='Manually purge scheduler jobs logs'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2137749553613492600</id><published>2009-12-04T11:35:00.003+02:00</published><updated>2009-12-11T18:00:00.963+02:00</updated><title type='text'>ORA-00959: tablespace '_$deleted$0$0' does not exist</title><content type='html'>If this error occurs when you try to add a partition on partition table then all the table partitions had once been moved to another tablespace and the original tablespace has now been  dropped or new tablespace where partitons now reside has been renamed to the original tablespace name.&lt;br /&gt;&lt;br /&gt;Issue  &lt;br /&gt;&lt;br /&gt;alter table [table_name] modify default attributes tablespace [tablespace name];&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2137749553613492600?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2137749553613492600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/12/ora-00959-tablespace-deleted00-does-not.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2137749553613492600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2137749553613492600'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/12/ora-00959-tablespace-deleted00-does-not.html' title='ORA-00959: tablespace &apos;_$deleted$0$0&apos; does not exist'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2837515800174838073</id><published>2009-12-02T15:43:00.001+02:00</published><updated>2009-12-02T15:45:54.256+02:00</updated><title type='text'>Oracle Security Options</title><content type='html'>A nice FAQ for Oracle Security &lt;br /&gt;&lt;br /&gt;http://www.orafaq.com/wiki/Oracle_database_Security_FAQ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2837515800174838073?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2837515800174838073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/12/oracle-security-options.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2837515800174838073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2837515800174838073'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/12/oracle-security-options.html' title='Oracle Security Options'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-734066721913520953</id><published>2009-12-02T13:25:00.002+02:00</published><updated>2009-12-02T13:32:10.058+02:00</updated><title type='text'>Oracle 10g : View bind variables values without tracing</title><content type='html'>In 10g there is a new view called: V$SQL_BIND_CAPTURE&lt;br /&gt;&lt;br /&gt;V$SQL_BIND_CAPTURE displays information on bind variables used by SQL cursors.Each row in the view contains information for one bind variable defined in a cursor such as :&lt;br /&gt;&lt;br /&gt;1) Reference to the cursor defining the bind variable&lt;br /&gt;(hash_value, address) for the parent cursor and (hash_value, child_address) for the child cursor.&lt;br /&gt;2) Bind metadata&lt;br /&gt;Name, position, datatype, character set ID, precision, scale, and maximum length of the bind variable.&lt;br /&gt;&lt;br /&gt;3) Bind data&lt;br /&gt;One of the bind values used for the bind variable during a past execution of its associated SQL statement. &lt;br /&gt;&lt;br /&gt;Bind values are not always captured for this view. Bind values are displayed by this view only when the type of the bind variable is simple (this excludes LONG, LOB, and ADT datatypes) and when the bind variable is used in the WHERE or HAVING clauses of the SQL statement( This excludes update and insert statements).&lt;br /&gt;&lt;br /&gt;You can query this view using sql_id or hash_value for an sql statement.&lt;br /&gt;&lt;br /&gt;e.g&lt;br /&gt;&lt;br /&gt;1) Find has_value for your statement&lt;br /&gt;&lt;br /&gt; select sql_text,sql_id,hash_value from v$sqlarea&lt;br /&gt; where lower(sql_text) like '%[my statement]%';&lt;br /&gt;&lt;br /&gt;2) FInd bind variables values&lt;br /&gt; &lt;br /&gt;SELECT name,datatype_string,was_captured,last_captured,value_string,value_anydata&lt;br /&gt; FROM v$sql_bind_capture&lt;br /&gt; WHERE hash_value='[hash_value_from_previous_sql]';&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-734066721913520953?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/734066721913520953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/12/oracle-10g-view-bind-variables-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/734066721913520953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/734066721913520953'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/12/oracle-10g-view-bind-variables-values.html' title='Oracle 10g : View bind variables values without tracing'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-1680886451239785010</id><published>2009-11-27T14:13:00.003+02:00</published><updated>2009-11-27T18:04:29.517+02:00</updated><title type='text'>ORA-02329: column of datatype TIME/TIMESTAMP WITH TIME ZONE  cannot be unique or a primary key</title><content type='html'>As Oracle documentation states that "none of the columns in the unique/primary key can be of LOB, LONG, LONG RAW, VARRAY, NESTED TABLE, OBJECT, REF, TIMESTAMP WITH TIME ZONE, or user-defined type. However, the unique/primary key can contain a column of TIMESTAMP WITH LOCAL TIME ZONE".&lt;br /&gt;&lt;br /&gt;So if you have a table that has a TIMESTAMP WITH TIME ZONE column this column cant have or be part of a unique/primary key constraint. In order to bypass this you can create a unique index including this column.&lt;br /&gt;&lt;br /&gt;e.g&lt;br /&gt;&lt;br /&gt;create table test (a int primary key,b int, c timestamp with time zone);&lt;br /&gt;&lt;br /&gt;alter table test add constraint test_u01 unique (b,c);&lt;br /&gt;&lt;br /&gt;ORA-02329: column of datatype TIME/TIMESTAMP WITH TIME ZONE cannot be unique or a primary key&lt;br /&gt;&lt;br /&gt;create unique index test_u01 on test(b,c);&lt;br /&gt;&lt;br /&gt;Index created !!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-1680886451239785010?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/1680886451239785010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/11/ora-02329-column-of-datatype.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1680886451239785010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1680886451239785010'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/11/ora-02329-column-of-datatype.html' title='ORA-02329: column of datatype TIME/TIMESTAMP WITH TIME ZONE  cannot be unique or a primary key'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-4602049328957549694</id><published>2009-11-26T11:22:00.001+02:00</published><updated>2009-11-26T11:25:19.402+02:00</updated><title type='text'>Date and time arithmetics with interval</title><content type='html'>-- Add five years to current_timestamp&lt;br /&gt;SELECT current_timestamp,current_timestamp  + INTERVAL '5' year FROM dual; &lt;br /&gt;&lt;br /&gt;-- Add five months to current_timestamp&lt;br /&gt;SELECT current_timestamp,current_timestamp  + INTERVAL '5' month&lt;br /&gt;FROM dual;&lt;br /&gt;&lt;br /&gt;-- Add five days to current_timestamp&lt;br /&gt;SELECT current_timestamp,current_timestamp  + INTERVAL '5' DAY&lt;br /&gt;FROM dual;&lt;br /&gt;&lt;br /&gt;-- Add five hours to current_timestamp&lt;br /&gt;SELECT current_timestamp,current_timestamp  + INTERVAL '5' hour&lt;br /&gt;FROM dual;&lt;br /&gt;&lt;br /&gt;-- Add five hours and 10 minutes to current_timestamp&lt;br /&gt;SELECT current_timestamp,current_timestamp  + INTERVAL '5:10' hour to minute&lt;br /&gt;FROM dual;&lt;br /&gt;&lt;br /&gt;-- Add 10 minutes to current_timestamp&lt;br /&gt;SELECT current_timestamp,current_timestamp  + INTERVAL '10' MINUTE&lt;br /&gt;FROM dual;&lt;br /&gt;&lt;br /&gt;-- Add 10 minutes and 30 seconds to current_timestamp&lt;br /&gt;SELECT current_timestamp,current_timestamp  + INTERVAL '10:30' MINUTE TO SECOND&lt;br /&gt;FROM dual;&lt;br /&gt;&lt;br /&gt;-- Add 30 seconds to current_timestamp&lt;br /&gt;SELECT current_timestamp,current_timestamp  + INTERVAL '30' SECOND&lt;br /&gt;FROM dual;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-4602049328957549694?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/4602049328957549694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/11/date-and-time-arithmetics-with-interval.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4602049328957549694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4602049328957549694'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/11/date-and-time-arithmetics-with-interval.html' title='Date and time arithmetics with interval'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-1164851945149374714</id><published>2009-11-25T11:47:00.003+02:00</published><updated>2009-11-25T13:12:09.874+02:00</updated><title type='text'>Oracle 10g flashback table feature</title><content type='html'>FLASHBACK TABLE enables to recover a table to a point in time in the past without restoring a backup.The time in the past to which the table can be flashed back is dependent on the amount of undo data in the system.You cannot restore a table to an earlier state across any DDL operations that change the structure of the table.You cannot roll back a FLASHBACK TABLE statement but you can issue another FLASHBACK TABLE statement and specify a time just prior to the current time. Its crucial to record the current SCN before issuing a FLASHBACK TABLE clause.&lt;br /&gt;&lt;br /&gt;In order a user to flash back a table to an earlier SCN or timestamp, or before drop you must have either :&lt;br /&gt;1.FLASHBACK object privilege on the table or the FLASHBACK ANY TABLE system privilege.&lt;br /&gt;2. SELECT, INSERT, DELETE, and ALTER object privileges on the table.&lt;br /&gt;3.Row movement must for tables in the Flashback list.&lt;br /&gt;&lt;br /&gt;e.g&lt;br /&gt;create table test (a int);&lt;br /&gt;alter table test enable row movement;&lt;br /&gt;insert into test values(1);&lt;br /&gt;insert into test values(2);&lt;br /&gt;insert into test values(3);&lt;br /&gt;commit;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select dbms_flashback.get_system_change_number from dual;&lt;br /&gt;&lt;br /&gt;8657840224 -- SCN before delete&lt;br /&gt;&lt;br /&gt;delete from test where a=3;&lt;br /&gt;&lt;br /&gt;commit;&lt;br /&gt;&lt;br /&gt;select dbms_flashback.get_system_change_number from dual;&lt;br /&gt;&lt;br /&gt;8657840556 -- SCN after delete&lt;br /&gt;&lt;br /&gt;select * from test;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;&lt;br /&gt;flashback table test to scn 8657840224; -- Restore table to before delete !!!&lt;br /&gt;&lt;br /&gt;select * from test;&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;&lt;br /&gt;flashback table test to scn 8657840556; -- Restore table to after delete !!!&lt;br /&gt;&lt;br /&gt;select * from test;&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;&lt;br /&gt;flashback table test to timestamp(systimestamp - interval '3' minute);&lt;br /&gt;&lt;br /&gt;select * from test;&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;&lt;br /&gt;Now we will drop the table and flashback from recycle bin.&lt;br /&gt;&lt;br /&gt;drop table test;&lt;br /&gt;&lt;br /&gt;flashback table test to before drop;&lt;br /&gt;&lt;br /&gt;select * from test;&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;&lt;br /&gt;And as you can see we can go back again !!!&lt;br /&gt;&lt;br /&gt;flashback table test to scn 8657974029;&lt;br /&gt;&lt;br /&gt;select * from test;&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;&lt;br /&gt;If you specify the user-specified name, and if the recycle bin contains more&lt;br /&gt;than one object of that name, then the database retrieves the object that&lt;br /&gt;was moved to the recycle bin most recently.&lt;br /&gt;&lt;br /&gt;drop table test;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;create table test (a int);&lt;br /&gt;alter table test enable row movement;&lt;br /&gt;insert into test values(1);&lt;br /&gt;commit;&lt;br /&gt;&lt;br /&gt;select * from test;&lt;br /&gt;1&lt;br /&gt;&lt;br /&gt;drop table test;&lt;br /&gt;&lt;br /&gt;flashback table test to before drop;&lt;br /&gt;&lt;br /&gt;select * from test;&lt;br /&gt;1&lt;br /&gt;&lt;br /&gt;flashback table test to before drop rename to test1;&lt;br /&gt;&lt;br /&gt;select * from test1;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now lets take a look information recycle bin has.&lt;br /&gt;&lt;br /&gt;drop table test1;&lt;br /&gt;&lt;br /&gt;select owner,object_name,original_name,operation, can_undrop, can_purge&lt;br /&gt;from dba_recyclebin&lt;br /&gt;where owner='AGIS';&lt;br /&gt;&lt;br /&gt;owner object_name original_name operation  can_undrop  can_purge&lt;br /&gt;--------------------------------------------------------------------&lt;br /&gt;AGIS BIN$eTA7dNdz5FfgQAkKeIc6fw==$0 TEST1 DROP YES YES&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;purge recyclebin; -- Clear recycle bin&lt;br /&gt;&lt;br /&gt;select owner,object_name,original_name,operation, can_undrop, can_purge&lt;br /&gt;from dba_recyclebin&lt;br /&gt;where owner='AGIS';&lt;br /&gt;&lt;br /&gt;no rows selected&lt;br /&gt;&lt;br /&gt;flashback table test1 to before drop;&lt;br /&gt;&lt;br /&gt;ORA-38305 Object not in RECYCLE BIN.&lt;br /&gt;&lt;br /&gt;drop table test; -- Put table to recycle bin&lt;br /&gt;&lt;br /&gt;select owner,object_name,original_name,operation, can_undrop, can_purge&lt;br /&gt;from dba_recyclebin&lt;br /&gt;where owner='AGIS';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OWNER                          OBJECT_NAME                    ORIGINAL_NAME                    OPERATION CAN CAN&lt;br /&gt;------------------------------ ------------------------------ -------------------------------- --------- --- ---&lt;br /&gt;AGIS                           BIN$eTA7dNd05FfgQAkKeIc6fw==$0 TEST                             DROP      YES YES&lt;br /&gt;&lt;br /&gt;flashback table test to before drop;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select owner,object_name,original_name,operation, can_undrop, can_purge&lt;br /&gt;from dba_recyclebin&lt;br /&gt;where owner='AGIS';&lt;br /&gt;&lt;br /&gt;no rows selected&lt;br /&gt;&lt;br /&gt;drop table test purge; -- Permanently drop table&lt;br /&gt;&lt;br /&gt;select owner,object_name,original_name,operation, can_undrop, can_purge&lt;br /&gt;from dba_recyclebin&lt;br /&gt;where owner='AGIS';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;no rows selected&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Amazing 10g recovering features with no backup recover !!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-1164851945149374714?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/1164851945149374714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/11/oracle-10g-dropping-table-and-then.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1164851945149374714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/1164851945149374714'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/11/oracle-10g-dropping-table-and-then.html' title='Oracle 10g flashback table feature'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-7191114827587133299</id><published>2009-11-24T18:09:00.002+02:00</published><updated>2009-11-24T18:27:19.245+02:00</updated><title type='text'>Reorginize table online using primary key</title><content type='html'>From Oracle9i forward, table re-organizations and redefinitions can be performed  online. &lt;br /&gt;&lt;br /&gt;What can be Redefined ONLINE on a Table?&lt;br /&gt;&lt;br /&gt;1) A non-partitioned table can be converted into a partitioned table, and &lt;br /&gt;    vice versa&lt;br /&gt;2) The organization of a table can be changed from a heap based to IOTs  and vice versa&lt;br /&gt;3)  Non-primary key columns can be dropped,although this can be also done with sql&lt;br /&gt;4)  New columns can be added to a table,although this can be also done with sql&lt;br /&gt;5)  Existing columns can be renamed,although this can be also done with sql&lt;br /&gt;6)  Parallel support can be added or removed,although this can be also done with sql&lt;br /&gt;7)  Storage parameters can be modified,although this can be also done with sql&lt;br /&gt;&lt;br /&gt;Restrictions&lt;br /&gt;&lt;br /&gt;The table to be re-organized:&lt;br /&gt;&lt;br /&gt;1) Cannot have User-defined data types&lt;br /&gt;2) Cannot have FILE or LONG columns&lt;br /&gt;3) Cannot be clustered&lt;br /&gt;4) Cannot be in the SYS or SYSTEM schema&lt;br /&gt;5) Cannot have materialized view logs and/or materialized views defined on them&lt;br /&gt;6) Must be re-organized within the same schema&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example &lt;br /&gt;&lt;br /&gt;Orig table : Table with hash 256 partitions , with pk , unique index , and fk&lt;br /&gt;Target table : Non partitioned table&lt;br /&gt;&lt;br /&gt;Connect as user with the privileges mentioned above.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1) Check if ORIG_TABLE can be redifined online&lt;br /&gt;    exec DBMS_REDEFINITION.can_redef_table('MYSCHEMA','ORIG_TABLE');&lt;br /&gt;    If procedure fails check ora error and apply solution if possible.&lt;br /&gt;&lt;br /&gt;2) Create interim table&lt;br /&gt;&lt;br /&gt;   create table I_ORIG_TABLE as select * from ORIG_TABLE where 1=2;&lt;br /&gt;&lt;br /&gt;3) Start online redefinition&lt;br /&gt;&lt;br /&gt;exec DBMS_REDEFINITION.START_REDEF_TABLE('MYSCHEMA','ORIG_TABLE','I_ORIG_TABLE');   &lt;br /&gt;&lt;br /&gt;4) Add constraints and indexes&lt;br /&gt;&lt;br /&gt;  ALTER TABLE MYSCHEMA.i_ORIG_TABLE ADD (&lt;br /&gt;  CONSTRAINT I_ORIG_TABLE_PK&lt;br /&gt;  PRIMARY KEY&lt;br /&gt;  (PK_COLUMN));&lt;br /&gt; &lt;br /&gt;  ALTER TABLE MYSCHEMA.i_ORIG_TABLE ADD (&lt;br /&gt;  CONSTRAINT i_ORIG_TABLE_FK &lt;br /&gt;  FOREIGN KEY (REF_COL) &lt;br /&gt;  REFERENCES MYSCHEMA.OTHER_TABLE (PK_COL)&lt;br /&gt;  DEFERRABLE INITIALLY IMMEDIATE);&lt;br /&gt;    &lt;br /&gt;  alter table i_ORIG_TABLE MODIFY CONSTRAINT i_ORIG_TABLE_FK&lt;br /&gt;  DISABLE KEEP INDEX;&lt;br /&gt; &lt;br /&gt;  CREATE UNIQUE INDEX MYSCHEMA.i_ORIG_TABLE_IDX01 ON MYSCHEMA.ORIG_TABLE&lt;br /&gt;  (COL1, COL2);&lt;br /&gt;&lt;br /&gt;5) Sync interim with original table&lt;br /&gt;&lt;br /&gt;   exec DBMS_REDEFINITION.SYNC_INTERIM_TABLE('MYSCHEMA','ORIG_TABLE','I_ORIG_TABLE');&lt;br /&gt;&lt;br /&gt;   Do this a lot of times before finish redefinition in order to apply dml during reorganization.&lt;br /&gt;&lt;br /&gt;6) Find orig_table grants&lt;br /&gt;&lt;br /&gt;   select * from DBA_TAB_PRIVS where table_name='ORIG_TABLE';&lt;br /&gt;&lt;br /&gt;   Give the same grants to the users &lt;br /&gt;&lt;br /&gt;   e.g &lt;br /&gt;&lt;br /&gt;   grant select on I_ORIG_TABLE to user;&lt;br /&gt;&lt;br /&gt;7) Finish redefinition&lt;br /&gt;&lt;br /&gt;   exec DBMS_REDEFINITION.FINISH_REDEF_TABLE('MYSCHEMA','ORIG_TABLE','I_ORIG_TABLE');&lt;br /&gt;&lt;br /&gt;8) Drop old table and rename constraints and indexes.&lt;br /&gt;&lt;br /&gt;   drop table I_ORIG_TABLE  cascade constraints purge; -- At this point old ORIG_TABLE has been renamed to interim table name.&lt;br /&gt;&lt;br /&gt;   alter table ORIG_TABLE rename constraint I_ORIG_TABLE_PK to ORIG_TABLE_PK;&lt;br /&gt;&lt;br /&gt;   alter index I_ORIG_TABLE_PK rename to ORIG_TABLE_PK;&lt;br /&gt;&lt;br /&gt;   alter table ORIG_TABLE rename constraint i_ORIG_TABLE_FK  to ORIG_TABLE_FK;&lt;br /&gt;&lt;br /&gt;  alter index I_ORIG_TABLE_IDX01 rename to ORIG_TABLE_IDX01;&lt;br /&gt;&lt;br /&gt;9) Gather statistics if needed&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;dbms_stats.gather_table_stats(ownname=&gt;'MYSCHEMA',tabname=&gt;'ORIG_TABLE',cascade=&gt;true,estimate_percent=&gt;5);&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;Now you have an new unpartitioned table with all constraints and indexes and without partitions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-7191114827587133299?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/7191114827587133299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/11/reorginize-table-online-using-primary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7191114827587133299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7191114827587133299'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/11/reorginize-table-online-using-primary.html' title='Reorginize table online using primary key'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-7321963807732995905</id><published>2009-11-17T11:34:00.002+02:00</published><updated>2009-11-17T11:37:55.314+02:00</updated><title type='text'>ORA-27477 Creating a scheduler job.</title><content type='html'>When the name of the job is the same with an object name in the same schema of the creator of the job you get the ORA-27477 %s.%s already exists error in the EM job page.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Change the job name in order not to match an existing schema object name.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-7321963807732995905?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/7321963807732995905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/11/ora-27477-creating-scheduler-job.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7321963807732995905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/7321963807732995905'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/11/ora-27477-creating-scheduler-job.html' title='ORA-27477 Creating a scheduler job.'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-6321160007779833</id><published>2009-11-12T12:39:00.000+02:00</published><updated>2009-11-12T12:40:11.090+02:00</updated><title type='text'>Oracle row migration and chaining</title><content type='html'>A very nice article about row migration and chaining.&lt;br /&gt;&lt;br /&gt;http://www.akadia.com/services/ora_chained_rows.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-6321160007779833?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/6321160007779833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/11/oracle-row-migration-and-chaining.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/6321160007779833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/6321160007779833'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/11/oracle-row-migration-and-chaining.html' title='Oracle row migration and chaining'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-5462089507151321200</id><published>2009-11-11T18:12:00.003+02:00</published><updated>2009-11-11T18:17:39.589+02:00</updated><title type='text'>enq: TX - allocate ITL</title><content type='html'>When you see this enqueue wait event in the dbconsole performance page or in the top 5 timed waits event seems that too many concurrent DML transactions are competing for the same data block.&lt;br /&gt;&lt;br /&gt;Usually an increase in the value of initrans or maxtrans for the table and the indexes fixes the problem.&lt;br /&gt;&lt;br /&gt;You can also try to move the table to a tablespace with smaller block size and reduce the parallel degree of the table and indexes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-5462089507151321200?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/5462089507151321200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/11/enq-tx-allocate-itl.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5462089507151321200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5462089507151321200'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/11/enq-tx-allocate-itl.html' title='enq: TX - allocate ITL'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2361873657103859765</id><published>2009-11-11T15:07:00.003+02:00</published><updated>2009-11-11T15:24:49.941+02:00</updated><title type='text'>Oracle memory usage AIX</title><content type='html'>The following link contains a collection of scripts that calculate oracle memory usage on AIX.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;http://rapidshare.com/files/305471341/mem.rar&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The file mem.rar contains:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;instance_mem_use.sh &lt;/span&gt;&lt;br /&gt;This script is used to measure memory usage of oracle instance asm instance , background processes , dedicated processes and also dbconsole processes. &lt;br /&gt;&lt;br /&gt;Usage: instance_mem_use.sh dbsid dbname &lt;br /&gt;&lt;br /&gt;In most cases dbsid=dbname but if you have a RAC node the dbsid differs from dbname.&lt;br /&gt;&lt;br /&gt;Sample output :&lt;br /&gt;&lt;br /&gt;/home/oracle $./instance_mem_use.sh RMINTPRD2 RMINTPRD&lt;br /&gt;Memory Analysis for RMINTPRD2&lt;br /&gt;&lt;br /&gt;Oracle Instance Memory&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;System Global Area    Memory Usage :5008MB&lt;br /&gt;Program Global Area   Memory Usage :500MB&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;&lt;br /&gt;Oracle Processes Memory&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;ORACLE Background Processes : 29&lt;br /&gt;Memory Usage : 435MB&lt;br /&gt;&lt;br /&gt;ORACLE Dedicated Processes : 154&lt;br /&gt;Memory Usage : 1318MB&lt;br /&gt;&lt;br /&gt;ORACLE dbconsole Processes : 1&lt;br /&gt;Memory Usage : 5MB&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#####################################################&lt;br /&gt;RMINTPRD2       Total Memory Usage :7268MB&lt;br /&gt;#####################################################&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;other_mem_use.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This script is used to measure LISTENER,RMAN or CRS processes.&lt;br /&gt;&lt;br /&gt;Usage: other_mem_use.sh LISTENER or CRS or RMAN&lt;br /&gt;&lt;br /&gt;Sample otuput :&lt;br /&gt;&lt;br /&gt;/home/oracle $ ./other_mem_use.sh CRS&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;ORACLE CRS Processes : 18&lt;br /&gt;CRS             Total Memory Usage :202MB&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;&lt;br /&gt;These scripts are used for the caclucations.&lt;br /&gt;&lt;br /&gt;mem.awk&lt;br /&gt;mem_calc.awk&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;References&lt;br /&gt;&lt;br /&gt;Metalink note 123754.1 : AIX: Determining Oracle memory usage on AIX&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2361873657103859765?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2361873657103859765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/11/oracle-memory-usage-aix.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2361873657103859765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2361873657103859765'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/11/oracle-memory-usage-aix.html' title='Oracle memory usage AIX'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-890060278919024642</id><published>2009-11-10T12:16:00.003+02:00</published><updated>2009-11-10T12:30:57.876+02:00</updated><title type='text'>Oracle on AIX Memory Issues</title><content type='html'>When using Oracle on AIX and while time passes database gets slower you must look the amount of memory that AIX uses for filesystem cache. This is not the fact if you user raw devices or filesystem accessed by CIO or DIO.&lt;br /&gt;&lt;br /&gt;Examples from AIX 5.3&lt;br /&gt;&lt;br /&gt;As root :&lt;br /&gt;&lt;br /&gt;#svmon -G &lt;br /&gt;&lt;br /&gt;svmon -G&lt;br /&gt;               size      inuse       free        pin    virtual&lt;br /&gt;memory      &lt;span style="font-weight:bold;"&gt;4096000&lt;/span&gt;    3483045     612955     426604    3312529&lt;br /&gt;pg space    2064384      62882&lt;br /&gt;&lt;br /&gt;               work       pers       clnt&lt;br /&gt;pin          426507          0         97&lt;br /&gt;in use      3306854         &lt;span style="font-weight:bold;"&gt;22     176169&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;PageSize   PoolSize      inuse       pgsp        pin    virtual&lt;br /&gt;s   4 KB          -    1297893      62882     361900    1127377&lt;br /&gt;m  64 KB          -     136572          0       4044     136572&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here the memory used for filessystem cache is : ((176169+22)/4096000)*100 = 4%&lt;br /&gt;&lt;br /&gt;My settings on this system are :&lt;br /&gt;&lt;br /&gt;maxperm% = 10&lt;br /&gt;minperm% = 5&lt;br /&gt;strict_maxperm = 1&lt;br /&gt;maxclient% = 10&lt;br /&gt;strict_maxclient = 1&lt;br /&gt;lru_file_repage = 0&lt;br /&gt;v_pinshm = 0&lt;br /&gt;maxpin% = 80&lt;br /&gt;&lt;br /&gt;And LOCK_SGA set to false.&lt;br /&gt;&lt;br /&gt;These settings was proposed by sysadmin having experience on AIX 5.3.&lt;br /&gt;Although i was recommend to use v_pinshm=1 and LOCK_SGA=true we are testing the previous settings and we are having no problems. &lt;br /&gt;&lt;br /&gt;So my recomendation is to start with the settings i post in discuss with your sysadmin and if you do not have the optimal performance try v_pinshm=1 and LOCK_SGA=true.&lt;br /&gt;&lt;br /&gt;Server configuration :&lt;br /&gt;&lt;br /&gt;3 Node RAC using shared RAW Devices and ASM plus GPFS and NFS for backup.&lt;br /&gt;Each server has 16Gb of RAM and 2 RAC database instances each.&lt;br /&gt;&lt;br /&gt;You can also check the following IBM resources.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;VMM Tuning Tip: Protecting Computational Memory&lt;/span&gt;&lt;br /&gt;http://www.ibm.com/developerworks/wikis/download/attachments/53871915/VMM+Tuning+Tip+-+Proctecting+Comp+Memory.pdf?version=2&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AIX 5.3 Peformance Mangement Guide&lt;/span&gt;&lt;br /&gt; http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.aix.prftungd/doc/prftungd/prftungd.pdf&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Configuring IBM General Parallel File System (GPFS) with Oracle RAC&lt;/span&gt; http://www.ibm.com/servers/enable/site/peducation/wp/zb726/zb726.pdf&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Optimizing AIX 5L performance: Tuning your memory settings &lt;/span&gt;&lt;br /&gt;http://www.ibm.com/developerworks/views/aix/libraryview.jsp?search_by=Tuning+your+memory+settings&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Support for pinned memory&lt;/span&gt; &lt;br /&gt;http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.prftungd/doc/prftungd/support_pinned_mem.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-890060278919024642?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/890060278919024642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/11/oracle-on-aix-memory-issues.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/890060278919024642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/890060278919024642'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/11/oracle-on-aix-memory-issues.html' title='Oracle on AIX Memory Issues'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-4666435077441076307</id><published>2009-10-29T12:44:00.001+02:00</published><updated>2009-10-29T12:44:43.222+02:00</updated><title type='text'>Oracle lock_sga parameter tips</title><content type='html'>A nice article by Burleson Consulting&lt;br /&gt;&lt;br /&gt;http://www.dba-oracle.com/p_lock_sga.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-4666435077441076307?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/4666435077441076307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/10/oracle-locksga-parameter-tips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4666435077441076307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4666435077441076307'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/10/oracle-locksga-parameter-tips.html' title='Oracle lock_sga parameter tips'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2092403204580063584</id><published>2009-10-26T14:56:00.002+02:00</published><updated>2009-10-26T15:00:21.789+02:00</updated><title type='text'>Stop dbconsole job hung in status Stop Pending</title><content type='html'>Some times a job run from EM Console usually backup when you try to stop it it has a status : "Stop Pending". Until this status changes you can not delete the job and the job may hung on this status. If this happens do the following : &lt;br /&gt;&lt;br /&gt;Loging as sysman :&lt;br /&gt;&lt;br /&gt;select job_id, job_name, job_owner from mgmt_job where job_name like '%&lt;name of job as seen in the console&gt;%'; &lt;br /&gt;&lt;br /&gt;exec mgmt_job_engine.stop_all_executions_with_id('&lt;job ID as returned by above query&gt;'); &lt;br /&gt;&lt;br /&gt;select EXECUTION_ID, status from MGMT_JOB_EXEC_SUMMARY&lt;br /&gt;where job_id ='&lt;job ID returned by the 1st query&gt;' ; &lt;br /&gt;&lt;br /&gt;Stopped status=8 , but you may see other statuses. If so check for EM the job status. If its still Stop Pending then force the stop&lt;br /&gt;&lt;br /&gt;exec mgmt_job_engine.stop_all_executions_with_id('&lt;job ID as returned by above query&gt;',TRUE); &lt;br /&gt;&lt;br /&gt;Now check the status either by running the query or using the EM and the delete the job from EM console&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2092403204580063584?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2092403204580063584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/10/stop-dbconsole-job-hung-in-status-stop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2092403204580063584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2092403204580063584'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/10/stop-dbconsole-job-hung-in-status-stop.html' title='Stop dbconsole job hung in status Stop Pending'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-2676459196980102976</id><published>2009-10-22T09:22:00.002+02:00</published><updated>2009-10-22T09:32:03.655+02:00</updated><title type='text'>Clearing dbconsole agent state</title><content type='html'>Some times dbconsole fails to start if it has crashed unexpected. Mostly this is an agent issue that can not start or can not upload some files. Then you can try to clearstate agent.&lt;br /&gt;&lt;br /&gt;export ORACLE_HOME=AGENT_HOME. This is usually the db home if you are using dbconsole.&lt;br /&gt;If you are using Grid Control Agent has its own home.&lt;br /&gt;&lt;br /&gt;emctl stop agent.&lt;br /&gt;&lt;br /&gt;cd $ORACLE_HOME/host_SID/sysman/emd&lt;br /&gt;&lt;br /&gt;rm agntstmp.txt lastupld.xml&lt;br /&gt;rm upload/*&lt;br /&gt;rm state/*&lt;br /&gt;emctl clearstate agent&lt;br /&gt;emctl start agent&lt;br /&gt;&lt;br /&gt;After few minutes issue&lt;br /&gt;&lt;br /&gt;emctl status agent &lt;br /&gt;&lt;br /&gt;and you must see a similar output :&lt;br /&gt;&lt;br /&gt;Last successful upload                       : 2009-10-22 07:31:47&lt;br /&gt;Total Megabytes of XML files uploaded so far :     4.42&lt;br /&gt;Number of XML files pending upload           :        0&lt;br /&gt;Size of XML files pending upload(MB)         :     0.00&lt;br /&gt;Available disk space on upload filesystem    :    24.94%&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And you are ok.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-2676459196980102976?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/2676459196980102976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/10/clearing-dbconsole-agent-state.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2676459196980102976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/2676459196980102976'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/10/clearing-dbconsole-agent-state.html' title='Clearing dbconsole agent state'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-855299119507020313</id><published>2009-10-19T14:54:00.001+02:00</published><updated>2009-10-19T14:56:43.020+02:00</updated><title type='text'>Primary Keys , Numbers or Characters</title><content type='html'>A very good article about this battle on ASK Tom Site.&lt;br /&gt;&lt;br /&gt;Surrogate versus Natural Keys&lt;br /&gt;http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:689240000346704229&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Identifying a Primary Key&lt;br /&gt;http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:708398700346544598&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-855299119507020313?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/855299119507020313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/10/primary-keys-numbers-or-characters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/855299119507020313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/855299119507020313'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/10/primary-keys-numbers-or-characters.html' title='Primary Keys , Numbers or Characters'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-75770690965898556</id><published>2009-10-15T11:47:00.001+02:00</published><updated>2009-10-15T11:47:52.408+02:00</updated><title type='text'>Oracle 10gR2 and XML</title><content type='html'>A very interesting article on OTN about XML features.&lt;br /&gt;&lt;br /&gt;http://www.oracle.com/technology/pub/articles/quinlan-xml.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-75770690965898556?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/75770690965898556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/10/oracle-10gr2-and-xml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/75770690965898556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/75770690965898556'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/10/oracle-10gr2-and-xml.html' title='Oracle 10gR2 and XML'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-5875458057025214146</id><published>2009-10-07T10:17:00.002+02:00</published><updated>2009-10-07T10:23:01.623+02:00</updated><title type='text'>Stop mview from auto refreshing</title><content type='html'>A materialized view create with the automatic refresh can not be alter to stop refreshing. In order to do that you must broke the dbms_job that was created in order to refresh the view.&lt;br /&gt;&lt;br /&gt;Connect as mview owner.&lt;br /&gt;&lt;br /&gt;select * from user_jobs where broken ='N';&lt;br /&gt;&lt;br /&gt;In the WHAT column for the mview refresh job you will see :&lt;br /&gt;&lt;br /&gt;dbms_refresh.refresh('"[OWNER]"."[MVIEW_NAME]"');&lt;br /&gt;&lt;br /&gt;Take the JOB_ID form the job column and execute:&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;dbms_job.broken(JOB_ID,TRUE);&lt;br /&gt;commit;&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;And the mview will stop refreshing automatically.&lt;br /&gt;&lt;br /&gt;If you want the mview to start refreshing again just run the job.&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;dbms_job.run(JOB_ID);&lt;br /&gt;commit;&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;Then the mview will refresh and continue refreshing by the interval.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-5875458057025214146?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/5875458057025214146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/10/stop-mview-from-auto-refreshing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5875458057025214146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/5875458057025214146'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/10/stop-mview-from-auto-refreshing.html' title='Stop mview from auto refreshing'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5521622797995039163.post-4210845276984188873</id><published>2009-09-14T12:37:00.002+02:00</published><updated>2010-06-30T11:17:18.793+03:00</updated><title type='text'>ORA-600 [32695] [hash aggregation can't be done] 10.2.0.3</title><content type='html'>Bug 5893340 : ORA-600 [32695] [hash aggregation can't be done] can occur &lt;br /&gt;for a GROUP BY query if hash aggregation is chosen.&lt;br /&gt;Fixed on 10.2.0.4 and up. &lt;br /&gt;&lt;br /&gt;But &lt;br /&gt;&lt;br /&gt;Bug 6471770 : &lt;br /&gt;&lt;br /&gt;Group-By queries can fail with ora-32690 or&lt;br /&gt;  ORA-600 [32695] [hash aggregation can't be done] &lt;br /&gt;when operating on a large volume of data if hash group by &lt;br /&gt;aggregation is used.&lt;br /&gt;&lt;br /&gt;Also, it is possible for hash group-bys to over allocate memory beyond &lt;br /&gt;the limit impose by the auto-memory manager.&lt;br /&gt;&lt;br /&gt;Fixed in 10.2.0.5 and up&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In order to avoid the erros from both bugs :&lt;br /&gt;&lt;br /&gt;1) Disable Hash group-by by setting&lt;br /&gt;"_gby_hash_aggregation_enabled" to FALSE,&lt;br /&gt;&lt;br /&gt;2) Use NO_USE_HASH_AGGREGATION hint on your query&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5521622797995039163-4210845276984188873?l=agstamy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://agstamy.blogspot.com/feeds/4210845276984188873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://agstamy.blogspot.com/2009/09/ora-600-32695-hash-aggregation-cant-be.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4210845276984188873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5521622797995039163/posts/default/4210845276984188873'/><link rel='alternate' type='text/html' href='http://agstamy.blogspot.com/2009/09/ora-600-32695-hash-aggregation-cant-be.html' title='ORA-600 [32695] [hash aggregation can&apos;t be done] 10.2.0.3'/><author><name>Agis Stamatopoulos</name><uri>http://www.blogger.com/profile/09706969101681981974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
