<?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-6015060604187975214</id><updated>2011-10-04T14:57:47.001-07:00</updated><category term='linux'/><category term='backup scripts'/><category term='xfs'/><category term='oradebug'/><category term='temp'/><category term='vmware'/><category term='perl'/><category term='trace'/><category term='fuser'/><category term='nid'/><category term='impdp'/><category term='streams'/><category term='oracle'/><category term='ASM'/><category term='mview'/><category term='firefox'/><category term='RAC'/><category term='unix'/><category term='tde'/><category term='windows'/><category term='rman'/><category term='dataguard'/><category term='ubuntu'/><category term='grid control'/><category term='solaris'/><category term='lesson'/><category term='scripts'/><category term='backup'/><title type='text'>Scribbling Notes</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default?start-index=101&amp;max-results=100'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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>106</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6015060604187975214.post-7679127014856559563</id><published>2011-09-14T11:12:00.000-07:00</published><updated>2011-09-14T11:36:37.153-07:00</updated><title type='text'>ERROR: PST-initiated MANDATORY DISMOUNT of group DATA</title><content type='html'>It means ASM &amp;nbsp;is not able to offline the disks having issues so it dismount the entire diskgroup -&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: arial, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: arial, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;a href="https://twiki.cern.ch/twiki/bin/view/PSSGroup/ASM_Internals"&gt;https://twiki.cern.ch/twiki/bin/view/PSSGroup/ASM_Internals&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: arial, verdana, sans-serif; font-size: 14px; line-height: 20px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul style="background-color: transparent; margin-top: 0px;"&gt;&lt;li style="background-color: transparent;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;strong style="font-weight: bold;"&gt;PST&lt;/strong&gt;&amp;nbsp;- Partner Status Table. Maintains info on disk-to-diskgroup membership.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;strong style="font-weight: bold;"&gt;COD&lt;/strong&gt;&amp;nbsp;- Continuing Operation Directory. The COD structure maintains the state of active ASM operations or changes, such as disk or datafile drop/add. The COD log record is either committed or rolled back based on the success of the operation. (source Oracle whitepaper)&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;strong style="font-weight: bold;"&gt;ACD&lt;/strong&gt;&amp;nbsp;- Active Change Directory. The ACD is analogous to a redo log, where changes to the metadata are logged. The ACD log record is used to determine point of recovery in the case of ASM operation failures or instance failures. (source Oracle whitepaper)&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;strong style="font-weight: bold;"&gt;OSM&lt;/strong&gt;&amp;nbsp;Oracle Storage Manager, legacy name, synonymous of ASM&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;strong style="font-weight: bold;"&gt;CSS&lt;/strong&gt;&amp;nbsp;Cluster Synchronization Services. Part of Oracle clusterware, mandatory with ASM even in single instance. CSS is used to heartbeat the health of the ASM instances.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;strong style="font-weight: bold;"&gt;RBAL&lt;/strong&gt;&amp;nbsp;- Oracle backgroud process. In an ASM instance coordinated rebalancing operations. In a DB instance, opens and mount diskgroups from the local ASM instance.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;strong style="font-weight: bold;"&gt;ARBx&lt;/strong&gt;&amp;nbsp;- Oracle backgroud processes. In an ASM instance, a slave for rebalancing operations&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;strong style="font-weight: bold;"&gt;PSPx&lt;/strong&gt;&amp;nbsp;- Oracle backgroud processes. In an ASM instance, Process Spawners&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;strong style="font-weight: bold;"&gt;GMON&lt;/strong&gt;&amp;nbsp;- Oracle backgroud processes. In an ASM instance, diskgroup monitor.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;strong style="font-weight: bold;"&gt;ASMB&lt;/strong&gt;&amp;nbsp;- Oracle backgroud process. In an DB instance, keeps a (bequeath) persistent DB connection to the local ASM instance. Provides hearthbeat and ASM statistics. During a diskgroup rebalancing operation ASM communicates to the DB AU changes via this connection.&lt;/span&gt;&lt;/li&gt;&lt;li style="background-color: transparent;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-small; line-height: 16px;"&gt;&lt;strong style="font-weight: bold;"&gt;O00x&lt;/strong&gt;&amp;nbsp;- Oracle backgroud processes. Slaves used to connected from the DB to the ASM instance for 'short operations'.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-7679127014856559563?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/7679127014856559563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=7679127014856559563' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7679127014856559563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7679127014856559563'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/09/error-pst-initiated-mandatory-dismount.html' title='ERROR: PST-initiated MANDATORY DISMOUNT of group DATA'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5992025170462705485</id><published>2011-05-17T10:08:00.000-07:00</published><updated>2011-05-17T10:09:53.380-07:00</updated><title type='text'>ALTER DATABASE RECOVER TO LOGICAL STANDBY struck</title><content type='html'>&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 19px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;738643.1&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 19px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 19px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;one of the many reason - the &lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 19px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 19px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;div&gt;DBMS_LOGSTDBY.BUILD;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;didnt finish yet. &lt;/div&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&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/6015060604187975214-5992025170462705485?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5992025170462705485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5992025170462705485' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5992025170462705485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5992025170462705485'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/05/alter-database-recover-to-logical.html' title='ALTER DATABASE RECOVER TO LOGICAL STANDBY struck'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5974190416836931060</id><published>2011-05-16T10:34:00.000-07:00</published><updated>2011-05-16T10:36:01.519-07:00</updated><title type='text'>orapwd and alter user for sys</title><content type='html'>alter user for sys updates the orapwd file . &lt;div&gt;but changing the password thru orapwd do not change the data dictionary (sys password) - again this is my assumption on my observation ( check out?) &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-5974190416836931060?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5974190416836931060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5974190416836931060' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5974190416836931060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5974190416836931060'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/05/orapwd-and-alter-user-for-sys.html' title='orapwd and alter user for sys'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2704931258543076414</id><published>2011-05-01T22:03:00.000-07:00</published><updated>2011-05-01T22:04:01.521-07:00</updated><title type='text'>physical standby on realtime apply</title><content type='html'>SQL&amp;gt; recover managed standby database using current logfile disconnect from session;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-2704931258543076414?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2704931258543076414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2704931258543076414' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2704931258543076414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2704931258543076414'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/05/physical-standby-on-realtime-apply.html' title='physical standby on realtime apply'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2412481120373609372</id><published>2011-03-31T22:52:00.001-07:00</published><updated>2011-03-31T22:52:29.859-07:00</updated><title type='text'>ORA-15110: no diskgroups mounted</title><content type='html'>check if you are on spfile or not .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-2412481120373609372?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2412481120373609372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2412481120373609372' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2412481120373609372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2412481120373609372'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/03/ora-15110-no-diskgroups-mounted.html' title='ORA-15110: no diskgroups mounted'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4524835832938615766</id><published>2011-03-31T14:32:00.000-07:00</published><updated>2011-06-17T20:44:28.516-07:00</updated><title type='text'>rman duplicate from active database</title><content type='html'>1- TNS entry on both side&lt;div&gt;2- listener configuration is done&lt;/div&gt;&lt;div&gt;3- password for target and auxiliary should be same ( my personal observation)&lt;/div&gt;&lt;div&gt;4- use TNS(@&lt;tns&gt; for both target and auxiliary &lt;/tns&gt;&lt;/div&gt;&lt;div&gt;5- check the service name(dbms_service/listener)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4524835832938615766?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4524835832938615766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4524835832938615766' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4524835832938615766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4524835832938615766'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/03/rman-duplicate-from-active-database.html' title='rman duplicate from active database'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-822785725589643040</id><published>2011-03-23T19:06:00.000-07:00</published><updated>2011-03-23T19:07:10.883-07:00</updated><title type='text'>ORA-16211: unsupported record found in the archived redo log</title><content type='html'>getting &lt;div&gt;&lt;div&gt;ORA-16211: unsupported record found in the archived redo log&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;on the logical standby database can be due to having force logging not enabled.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-822785725589643040?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/822785725589643040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=822785725589643040' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/822785725589643040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/822785725589643040'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/03/ora-16211-unsupported-record-found-in.html' title='ORA-16211: unsupported record found in the archived redo log'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2343361447111685767</id><published>2011-03-10T20:17:00.000-08:00</published><updated>2011-03-10T20:20:58.159-08:00</updated><title type='text'>asm dropping disk</title><content type='html'>&lt;div&gt;for &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, Arial, Helvetica, Geneva, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "&gt;ORA-01948: identifier's name length (31) exceeds maximum (30)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, Arial, Helvetica, Geneva, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;use the  name from&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;select group_number, name, TOTAL_MB, FREE_MB&lt;/div&gt;&lt;div&gt;from V$asm_disk_stat;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;in &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;alter diskgroup tan1_1 drop disk ' TAN1_2_0008';&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/6015060604187975214-2343361447111685767?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2343361447111685767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2343361447111685767' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2343361447111685767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2343361447111685767'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/03/asm-dropping-disk.html' title='asm dropping disk'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8663622645332492550</id><published>2011-03-02T17:15:00.001-08:00</published><updated>2011-03-02T17:15:31.671-08:00</updated><title type='text'>ORA-1031 while connecting sys as sysasm</title><content type='html'>&lt;div&gt;v$pwfile_users &lt;/div&gt;grant sysasm to sys&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8663622645332492550?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8663622645332492550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8663622645332492550' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8663622645332492550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8663622645332492550'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/03/ora-1031-while-connecting-sys-as-sysasm.html' title='ORA-1031 while connecting sys as sysasm'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8683140087099033298</id><published>2011-02-28T16:44:00.000-08:00</published><updated>2011-02-28T16:46:21.952-08:00</updated><title type='text'>oracle restart - asm status</title><content type='html'>somehow it doesn't show online after adding into crs stack &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;srvctl add asm -l LISTENER&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;but after bouncing the asm it shows properly &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;crsctl start resource ora.asm  -  forces a bounce.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8683140087099033298?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8683140087099033298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8683140087099033298' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8683140087099033298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8683140087099033298'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/02/oracle-restart-asm-status.html' title='oracle restart - asm status'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4324506357646785362</id><published>2011-02-14T13:35:00.000-08:00</published><updated>2011-02-14T13:36:02.997-08:00</updated><title type='text'>alter system switch logfile hung</title><content type='html'>most of the time &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'courier new'; line-height: 16px; "&gt;&lt;span class="Apple-style-span" &gt;ALTER SYSTEM ARCHIVE LOG CURRENT  clears it&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'courier new'; font-size: 17px; line-height: 16px; "&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/6015060604187975214-4324506357646785362?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4324506357646785362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4324506357646785362' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4324506357646785362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4324506357646785362'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/02/alter-system-switch-logfile-hung.html' title='alter system switch logfile hung'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-6071138267642324795</id><published>2011-02-05T03:48:00.000-08:00</published><updated>2011-02-05T03:52:41.565-08:00</updated><title type='text'>unmounting asm diskgroup do not release the file descriptor</title><content type='html'>issuing  &lt;div&gt;select * from v$asm_disk  in 11gR2  after the unmount/drop disk command. or apply the one off patch in 10g clears the file descriptor.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;can be verified lsof  /dev/rdisk/disk44  ( or if there is LVM  lsof -d /dev/dgsap01 of lsof /dev/dgsap01/rasm* ) &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;span style="font-size:11.0pt;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language: AR-SA"&gt;metalink Note - 402526.1&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-6071138267642324795?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/6071138267642324795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=6071138267642324795' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6071138267642324795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6071138267642324795'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/02/unmounting-asm-diskgroup-do-not-release.html' title='unmounting asm diskgroup do not release the file descriptor'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5606229829207881251</id><published>2011-01-06T09:44:00.001-08:00</published><updated>2011-01-06T09:45:50.576-08:00</updated><title type='text'>ORA-29786: SIHA attribute GET failed with error  [Attribute 'SPFILE' sts[200]</title><content type='html'>&lt;div&gt;in 11gR2 &lt;/div&gt;&lt;div&gt;SQL&gt; create spfile from pfile;&lt;/div&gt;&lt;div&gt;create spfile from pfile&lt;/div&gt;&lt;div&gt;*&lt;/div&gt;&lt;div&gt;ERROR at line 1:&lt;/div&gt;&lt;div&gt;ORA-29786: SIHA attribute GET failed with error [Attribute 'SPFILE' sts[200]&lt;/div&gt;&lt;div&gt;lsts[0]]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;m3p131:+ASM:/apps/oracle/product/11.2.0/grid/dbs: crsctl stat res&lt;/div&gt;&lt;div&gt;NAME=ora.LISTENER.lsnr&lt;/div&gt;&lt;div&gt;TYPE=ora.listener.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.cssd&lt;/div&gt;&lt;div&gt;TYPE=ora.cssd.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.diskmon&lt;/div&gt;&lt;div&gt;TYPE=ora.diskmon.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.evmd&lt;/div&gt;&lt;div&gt;TYPE=ora.evm.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;m3p131:+ASM:/apps/oracle/product/11.2.0/grid/dbs: srvctl add asm -l LISTENER&lt;/div&gt;&lt;div&gt;m3p131:+ASM:/apps/oracle/product/11.2.0/grid/dbs: crsctl stat res&lt;/div&gt;&lt;div&gt;NAME=ora.LISTENER.lsnr&lt;/div&gt;&lt;div&gt;TYPE=ora.listener.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.asm&lt;/div&gt;&lt;div&gt;TYPE=ora.asm.type&lt;/div&gt;&lt;div&gt;TARGET=OFFLINE&lt;/div&gt;&lt;div&gt;STATE=OFFLINE&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.cssd&lt;/div&gt;&lt;div&gt;TYPE=ora.cssd.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.diskmon&lt;/div&gt;&lt;div&gt;TYPE=ora.diskmon.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.evmd&lt;/div&gt;&lt;div&gt;TYPE=ora.evm.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;m3p131:+ASM:/apps/oracle/product/11.2.0/grid/dbs: &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;m3p131:+ASM:/apps/oracle/product/11.2.0/grid/dbs: sqlplus '/as sysasm'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SQL*Plus: Release 11.2.0.2.0 Production on Thu Jan 6 09:43:53 2011&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Copyright (c) 1982, 2010, Oracle.  All rights reserved.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Connected to:&lt;/div&gt;&lt;div&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production&lt;/div&gt;&lt;div&gt;With the Automatic Storage Management option&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SQL&gt; create spfile from memory;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;File created.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-5606229829207881251?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5606229829207881251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5606229829207881251' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5606229829207881251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5606229829207881251'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/01/ora-29786-siha-attribute-get-failed_06.html' title='ORA-29786: SIHA attribute GET failed with error  [Attribute &apos;SPFILE&apos; sts[200]'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8152841194897946228</id><published>2011-01-06T09:44:00.000-08:00</published><updated>2011-01-06T09:45:50.398-08:00</updated><title type='text'>ORA-29786: SIHA attribute GET failed with error  [Attribute 'SPFILE' sts[200]</title><content type='html'>&lt;div&gt;in 11gR2 &lt;/div&gt;&lt;div&gt;SQL&gt; create spfile from pfile;&lt;/div&gt;&lt;div&gt;create spfile from pfile&lt;/div&gt;&lt;div&gt;*&lt;/div&gt;&lt;div&gt;ERROR at line 1:&lt;/div&gt;&lt;div&gt;ORA-29786: SIHA attribute GET failed with error [Attribute 'SPFILE' sts[200]&lt;/div&gt;&lt;div&gt;lsts[0]]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;m3p131:+ASM:/apps/oracle/product/11.2.0/grid/dbs: crsctl stat res&lt;/div&gt;&lt;div&gt;NAME=ora.LISTENER.lsnr&lt;/div&gt;&lt;div&gt;TYPE=ora.listener.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.cssd&lt;/div&gt;&lt;div&gt;TYPE=ora.cssd.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.diskmon&lt;/div&gt;&lt;div&gt;TYPE=ora.diskmon.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.evmd&lt;/div&gt;&lt;div&gt;TYPE=ora.evm.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;m3p131:+ASM:/apps/oracle/product/11.2.0/grid/dbs: srvctl add asm -l LISTENER&lt;/div&gt;&lt;div&gt;m3p131:+ASM:/apps/oracle/product/11.2.0/grid/dbs: crsctl stat res&lt;/div&gt;&lt;div&gt;NAME=ora.LISTENER.lsnr&lt;/div&gt;&lt;div&gt;TYPE=ora.listener.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.asm&lt;/div&gt;&lt;div&gt;TYPE=ora.asm.type&lt;/div&gt;&lt;div&gt;TARGET=OFFLINE&lt;/div&gt;&lt;div&gt;STATE=OFFLINE&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.cssd&lt;/div&gt;&lt;div&gt;TYPE=ora.cssd.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.diskmon&lt;/div&gt;&lt;div&gt;TYPE=ora.diskmon.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NAME=ora.evmd&lt;/div&gt;&lt;div&gt;TYPE=ora.evm.type&lt;/div&gt;&lt;div&gt;TARGET=ONLINE&lt;/div&gt;&lt;div&gt;STATE=ONLINE on m3p131&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;m3p131:+ASM:/apps/oracle/product/11.2.0/grid/dbs: &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;m3p131:+ASM:/apps/oracle/product/11.2.0/grid/dbs: sqlplus '/as sysasm'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SQL*Plus: Release 11.2.0.2.0 Production on Thu Jan 6 09:43:53 2011&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Copyright (c) 1982, 2010, Oracle.  All rights reserved.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Connected to:&lt;/div&gt;&lt;div&gt;Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production&lt;/div&gt;&lt;div&gt;With the Automatic Storage Management option&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SQL&gt; create spfile from memory;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;File created.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8152841194897946228?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8152841194897946228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8152841194897946228' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8152841194897946228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8152841194897946228'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/01/ora-29786-siha-attribute-get-failed.html' title='ORA-29786: SIHA attribute GET failed with error  [Attribute &apos;SPFILE&apos; sts[200]'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-7021187379657864404</id><published>2011-01-05T16:12:00.000-08:00</published><updated>2011-01-05T17:36:46.247-08:00</updated><title type='text'>RMAN-06024 during duplicate database for standby</title><content type='html'>&lt;span class="Apple-style-span" style="color: rgb(41, 48, 59); font-family: Arial, sans-serif; font-size: 13px; "&gt;&lt;h3 class="post-title entry-title" style="font-weight: normal; font-size: 18px; color: rgb(27, 4, 49); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;RMAN-06024 during duplicate database for standby  &lt;/h3&gt;&lt;div&gt;RMAN-06024: no backup or copy of the control file found to restore&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;alter system switch logfile on target should fix this &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; color: rgb(0, 0, 0); "&gt;&lt;strong&gt;RMAN Duplicate For Standby Fails with Rman-06024: No Backup Or Copy Of The Control File Found To Restore [ID 466321.1]&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-7021187379657864404?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/7021187379657864404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=7021187379657864404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7021187379657864404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7021187379657864404'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2011/01/rman-06024-during-duplicate-database.html' title='RMAN-06024 during duplicate database for standby'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-1987553628975194967</id><published>2010-12-17T15:44:00.000-08:00</published><updated>2010-12-17T16:11:36.898-08:00</updated><title type='text'>ORA-00600: internal error code, arguments: [kfmrgReg01]</title><content type='html'>&lt;p class="MsoNormal" style="text-align: left;"&gt;&lt;span class="Apple-style-span"&gt;while creating a diskgroup on a 10.2.0.4 ASM we encountered &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: left;"&gt;&lt;span class="Apple-style-span"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: left;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;ORA-00600: internal error code, arguments: [kfmrgReg01], [24287664],&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: left;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;[84759367], [], [], [], [], []&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: left;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: left;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;tried dd,rebuilding volume group but eventually shutting down the asm removed this issue. asm gone crazy&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: left;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-1987553628975194967?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/1987553628975194967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=1987553628975194967' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1987553628975194967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1987553628975194967'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/12/ora-00600-internal-error-code-arguments.html' title='ORA-00600: internal error code, arguments: [kfmrgReg01]'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2372813907575091260</id><published>2010-12-14T14:31:00.000-08:00</published><updated>2010-12-15T10:44:42.860-08:00</updated><title type='text'>ASM -renamedg  KFNDG-00305: file not found</title><content type='html'>make sure you are issuing the renamedg  from dba owned directory . as the renamedg create a file called rename_dg&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;and also make sure the diskgroup is dismounted&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-2372813907575091260?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2372813907575091260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2372813907575091260' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2372813907575091260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2372813907575091260'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/12/asm-renamedg-kfndg-00305-file-not-found.html' title='ASM -renamedg  KFNDG-00305: file not found'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-3799147569682808832</id><published>2010-12-10T04:01:00.000-08:00</published><updated>2010-12-10T04:02:15.137-08:00</updated><title type='text'>ORA-17628: Oracle error 19505 returned by remote Oracle server</title><content type='html'>precreate the contolfile directory  in asm diskgroup then retry the duplicate from active database&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-3799147569682808832?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/3799147569682808832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=3799147569682808832' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3799147569682808832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3799147569682808832'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/12/ora-17628-oracle-error-19505-returned.html' title='ORA-17628: Oracle error 19505 returned by remote Oracle server'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-7942978612492699151</id><published>2010-12-09T18:16:00.001-08:00</published><updated>2010-12-09T18:19:01.264-08:00</updated><title type='text'>rman duplicate from active database -PARAMETER_VALUE_CONVERT</title><content type='html'>incorrect/incomplete PARAMETER_VALUE_CONVERT can crash your target database . my target database crashed as i missed &lt;div&gt;it from rman duplicate while just trying to create the database with init.ora having only db_name entry&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;my controlfile/datafile/online log file in asm so i had to do as below&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;DUPLICATE TARGET DATABASE&lt;/div&gt;&lt;div&gt;  TO t11gdact&lt;/div&gt;&lt;div&gt;  FROM ACTIVE DATABASE   &lt;/div&gt;&lt;div&gt;  DB_FILE_NAME_CONVERT '+DATA/t11gdb/','+DATA/t11gdact/'&lt;/div&gt;&lt;div&gt;  SPFILE &lt;/div&gt;&lt;div&gt;    PARAMETER_VALUE_CONVERT '/u03/arch/t11gdb/','/u03/arch/t11gdact/','+DATA/t11gdb/','+DATA/t11gdact/'&lt;/div&gt;&lt;div&gt;    SET SGA_MAX_SIZE '300M'&lt;/div&gt;&lt;div&gt;    SET SGA_TARGET '250M'&lt;/div&gt;&lt;div&gt;    SET LOG_FILE_NAME_CONVERT '+DATA/t11gdb/', &lt;/div&gt;&lt;div&gt;                              '+DATA/t11gdact/';&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/6015060604187975214-7942978612492699151?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/7942978612492699151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=7942978612492699151' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7942978612492699151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7942978612492699151'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/12/rman-duplicate-from-active-database.html' title='rman duplicate from active database -PARAMETER_VALUE_CONVERT'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8292250640963464575</id><published>2010-12-07T16:33:00.001-08:00</published><updated>2010-12-07T16:33:13.047-08:00</updated><title type='text'>HPUX_SCHED_NOAGE</title><content type='html'>a must for oracle  in hp-ux&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8292250640963464575?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8292250640963464575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8292250640963464575' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8292250640963464575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8292250640963464575'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/12/hpuxschednoage.html' title='HPUX_SCHED_NOAGE'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-1835586384968192028</id><published>2010-12-07T14:52:00.000-08:00</published><updated>2010-12-08T11:21:41.442-08:00</updated><title type='text'>ORA-29701: unable to connect to Cluster Manager on</title><content type='html'>checking the grep cssd  I saw it was running as root user&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;+ASM:/home/oracle $ ps -ef | grep css&lt;/div&gt;&lt;div&gt;    root 60799     20  0 10:14:39 ?         0:00 /bin/sh /sbin/init.d/init.cssd run&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;then asking the SA to do &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;localconfig delete&lt;/div&gt;&lt;div&gt;localconfig add&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;under OH  fixed the issue by starting css  the right way&lt;/div&gt;&lt;div&gt;&lt;div&gt; oracle 35487     20  0 14:10:33 ?         0:00 /apps/oracle/product/10.2.0.3/bin/ocssd.bin&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;on 11gR2&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;mp012:+ASM:/apps/oracle/product/11.2.0/grid/dbs: crsctl start resource ora.cssd&lt;/div&gt;&lt;div&gt;CRS-2672: Attempting to start 'ora.cssd' on 'mp012'&lt;/div&gt;&lt;div&gt;CRS-2672: Attempting to start 'ora.diskmon' on 'mp012'&lt;/div&gt;&lt;div&gt;CRS-2676: Start of 'ora.diskmon' on 'mp012' succeeded&lt;/div&gt;&lt;div&gt;CRS-2676: Start of 'ora.cssd' on 'mp012' succeeded&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;mp012:+ASM:/apps/oracle/product/11.2.0/grid/dbs: crsctl modify resource "ora.cssd" -attr "AUTO_START=1"&lt;/div&gt;&lt;div&gt;mp012:+ASM:/apps/oracle/product/11.2.0/grid/dbs: crsctl modify resource "ora.diskmon" -attr "AUTO_START=1"&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-1835586384968192028?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/1835586384968192028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=1835586384968192028' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1835586384968192028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1835586384968192028'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/12/ora-29701-unable-to-connect-to-cluster.html' title='ORA-29701: unable to connect to Cluster Manager on'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2266881142350295191</id><published>2010-12-05T16:19:00.000-08:00</published><updated>2010-12-05T16:28:36.864-08:00</updated><title type='text'>ORA-15096: lost disk write detected</title><content type='html'>one of the asm diskgroup after dropping it was still showing in v$asm_disk with error state. bringing down the asm didnt help either.  so had to do dd to clean up the disk properly and then was able to recreate it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-2266881142350295191?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2266881142350295191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2266881142350295191' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2266881142350295191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2266881142350295191'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/12/ora-15096-lost-disk-write-detected.html' title='ORA-15096: lost disk write detected'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5263581562850274509</id><published>2010-12-05T16:10:00.000-08:00</published><updated>2010-12-05T16:17:34.888-08:00</updated><title type='text'>ORA-15037:disk  '/dev/asmvg02/rasmdisk02' is smaller than mimimum of 4 MBs</title><content type='html'>&lt;div&gt;while creating a asm diskgroup I encountered this issue . &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;SQL&gt; create diskgroup DFDG external redundancy disk  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;'/dev/asmvg02/rasmdisk02';  2  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;create diskgroup DFDG external redundancy disk&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;ERROR at line 1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;ORA-15018: diskgroup cannot be created&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;ORA-15031: disk specification '/dev/asmvg02/rasmdisk02' matches no disks&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;ORA-15037: disk '/dev/asmvg02/rasmdisk02' is smaller than mimimum of 4 MBs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;asking the SA  he verified &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;color:blue; mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"&gt;vgdisplay -v /dev/asmvg02&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;color:blue; mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;color:blue; mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"&gt;diskinfo /dev/rdisk/disk11&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;color:blue; mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;color:blue; mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"&gt;and compared with the other working diskgroup disks.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;color:blue; mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;color:blue; mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"&gt;but it didnt give any indication why i was hitting this error for this new diskgroup i am trying to create . So i gave a  shot at dd  and ifter that i was able to create diskgroup&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: rgb(31, 73, 125); font-family: 'Courier New'; font-size: 12px; "&gt;+ASM:/dev/asmvg02: dd if=/dev/zero of=/dev/asmvg02/rasmdisk02 bs=4096 count=12800&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;  &lt;/p&gt;&lt;p class="MsoNormal" style="color: blue; font-family: Arial, sans-serif; font-size: 10pt; "&gt;&lt;span style="font-size:9.0pt;font-family:&amp;quot;Courier New&amp;quot;; color:#1F497D"&gt;12800+0 records in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="color: blue; font-family: Arial, sans-serif; font-size: 10pt; "&gt;&lt;span style="font-size:9.0pt;font-family:&amp;quot;Courier New&amp;quot;; color:#1F497D"&gt;12800+0 records out&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="color: blue; font-family: Arial, sans-serif; font-size: 10pt; "&gt;&lt;span style="font-size:9.0pt;font-family:&amp;quot;Courier New&amp;quot;; color:#1F497D"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="color: blue; font-family: Arial, sans-serif; font-size: 10pt; "&gt;&lt;span style="font-size:9.0pt;font-family:&amp;quot;Courier New&amp;quot;; color:#1F497D"&gt;+ASM:/dev/asmvg02: sqlplus '/as sysasm'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="color: blue; font-family: Arial, sans-serif; font-size: 10pt; "&gt;&lt;span style="font-size:9.0pt;font-family:&amp;quot;Courier New&amp;quot;; color:#1F497D"&gt;SQL&gt; create diskgroup DFDG external redundancy disk  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="color: blue; font-family: Arial, sans-serif; font-size: 10pt; "&gt;&lt;span style="font-size:9.0pt;font-family:&amp;quot;Courier New&amp;quot;; color:#1F497D"&gt;'/dev/asmvg02/rasmdisk02';  2  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="color: blue; font-family: Arial, sans-serif; font-size: 10pt; "&gt;&lt;span style="font-size:9.0pt;font-family:&amp;quot;Courier New&amp;quot;; color:#1F497D"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="color: blue; font-family: Arial, sans-serif; font-size: 10pt; "&gt;&lt;span style="font-size:9.0pt;font-family:&amp;quot;Courier New&amp;quot;; color:#1F497D"&gt;Diskgroup created.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="color:#1F497D"&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;color:blue; mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-5263581562850274509?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5263581562850274509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5263581562850274509' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5263581562850274509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5263581562850274509'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/12/ora-15037disk-devasmvg02rasmdisk02-is.html' title='ORA-15037:disk  &apos;/dev/asmvg02/rasmdisk02&apos; is smaller than mimimum of 4 MBs'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8660812182435979858</id><published>2010-12-05T16:07:00.000-08:00</published><updated>2010-12-05T16:10:25.363-08:00</updated><title type='text'>ORA-15063: ASM discovered an insufficient number of disks for diskgroup</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;We encountered this issue after the san copy is done. &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;ORA-15032: not all alterations performed&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;ORA-15063: ASM discovered an insufficient number of disks for diskgroup  &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 11px; "&gt;"DFDATA_2"&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;font-family:&amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;ORA-15063: ASM discovered an insufficient number of disks for diskgroup    &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 11px; "&gt;"DFDATA_1"&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 11px; "&gt;Looking into asm_diskstring dont seem to be any issue . however seems like the device mapping file was changed  so the /dev/asmvg01 directory was not showing the proper asm disk group name . &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 11px; "&gt;once the SA  fixed the device mapping file it recognized the asm disks and the system back online&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 11px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 11px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8660812182435979858?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8660812182435979858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8660812182435979858' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8660812182435979858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8660812182435979858'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/12/ora-15063-asm-discovered-insufficient.html' title='ORA-15063: ASM discovered an insufficient number of disks for diskgroup'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8305242790556623727</id><published>2010-05-09T19:40:00.000-07:00</published><updated>2010-05-09T19:44:48.932-07:00</updated><title type='text'>kill -9 doesn't work always</title><content type='html'>well it didnt for me on a RHEL 5.3  for a process accessing NFS filesystem.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;check -        fuser -k&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8305242790556623727?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8305242790556623727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8305242790556623727' title='29 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8305242790556623727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8305242790556623727'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/05/kill-9-doesnt-work-always.html' title='kill -9 doesn&apos;t work always'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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>29</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6015060604187975214.post-8717434525273892631</id><published>2010-04-21T20:54:00.000-07:00</published><updated>2010-04-21T20:57:34.520-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>ORA-12853 / ORA-4031</title><content type='html'>&lt;div&gt;ORA-12801: error signaled in parallel query server P002, instance xt0p-2:stpa2 (&lt;/div&gt;&lt;div&gt; 2) ORA-12853: insufficient memory for PX buffers: current 68544K, max needed 15360K &lt;/div&gt;&lt;div&gt; ORA-04031: unable to allocate 131120 bytes of shared memory (""shared pool"",""unknown object"",""sga heap(2,0)"",""PX msg pool"") &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3 node rac .  parallel query process was spawning to node -2 .  increasing the shared pool size  fixed the query . and also changed the parallel instance groups.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8717434525273892631?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8717434525273892631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8717434525273892631' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8717434525273892631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8717434525273892631'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/04/ora-12853-ora-4031.html' title='ORA-12853 / ORA-4031'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-6211654147283001043</id><published>2010-04-11T19:29:00.000-07:00</published><updated>2010-04-11T19:31:41.808-07:00</updated><title type='text'>ORA-14266: data type or length of an index subpartitioning column may</title><content type='html'>I was getting this error while trying to alter the data type for a column.  as per the error . but as per the cause /action for this error  there were no indexes/partitions on this column . &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;was not sure what is going on so i just dropped all the indexes( few normal index and partioned bitmap indexes)  for this table  and then when i try to do the alter it went fine . &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-6211654147283001043?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/6211654147283001043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=6211654147283001043' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6211654147283001043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6211654147283001043'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/04/ora-14266-data-type-or-length-of-index.html' title='ORA-14266: data type or length of an index subpartitioning column may'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-6709190359957756894</id><published>2010-03-09T15:29:00.001-08:00</published><updated>2010-03-09T15:30:03.586-08:00</updated><title type='text'>move tablespace</title><content type='html'>&lt;div&gt;select 'alter table mtsuser.'||table_name || ' move tablespace mtsuser_tab_data ;'&lt;/div&gt;&lt;div&gt;from dba_tables&lt;/div&gt;&lt;div&gt;where owner='MTSUSER'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;select 'alter index mtsuser.'||index_name || ' rebuild tablespace mtsuser_IND_DATA ;'&lt;/div&gt;&lt;div&gt;from dba_indexes&lt;/div&gt;&lt;div&gt;where table_owner='MTSUSER'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;set linesize 500&lt;/div&gt;&lt;div&gt;SELECT 'ALTER TABLE mtsuser.'||table_name ||' move lob('||column_name||') store as (tablespace mtsuser_tab_data );' FROM DBA_LOBS&lt;/div&gt;&lt;div&gt;WHERE owner='MTSUSER'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;select 'alter table mtsuser.'||TABLE_NAME ||' move partition '||PARTITION_NAME||' tablespace mtsuser_data;'  from dba_tab_partitions&lt;/div&gt;&lt;div&gt;where table_owner='MTSUSER'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;select 'ALTER INDEX mtsuser.'||index_name ||' rebuild partition ' || partition_name ||' tablespace tnarchive_index ;' &lt;/div&gt;&lt;div&gt;from dba_ind_partitions&lt;/div&gt;&lt;div&gt;where index_owner='MTSUSER'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;select 'alter table mtsuser.'||table_name ||' move partition '||partition_name||' tablespace mtsuser_data lob('||column_name ||') store as &lt;/div&gt;&lt;div&gt;(tablespace mtsuser_lob_data);'&lt;/div&gt;&lt;div&gt;  from dba_lob_partitions&lt;/div&gt;&lt;div&gt;where table_owner='MTSUSER'&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-6709190359957756894?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/6709190359957756894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=6709190359957756894' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6709190359957756894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6709190359957756894'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/03/move-tablespace.html' title='move tablespace'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8705496879280935731</id><published>2010-01-13T14:32:00.000-08:00</published><updated>2010-01-13T14:35:10.714-08:00</updated><title type='text'>remote_listener -</title><content type='html'>It is recommended to set it up in RAC enviornment . but setting it up in  regular standby databse gives rise to grid control alert ( observe the service update on both the network log files ) at times the grid control alert are misleading . &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;a good reference&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://oracledocaccess.blogspot.com/2009/04/remote-listener.html"&gt;http://oracledocaccess.blogspot.com/2009/04/remote-listener.html&lt;/a&gt;&lt;/div&gt;&lt;div&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/6015060604187975214-8705496879280935731?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8705496879280935731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8705496879280935731' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8705496879280935731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8705496879280935731'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2010/01/remotelistener.html' title='remote_listener -'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-299386432589569331</id><published>2009-12-23T13:51:00.000-08:00</published><updated>2009-12-23T14:00:59.666-08:00</updated><title type='text'>UNDO in 9i and 10g</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif; border-collapse: collapse; color: rgb(51, 51, 51); font-size: 13px; line-height: 18px; "&gt;it is advisable to have AUTEXTEND OFF or have a suitable MAXSIZE in UNDO datafiles.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif; border-collapse: collapse; color: rgb(51, 51, 51); font-size: 13px; line-height: 18px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif; border-collapse: collapse; color: rgb(51, 51, 51); font-size: 13px; line-height: 18px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif; border-collapse: collapse; color: rgb(51, 51, 51); font-size: 13px; line-height: 18px; "&gt;ref-&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif; border-collapse: collapse; color: rgb(51, 51, 51); font-size: 13px; line-height: 18px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif; border-collapse: collapse; color: rgb(51, 51, 51); font-size: 13px; line-height: 18px; "&gt;&lt;a href="http://www.orafaq.com/node/61"&gt;http://www.orafaq.com/node/61&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif; border-collapse: collapse; color: rgb(51, 51, 51); font-size: 13px; line-height: 18px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif; border-collapse: collapse; color: rgb(51, 51, 51); font-size: 13px; line-height: 18px; "&gt;best practice&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif; border-collapse: collapse; color: rgb(51, 51, 51); font-size: 13px; line-height: 18px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif; border-collapse: collapse; color: rgb(51, 51, 51); font-size: 13px; line-height: 18px; "&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; line-height: normal; font-size: medium; "&gt;&lt;p&gt;This following list of recommendations will help you manage your undo space to best advantage.&lt;/p&gt;&lt;ul&gt;&lt;li type="disc"&gt;&lt;p&gt;You need not set a value for the &lt;code&gt;UNDO_RETENTION&lt;/code&gt; parameter unless your system has flashback or LOB retention requirements.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt;&lt;p&gt;Allow 10 to 20% extra space in your undo tablespace to provide for some fluctuation in your workload.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt;&lt;p&gt;Set the warning and critical alert thresholds for the undo tablespace alert properly. Please refer to &lt;a href="http://download.oracle.com/docs/cd/B12037_01/server.101/b10739/schema.htm#CHDHEHDB"&gt;"Managing Space in Tablespaces "&lt;/a&gt; for information on how to set alert thresholds for the undo tablespace.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt;&lt;p&gt;To tune SQL queries or to check on runaway queries, use the value of the &lt;code&gt;SQLID&lt;/code&gt; column provided in the long query or in the &lt;code&gt;V$UNDOSTAT&lt;/code&gt; or &lt;code&gt;WRH$_UNDOSTAT&lt;/code&gt; views to retrieve SQL text and other details on the SQL from&lt;code&gt;V$SQL&lt;/code&gt; view.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt;&lt;p&gt;Always use indexes for Flashback Version Query.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;ref oracle docs&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style="font-family: Arial, Helvetica, sans-serif; color: rgb(51, 0, 153); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;span style="font-family:arial, helvetica, sans-serif;color:#330099;"&gt;Resumable Space Allocation Example: Registering an AFTER SUSPEND Trigger&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;In the following example, a system wide &lt;code&gt;AFTER SUSPEND&lt;/code&gt; trigger is created and registered as user &lt;code&gt;SYS&lt;/code&gt; at the database level. Whenever a resumable statement is suspended in any session, this trigger can have either of two effects:&lt;/p&gt;&lt;ul&gt;&lt;li type="disc"&gt;&lt;p&gt;If an undo segment has reached its space limit, then a message is sent to the DBA and the statement is aborted.&lt;/p&gt;&lt;/li&gt;&lt;li type="disc"&gt;&lt;p&gt;If any other recoverable error has occurred, the timeout interval is reset to 8 hours.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Here are the statements for this example:&lt;/p&gt;&lt;pre space="preserve"&gt;CREATE OR REPLACE TRIGGER resumable_default AFTER SUSPEND ON DATABASE DECLARE    /* declare transaction in this trigger is autonomous */    /* this is not required because transactions within a trigger       are always autonomous */    PRAGMA AUTONOMOUS_TRANSACTION;    cur_sid           NUMBER;    cur_inst          NUMBER;    errno             NUMBER;    err_type          VARCHAR2;    object_owner      VARCHAR2;    object_type       VARCHAR2;    table_space_name  VARCHAR2;    object_name       VARCHAR2;    sub_object_name   VARCHAR2;    error_txt         VARCHAR2;    msg_body          VARCHAR2;    ret_value         BOOLEAN;    mail_conn         UTL_SMTP.CONNECTION; BEGIN    -- Get session ID    SELECT DISTINCT(SID) INTO cur_SID FROM V$MYSTAT;     -- Get instance number    cur_inst := userenv('instance');     -- Get space error information    ret_value :=     DBMS_RESUMABLE.SPACE_ERROR_INFO(err_type,object_type,object_owner,         table_space_name,object_name, sub_object_name);    /*    -- If the error is related to undo segments, log error, send email    -- to DBA, and abort the statement. Otherwise, set timeout to 8 hours.    --     -- sys.rbs_error is a table which is to be    -- created by a DBA manually and defined as    -- (sql_text VARCHAR2(1000), error_msg VARCHAR2(4000),    -- suspend_time DATE)    */     IF OBJECT_TYPE = 'UNDO SEGMENT' THEN        /* LOG ERROR */        INSERT INTO sys.rbs_error (            SELECT SQL_TEXT, ERROR_MSG, SUSPEND_TIME            FROM DBMS_RESUMABLE            WHERE SESSION_ID = cur_sid AND INSTANCE_ID = cur_inst         );        SELECT ERROR_MSG INTO error_txt FROM DBMS_RESUMABLE             WHERE SESSION_ID = cur_sid and INSTANCE_ID = cur_inst;          -- Send email to receipient via UTL_SMTP package         msg_body:='Subject: Space Error Occurred                     Space limit reached for undo segment ' || object_name ||                     on ' || TO_CHAR(SYSDATE, 'Month dd, YYYY, HH:MIam') ||                    '. Error message was ' || error_txt;          mail_conn := UTL_SMTP.OPEN_CONNECTION('localhost', 25);         UTL_SMTP.HELO(mail_conn, 'localhost');         UTL_SMTP.MAIL(mail_conn, 'sender@localhost');         UTL_SMTP.RCPT(mail_conn, 'recipient@localhost');         UTL_SMTP.DATA(mail_conn, msg_body);         UTL_SMTP.QUIT(mail_conn);          -- Abort the statement         DBMS_RESUMABLE.ABORT(cur_sid);     ELSE         -- Set timeout to 8 hours         DBMS_RESUMABLE.SET_TIMEOUT(28800);     END IF;      /* commit autonomous transaction */     COMMIT;    END;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&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/6015060604187975214-299386432589569331?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/299386432589569331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=299386432589569331' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/299386432589569331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/299386432589569331'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2009/12/undo-in-9i-and-10g.html' title='UNDO in 9i and 10g'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2687520970340583877</id><published>2009-12-23T13:20:00.000-08:00</published><updated>2009-12-23T13:47:04.958-08:00</updated><title type='text'>pga_aggregate_target</title><content type='html'>&lt;div&gt;v$pga_target_advice - estd_pga_cache_hit_percentage&lt;/div&gt;&lt;div&gt;v$pgastat  -  maximum PGA allocated&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; border-collapse: collapse; "&gt;d&lt;i&gt;ba_hist_pgastat&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;from doc&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;Setting &lt;code style="font-family: monospace; font-size: 12px; "&gt;PGA_AGGREGATE_TARGET&lt;/code&gt; to a nonzero value has the effect of automatically setting the &lt;code style="font-family: monospace; font-size: 12px; "&gt;WORKAREA_SIZE_POLICY&lt;/code&gt; parameter to &lt;code style="font-family: monospace; font-size: 12px; "&gt;AUTO&lt;/code&gt;. This means that SQL working areas used by memory-intensive SQL operators (such as sort, group-by, hash-join, bitmap merge, and bitmap create) will be automatically sized. A nonzero value for this parameter is the default since, unless you specify otherwise, Oracle sets it to 20% of the SGA or 10 MB, whichever is greater&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;init parameter&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;pga_aggregate_target &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;hidden parameters&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; border-collapse: collapse; "&gt;_pga_max_size &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; border-collapse: collapse; "&gt;_smm_px_max_size &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; border-collapse: collapse; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; border-collapse: collapse; "&gt;Tuning  -  check the hit ,  firstpass and multipass&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; border-collapse: collapse; "&gt;--eliminate overalloc and maximize cache hit&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; border-collapse: collapse; "&gt;&lt;div&gt;SELECT round (PGA_TARGET_FOR_ESTIMATE/1024/1024/1024) target_in_GB,&lt;/div&gt;&lt;div&gt;       ESTD_PGA_CACHE_HIT_PERCENTAGE cache_hit_perc,&lt;/div&gt;&lt;div&gt;       ESTD_OVERALLOC_COUNT&lt;/div&gt;&lt;div&gt;FROM   v$pga_target_advice  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; "&gt;&lt;pre&gt;SELECT    program,    pga_used_mem "PGA Used",    pga_alloc_mem "PGA Alloc",    pga_max_mem "PGA Max"   FROM v$process;&lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; "&gt;&lt;pre&gt;SELECT    low_optimal_size/1024 "Low (K)",    (high_optimal_size + 1)/1024 "High (K)",    optimal_executions "Optimal",    onepass_executions "1-Pass",    multipasses_executions "&gt;1 Pass"   FROM v$sql_workarea_histogram  WHERE total_executions &lt;&gt; 0;&lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;check multipass&lt;/pre&gt;&lt;pre&gt;SELECT    optimal_count "Optimal",    round(optimal_count * 100 / total,2) "Optimal %",    onepass_count "OnePass",    round(onepass_count * 100 / total,2) "Onepass %",    multipass_count "MultiPass",    round(multipass_count * 100 / total,2) "Multipass %"   FROM (       SELECT          DECODE (SUM(total_executions), 0, 1, SUM(total_executions)) total,          SUM(optimal_executions) optimal_count,          SUM(onepass_executions) onepass_count,          SUM(multipasses_executions) multipass_count         FROM v$sql_workarea_histogram -- Limits consideration of queries with LOW_OPTIMAL_SIZE limit &lt;64k&gt; 64*1024)&lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal; "&gt;&lt;pre&gt;SELECT *   FROM (SELECT             workarea_address,             operation_type,             policy,             estimated_optimal_size           FROM v$sql_workarea       ORDER BY estimated_optimal_size)  WHERE ROWNUM &lt;= 20;&lt;/pre&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; border-collapse: collapse; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; border-collapse: collapse; "&gt;ref- &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; border-collapse: collapse; "&gt;&lt;a href="http://www.dba-oracle.com/tips_pga_aggregate_target.htm"&gt;http://www.dba-oracle.com/tips_pga_aggregate_target.htm&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Tahoma, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt; it is important to remember that automatic PGA memory management via PGA_AGGREGATE_TARGET only applies to &lt;em&gt;dedicated&lt;/em&gt; server connections. Memory allocation for&lt;em&gt;shared&lt;/em&gt; server connections is still managed by SORT_AREA_SIZE, HASH_AREA_SIZE, and so forth&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Tahoma, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Tahoma, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;a href="http://www.databasejournal.com/features/oracle/article.php/10893_2109921_1/Activating-Monitoring-and-Tuning-Automatic-PGA-Memory-Management-via-PGAAGGREGATETARGET-Under-Oracle-9i.htm"&gt;http://www.databasejournal.com/features/oracle/article.php/10893_2109921_1/Activating-Monitoring-and-Tuning-Automatic-PGA-Memory-Management-via-PGAAGGREGATETARGET-Under-Oracle-9i.htm&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; border-collapse: collapse; "&gt;&lt;br /&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/6015060604187975214-2687520970340583877?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2687520970340583877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2687520970340583877' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2687520970340583877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2687520970340583877'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2009/12/pgaaggregatetarget.html' title='pga_aggregate_target'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4510381286346921726</id><published>2009-12-05T23:51:00.000-08:00</published><updated>2009-12-06T01:10:10.083-08:00</updated><title type='text'>tasklist -v   in windows</title><content type='html'>works same as ps -ef  ................&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4510381286346921726?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4510381286346921726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4510381286346921726' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4510381286346921726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4510381286346921726'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2009/12/tasklist-v-in-windows.html' title='tasklist -v   in windows'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4429426825181874930</id><published>2009-06-23T10:50:00.000-07:00</published><updated>2009-06-23T10:55:52.091-07:00</updated><title type='text'>dbca inside dmz server</title><content type='html'>doing the regular display setup do not work  when you are inside dmz server .&lt;br /&gt;&lt;br /&gt;so I had to do this .&lt;br /&gt;&lt;br /&gt;keep your exceed open.   ssh using my loginid first  with X11 tunnelling on .&lt;br /&gt;&lt;br /&gt;as user  ou1234&gt;&lt;br /&gt;&lt;br /&gt;find the display  by  env  . it should be something like &lt;br /&gt;DISPLAY=localhost:11.0&lt;br /&gt;&lt;br /&gt;then you should see a .Xauthority file  in  user ou1234's  home directory .&lt;br /&gt;&lt;br /&gt;do a chmod on this file . better put this inside user ou1234's .profile&lt;br /&gt;&lt;br /&gt;$ cat .profile&lt;br /&gt;chmod 660 .Xauthority&lt;br /&gt;&lt;br /&gt;and then su as the oracle user&lt;br /&gt;&lt;br /&gt;su - oracle&lt;br /&gt;&lt;br /&gt;and  then export DISPLAY to  the display as you found inside ou1234's env variable&lt;br /&gt;As oracle user&lt;br /&gt;$ export DISPLAY=localhost:11.0&lt;br /&gt;$ export XAUTHORITY=/home/nrusip01/.Xauthority&lt;br /&gt;$ xclock&lt;br /&gt;&lt;br /&gt;now you are ready to do any gui actvity.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4429426825181874930?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4429426825181874930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4429426825181874930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4429426825181874930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4429426825181874930'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2009/06/dbca-inside-dmz-server.html' title='dbca inside dmz server'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-779999371026269191</id><published>2009-04-22T16:45:00.000-07:00</published><updated>2009-04-22T17:07:58.822-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lesson'/><title type='text'>recovery scenario where too many archived log</title><content type='html'>check&lt;br /&gt;&lt;code&gt;v$log_history,&lt;br /&gt;&lt;br /&gt;v$archived_log&lt;br /&gt;&lt;br /&gt;V$RECOVERY_LOG - &lt;/code&gt;&lt;br /&gt;[&lt;br /&gt;&lt;p class="TB"&gt;Lists only the archived redo logs that Oracle needs to perform media recovery. It also includes the probable names of the files, using &lt;code&gt;LOG_ARCHIVE_FORMAT&lt;/code&gt;. &lt;a name="28371"&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p class="TB"&gt;&lt;strong class="Bold"&gt;Note:&lt;/strong&gt; This view is only populated when recovery is required for a datafile. Hence, this view is not useful in the case of a planned recovery such as a user error.&lt;/p&gt;&lt;p class="TB"&gt;]&lt;br /&gt;&lt;/p&gt;&lt;p class="TB"&gt;If sufficient space is not available at the location indicated by the archiving destination initialization parameter, restore some or all of the required archived redo log files to an alternate location. Specify the location before or during media recovery using the &lt;code&gt;LOGSOURCE&lt;/code&gt; parameter of the &lt;code&gt;SET&lt;/code&gt; statement in SQL*Plus or the &lt;code&gt;RECOVER&lt;/code&gt; &lt;code&gt;...&lt;/code&gt; &lt;code&gt;FROM&lt;/code&gt; parameter of the &lt;code&gt;ALTER&lt;/code&gt; &lt;code&gt;DATABASE&lt;/code&gt; statement in SQL. For example, enter:   &lt;/p&gt;&lt;pre class="CE1"&gt;&lt;a name="21096"&gt;&lt;/a&gt;SET LOGSOURCE /disk2/temp   # set location using SET statement&lt;br /&gt;&lt;a name="21107"&gt;&lt;/a&gt;DATABASE RECOVER FROM '/disk2/temp';  # set location in RECOVER statement itself&lt;br /&gt;&lt;a name="21097"&gt;&lt;/a&gt;&lt;br /&gt;in rman&lt;br /&gt;SET ARCHIVELOG DESTINATION TO &lt;location&gt; command&lt;br /&gt;&lt;br /&gt;for temporary change&lt;br /&gt;&lt;/location&gt;&lt;b&gt;&lt;span&gt;&lt;b&gt;&lt;span style="font-family:Courier New, Courier, mono;"&gt;ARCHIVE LOG START '&lt;your&gt;';&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-779999371026269191?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/779999371026269191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=779999371026269191' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/779999371026269191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/779999371026269191'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2009/04/recovery-scenario-where-too-many.html' title='recovery scenario where too many archived log'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-1455331784895381126</id><published>2009-03-17T18:04:00.000-07:00</published><updated>2009-03-17T18:05:10.960-07:00</updated><title type='text'>xming</title><content type='html'>a free alternative for exceed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-1455331784895381126?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/1455331784895381126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=1455331784895381126' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1455331784895381126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1455331784895381126'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2009/03/xming.html' title='xming'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-7695072651468883197</id><published>2009-03-13T13:54:00.001-07:00</published><updated>2009-03-13T13:54:57.417-07:00</updated><title type='text'>cygwin installation</title><content type='html'>mirrors.&lt;em&gt;kernel&lt;/em&gt;.&lt;em&gt;org&lt;/em&gt;(http)  .  make sure vim is checked.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-7695072651468883197?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/7695072651468883197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=7695072651468883197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7695072651468883197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7695072651468883197'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2009/03/cygwin-installation.html' title='cygwin installation'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5986776001639709180</id><published>2009-03-09T19:08:00.000-07:00</published><updated>2009-03-09T19:27:08.736-07:00</updated><title type='text'>recovery using online redo logs for a norarchivelog database</title><content type='html'>after the platform services did  the san migration somehow one of the datafile became corrupted and while i try to open the database  it complains.  this database is  a norachivelog database . so I just felt lucky on how it worked .  the platform services had taken a o/s backup while  the database was  running the around 1am  before they did the san migration.&lt;br /&gt;&lt;br /&gt;Database mounted.&lt;br /&gt;SQL&gt; recover database;&lt;br /&gt;ORA-00283: recovery session canceled due to errors&lt;br /&gt;ORA-01610: recovery using the BACKUP CONTROLFILE option must be done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; recover database using backup controlfile;&lt;br /&gt;ORA-00283: recovery session canceled due to errors&lt;br /&gt;ORA-01201: file 7 header failed to write correctly&lt;br /&gt;&lt;br /&gt;so at this point I asked them to restore the datafile 7 that they took from last night . even though this waas a production database  but there were no activity during the night on this weekend .&lt;br /&gt;&lt;br /&gt;so once they restored the file . I mounted&lt;br /&gt;&lt;br /&gt;SQL&gt; recover database using backup controlfile;&lt;br /&gt;ORA-00279: change 2213499829905 generated at 02/21/2009 08:43:13 needed for&lt;br /&gt;thread 1&lt;br /&gt;ORA-00289: suggestion :&lt;br /&gt;/rgw/ora_bkup/flash_recovery_area/RGWP20/archivelog/2009_02_22/o1_mf_1_10088_%u_&lt;br /&gt;.arc&lt;br /&gt;ORA-00280: change 2213499829905 for thread 1 is in sequence #10088&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Specify log: {&lt;ret&gt;=suggested | filename | AUTO | CANCEL}&lt;br /&gt;/rgw/u2/oradata/rgwp20/redo02.log&lt;br /&gt;ORA-00279: change 2213502398486 generated at 02/21/2009 22:07:33 needed for&lt;br /&gt;thread 1&lt;br /&gt;ORA-00289: suggestion :&lt;br /&gt;/rgw/ora_bkup/flash_recovery_area/RGWP20/archivelog/2009_02_22/o1_mf_1_10089_%u_&lt;br /&gt;.arc&lt;br /&gt;ORA-00280: change 2213502398486 for thread 1 is in sequence #10089&lt;br /&gt;ORA-00278: log file '/rgw/u2/oradata/rgwp20/redo02.log' no longer needed for&lt;br /&gt;this recovery&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Specify log: {&lt;ret&gt;=suggested | filename | AUTO | CANCEL}&lt;br /&gt;/rgw/u2/oradata/rgwp20/redo03.log&lt;br /&gt;Log applied.&lt;br /&gt;Media recovery complete.&lt;br /&gt;&lt;br /&gt;--what a relief   it was for me . because if it would have any issue further then probably i would have to go through a export restore .  then  I did&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database open;&lt;br /&gt;alter database open&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-01589: must use RESETLOGS or NORESETLOGS option for database open&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; select * from v$recover_file;&lt;br /&gt;&lt;br /&gt;no rows selected&lt;br /&gt;&lt;br /&gt;SQL&gt; archive log list;&lt;br /&gt;Database log mode              No Archive Mode&lt;br /&gt;Automatic archival             Disabled&lt;br /&gt;Archive destination            USE_DB_RECOVERY_FILE_DEST&lt;br /&gt;Oldest online log sequence     10087&lt;br /&gt;Current log sequence           10089&lt;br /&gt;SQL&gt; select current_scn from v$database;&lt;br /&gt;&lt;br /&gt;CURRENT_SCN&lt;br /&gt;-----------&lt;br /&gt;         0&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database open resetlogs;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;the database is back up and i am a happy man.&lt;br /&gt;&lt;br /&gt;**** alert log .&lt;br /&gt;alter database open resetlogs&lt;br /&gt;Sun Feb 22 13:02:00 2009&lt;br /&gt;RESETLOGS after complete recovery through change 2213530385545&lt;br /&gt;Resetting resetlogs activation ID 1283279895 (0x4c7d4c17)&lt;br /&gt;Sun Feb 22 13:02:05 2009&lt;br /&gt;Setting recovery target incarnation to 2&lt;br /&gt;Sun Feb 22 13:02:05 2009&lt;br /&gt;Assigning activation ID 1331518248 (0x4f5d5b28)&lt;br /&gt;&lt;br /&gt;***&lt;br /&gt;&lt;br /&gt;but even though this production database was running in noarchivelog but still this database is a very highly visible database  so I just did few homeowrk to make sure that everything is fine .&lt;br /&gt;&lt;br /&gt;1-&lt;br /&gt;SQL&gt; begin&lt;br /&gt;for r in( select owner,table_name from dba_tables where owner='RGWP20') loop&lt;br /&gt;dbms_output.put_line( r.table_name );&lt;br /&gt;dbms_stats.gather_table_stats( r.owner, r.table_name, estimate_percent =&gt; 5,&lt;br /&gt;degree =&gt; 16, granularity =&gt; 'ALL', cascade =&gt; true,&lt;br /&gt;method_opt =&gt; 'FOR ALL INDEXED COLUMNS SIZE 1' );&lt;br /&gt;end loop;&lt;br /&gt;end;  2    3    4    5    6    7    8&lt;br /&gt; 9  /&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;SQL&gt; commit;&lt;br /&gt;&lt;br /&gt;Commit complete.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2#took  a export backup and compare the the backup before and now for&lt;br /&gt;the tables /records&lt;br /&gt;&lt;br /&gt;my lesson-  a production database should always be in archivelog  if you want life to be less stressful.  but it is hard here to convince the application manager that we should convert it to archivelog. but will try again.&lt;br /&gt;&lt;/ret&gt;&lt;/ret&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-5986776001639709180?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5986776001639709180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5986776001639709180' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5986776001639709180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5986776001639709180'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2009/03/recovery-using-online-redo-logs-for.html' title='recovery using online redo logs for a norarchivelog database'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4265333590702575799</id><published>2009-03-09T18:49:00.001-07:00</published><updated>2009-03-13T13:56:14.325-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lesson'/><title type='text'>controlfile recovery for a db having  few readonly tablespaces</title><content type='html'>here is the situation-  The platform services took a cold backup of a UAT database before 3 weeks. and now the application group want that backup to be restored to the UAT . so I asked the platform services to go ahead and overwrite the existing UAT db related filesystems.&lt;br /&gt;&lt;br /&gt;after they restored the cold backup I try to open the database and it complains .  so I had to list out all the datafiles(including the readonly datafiles( though I dont know which datafiles are readonly from these 250+ datafiles ))  . and recreate the controlfile . then   i did a recover database using backup controlfile . and somehow it asks for the log file  so I had to do a recovery using online redo logs .  and then i opened the database with resetlogs .  after that still confused about the read only tablespaces I did a status check in dba_tablespaces and I found that  the data dictionary had all the readonly ts information and even though the controlfile was recreated but still the database was able to indentify properly .&lt;br /&gt;&lt;br /&gt;-not that of a big deal but it was a good learning for me .&lt;br /&gt;lesson-  never keep the controlfile outside the datafile filesystem. becuase it is a lot of headache when you took a cold backup and then keep scratching your head that why you are not able to use the backup to restore it . always make sure that a cold backup backs up all the files .&lt;br /&gt;&lt;br /&gt;The readonly tablespaces hit me back . when the user reported this error.&lt;br /&gt;&lt;br /&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;ORA-00376: file 71 cannot be read at this time&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;ORA-01111: name for  data file 71 is unknown - rename to correct file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;ORA-01110: data file  71: '/u1/app/oracle/product/9.2.0/dbs/MISSING00071'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;&lt;o:p&gt;so I had to to just do trial and error&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;&lt;o:p&gt;select file_id,file_name from dba_data_files&lt;br /&gt;where file_name like '%MISS%'&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;&lt;o:p&gt;select * from v$datafile where status='OFFLINE'&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;&lt;o:p&gt;SQL&gt; alter tablespace PDB_IX_DS1 online;&lt;br /&gt;alter tablespace PDB_IX_DS1 online&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-01157: cannot identify/lock data file 246 - see DBWR trace file&lt;br /&gt;ORA-01111: name for data file 246 is unknown - rename to correct file&lt;br /&gt;ORA-01110: data file 246: '/u1/app/oracle/product/9.2.0/dbs/MISSING00246'&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;&lt;o:p&gt;doing a alter datbase backup controlfile to trace  reported these errors&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;&lt;o:p&gt;ALTER DATABASE RENAME FILE 'MISSING00227'&lt;br /&gt;# WARNING! This command can not be completed because the file&lt;br /&gt;# needs to be renamed to a real file name.&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;&lt;o:p&gt;anyway I guess I was just lucky . somehow able to patch up the missing links.  but I will make sure to take a alter database backup controfile to trace for any database specifically with readonly tablespace before I do a cold backup.&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;&lt;o:p&gt;-&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;color:navy;"   &gt;&lt;span style=";font-family:Arial;font-size:10;color:navy;"   &gt;&lt;o:p&gt;it seems oradebug dump helps to identify the tablespace/datafile relationship . thanks to Rijaj in oracle list . have to try.&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4265333590702575799?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4265333590702575799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4265333590702575799' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4265333590702575799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4265333590702575799'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2009/03/controlfile-recovery-for-db-having-few.html' title='controlfile recovery for a db having  few readonly tablespaces'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-6409716673905094200</id><published>2009-02-03T21:31:00.000-08:00</published><updated>2009-02-03T22:20:59.224-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>vmware windows xp guest disk expansion</title><content type='html'>step -1 in host o/s&lt;br /&gt;C:\ "C:\Program Files\VMware\VMware Workstation\v&lt;br /&gt;mware-vdiskmanager" -x 10GB "C:\Virtual Machines\Windows XP Professional\Windows&lt;br /&gt;XP Professional.vmdk"&lt;br /&gt;Disk expansion completed successfully.&lt;br /&gt;&lt;br /&gt;WARNING: If the virtual disk is partitioned, you must use a third-party&lt;br /&gt;        utility in the virtual machine to expand the size of the&lt;br /&gt;        partitions. For more information, see:&lt;br /&gt;        http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1647&lt;br /&gt;&lt;br /&gt;step 2 - in guest o/s&lt;br /&gt;&lt;br /&gt;used the home edition  to resize the drive&lt;br /&gt;&lt;br /&gt;http://www.partition-tool.com/easeus-partition-manager/help/resizing-and-moving-partition.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-6409716673905094200?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/6409716673905094200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=6409716673905094200' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6409716673905094200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6409716673905094200'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2009/02/vmware-windows-xp-guest-disk-expansion.html' title='vmware windows xp guest disk expansion'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8473090636258096617</id><published>2008-12-02T18:43:00.000-08:00</published><updated>2008-12-02T18:58:27.125-08:00</updated><title type='text'>Dataguard switchover on 10g</title><content type='html'>After doing a dataguard switchover (not using dgmgrl )  these were few common cases you might come across.&lt;br /&gt;&lt;br /&gt;1- switch_over status in primary was NOT ALLOWED&lt;br /&gt;&lt;br /&gt;I found that the log shipping was stopped to the new standby and&lt;br /&gt;select database_role,switchover_status from v$database;&lt;br /&gt;PRIMARY , NOT ALLOWED  .&lt;br /&gt;&lt;br /&gt;It did not put any alerts in alert.log or any message on v$dataguard_status . I was totally clueless about what is going on here.  then I found that the  log_archive_dest_state_2 which was originally set as defer was still defer after the switchover . as soon as I turn it into enable at the new primary it started sending the logs.&lt;br /&gt;&lt;br /&gt;2- temp files were recreated on the new primary.&lt;br /&gt;&lt;br /&gt;Errors in file /u1/app/oracle/admin/dtrt/bdump/dtrt_dbw0_8307.trc:&lt;br /&gt;    ORA-01157: cannot identify/lock data file 201 - see DBWR trace file&lt;br /&gt;    ORA-01110: data file 201: '/rgwt/u6/oradata/dtrt/temp01.dbf'&lt;br /&gt;    ORA-27037: unable to obtain file status&lt;br /&gt;    SVR4 Error: 2: No such file or directory&lt;br /&gt;    Additional information: 3&lt;br /&gt;    File 201 not verified due to error ORA-01157&lt;br /&gt;    Tue Dec  2 14:31:12 2008&lt;br /&gt;    Dictionary check complete&lt;br /&gt;    Tue Dec  2 14:31:12 2008&lt;br /&gt;    SMON: enabling tx recovery&lt;br /&gt;    Tue Dec  2 14:31:12 2008&lt;br /&gt;    Re-creating tempfile /rgwt/u6/oradata/dtrt/temp01.dbf&lt;br /&gt;&lt;br /&gt;3-standby redo log on the new standby.&lt;br /&gt;&lt;br /&gt;if you have configured the standby redo log on the old standby and then you did not configured on the old primary then you might as well create it&lt;br /&gt;&lt;br /&gt;startup nomount;&lt;br /&gt;alter database mount standby database;&lt;br /&gt;alter database add standby logfile group 4 ('/rgwt/u2/oradata/dtrt/sredo41.rlog') size 50M;&lt;br /&gt;alter database recover managed standby database disconnect from session;&lt;br /&gt;&lt;br /&gt;then verify v$standby_log ,v$logfile&lt;br /&gt;&lt;br /&gt;4- client tns .&lt;br /&gt;&lt;br /&gt;i had to cut paste the old standby address to top .&lt;br /&gt;&lt;br /&gt;dtrt_dg =&lt;br /&gt;         (DESCRIPTION =&lt;br /&gt;         (ADDRESS_LIST =&lt;br /&gt;             (ADDRESS =&lt;br /&gt;               (PROTOCOL = TCP)&lt;br /&gt;               (Host = xt33db002)&lt;br /&gt;               (Port = 2483)&lt;br /&gt;             )&lt;br /&gt;             (ADDRESS =&lt;br /&gt;               (PROTOCOL = TCP)&lt;br /&gt;               (Host = xt33db003)&lt;br /&gt;               (Port = 1521)&lt;br /&gt;             )&lt;br /&gt;         )&lt;br /&gt;         (CONNECT_DATA = (SERVICE_NAME = dtrt)&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/6015060604187975214-8473090636258096617?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8473090636258096617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8473090636258096617' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8473090636258096617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8473090636258096617'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/12/dataguard-switchover-on-10g.html' title='Dataguard switchover on 10g'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5584852737419593933</id><published>2008-09-21T22:04:00.000-07:00</published><updated>2008-09-21T22:07:38.070-07:00</updated><title type='text'>Oracle OpenWorld 2008</title><content type='html'>First day at the Oracle Openworld .  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Mr Alex Gorbachov's  Clusterware presentation and  Mr Chintala's  presentation on  Dell IT  was very informative.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-5584852737419593933?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5584852737419593933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5584852737419593933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5584852737419593933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5584852737419593933'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/09/oracle-openworld-2008.html' title='Oracle OpenWorld 2008'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2948737040772035565</id><published>2008-07-10T19:04:00.000-07:00</published><updated>2008-07-10T19:18:30.969-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lesson'/><title type='text'>oracle 10g database characterset change</title><content type='html'>ORACLE DB version 10.2.0.3&lt;br /&gt;&lt;br /&gt;step 1- run csminst.sql it will create a user to hold csscan  result. which the csalter will use to convert&lt;br /&gt;&lt;br /&gt;step 2-Use csscan to scan the database . make sure that in the output file csscan creates you dont see any of your application user table. if you see then you must have to export and truncate those tables.&lt;br /&gt;&lt;br /&gt;csscan \"sys/&lt;mypwd&gt;@10GDB3 as sysdba \" FULL=Y FROMCHAR=WE8ISO8859P1 TOCHAR=UTF8 LOG=WE8check_jul10&lt;br /&gt;&lt;br /&gt;step 3 - run the csalter.plb to change the database characterset in startup restrict mode. needless to say you must have taken a full backup before  you run csalter.plb&lt;br /&gt;&lt;br /&gt;SQL&gt; @?/rdbms/admin/csalter.plb&lt;br /&gt;0 rows created.&lt;br /&gt;Function  created.&lt;br /&gt;Function created.&lt;br /&gt;Procedure created.&lt;br /&gt;This script will update the  content of the Oracle Data Dictionary.&lt;br /&gt;Please ensure you have a full backup  before initiating this procedure.&lt;br /&gt;Would you like to proceed (Y/N)?Y&lt;br /&gt;old   6:     if (UPPER('&amp;amp;conf') &lt;&gt; 'Y') then&lt;br /&gt;new   6:     if (UPPER('Y') &lt;&gt; 'Y')  then&lt;br /&gt;Checking data validility...&lt;br /&gt;begin converting system objects&lt;br /&gt;12722 rows in  table SYS.WRH$_SQL_PLAN are converted&lt;br /&gt;80 rows in table SYS.METASTYLESHEET are  converted&lt;br /&gt;53 rows in table SYS.WRI$_ADV_ACTIONS are converted&lt;br /&gt;79 rows in table  SYS.WRI$_DBU_FEATURE_METADATA are converted&lt;br /&gt;169 rows in table  SYS.WRI$_ADV_OBJECTS are converted&lt;br /&gt;900 rows in table SYS.WRH$_SQLTEXT are  converted&lt;br /&gt;38 rows in table SYS.WRI$_ADV_RATIONALE are converted&lt;br /&gt;17 rows in  table SYS.WRI$_DBU_HWM_METADATA are converted&lt;br /&gt;4 rows in table SYS.RULE$ are  converted&lt;br /&gt;21 rows in table SYS.WRI$_DBU_FEATURE_USAGE are converted&lt;br /&gt;&lt;br /&gt;PL/SQL  procedure successfully completed.&lt;br /&gt;&lt;br /&gt;Alter the database character set...&lt;br /&gt;CSALTER  operation completed, please restart database&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully  completed.&lt;br /&gt;0 rows deleted.&lt;br /&gt;Function dropped.&lt;br /&gt;Function  dropped.&lt;br /&gt;Procedure dropped.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;step 4- do this&lt;br /&gt;SQL&gt; alter database national  character set UTF8;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;step 5- check output 1  select * from  nls_database_parameters&lt;br /&gt;2* where parameter like '%CHARACTERSET%'&lt;br /&gt;&lt;br /&gt;SQL&gt;  /&lt;br /&gt;&lt;br /&gt;PARAMETER                      VALUE&lt;br /&gt;------------------------------  -----------------------------------&lt;br /&gt;NLS_CHARACTERSET                UTF8&lt;br /&gt;NLS_NCHAR_CHARACTERSET         UTF8&lt;br /&gt;&lt;br /&gt;it shows that we changed the database characterset as well as the national characterset to UTF8.&lt;br /&gt;&lt;br /&gt;I had a nice lesson while doing this process.  I first took the export dump of all the user tables having nclob data reported by csscan . and then i truncated the tables. However I again got into problem while doing csalter . it gave me the below message&lt;br /&gt;&lt;br /&gt;Checking data validility...&lt;br /&gt;Exceptional data found in scanner result&lt;br /&gt;&lt;br /&gt;PL/SQL procedure successfully completed.&lt;br /&gt;&lt;br /&gt;Checking or Converting phrase did not finish successfully&lt;br /&gt;No database (national) character set will be altered&lt;br /&gt;CSALTER finished unsuccessfully.&lt;br /&gt;&lt;br /&gt;again doing the csscan i found 1 more user tables. and while doing export again with the same dump file adding this table I miss I got a dump file which has 0 records for all the other table . not only that I overwrite the dumpfile name . I lost the data but luckily it is a test application otherwise it would have been very painful.&lt;br /&gt;&lt;br /&gt;Lesson learned- make sure to take a full export . and never keep the same dump file name while doing a export in the situation as this.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/mypwd&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-2948737040772035565?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2948737040772035565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2948737040772035565' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2948737040772035565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2948737040772035565'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/07/oracle-10g-database-characterset-change.html' title='oracle 10g database characterset change'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-910032547370439443</id><published>2008-06-15T11:21:00.000-07:00</published><updated>2008-06-15T11:23:09.579-07:00</updated><title type='text'>Free Software Heroes.</title><content type='html'>I came across a interesting article . Here is the link&lt;br /&gt;&lt;a href="http://www.freesoftwaremagazine.com/columns/free_software_heroes_stallman_google_list_inspiring_individuals_who_made_everything_"&gt;&lt;br /&gt;http://www.freesoftwaremagazine.com/columns/free_software_heroes_stallman_google_list_inspiring_individuals_who_made_everything_&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-910032547370439443?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/910032547370439443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=910032547370439443' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/910032547370439443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/910032547370439443'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/06/free-software-heroes.html' title='Free Software Heroes.'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-7707791493844030070</id><published>2008-04-30T20:34:00.000-07:00</published><updated>2008-04-30T21:42:12.796-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>3 node RAC on Enterprise Linux</title><content type='html'>3 node RAC on Enterprise Linux&lt;br /&gt;&lt;br /&gt;ocr, voting disk, spfile on raw devices&lt;br /&gt;and the db files on the block device&lt;br /&gt;&lt;br /&gt;storage on MSA1000 ( modular smart array) with 2 fc and gigabit ethernet card .&lt;br /&gt;public eth0 , private eth1 , vip eth0:1&lt;br /&gt;&lt;br /&gt;-set up user equivalence.&lt;br /&gt;-checking the configuration of hangcheck timer module&lt;br /&gt;-check the rawdevice mapping exists.  for ocr,voting and asm spfile   e.g raw -qa&lt;br /&gt;-check that the ASM disk are configured for you -these are block device so you upgrade oracle software from 10.2.0.1 to 10.2.0.3 - (right? )&lt;br /&gt;&lt;br /&gt;- install 10.2.0.1 clusterware&lt;br /&gt;-patch oracle clusterware to 10.2.0.3  (rolling clusterware patch)&lt;br /&gt;&lt;br /&gt;-install db  software in one home  to be used by both asm and db.&lt;br /&gt;-patch to 10.2.0.3&lt;br /&gt;&lt;br /&gt;-Create cluster database with dbca&lt;br /&gt;  -  choose RAC database&lt;br /&gt;   - choose create database&lt;br /&gt;   - select all nodes in the cluster&lt;br /&gt;   - select general purpose db&lt;br /&gt;   - choose a db name prod&lt;br /&gt;   - uncheck configure the db for enterprise manager&lt;br /&gt;   - specify sys as password for all account&lt;br /&gt;   - choose "Automatic storage management(ASM)"  as the storage mechanism&lt;br /&gt;   -  Configuring ASM - since ASM has not yet been configured dbca allows you to do this at this point of database creation&lt;br /&gt;   -specify sys as the asm SYS password&lt;br /&gt;   -specify our ASM spfile raw device as the spfile for ASM.&lt;br /&gt;   -click the create new button  to create a new ASM diskgroup DATA&lt;br /&gt;   -create another ASM diskgroup FRA&lt;br /&gt; - choose oracle managed file  and the +DATA diskgroup&lt;br /&gt;  - select speficy flashrecovery area and +FRA diskgroup&lt;br /&gt;  - enable archivelog if you want&lt;br /&gt;&lt;br /&gt;- on the database services screen create 2 services&lt;br /&gt;    "oltp"   preferred node1,node2 available node3&lt;br /&gt;   "batch"  preferred node3 , available node1,node2&lt;br /&gt;&lt;br /&gt;- continue clicking default till it finish .&lt;br /&gt;&lt;br /&gt;and now "&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;my second RAC install is finished&lt;/span&gt; "&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-7707791493844030070?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/7707791493844030070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=7707791493844030070' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7707791493844030070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7707791493844030070'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/04/3-node-rac-on-enterprise-linux.html' title='3 node RAC on Enterprise Linux'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-9064500622041781483</id><published>2008-04-30T20:02:00.000-07:00</published><updated>2008-04-30T20:34:04.300-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>my First RAC experience</title><content type='html'>This week was amazing for me .  on monday I did a 2 node RAC installation on solaris and on Tuesday I did a 3 node RAC on enterprise Linux  .&lt;br /&gt;&lt;br /&gt;2 node RAC10g on Solaris 10.&lt;br /&gt;&lt;br /&gt;two  v240  server with EMC clarion storage.&lt;br /&gt;some routine work - user equivalence check , soft link to /usr/local/bin for ssh and scp . make sure your storage lun is outlined. then the public bge0 ,private bge1 ,vip bge0:1 address. (vip is configured by vipca at the end of clusterware. ..)&lt;br /&gt;1- clusterware installation&lt;br /&gt;&lt;br /&gt;2- ASM installation on a asm home&lt;br /&gt;2.1 -  As part of  asm installation on the select configuration option - choose configure Automatic Storage management(ASM)&lt;br /&gt; that leads you to define diskgroup . selected the candidate raw partitions . and the rest follows&lt;br /&gt;&lt;br /&gt;3- database installation on a separate db home&lt;br /&gt;3.1 - on the select configuration option choose only the Install database software only .&lt;br /&gt;&lt;br /&gt;4- Create the cluster database&lt;br /&gt;4.1 - run dbca- choose Oracle Real Application Clusters database -&lt;br /&gt;         on the Select the operation that you want to perform page&lt;br /&gt;         choose Configure Automatic Storage Management&lt;br /&gt;         on the Node select choose select all&lt;br /&gt;         enter the ASM sys user password&lt;br /&gt;         on the ASM disk groups it will allow you to create another FRA diskgroup if you want&lt;br /&gt;         select the raw parttions that you want to assigned to FRA&lt;br /&gt;         you should see  for all the diskgroups the state shows mounted(num nodes/num nodes )&lt;br /&gt;         Click Finish and it ask you "Do you want to perform another operation ?"  Choose Yes&lt;br /&gt;         Back to the operations screen where you select database .&lt;br /&gt;         on the node selection choose select all...&lt;br /&gt;         defined a db template- General purpose&lt;br /&gt;        on the management options enter the database name and the sid prefix.&lt;br /&gt;       then  on step 6 of 16  use the same password for all account&lt;br /&gt;        On the storage option screen . select Automatic storage management  -&lt;br /&gt;        select the DATA diskgroup to be used for the db storage . uncheck FRA&lt;br /&gt;       On the database files location screen . select oracle-managed file&lt;br /&gt;        Select the specify flash recovery area check box and enter FRA diskgroup to be used for fla&lt;br /&gt;       select some sample schema if you please&lt;br /&gt;       Create database service if you like ( to differentiate based on usage , batch for 1 node,oltp        for both&lt;br /&gt;   then click , click&lt;br /&gt;   on the Creation option page  select the create database option .&lt;br /&gt;   then click click click and you got a window&lt;br /&gt;     Starting cluster database  "DEVL"  and its instances "DEVL1,DEVL2 " in progress. ...&lt;br /&gt;  and now  &lt;span style="font-weight: bold;"&gt;&lt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;I am done with my First RAC  &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;now&gt;&lt;/now&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-9064500622041781483?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/9064500622041781483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=9064500622041781483' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/9064500622041781483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/9064500622041781483'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/04/my-first-rac-experience.html' title='my First RAC experience'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-3693307198589941810</id><published>2008-03-13T17:46:00.000-07:00</published><updated>2008-03-13T17:53:10.884-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><title type='text'>rman - noarchivelog db - recover noredo</title><content type='html'>I encountered few  issues while restoring  a rman backup when the db is running in noarchivelog mode (i think  the online redolog's availability has some influence on the rman backup restore strategy ) . so to be on a safeside I implemented the backup strategy with incremental backup for noarchivelog db.  this one I tested on 10.2.0.2&lt;br /&gt;&lt;br /&gt;Here is the backup script &lt;br /&gt;&lt;br /&gt;============================&lt;br /&gt;script rman_noarch_backup.rcv # ##########&lt;br /&gt;SHUTDOWN IMMEDIATE;&lt;br /&gt;STARTUP FORCE DBA;&lt;br /&gt;SHUTDOWN IMMEDIATE;&lt;br /&gt;STARTUP MOUNT;&lt;br /&gt;BACKUP&lt;br /&gt;  COPIES 1&lt;br /&gt;  INCREMENTAL LEVEL 0&lt;br /&gt;  MAXSETSIZE 1G&lt;br /&gt;  DATABASE&lt;br /&gt;  INCLUDE CURRENT CONTROLFILE&lt;br /&gt;  TAG 'BACKUP_1'&lt;br /&gt;;&lt;br /&gt;alter database open;&lt;br /&gt;#########################################&lt;br /&gt;&lt;br /&gt;and the restore operation is as below&lt;br /&gt;&lt;br /&gt;vmtest:/export/home/oracle$ rman target /&lt;br /&gt;RMAN&gt; SET DBID 1177027667&lt;br /&gt;executing command: SET DBID&lt;br /&gt;RMAN&gt; startup nomount;&lt;br /&gt;&lt;br /&gt;RMAN&gt; restore controlfile from '/export/home/oracle/flash_recovery_area/ORCL/backupset/2008_03_13/o1_mf_ncnn0_BACKUP_1_3xmdomv3_.bkp';&lt;br /&gt;&lt;br /&gt;RMAN&gt; alter database mount;&lt;br /&gt;&lt;br /&gt;RMAN&gt; run{&lt;br /&gt;restore database;&lt;br /&gt;recover database noredo;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;RMAN&gt; alter database open resetlogs;&lt;br /&gt;&lt;br /&gt;database opened&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-3693307198589941810?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/3693307198589941810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=3693307198589941810' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3693307198589941810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3693307198589941810'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/03/rman-noarchivelog-db-recover-noredo.html' title='rman - noarchivelog db - recover noredo'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5493582409774683544</id><published>2008-01-31T14:18:00.000-08:00</published><updated>2008-01-31T14:19:49.015-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='impdp'/><title type='text'>Generate schema creation script using datapump</title><content type='html'>expdp system/manager directory=tmp_dir dumpfile=a.dmp content=metadata_only schemas=system&lt;br /&gt;impdp system/manager directory=tmp_dir dumpfile=a.dmp sqlfile=p4.sql&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-5493582409774683544?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5493582409774683544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5493582409774683544' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5493582409774683544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5493582409774683544'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/01/generate-schema-creation-script-using.html' title='Generate schema creation script using datapump'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2600142550852549063</id><published>2008-01-24T12:12:00.000-08:00</published><updated>2008-01-28T10:23:16.616-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>moving windows o/s into  a ubuntu vmware  guest o/s</title><content type='html'>software needed to move Windows XP&lt;br /&gt;on a dell latitude D600/D620&lt;br /&gt;&lt;br /&gt;my laptop came with windows xp . and my objective is to move away from windows XP to ubuntu .&lt;br /&gt;in order to do that . I need to do 2 things&lt;br /&gt;1- install ubuntu in a separate partition&lt;br /&gt;2- using vmware converter take a backup of existing windows xp  and then install  vmware server 1.0 in ubuntu and open the windows xp .vmx as a guest vm.&lt;br /&gt;&lt;br /&gt;I did a defragment on the 80G which freed 50G . and&lt;br /&gt;1- partition magic - shrink your windows o/s  partition and then the freed space.&lt;br /&gt;2- vmware converter&lt;br /&gt;3-ubuntu 7.10 - d600 is 32 bit and d620 is 64 bit . so you need appropriate install CD.&lt;br /&gt;    while installing careful at partitioning stage . not to destroy the existing windows installation&lt;br /&gt;   - manual&lt;br /&gt;          freespace  - 54g&lt;br /&gt;          swap        - primary - 1g&lt;br /&gt;         /              - primary  - 3gb&lt;br /&gt;        /usr        -logical   - 3g&lt;br /&gt;     /tmp          - 3g&lt;br /&gt;     /home - rest free space.&lt;br /&gt;8. vmware server 1.0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-2600142550852549063?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2600142550852549063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2600142550852549063' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2600142550852549063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2600142550852549063'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/01/moving-windows-os-into-ubuntu-vmware.html' title='moving windows o/s into  a ubuntu vmware  guest o/s'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-7312651364754073855</id><published>2008-01-23T11:19:00.000-08:00</published><updated>2008-01-23T12:34:09.894-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><title type='text'>Installing perl in solaris 8</title><content type='html'>As root&lt;br /&gt;&lt;br /&gt;install ActivePerl-5.8   -&lt;br /&gt;pkgadd -d ActivePerl-5.8.8.822-sun4-solaris-2.6-cc-280952.pkg&lt;br /&gt;&lt;br /&gt;then link perl to /usr/bin&lt;br /&gt;&lt;br /&gt;need to install&lt;br /&gt;&lt;br /&gt;DBI-1.59.tar&lt;br /&gt;DBD-Oracle-1.17.tar&lt;br /&gt;&lt;br /&gt;in order to install DBI-1.59&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;you have to install gcc,cc,make .&lt;br /&gt;&lt;br /&gt;to install gcc you have to use pkg-get , pkgadd  ....&lt;br /&gt;&lt;br /&gt;then link gcc ,&lt;br /&gt;to install make  ./reconfigure and  link make  to /usr/bin/make&lt;br /&gt;&lt;br /&gt;bash-2.05$ gcc -v&lt;br /&gt;Reading specs from /opt/csw/gcc3/lib/gcc/sparc-sun-solaris2.8/3.4.5/specs&lt;br /&gt;Configured with: ../sources/gcc-3.4.5/configure --prefix=/opt/csw/gcc3 --with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-shared --enable-multilib --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --enable-languages=all&lt;br /&gt;Thread model: posix&lt;br /&gt;gcc version 3.4.5&lt;br /&gt;bash-2.05$ make -v&lt;br /&gt;GNU Make 3.81&lt;br /&gt;Copyright (C) 2006  Free Software Foundation, Inc.&lt;br /&gt;This is free software; see the source for copying conditions.&lt;br /&gt;There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A&lt;br /&gt;PARTICULAR PURPOSE.&lt;br /&gt;&lt;br /&gt;This program built for sparc-sun-solaris2.9&lt;br /&gt;as root&lt;br /&gt;set your oracle environments&lt;br /&gt;&lt;br /&gt;# ORACLE_BASE=/ofs/app/oracle/product&lt;br /&gt;# export ORACLE_BASE&lt;br /&gt;# ORACLE_HOME=$ORACLE_BASE/10.2.0.1&lt;br /&gt;# export ORACLE_HOME&lt;br /&gt;# ORACLE_SID=testasm&lt;br /&gt;# export ORACLE_SID&lt;br /&gt;# LD_LIBRARY_PATH=$ORACLE_HOME/lib32&lt;br /&gt;# export LD_LIBRARY_PATH&lt;br /&gt;&lt;br /&gt;then regenerate the makefile for DBI-1.59&lt;br /&gt;perl Makefile.PL&lt;br /&gt;make&lt;br /&gt;&lt;br /&gt;to install DBD-Oracle-1.17&lt;br /&gt;perl Makefile.PL&lt;br /&gt;make&lt;br /&gt;make test&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;bash-2.05$ perl -v&lt;br /&gt;&lt;br /&gt;This is perl, v5.8.8 built for sun4-solaris-thread-multi&lt;br /&gt;(with 11 registered patches, see perl -V for more detail)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-7312651364754073855?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/7312651364754073855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=7312651364754073855' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7312651364754073855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7312651364754073855'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/01/installing-perl-in-solaris-8.html' title='Installing perl in solaris 8'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2715533231335660799</id><published>2008-01-18T13:15:00.000-08:00</published><updated>2008-01-18T13:20:12.539-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><category scheme='http://www.blogger.com/atom/ns#' term='lesson'/><title type='text'>rman online backup with exclude undo tablespace</title><content type='html'>Never try to disaster recover from a backup which was taken online with exclude undo.&lt;br /&gt;&lt;br /&gt;the experience was pretty bad while trying to rebuild a test system from production . tried all&lt;br /&gt;&lt;br /&gt; _ALLOW_RESETLOGS_CORRUPTION = TRUE&lt;br /&gt; _CORRUPTED_ROLLBACK_SEGMENTS =( )&lt;br /&gt;&lt;br /&gt;In UNIX you can issue this command to get the undo segment names:&lt;br /&gt;&lt;br /&gt; $ strings system01.dbf | grep _SYSSMU | cut -d $ -f 1 | sort -u&lt;br /&gt;&lt;br /&gt;recover database using backup controlfile until cancel&lt;br /&gt;&lt;br /&gt;alter database open resetlogs&lt;br /&gt;&lt;br /&gt;which through the bootstrap error&lt;br /&gt;&lt;br /&gt;SMON: enabling cache recovery&lt;br /&gt;Fri Jan 18 12:59:08 2008&lt;br /&gt;Errors in file /ofs/app/oracle/admin/sfods/udump/sfods_ora_29046.trc:&lt;br /&gt;ORA-00704: bootstrap process failure&lt;br /&gt;ORA-00604: error occurred at recursive SQL level 2&lt;br /&gt;ORA-00376: file 2 cannot be read at this time&lt;br /&gt;ORA-01110: data file 2: '/datastore/sfods03/undotbs01.dbf'&lt;br /&gt;Fri Jan 18 12:59:08 2008&lt;br /&gt;Error 704 happened during db open, shutting down database&lt;br /&gt;USER: terminating instance due to error 704&lt;br /&gt;Fri Jan 18 12:59:08 2008&lt;br /&gt;&lt;br /&gt;even tried to  adjust_scn  till level 7 but no help&lt;br /&gt;&lt;br /&gt;ALTER SESSION SET EVENTS '10015 TRACE NAME ADJUST_SCN LEVEL 1';&lt;br /&gt;&lt;br /&gt;So a lesson learned . no db full backup from now on using exclude undo.&lt;br /&gt;&lt;br /&gt;NO MORE EXCLUDE UNDO -&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-2715533231335660799?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2715533231335660799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2715533231335660799' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2715533231335660799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2715533231335660799'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/01/rman-online-backup-with-exclude-undo.html' title='rman online backup with exclude undo tablespace'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-7800365502359955155</id><published>2008-01-18T12:51:00.000-08:00</published><updated>2008-01-18T12:53:53.744-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='impdp'/><title type='text'>calculate exp dump size for oracle db</title><content type='html'>Thanks to Jared-&lt;br /&gt;&lt;br /&gt;select sum(bytes)/(1024*1024*1024) bytes&lt;br /&gt;from dba_segments&lt;br /&gt;where  segment_type not in (&lt;br /&gt;   'CACHE',&lt;br /&gt;   'ROLLBACK',&lt;br /&gt;   'TYPE2',&lt;br /&gt;   'UNDO',&lt;br /&gt;   'INDEX'&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;10% variation&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-7800365502359955155?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/7800365502359955155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=7800365502359955155' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7800365502359955155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7800365502359955155'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/01/calculate-exp-dump-size-for-oracle-db.html' title='calculate exp dump size for oracle db'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-6073359996673010762</id><published>2008-01-17T16:16:00.000-08:00</published><updated>2008-01-17T17:46:36.488-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fuser'/><title type='text'>df shows 100% on a empty filesystem</title><content type='html'>In one of my oracle 10gR2 db on sunos8 server  even though the  archivelog filesystem was empty&lt;br /&gt;but still df shows that it is 100% . so I had to do the below with the help of oracle-l&lt;br /&gt;&lt;br /&gt;with  Lisa &lt;span class="HcCDpe"&gt;&lt;span class="lDACoc"&gt;Brandenburg's advice I did a&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;font-size:78%;"&gt;&lt;b&gt;alter system set log_archive_max_processes=1  . which cleared arch1 process from&lt;br /&gt;/ofs/archlogs01 . but still the arch0 process was active on this . which I could not kill but that brought down the filesystem from 100% to 52%. &lt;br /&gt;&lt;br /&gt;I had to use fuser,&lt;br /&gt;&lt;br /&gt;then on Tanel Podar's Advice I changed the archivelog moving script to check for fuser&lt;br /&gt;&lt;br /&gt;#!/usr/bin/bash&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ARCH_DEST=/ofs/archlogs02/oracle/PRRS&lt;br /&gt;BACKUP_DEST=/obackup/oracle/PRRS/archlogs&lt;br /&gt;for i in $ARCH_DEST/*.log ; do&lt;br /&gt; echo "testing fuser" `fuser $i`&lt;br /&gt;    if [ -t  `fuser $i`  ] ; then&lt;br /&gt;        mv $i $BACKUP_DEST&lt;br /&gt;        echo "File  $i is not open"&lt;br /&gt;    else&lt;br /&gt;        echo "`date` File $i still open..."&lt;br /&gt;    fi&lt;br /&gt;&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;exit 0&lt;br /&gt;&lt;br /&gt;I had to use lsof to check the active process on the server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-6073359996673010762?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/6073359996673010762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=6073359996673010762' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6073359996673010762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6073359996673010762'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/01/df-shows-100-on-empty-filesystem.html' title='df shows 100% on a empty filesystem'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-9046145297969581428</id><published>2008-01-14T17:13:00.000-08:00</published><updated>2008-01-14T17:17:22.522-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='grid control'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>opmnctl hangs  while trying to start the grid control</title><content type='html'>after switching the O/S from suse 9 to RH 5  when I try to start the opmnctl  it just hanged . and then upon investigation around the log file I found that it do not find few .so files. so just installing those dependent  rpms the grid worked fine .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-9046145297969581428?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/9046145297969581428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=9046145297969581428' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/9046145297969581428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/9046145297969581428'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2008/01/opmnctl-hangs-while-trying-to-start.html' title='opmnctl hangs  while trying to start the grid control'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4038103899568973401</id><published>2007-12-20T15:44:00.001-08:00</published><updated>2007-12-20T15:46:10.990-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='temp'/><category scheme='http://www.blogger.com/atom/ns#' term='oradebug'/><title type='text'>TEMP space error</title><content type='html'>dealing with ORA-01652 : unable to extend temp segment by 128 in tablespace FCPTEST&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;alter system set events '1652 trace name errorstack level 1';&lt;br /&gt;&lt;br /&gt;ALTER SESSION SET EVENTS '1652 trace name errorstack level 1 ';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;alter system set events '1652 trace name errorstack level 1 ';&lt;br /&gt;alter system set events '1652 trace name errorstack off ';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To deactivate:&lt;br /&gt;&lt;br /&gt;ALTER SESSION SET EVENTS '1652 trace name context off';&lt;br /&gt;ALTER SYSTEM SET EVENTS '1652 trace name context off';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;monitoring sort space by statement-&lt;br /&gt;SELECT   S.sid || ',' || S.serial# sid_serial, S.username,&lt;br /&gt;         T.blocks * TBS.block_size / 1024 / 1024 mb_used, T.tablespace,&lt;br /&gt;         T.sqladdr address, Q.hash_value, Q.sql_text&lt;br /&gt;FROM     v$sort_usage T, v$session S, v$sqlarea Q, dba_tablespaces TBS&lt;br /&gt;WHERE    T.session_addr = S.saddr&lt;br /&gt;AND      T.sqladdr = Q.address (+)&lt;br /&gt;AND      T.tablespace = TBS.tablespace_name&lt;br /&gt;ORDER BY S.sid;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; alter database tempfile '/metrix/mtrx01/oracle/mtrx/temp01.dbf' resize 8G;&lt;br /&gt;&lt;br /&gt;monitoring sort space by session-&lt;br /&gt;SELECT   S.sid || ',' || S.serial# sid_serial, S.username, S.osuser, P.spid,&lt;br /&gt;         S.module, S.program,&lt;br /&gt;         SUM (T.blocks) * TBS.block_size / 1024 / 1024 mb_used, T.tablespace,&lt;br /&gt;         COUNT(*) sort_ops&lt;br /&gt;FROM     v$sort_usage T, v$session S, dba_tablespaces TBS, v$process P&lt;br /&gt;WHERE    T.session_addr = S.saddr&lt;br /&gt;AND      S.paddr = P.addr&lt;br /&gt;AND      T.tablespace = TBS.tablespace_name&lt;br /&gt;GROUP BY S.sid, S.serial#, S.username, S.osuser, P.spid, S.module,&lt;br /&gt;         S.program, TBS.block_size, T.tablespace&lt;br /&gt;ORDER BY sid_serial;&lt;br /&gt;&lt;br /&gt;monitoring temporary segments&lt;br /&gt;SELECT   A.tablespace_name tablespace, D.mb_total,&lt;br /&gt;         SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_used,&lt;br /&gt;         D.mb_total - SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_free&lt;br /&gt;FROM     v$sort_segment A,&lt;br /&gt;         (&lt;br /&gt;         SELECT   B.name, C.block_size, SUM (C.bytes) / 1024 / 1024 mb_total&lt;br /&gt;         FROM     v$tablespace B, v$tempfile C&lt;br /&gt;         WHERE    B.ts#= C.ts#&lt;br /&gt;         GROUP BY B.name, C.block_size&lt;br /&gt;         ) D&lt;br /&gt;WHERE    A.tablespace_name = D.name&lt;br /&gt;GROUP by A.tablespace_name, D.mb_total;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Obtain the Oracle process identifier or the Operating System process&lt;br /&gt;   identifier (SPID) from v$process:&lt;br /&gt;&lt;br /&gt;       &gt;  sqlplus /nolog&lt;br /&gt;       SQL&gt; connect / as sysdba&lt;br /&gt;       SQL&gt; select pid, spid, username from v$process;&lt;br /&gt;&lt;br /&gt;               PID    SPID   USERNAME&lt;br /&gt;               ----   -----  --------&lt;br /&gt;               8      25807  oracle&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;2. Attach to the process using ORADEBUG.&lt;br /&gt;&lt;br /&gt;   Using the Oracle process identifier:&lt;br /&gt;&lt;br /&gt;       SQL&gt; oradebug setorapid 8&lt;br /&gt;&lt;br /&gt;       Unix process pid: 25807, image: oracleV804&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   - or - &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;   Using the Operating System process identifier:&lt;br /&gt;&lt;br /&gt;       SQL&gt; oradebug setospid 25807&lt;br /&gt;&lt;br /&gt;       Oracle pid: 8, Unix process pid: 25807, image: oracleV804&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;3. Turn on SQL Trace for the session.&lt;br /&gt;&lt;br /&gt;       SQL&gt; oradebug event 10046 trace name context forever, level 12&lt;br /&gt;&lt;br /&gt;       Statement processed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Turn off the SQL trace for the session. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       SQL&gt; oradebug event 10046 trace name context off&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. Format trace file using TKPROF.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4038103899568973401?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4038103899568973401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4038103899568973401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4038103899568973401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4038103899568973401'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/temp-space-error.html' title='TEMP space error'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-3784349296350035697</id><published>2007-12-19T14:02:00.000-08:00</published><updated>2007-12-19T14:03:13.508-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='grid control'/><title type='text'>grid control agent refresh</title><content type='html'>1. Stop the agent&lt;br /&gt;&lt;agent_home&gt;/bin/emctl stop agent&lt;br /&gt;&lt;br /&gt;2. Clean start the agent:&lt;br /&gt;&lt;br /&gt;2a Delete current upload and state files&lt;br /&gt;&lt;br /&gt;rm -r &lt;agent_home&gt;/sysman/emd/state/*&lt;br /&gt;rm -r &lt;agent_home&gt;/sysman/emd/collection/*&lt;br /&gt;rm -r &lt;agent_home&gt;/sysman/emd/upload/*&lt;br /&gt;rm &lt;agent_home&gt;/sysman/emd/lastupld.xml&lt;br /&gt;rm &lt;agent_home&gt;/sysman/emd/agntstmp.txt&lt;br /&gt;rm &lt;agent_home&gt;/sysman/emd/blackouts.xml&lt;br /&gt;rm &lt;agent_home&gt;/sysman/emd/protocol.ini&lt;br /&gt;&lt;br /&gt;2b Start the agent&lt;br /&gt;&lt;br /&gt;&lt;agent_home&gt;/bin/emctl start agent&lt;br /&gt;&lt;br /&gt;2c Issue an agent clearstate from the agent home&lt;br /&gt;&lt;br /&gt;&lt;agent_home&gt;/bin/emctl clearstate agent&lt;br /&gt;&lt;br /&gt;3. Resecure the agent (if the agent was secured in the first place).&lt;br /&gt;&lt;br /&gt;&lt;agent_home&gt;/bin/emctl secure agent &lt;registration&gt;&lt;br /&gt;&lt;br /&gt;4. Force an upload to the OMS&lt;br /&gt;&lt;br /&gt;&lt;agent_home&gt;/bin/emctl upload&lt;br /&gt;&lt;br /&gt;5. Wait 2 minutes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/metrix/app/oracle/product/agent10g/bin/emctl stop agent&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;rm -r /metrix/app/oracle/product/agent10g/sysman/emd/state/*&lt;br /&gt;rm -r /metrix/app/oracle/product/agent10g/sysman/emd/collection/*&lt;br /&gt;rm -r /metrix/app/oracle/product/agent10g/sysman/emd/upload/*&lt;br /&gt;rm /metrix/app/oracle/product/agent10g/sysman/emd/lastupld.xml&lt;br /&gt;rm /metrix/app/oracle/product/agent10g/sysman/emd/agntstmp.txt&lt;br /&gt;rm /metrix/app/oracle/product/agent10g/sysman/emd/blackouts.xml&lt;br /&gt;rm /metrix/app/oracle/product/agent10g/sysman/emd/protocol.ini&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/metrix/app/oracle/product/agent10g/bin/emctl start agent&lt;br /&gt;&lt;br /&gt;/metrix/app/oracle/product/agent10g/bin/emctl clearstate agent&lt;br /&gt;&lt;br /&gt;/metrix/app/oracle/product/agent10g/bin/emctl secure agent oracle10g&lt;br /&gt;&lt;br /&gt;/metrix/app/oracle/product/agent10g/bin/emctl upload&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-3784349296350035697?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/3784349296350035697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=3784349296350035697' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3784349296350035697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3784349296350035697'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/grid-control-agent-refresh.html' title='grid control agent refresh'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2102384758530960854</id><published>2007-12-19T11:44:00.000-08:00</published><updated>2007-12-19T11:47:55.917-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><title type='text'>rman to restore archivelog from backupset and synch a standby db</title><content type='html'>To list the backup sets of the archive logs. Where or which&lt;br /&gt;sets we have the archive logs.&lt;br /&gt;&lt;br /&gt;RMAN&gt;&lt;br /&gt;list backup of archivelog logseq 5594;&lt;br /&gt;&lt;br /&gt;BP Key: 1292331   Status: AVAILABLE  Compressed: NO  Tag: MANUAL_HOT_BKP_AL_ON_1213071620&lt;br /&gt;        Piece Name: /obackup/oracle/mtrx/hot/q4j3gsbs_1_1&lt;br /&gt;&lt;br /&gt;  List of Archived Logs in backup set 1292328&lt;br /&gt;  Thrd Seq     Low SCN    Low Time  Next SCN   Next Time&lt;br /&gt;  ---- ------- ---------- --------- ---------- ---------&lt;br /&gt;  1    5594    21533054412 13-DEC-07 21533150295 13-DEC-07&lt;br /&gt;&lt;br /&gt;cd /obackup/oracle/mtrx/hot/&lt;br /&gt;ls -l | grep -v mtrx&lt;br /&gt;&lt;br /&gt;will show all the files and rsync to the standby server:&lt;br /&gt;&lt;br /&gt;for x in `ls -l | grep -v mtrx`&lt;br /&gt;do&lt;br /&gt;   rsync -avvzrlpogt --stats --progress --rsync-path=/opt/csw/bin/rsync \&lt;br /&gt;   $x -e ssh oracle@asb-con-dbs-001:/obackup/oracle/mtrx/hot/&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;NOW on the standby server: asb-con-dbs-001&lt;br /&gt;&lt;br /&gt;RMAN&gt; list backup of archivelog sequence between 5594 and 5884;&lt;br /&gt;&lt;br /&gt;Allow Rman to recover the database it will restore the archive&lt;br /&gt;logs in the original place it picked them up.&lt;br /&gt;you can verify by using ls -l /metrix/archlogs01/oracle/&lt;br /&gt;&lt;br /&gt;Now to remove the old archive logs from standby db using rman:&lt;br /&gt;DELETE noprompt ARCHIVELOG ALL BACKED UP 1 TIMES TO DEVICE TYPE disk;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-2102384758530960854?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2102384758530960854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2102384758530960854' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2102384758530960854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2102384758530960854'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/rman-to-restore-archivelog-from.html' title='rman to restore archivelog from backupset and synch a standby db'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-3893712448878693957</id><published>2007-12-18T15:05:00.001-08:00</published><updated>2007-12-18T15:05:24.752-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><title type='text'>rman compressed backupset</title><content type='html'>CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET&lt;br /&gt;&lt;br /&gt;configure device type disk clear;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-3893712448878693957?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/3893712448878693957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=3893712448878693957' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3893712448878693957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3893712448878693957'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/rman-compressed-backupset.html' title='rman compressed backupset'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8157261905420714603</id><published>2007-12-14T19:06:00.000-08:00</published><updated>2007-12-14T19:41:42.039-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lesson'/><title type='text'>database recovery</title><content type='html'>Dec 13 after work hour 7pm-&lt;br /&gt;I had this task to move the datafile from one filesystem to another filesystem and change the names.this production db was not so big (only around 75gb+ ) so I started moving the file one by one . and it was getting late so my friend coworker Howard volunteered to move few files from the bottom while I am doing from the top of the list.  but while moving he moved one of the file USERS02.sun to USERS01.dbf  . so here the unforeseen thing happened and we just lost one of our datafile USERS01.dbf .&lt;br /&gt;&lt;br /&gt;and it has been not a while since we moved our backup strategy for this db to rman so as it was supposed to be on once a week hot full db backup and daily archivelog backup so i thought we might get it recovered and so I checked then the latest I could see was the Nov 28 backup which is almost 2 week old . so it was like I felt that we both might loose our job if we could not get this db up and running. &lt;br /&gt;&lt;br /&gt;well  I start to do a rman restore for the datafile  and it took like 2 hour to restore from the compressed backuppiece of Nove 28 backup. and now comes the hard part to recover it . as I found that we need almost 1000+ archive log file to do a complete recover. this db was running on a 100gb SAN.  so space also was a critical . so when I started rman recover it verified that all the log files are in disk ( archivelog backuppiece) . and it started restoring the log files from backuppiece which was in another /obackup file system to the 100gb /datastore . so I had to wait and watch as it restore and apply the archivelog and move back into the /obackup. and I also found that there was a 10gb temp file being used so we moved it to /obackup while the restore log process is going on .  and it lasted till 3am in the morning and we were done with recovering the db and it was up and running . we both just thanked god and left for home. and thanks to rman which saved our job .&lt;br /&gt;&lt;br /&gt;nov 28- rman hot backup&lt;br /&gt;&lt;br /&gt;there was a cold backup on dec 4 which we could not find immediatly accessible&lt;br /&gt;&lt;br /&gt;till dec 12 - rman log backup set&lt;br /&gt;&lt;br /&gt;startup mount&lt;br /&gt;&lt;br /&gt;restore datafile 25&lt;br /&gt;recover datafile 25&lt;br /&gt;&lt;br /&gt;alter database open .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;so in this process here are my learning.&lt;br /&gt;&lt;br /&gt;1- before i did the the rearranging of files I should have checked the backup available for the db&lt;br /&gt;2- mv is dangerous it is equally as dangerous as rm.&lt;br /&gt;3- size of a production db doesn't matter&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8157261905420714603?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8157261905420714603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8157261905420714603' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8157261905420714603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8157261905420714603'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/rman-restore.html' title='database recovery'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4765773333973934477</id><published>2007-12-13T14:40:00.000-08:00</published><updated>2007-12-13T15:24:22.538-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='streams'/><title type='text'>Oracle streams setup to copy schema in 10gR2</title><content type='html'>1- set up ARCHIVELOG  on both side&lt;br /&gt;1a- set up init parameter&lt;br /&gt; global_names=true&lt;br /&gt;job_queue_process=10 ( vary)&lt;br /&gt;streams_pool_size= 200mb&lt;br /&gt;&lt;br /&gt;2- set up streams admin  on both side&lt;br /&gt;&lt;pre&gt;CREATE TABLESPACE streams_tbs&lt;br /&gt;DATAFILE '/u01/app/oracle/oradata/&lt;br /&gt; TEST10G1/streams_tbs.dbf' SIZE 25M;&lt;br /&gt;&lt;br /&gt;CREATE USER strmadmin&lt;br /&gt;IDENTIFIED BY strmadmin&lt;br /&gt;DEFAULT TABLESPACE streams_tbs&lt;br /&gt;TEMPORARY TABLESPACE temp&lt;br /&gt;QUOTA UNLIMITED ON streams_tbs;&lt;br /&gt;&lt;br /&gt;GRANT CONNECT, RESOURCE, DBA&lt;br /&gt;TO strmadmin;&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt; DBMS_STREAMS_AUTH.GRANT_ADMIN_&lt;br /&gt;PRIVILEGE(&lt;br /&gt;   grantee         =&gt; 'strmadmin',   &lt;br /&gt;   grant_privileges =&gt; true);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;GRANT SELECT_CATALOG_ROLE&lt;br /&gt;TO strmadmin;&lt;br /&gt;GRANT SELECT ANY DICTIONARY&lt;br /&gt;TO strmadmin;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;3- set up supplemental log on both side -( it may not be needed . but not sure)&lt;br /&gt;4- create global name&lt;br /&gt; alter database rename global_name to devora.con.world;&lt;br /&gt; alter database rename global_name to testasm.con.world;&lt;br /&gt;&lt;br /&gt;4a- create db link  and test&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; create database link testasm.con.world&lt;br /&gt;   CONNECT TO strmadmin&lt;br /&gt;   identified by strmadmin&lt;br /&gt;   using 'testasm';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;create database link devora.con.world&lt;br /&gt;   CONNECT TO strmadmin&lt;br /&gt;   identified by strmadmin&lt;br /&gt;   using 'devora';&lt;br /&gt;&lt;br /&gt;5- create a directory on source side( testasm.con.world)&lt;br /&gt;&lt;br /&gt;create or replace directory admin as '/home/oracle/streams';&lt;br /&gt;&lt;br /&gt;6. run this script in source db (testasm )&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;  DBMS_STREAMS_ADM.MAINTAIN_SCHEMAS(&lt;br /&gt;    schema_names               =&gt;          'scott',&lt;br /&gt;    source_directory_object   =&gt; 'admin',&lt;br /&gt;    destination_directory_object   =&gt; 'admin',&lt;br /&gt;    source_database            =&gt;          'testasm.con.world',&lt;br /&gt;    destination_database       =&gt;          'devora.con.world',&lt;br /&gt;    perform_actions            =&gt;          false,&lt;br /&gt;    script_name              =&gt;   'schema_replication.sql',&lt;br /&gt;    script_directory_object  =&gt;       'admin',&lt;br /&gt;   dump_file_name           =&gt;'sc1.dmp',&lt;br /&gt; capture_name               =&gt;          'capture_scott',&lt;br /&gt;    capture_queue_table        =&gt;          'rep_capture_queue_table',&lt;br /&gt;    capture_queue_name         =&gt;          'rep_capture_queue',&lt;br /&gt;    capture_queue_user         =&gt;          null,&lt;br /&gt;    propagation_name           =&gt;          'prop_scott',&lt;br /&gt;    apply_name                 =&gt;          'apply_scott',&lt;br /&gt;    apply_queue_table          =&gt;         'rep_dest_queue_table',&lt;br /&gt;    apply_queue_name           =&gt;          'rep_dest_queue',&lt;br /&gt;    apply_queue_user           =&gt;          null,&lt;br /&gt;    log_file                   =&gt;          'exp.log',&lt;br /&gt;    bi_directional             =&gt;          false,&lt;br /&gt;    include_ddl                =&gt;          true,&lt;br /&gt;    instantiation      =&gt;   dbms_streams_adm.instantiation_schema_network&lt;br /&gt;&lt;br /&gt;    );&lt;br /&gt;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;it will creat a output schema_replication.sql in source db admin directory&lt;br /&gt;&lt;br /&gt;and then run the schema_replication.sql in source db   and then&lt;br /&gt;&lt;br /&gt;run the below script in source db( the only diff between the above and below script is  perform_actions            =&gt;          true, )&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;        DBMS_STREAMS_ADM.MAINTAIN_SCHEMAS(&lt;br /&gt;          schema_names               =&gt;          'scott',&lt;br /&gt;          source_directory_object   =&gt; 'admin',&lt;br /&gt;          destination_directory_object   =&gt; 'admin',&lt;br /&gt;          source_database            =&gt;          'testasm.con.world',&lt;br /&gt;          destination_database       =&gt;          'devora.con.world',&lt;br /&gt;          perform_actions            =&gt;          true,&lt;br /&gt;          script_name              =&gt;   'schema_replication.sql',&lt;br /&gt;         script_directory_object  =&gt;       'admin',&lt;br /&gt;         dump_file_name           =&gt;'sc1.dmp',&lt;br /&gt;       capture_name               =&gt;          'capture_scott',&lt;br /&gt;         capture_queue_table        =&gt;          'rep_capture_queue_table',&lt;br /&gt;        capture_queue_name         =&gt;          'rep_capture_queue',&lt;br /&gt;        capture_queue_user         =&gt;          null,&lt;br /&gt;        propagation_name           =&gt;          'prop_scott',&lt;br /&gt;        apply_name                 =&gt;          'apply_scott',&lt;br /&gt;        apply_queue_table          =&gt;         'rep_dest_queue_table',&lt;br /&gt;        apply_queue_name           =&gt;          'rep_dest_queue',&lt;br /&gt;        apply_queue_user           =&gt;          null,&lt;br /&gt;        log_file                   =&gt;          'exp.log',&lt;br /&gt;        bi_directional             =&gt;          false,&lt;br /&gt;        include_ddl                =&gt;          true,&lt;br /&gt;        instantiation      =&gt;   dbms_streams_adm.instantiation_schema_network&lt;br /&gt;        );&lt;br /&gt;   END;&lt;br /&gt;&lt;br /&gt;and then you may see data flowing from source to target.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4765773333973934477?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4765773333973934477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4765773333973934477' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4765773333973934477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4765773333973934477'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/oracle-streams-setup-to-copy-schema-in.html' title='Oracle streams setup to copy schema in 10gR2'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8911633687816537796</id><published>2007-12-13T04:59:00.000-08:00</published><updated>2007-12-13T05:00:16.922-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Free Linux Courses Online</title><content type='html'>&lt;a href="http://education-portal.com/articles/10_Sites_Offering_Free_Linux_Courses_Online.html"&gt;http://education-portal.com/articles/10_Sites_Offering_Free_Linux_Courses_Online.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8911633687816537796?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8911633687816537796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8911633687816537796' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8911633687816537796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8911633687816537796'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/free-linux-courses-online.html' title='Free Linux Courses Online'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-3776798976183684947</id><published>2007-12-12T13:29:00.000-08:00</published><updated>2008-01-07T16:26:26.308-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='impdp'/><title type='text'>copy schema using dbms_datapump</title><content type='html'>declare&lt;br /&gt;hand number;&lt;br /&gt;js  varchar2(9); -- COMPLETED or STOPPED&lt;br /&gt;begin&lt;br /&gt;&lt;br /&gt;--   and owner in ('BACKUP','GATEKEEPER','REFDATA','TRANSDATA','WHSUSR','WHS_VIEWER')&lt;br /&gt;FOR d1 IN ( select object_type, owner, object_name&lt;br /&gt;   from all_objects&lt;br /&gt;   where object_type in&lt;br /&gt;     ('FUNCTION','PACKAGE','PROCEDURE','SEQUENCE','SYNONYM','VIEW')&lt;br /&gt;   and owner in ('ACTIONLIST23')&lt;br /&gt; )&lt;br /&gt; LOOP&lt;br /&gt;   execute immediate 'drop '||d1.object_type||' '||d1.owner||'.'||d1.object_name ;&lt;br /&gt; END LOOP ;&lt;br /&gt;&lt;br /&gt; -- then run datapump import itself&lt;br /&gt; hand := dbms_datapump.open (&lt;br /&gt;   operation    =&gt; 'IMPORT' ,&lt;br /&gt;   job_mode     =&gt; 'SCHEMA' ,&lt;br /&gt;   remote_link  =&gt; 'prrs_link' ) ;&lt;br /&gt;&lt;br /&gt; dbms_datapump.metadata_filter (&lt;br /&gt;   handle       =&gt; hand ,&lt;br /&gt;   name         =&gt; 'SCHEMA_LIST' ,&lt;br /&gt;   value        =&gt; '''ACTIONLIST''');&lt;br /&gt;&lt;br /&gt; dbms_datapump.metadata_remap(hand,'REMAP_SCHEMA','ACTIONLIST','ACTIONLIST23');&lt;br /&gt;&lt;br /&gt; dbms_datapump.set_parameter (&lt;br /&gt;   handle       =&gt; hand ,&lt;br /&gt;   name         =&gt; 'TABLE_EXISTS_ACTION' ,&lt;br /&gt;   value        =&gt; 'REPLACE' ) ;&lt;br /&gt;&lt;br /&gt; dbms_datapump.start_job(hand) ;&lt;br /&gt;&lt;br /&gt; /* wait for the job to finish */&lt;br /&gt;--  dbms_datapump.wait_for_job(hand, js);&lt;br /&gt; dbms_datapump.detach(hand) ;&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;things to check&lt;br /&gt;1- global_names ( false? )&lt;br /&gt;2-  with a loopback database link to copy inside the same db.&lt;br /&gt;create public database link loopback&lt;br /&gt;connect to system&lt;br /&gt;identified by manager&lt;br /&gt;using&lt;br /&gt;'(DESCRIPTION =&lt;br /&gt; (ADDRESS_LIST =&lt;br /&gt;   (ADDRESS = (PROTOCOL = TCP)(HOST = 192.16.4.119)(PORT = 1521))&lt;br /&gt; )&lt;br /&gt; (CONNECT_DATA =&lt;br /&gt;   (SERVICE_NAME = p4cl)&lt;a href="javascript:void(0)" tabindex="10" onclick="return false;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;   (INSTANCE_NAME = p4cl)&lt;br /&gt; )&lt;br /&gt;)'&lt;br /&gt;&lt;br /&gt;example#2&lt;br /&gt;create public database link loopback&lt;br /&gt;connect to system&lt;br /&gt;identified by manager&lt;br /&gt;using&lt;br /&gt;'(DESCRIPTION =&lt;br /&gt;(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.4.139)(PORT = 1521))&lt;br /&gt;(CONNECT_DATA =&lt;br /&gt;(SERVER = DEDICATED)(SID = p4cl)))';&lt;br /&gt;&lt;br /&gt;3- monitoring the progress of dp job $impdp system/manager attach&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-3776798976183684947?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/3776798976183684947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=3776798976183684947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3776798976183684947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3776798976183684947'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/copy-schema-using-dbmsdatapump.html' title='copy schema using dbms_datapump'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-6412724830909811031</id><published>2007-12-09T22:08:00.000-08:00</published><updated>2007-12-09T22:09:18.911-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><title type='text'>rman cold backup for read only tablespace</title><content type='html'>CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET;&lt;br /&gt;CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/obackup/oracle/PRRS/hot/%U';&lt;br /&gt;&lt;br /&gt;backup full force  tag rman_cold_backup  database ;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-6412724830909811031?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/6412724830909811031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=6412724830909811031' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6412724830909811031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6412724830909811031'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/rman-cold-backup-for-read-only.html' title='rman cold backup for read only tablespace'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5864167273110889994</id><published>2007-12-07T16:25:00.000-08:00</published><updated>2007-12-07T16:27:21.216-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>FAST_START_MTTR_TARGET</title><content type='html'>To enable MTTR(mean time to recover) advisory , set the init parameter&lt;br /&gt;1- STATISTICS_LEVEL ( typical or ALL)&lt;br /&gt;2- FAST_START_MTTR_TARGET&lt;br /&gt;&lt;br /&gt;v$MTTR_TARGET_ADVICE  shows the advisory information collected&lt;br /&gt;&lt;br /&gt;Once you enable FAST_START_MTTR_TARGET  disable (set to 0 ) or&lt;br /&gt;remove the below parameters&lt;br /&gt;&lt;br /&gt;1 - LOG_CHECKPOINT_INTERVAL&lt;br /&gt;2 - LOG_CHECKPOINT_TIMEOUT&lt;br /&gt;3 - FAST_START_IO_TARGET&lt;br /&gt;&lt;br /&gt;fast-start checkpointing  influences&lt;br /&gt;&lt;br /&gt;1- instance and crash recovery times reduces&lt;br /&gt;2- number of physical writes to the disk increases&lt;br /&gt;&lt;br /&gt;FAST_START_MTTR_TARGET is designed to control the time it takes the database to do crash recovery.With fast-start checkpointing, Oracle automatically advances the thread checkpoint to control the amount of redo needed for recovery and limit the number of dirty buffers remaining in the cache so that recovery time is bounded.&lt;br /&gt;&lt;br /&gt;the main components of crash recovery are :&lt;br /&gt;1- instance startup&lt;br /&gt;2- opening of all database files&lt;br /&gt;3- cache recovery ( rolling forward)&lt;br /&gt;4- transaction recovery( rolling back)- it is done by smon in the background along with normal user activity after the database is opened.so it is not factored into fast-start checkpointing calc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For example, in a large environment it may take 50 seconds to start up the instance&lt;br /&gt;and 10 seconds to open and set up all the datafiles. The final component is cache recovery,&lt;br /&gt;or the roll forward phase. With FAST_START_MTTR_TARGET set to 180, the Oracle server&lt;br /&gt;uses fast-start checkpointing to limit the cache recovery time to 120 seconds.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-5864167273110889994?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5864167273110889994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5864167273110889994' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5864167273110889994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5864167273110889994'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/faststartmttrtarget.html' title='FAST_START_MTTR_TARGET'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8540738333968976555</id><published>2007-12-05T19:36:00.000-08:00</published><updated>2007-12-05T19:44:21.278-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>enable archivelog - asm instance</title><content type='html'>alter system set log_archive_dest_1='location=+DGRP1/testasm/archlog' scope=spfile;&lt;br /&gt;alter system set LOG_ARCHIVE_FORMAT = 'testasm%t_%s_%r.log' scope=spfile;&lt;br /&gt;alter system set log_archive_start=TRUE scope=spfile;&lt;br /&gt;&lt;br /&gt;startup mount&lt;br /&gt;&lt;br /&gt;alter database archivelog&lt;br /&gt;&lt;br /&gt;alter system reset log_archive_start scope=spfile sid='*';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;log_archive_start is deprecated.&lt;br /&gt;&lt;br /&gt;make sure to create the +DGRP1/testasm/archlog  directory using asmcmd&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8540738333968976555?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8540738333968976555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8540738333968976555' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8540738333968976555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8540738333968976555'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/enable-archivelog-asm-instance.html' title='enable archivelog - asm instance'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-7584796666662372619</id><published>2007-12-05T17:01:00.001-08:00</published><updated>2007-12-05T17:02:15.173-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>rman backup for a norchivelog db in ASM</title><content type='html'>rman backupset in ASM for a noarchivelog db&lt;br /&gt;&lt;br /&gt;use asmcmd in ASM instance to create the directory +DGRP1/testasm/rman&lt;br /&gt;&lt;br /&gt;then from target db&lt;br /&gt;&lt;br /&gt;configure controlfile autobackup on;&lt;br /&gt;configure controlfile autobackup format for device type disk to '+DGRP1/testasm/rman/%F';&lt;br /&gt;configure channel device type disk format '+DGRP1/testasm/rman/%U';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;startup mount&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RMAN&gt; backup database;&lt;br /&gt;&lt;br /&gt;Starting backup at 05-DEC-07&lt;br /&gt;using channel ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: starting full datafile backupset&lt;br /&gt;channel ORA_DISK_1: specifying datafile(s) in backupset&lt;br /&gt;input datafile fno=00001 name=+DGRP1/testasm/datafile/system.257.640537143&lt;br /&gt;input datafile fno=00003 name=+DGRP1/testasm/datafile/sysaux.258.640537199&lt;br /&gt;input datafile fno=00002 name=+DGRP1/testasm/datafile/undotbs1.259.640537235&lt;br /&gt;input datafile fno=00004 name=+DGRP1/testasm/datafile/users.260.640537243&lt;br /&gt;channel ORA_DISK_1: starting piece 1 at 05-DEC-07&lt;br /&gt;channel ORA_DISK_1: finished piece 1 at 05-DEC-07&lt;br /&gt;piece handle=+DGRP1/testasm/rman/09j2rria_1_1 tag=TAG20071205T165848 comment=NONE&lt;br /&gt;channel ORA_DISK_1: backup set complete, elapsed time: 00:00:55&lt;br /&gt;Finished backup at 05-DEC-07&lt;br /&gt;&lt;br /&gt;Starting Control File and SPFILE Autobackup at 05-DEC-07&lt;br /&gt;piece handle=+DGRP1/testasm/rman/c-4233323468-20071205-00 comment=NONE&lt;br /&gt;Finished Control File and SPFILE Autobackup at 05-DEC-07&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-7584796666662372619?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/7584796666662372619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=7584796666662372619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7584796666662372619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7584796666662372619'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/rman-backup-for-norchivelog-db-in-asm.html' title='rman backup for a norchivelog db in ASM'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-7573008319652129104</id><published>2007-12-05T16:25:00.000-08:00</published><updated>2007-12-05T16:26:44.154-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>migrating from a non-asm to Oracle asm instance</title><content type='html'>Preparing a databse to migrate into ASM&lt;br /&gt;&lt;br /&gt;1- determine the dbid&lt;br /&gt;&lt;br /&gt;DBID=4233323468&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2- check all the files&lt;br /&gt;&lt;br /&gt;-- +----------------------------------------------------------------------------+&lt;br /&gt;-- |                          Jeffrey M. Hunter                                 |&lt;br /&gt;-- |                      jhunter@idevelopment.info                             |&lt;br /&gt;-- |                         www.idevelopment.info                              |&lt;br /&gt;-- |----------------------------------------------------------------------------|&lt;br /&gt;-- |      Copyright (c) 1998-2007 Jeffrey M. Hunter. All rights reserved.       |&lt;br /&gt;-- |----------------------------------------------------------------------------|&lt;br /&gt;-- | DATABASE : Oracle                                                          |&lt;br /&gt;-- | FILE     : dba_files_all.sql                                               |&lt;br /&gt;-- | CLASS    : Database Administration                                         |&lt;br /&gt;-- | PURPOSE  : Reports on all data files, online redo log files, and control   |&lt;br /&gt;-- |            files within the database.                                      |&lt;br /&gt;-- | NOTE     : As with any code, ensure to test this script in a development   |&lt;br /&gt;-- |            environment before attempting to run it in production.          |&lt;br /&gt;-- +----------------------------------------------------------------------------+&lt;br /&gt;&lt;br /&gt;SET LINESIZE 147&lt;br /&gt;SET PAGESIZE 9999&lt;br /&gt;SET VERIFY   OFF&lt;br /&gt;&lt;br /&gt;COLUMN tablespace      FORMAT a29             HEADING 'Tablespace Name / File Class'&lt;br /&gt;COLUMN filename        FORMAT a64             HEADING 'Filename'&lt;br /&gt;COLUMN filesize        FORMAT 99,999,999,999  HEADING 'File Size'&lt;br /&gt;COLUMN autoextensible  FORMAT a4              HEADING 'Auto'&lt;br /&gt;COLUMN increment_by    FORMAT 99,999,999,999  HEADING 'Next'&lt;br /&gt;COLUMN maxbytes        FORMAT 99,999,999,999  HEADING 'Max'&lt;br /&gt;&lt;br /&gt;BREAK ON report&lt;br /&gt;COMPUTE SUM OF filesize  ON report&lt;br /&gt;&lt;br /&gt;SELECT /*+ ordered */&lt;br /&gt;    d.tablespace_name                     tablespace&lt;br /&gt;  , d.file_name                           filename&lt;br /&gt;  , d.bytes                               filesize&lt;br /&gt;  , d.autoextensible                      autoextensible&lt;br /&gt;  , d.increment_by * e.value              increment_by&lt;br /&gt;  , d.maxbytes                            maxbytes&lt;br /&gt;FROM&lt;br /&gt;    sys.dba_data_files d&lt;br /&gt;  , v$datafile v&lt;br /&gt;  , (SELECT value&lt;br /&gt;     FROM v$parameter&lt;br /&gt;     WHERE name = 'db_block_size') e&lt;br /&gt;WHERE&lt;br /&gt;  (d.file_name = v.name)&lt;br /&gt;UNION&lt;br /&gt;SELECT&lt;br /&gt;    d.tablespace_name                     tablespace&lt;br /&gt;  , d.file_name                           filename&lt;br /&gt;  , d.bytes                               filesize&lt;br /&gt;  , d.autoextensible                      autoextensible&lt;br /&gt;  , d.increment_by * e.value              increment_by&lt;br /&gt;  , d.maxbytes                            maxbytes&lt;br /&gt;FROM&lt;br /&gt;    sys.dba_temp_files d&lt;br /&gt;  , (SELECT value&lt;br /&gt;     FROM v$parameter&lt;br /&gt;     WHERE name = 'db_block_size') e&lt;br /&gt;UNION&lt;br /&gt;SELECT&lt;br /&gt;    '[ ONLINE REDO LOG ]'&lt;br /&gt;  , a.member&lt;br /&gt;  , b.bytes&lt;br /&gt;  , null&lt;br /&gt;  , TO_NUMBER(null)&lt;br /&gt;  , TO_NUMBER(null)&lt;br /&gt;FROM&lt;br /&gt;    v$logfile a&lt;br /&gt;  , v$log b&lt;br /&gt;WHERE&lt;br /&gt;    a.group# = b.group#&lt;br /&gt;UNION&lt;br /&gt;SELECT&lt;br /&gt;    '[ CONTROL FILE    ]'&lt;br /&gt;  , a.name&lt;br /&gt;  , TO_NUMBER(null)&lt;br /&gt;  , null&lt;br /&gt;  , TO_NUMBER(null)&lt;br /&gt;  , TO_NUMBER(null)&lt;br /&gt;FROM&lt;br /&gt;    v$controlfile a&lt;br /&gt;ORDER BY 1,2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Generate this script in case you need to revert back to non-asm  file.&lt;br /&gt;&lt;br /&gt;set serveroutput on;&lt;br /&gt;declare&lt;br /&gt;    cursor df is select file#, name from v$datafile;&lt;br /&gt;begin&lt;br /&gt;    dbms_output.put_line('run');&lt;br /&gt;    dbms_output.put_line('{');&lt;br /&gt;    for dfrec in df loop&lt;br /&gt;        dbms_output.put_line('set newname for datafile ' ||&lt;br /&gt;            dfrec.file# || ' to ''' || dfrec.name ||''' ;');&lt;br /&gt;    end loop;&lt;br /&gt;    dbms_output.put_line('restore database;');&lt;br /&gt;    dbms_output.put_line('switch all;');&lt;br /&gt;    dbms_output.put_line('}');&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;run&lt;br /&gt;{&lt;br /&gt;set newname for datafile 1 to '/ofs/app/oracle/oradata/testasm/system01.dbf' ;&lt;br /&gt;set newname for datafile 2 to '/ofs/app/oracle/oradata/testasm/undotbs01.dbf' ;&lt;br /&gt;set newname for datafile 3 to '/ofs/app/oracle/oradata/testasm/sysaux01.dbf' ;&lt;br /&gt;set newname for datafile 4 to '/ofs/app/oracle/oradata/testasm/users01.dbf' ;&lt;br /&gt;restore database;&lt;br /&gt;switch all;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3- change the target db parameter to point to ASM&lt;br /&gt;&lt;br /&gt;Also note that the target database uses an SPFILE on the local file system:&lt;br /&gt;&lt;br /&gt;    $ORACLE_HOME/dbs/spfileTESTDB.ora&lt;br /&gt;&lt;br /&gt;Use the following steps to fully migrate an existing Oracle database from a local file system to ASM:&lt;br /&gt;&lt;br /&gt;   1. With the target database open, edit the initialization parameter control_files and db_create_file_dest to point to the ASM disk group +TESTDB_DATA1. Also configure db_recovery_file_dest to point to the ASM disk group +FLASH_RECOVERY_AREA:&lt;br /&gt;&lt;br /&gt;      SQL&gt; ALTER SYSTEM SET control_files='+DGRP1' SCOPE=spfile;&lt;br /&gt;&lt;br /&gt;      System altered.&lt;br /&gt;&lt;br /&gt;      SQL&gt; ALTER SYSTEM SET db_create_file_dest='+DGRP1' SCOPE=spfile;&lt;br /&gt;&lt;br /&gt;      System altered.&lt;br /&gt;&lt;br /&gt;      SQL&gt; ALTER SYSTEM SET db_recovery_file_dest='+FLASH_RECOVERY_AREA' SCOPE=spfile;&lt;br /&gt;&lt;br /&gt;      System altered.&lt;br /&gt; SQL&gt; SHUTDOWN immediate;&lt;br /&gt;Database closed.&lt;br /&gt;Database dismounted.&lt;br /&gt;ORACLE instance shut down.&lt;br /&gt;SQL&gt; startup nomount;&lt;br /&gt;ORACLE instance started.&lt;br /&gt;&lt;br /&gt;Total System Global Area  167772160 bytes&lt;br /&gt;Fixed Size                  1977176 bytes&lt;br /&gt;Variable Size              83891368 bytes&lt;br /&gt;Database Buffers           75497472 bytes&lt;br /&gt;Redo Buffers                6406144 bytes&lt;br /&gt;S    &lt;br /&gt; bash-2.05$ rman target /&lt;br /&gt;&lt;br /&gt;Recovery Manager: Release 10.2.0.1.0 - Production on Wed Dec 5 14:55:14 2007&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;connected to target database: testasm (not mounted)&lt;br /&gt;&lt;br /&gt;RMAN&gt;  restore controlfile from '/ofs/app/oracle/oradata/testasm/control01.ctl';&lt;br /&gt;S&lt;br /&gt;Starting restore at 05-DEC-07&lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: sid=156 devtype=DISK&lt;br /&gt;&lt;br /&gt;channel ORA_DISK_1: copied control file copy&lt;br /&gt;output filename=+DGRP1/testasm/controlfile/backup.256.640536949&lt;br /&gt;Finished restore at 05-DEC-07&lt;br /&gt;    &lt;br /&gt;     &lt;br /&gt; rman &gt; restore controlfile from '/ofs/app/oracle/oradata/testasm/control01.ctl';&lt;br /&gt;&lt;br /&gt;sql&gt; alter database mount;&lt;br /&gt;&lt;br /&gt;rman&gt; BACKUP AS COPY DATABASE FORMAT '+DGRP1';&lt;br /&gt;&lt;br /&gt;Starting backup at 05-DEC-07&lt;br /&gt;allocated channel: ORA_DISK_1&lt;br /&gt;channel ORA_DISK_1: sid=156 devtype=DISK&lt;br /&gt;channel ORA_DISK_1: starting datafile copy&lt;br /&gt;input datafile fno=00001 name=/ofs/app/oracle/oradata/testasm/system01.dbf&lt;br /&gt;output filename=+DGRP1/testasm/datafile/system.257.640537143 tag=TAG20071205T145902 recid=1 stamp=640537194&lt;br /&gt;channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:55&lt;br /&gt;channel ORA_DISK_1: starting datafile copy&lt;br /&gt;input datafile fno=00003 name=/ofs/app/oracle/oradata/testasm/sysaux01.dbf&lt;br /&gt;output filename=+DGRP1/testasm/datafile/sysaux.258.640537199 tag=TAG20071205T145902 recid=2 stamp=640537226&lt;br /&gt;channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35&lt;br /&gt;channel ORA_DISK_1: starting datafile copy&lt;br /&gt;input datafile fno=00002 name=/ofs/app/oracle/oradata/testasm/undotbs01.dbf&lt;br /&gt;output filename=+DGRP1/testasm/datafile/undotbs1.259.640537235 tag=TAG20071205T145902 recid=3 stamp=640537238&lt;br /&gt;chann&lt;br /&gt;&lt;br /&gt;RMAN&gt; switch database to copy;&lt;br /&gt;&lt;br /&gt;datafile 1 switched to datafile copy "+DGRP1/testasm/datafile/system.257.640537143"&lt;br /&gt;datafile 2 switched to datafile copy "+DGRP1/testasm/datafile/undotbs1.259.640537235"&lt;br /&gt;datafile 3 switched to datafile copy "+DGRP1/testasm/datafile/sysaux.258.640537199"&lt;br /&gt;datafile 4 switched to datafile copy "+DGRP1/testasm/datafile/users.260.640537243"&lt;br /&gt;&lt;br /&gt;RMAN&gt;&lt;br /&gt;&lt;br /&gt;     &lt;br /&gt;SQL&gt; recover database using backup controlfile until cancel;&lt;br /&gt;ORA-00279: change 555996 generated at 12/05/2007 14:52:53 needed for thread 1&lt;br /&gt;ORA-00289: suggestion :&lt;br /&gt;/ofs/app/oracle/product/10.2.0.1/dbs/arch1_2_640468119.dbf&lt;br /&gt;ORA-00280: change 555996 for thread 1 is in sequence #2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Specify log: {&lt;ret&gt;=suggested | filename | AUTO | CANCEL}&lt;br /&gt;auto&lt;br /&gt;ORA-00308: cannot open archived log&lt;br /&gt;'/ofs/app/oracle/product/10.2.0.1/dbs/arch1_2_640468119.dbf'&lt;br /&gt;ORA-27037: unable to obtain file status&lt;br /&gt;SVR4 Error: 2: No such file or directory&lt;br /&gt;Additional information: 3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ORA-00308: cannot open archived log&lt;br /&gt;'/ofs/app/oracle/product/10.2.0.1/dbs/arch1_2_640468119.dbf'&lt;br /&gt;ORA-27037: unable to obtain file status&lt;br /&gt;SVR4 Error: 2: No such file or directory&lt;br /&gt;Additional information: 3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database open resetlogs;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;sql&gt; select tablespace_name, file_name, bytes from dba_temp_files;   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;alter database tempfile&lt;br /&gt;   '/ofs/app/oracle/oradata/testasm/temp01.dbf'&lt;br /&gt;   drop including datafiles;&lt;br /&gt;  &lt;br /&gt;alter tablespace temp add tempfile size 512m&lt;br /&gt; autoextend on next 250m maxsize unlimited;  &lt;br /&gt;&lt;br /&gt; SQL&gt; select tablespace_name, file_name, bytes from dba_temp_files;&lt;br /&gt;&lt;br /&gt; TABLESPACE_NAME&lt;br /&gt; ------------------------------&lt;br /&gt; FILE_NAME&lt;br /&gt; --------------------------------------------------------------------------------&lt;br /&gt;      BYTES&lt;br /&gt; ----------&lt;br /&gt; TEMP&lt;br /&gt; +DGRP1/testasm/tempfile/temp.263.640537821&lt;br /&gt;  536870912&lt;br /&gt;&lt;br /&gt;select a.group#, a.member, b.bytes&lt;br /&gt; from v$logfile a, v$log b where a.group# = b.group#;&lt;br /&gt;&lt;br /&gt;    GROUP#&lt;br /&gt;----------&lt;br /&gt;MEMBER&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;     BYTES&lt;br /&gt;----------&lt;br /&gt;         3&lt;br /&gt;/ofs/app/oracle/oradata/testasm/redo03.log&lt;br /&gt;  52428800&lt;br /&gt;&lt;br /&gt;         2&lt;br /&gt;/ofs/app/oracle/oradata/testasm/redo02.log&lt;br /&gt;  52428800&lt;br /&gt;&lt;br /&gt;    GROUP#&lt;br /&gt;----------&lt;br /&gt;MEMBER&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;     BYTES&lt;br /&gt;----------&lt;br /&gt;&lt;br /&gt;         1&lt;br /&gt;/ofs/app/oracle/oradata/testasm/redo01.log&lt;br /&gt;  52428800&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database drop logfile group 1;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database add logfile group 1 size 50m;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter system checkpoint global;&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;alter system switch logfile;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;alter database drop logfile group 2;&lt;br /&gt;&lt;br /&gt;SQL&gt; alter system switch logfile;&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database drop logfile group 2;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter database add logfile group 2 size 50m;&lt;br /&gt;&lt;br /&gt;Database altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; select group#,status from v$log;&lt;br /&gt;&lt;br /&gt;    GROUP# STATUS&lt;br /&gt;---------- ----------------&lt;br /&gt;         1 CURRENT&lt;br /&gt;         2 UNUSED&lt;br /&gt;         3 UNUSED&lt;br /&gt;&lt;br /&gt;put the spfile into asm&lt;br /&gt;&lt;br /&gt;SQL&gt; create pfile ='/tmp/inittestasm.ora' from spfile;&lt;br /&gt;&lt;br /&gt;File created.&lt;br /&gt;&lt;br /&gt;SQL&gt; create spfile='+DGRP1/testasm/spfiletestasm.ora' from pfile='/tmp/inittestasm.ora';&lt;br /&gt;&lt;br /&gt;File created.&lt;br /&gt;&lt;br /&gt;echo "SPFILE='+DGRP1/testasm/spfiletestasm.ora'" &gt; $ORACLE_HOME/dbs/inittestasm.ora&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;shutdown immediate;&lt;br /&gt;&lt;br /&gt;startup&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RMAN&gt; list copy of database;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;List of Datafile Copies&lt;br /&gt;Key     File S Completion Time Ckp SCN    Ckp Time        Name&lt;br /&gt;------- ---- - --------------- ---------- --------------- ----&lt;br /&gt;6       1    A 05-DEC-07       555996     05-DEC-07       /ofs/app/oracle/oradata/testasm/system01.dbf&lt;br /&gt;7       2    A 05-DEC-07       555996     05-DEC-07       /ofs/app/oracle/oradata/testasm/undotbs01.dbf&lt;br /&gt;8       3    A 05-DEC-07       555996     05-DEC-07       /ofs/app/oracle/oradata/testasm/sysaux01.dbf&lt;br /&gt;9       4    A 05-DEC-07       555996     05-DEC-07       /ofs/app/oracle/oradata/testasm/users01.dbf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RMAN &gt; DELETE copy of database&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-7573008319652129104?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/7573008319652129104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=7573008319652129104' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7573008319652129104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7573008319652129104'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/migrating-from-non-asm-to-oracle-asm.html' title='migrating from a non-asm to Oracle asm instance'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8191003614642203978</id><published>2007-12-03T18:19:00.000-08:00</published><updated>2007-12-03T18:20:17.526-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>creating raw partion on solaris and  installing ASM</title><content type='html'>bash-2.05$ su -&lt;br /&gt;Password:&lt;br /&gt;Sun Microsystems Inc.   SunOS 5.9       Generic May 2002&lt;br /&gt;# format&lt;br /&gt;Searching for disks...done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AVAILABLE DISK SELECTIONS:&lt;br /&gt;       0. c0t0d0 &lt;sun18g&gt;&lt;br /&gt;          /pci@1f,4000/scsi@3/sd@0,0&lt;br /&gt;       1. c0t1d0 &lt;sun18g&gt;&lt;br /&gt;          /pci@1f,4000/scsi@3/sd@1,0&lt;br /&gt;       2. c0t2d0 &lt;sun18g&gt;&lt;br /&gt;          /pci@1f,4000/scsi@3/sd@2,0&lt;br /&gt;       3. c0t3d0 &lt;sun18g&gt;&lt;br /&gt;          /pci@1f,4000/scsi@3/sd@3,0&lt;br /&gt;Specify disk (enter its number): 3&lt;br /&gt;selecting c0t3d0&lt;br /&gt;[disk formatted]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FORMAT MENU:&lt;br /&gt;        disk       - select a disk&lt;br /&gt;        type       - select (define) a disk type&lt;br /&gt;        partition  - select (define) a partition table&lt;br /&gt;        current    - describe the current disk&lt;br /&gt;        format     - format and analyze the disk&lt;br /&gt;        repair     - repair a defective sector&lt;br /&gt;        label      - write label to the disk&lt;br /&gt;        analyze    - surface analysis&lt;br /&gt;        defect     - defect list management&lt;br /&gt;        backup     - search for backup labels&lt;br /&gt;        verify     - read and display labels&lt;br /&gt;        save       - save new disk/partition definitions&lt;br /&gt;        inquiry    - show vendor, product and revision&lt;br /&gt;        volname    - set 8-character volume name&lt;br /&gt;        !&lt;cmd&gt;     - execute &lt;cmd&gt;, then return&lt;br /&gt;        quit&lt;br /&gt;format&gt; print&lt;br /&gt;`print' is not expected.&lt;br /&gt;format&gt; partition&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PARTITION MENU:&lt;br /&gt;        0      - change `0' partition&lt;br /&gt;        1      - change `1' partition&lt;br /&gt;        2      - change `2' partition&lt;br /&gt;        3      - change `3' partition&lt;br /&gt;        4      - change `4' partition&lt;br /&gt;        5      - change `5' partition&lt;br /&gt;        6      - change `6' partition&lt;br /&gt;        7      - change `7' partition&lt;br /&gt;        select - select a predefined table&lt;br /&gt;        modify - modify a predefined partition table&lt;br /&gt;        name   - name the current table&lt;br /&gt;        print  - display the current table&lt;br /&gt;        label  - write partition map and label to the disk&lt;br /&gt;        !&lt;cmd&gt; - execute &lt;cmd&gt;, then return&lt;br /&gt;        quit&lt;br /&gt;partition&gt; print&lt;br /&gt;Current partition table (original):&lt;br /&gt;Total disk cylinders available: 7506 + 2 (reserved cylinders)&lt;br /&gt;&lt;br /&gt;Part      Tag    Flag     Cylinders        Size            Blocks&lt;br /&gt;  0 unassigned    wm       0 - 7505       16.86GB    (7506/0/0) 35368272&lt;br /&gt;  1 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  2     backup    wm       0 - 7505       16.86GB    (7506/0/0) 35368272&lt;br /&gt;  3 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  4 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  5 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  6 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  7 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;&lt;br /&gt;partition&gt; modify&lt;br /&gt;Select partitioning base:&lt;br /&gt;        0. Current partition table (original)&lt;br /&gt;        1. All Free Hog&lt;br /&gt;Choose base (enter number) [0]? 1&lt;br /&gt;&lt;br /&gt;Part      Tag    Flag     Cylinders        Size            Blocks&lt;br /&gt;  0       root    wm       0               0         (0/0/0)           0&lt;br /&gt;  1       swap    wu       0               0         (0/0/0)           0&lt;br /&gt;  2     backup    wu       0 - 7505       16.86GB    (7506/0/0) 35368272&lt;br /&gt;  3 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  4 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  5 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  6        usr    wm       0               0         (0/0/0)           0&lt;br /&gt;  7 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;&lt;br /&gt;Do you wish to continue creating a new partition&lt;br /&gt;table based on above table[yes]? yes&lt;br /&gt;Free Hog partition[6]? 6&lt;br /&gt;Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 500mb&lt;br /&gt;Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]:&lt;br /&gt;Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]:&lt;br /&gt;Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 15gb&lt;br /&gt;Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]:&lt;br /&gt;Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]:&lt;br /&gt;&lt;br /&gt;Part      Tag    Flag     Cylinders        Size            Blocks&lt;br /&gt;  0       root    wm       0 -  217      501.57MB    (218/0/0)   1027216&lt;br /&gt;  1       swap    wu       0               0         (0/0/0)           0&lt;br /&gt;  2     backup    wu       0 - 7505       16.86GB    (7506/0/0) 35368272&lt;br /&gt;  3 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  4 unassigned    wm     218 - 6893       15.00GB    (6676/0/0) 31457312&lt;br /&gt;  5 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  6        usr    wm    6894 - 7505        1.38GB    (612/0/0)   2883744&lt;br /&gt;  7 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;&lt;br /&gt;Okay to make this the current partition table[yes]? yes&lt;br /&gt;Enter table name (remember quotes): "asm"&lt;br /&gt;&lt;br /&gt;Ready to label disk, continue? y&lt;br /&gt;&lt;br /&gt;partition&gt; q&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FORMAT MENU:&lt;br /&gt;        disk       - select a disk&lt;br /&gt;        type       - select (define) a disk type&lt;br /&gt;        partition  - select (define) a partition table&lt;br /&gt;        current    - describe the current disk&lt;br /&gt;        format     - format and analyze the disk&lt;br /&gt;        repair     - repair a defective sector&lt;br /&gt;        label      - write label to the disk&lt;br /&gt;        analyze    - surface analysis&lt;br /&gt;        defect     - defect list management&lt;br /&gt;        backup     - search for backup labels&lt;br /&gt;        verify     - read and display labels&lt;br /&gt;        save       - save new disk/partition definitions&lt;br /&gt;        inquiry    - show vendor, product and revision&lt;br /&gt;        volname    - set 8-character volume name&lt;br /&gt;        !&lt;cmd&gt;     - execute &lt;cmd&gt;, then return&lt;br /&gt;        quit&lt;br /&gt;format&gt; verify&lt;br /&gt;&lt;br /&gt;Primary label contents:&lt;br /&gt;&lt;br /&gt;Volume name = &lt;        &gt;&lt;br /&gt;ascii name  = &lt;sun18g&gt;&lt;br /&gt;pcyl        = 7508&lt;br /&gt;ncyl        = 7506&lt;br /&gt;acyl        =    2&lt;br /&gt;nhead       =   19&lt;br /&gt;nsect       =  248&lt;br /&gt;Part      Tag    Flag     Cylinders        Size            Blocks&lt;br /&gt;  0 unassigned    wm       0 -  217      501.57MB    (218/0/0)   1027216&lt;br /&gt;  1 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  2     backup    wm       0 - 7505       16.86GB    (7506/0/0) 35368272&lt;br /&gt;  3 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  4 unassigned    wm     218 - 6893       15.00GB    (6676/0/0) 31457312&lt;br /&gt;  5 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;  6 unassigned    wm    6894 - 7505        1.38GB    (612/0/0)   2883744&lt;br /&gt;  7 unassigned    wm       0               0         (0/0/0)           0&lt;br /&gt;&lt;br /&gt;format&gt; q&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# ls -lL c0t3d0*&lt;br /&gt;crw-r-----   1 root     sys       32, 24 Nov 28 18:04 c0t3d0s0&lt;br /&gt;crw-r-----   1 root     sys       32, 25 Nov 28 18:04 c0t3d0s1&lt;br /&gt;crw-r-----   1 root     sys       32, 26 Nov 28 18:04 c0t3d0s2&lt;br /&gt;crw-r-----   1 root     sys       32, 27 Nov 28 18:04 c0t3d0s3&lt;br /&gt;crw-r-----   1 root     sys       32, 28 Nov 28 18:04 c0t3d0s4&lt;br /&gt;crw-r-----   1 root     sys       32, 29 Nov 28 18:04 c0t3d0s5&lt;br /&gt;crw-r-----   1 root     sys       32, 30 Nov 28 18:04 c0t3d0s6&lt;br /&gt;crw-r-----   1 root     sys       32, 31 Nov 28 18:04 c0t3d0s7&lt;br /&gt;# cd         &lt;br /&gt;# pwd    &lt;br /&gt;/&lt;br /&gt;# mkdir asmdisks&lt;br /&gt;# cd asmdisks&lt;br /&gt;# mknod disk1 c 32 28&lt;br /&gt;# ls -l&lt;br /&gt;total 0&lt;br /&gt;crw-r--r--   1 root     other     32, 28 Dec  3 15:07 disk1&lt;br /&gt;# cd disk1&lt;br /&gt;ksh: disk1: not a directory&lt;br /&gt;# chown oracle:dba disk1&lt;br /&gt;# ls -l&lt;br /&gt;total 0&lt;br /&gt;crw-r--r--   1 oracle   dba       32, 28 Dec  3 15:07 disk1&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;I GOT this error&lt;br /&gt;&lt;br /&gt;sh: sysdef: not found  ( while running the runInstaller)&lt;br /&gt;&lt;br /&gt;while installing the software mkae change diskovery path to /asmdisk1/disk1&lt;br /&gt;&lt;br /&gt;i am trying with external redundancy&lt;br /&gt;&lt;br /&gt;run when the installer asks /ofs/app/oracle/product/10.2.0.1/root.sh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8191003614642203978?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8191003614642203978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8191003614642203978' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8191003614642203978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8191003614642203978'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/creating-raw-partion-on-solaris-and.html' title='creating raw partion on solaris and  installing ASM'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4401950293427647888</id><published>2007-12-03T11:49:00.000-08:00</published><updated>2007-12-03T11:50:44.528-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='streams'/><title type='text'>migrating oracle from windows to solaris</title><content type='html'>for platform difference ( little endian  to big endian)&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;      l_ts_names      DBMS_STREAMS_TABLESPACE_ADM.TABLESPACE_SET;&lt;br /&gt;      l_dirs          DBMS_STREAMS_TABLESPACE_ADM.DIRECTORY_OBJECT_SET;&lt;br /&gt;      l_dp_job_name   varchar2(200);&lt;br /&gt;      l_log_file      DBMS_STREAMS_TABLESPACE_ADM.FILE;&lt;br /&gt;BEGIN&lt;br /&gt;      l_ts_names (1) := 'USERS';&lt;br /&gt;      l_ts_names (2) := 'REPORTS';&lt;br /&gt;      l_dirs (1) := 'DBF_DIR';&lt;br /&gt;      l_log_file.directory_object := 'DBF_DIR';&lt;br /&gt;      l_log_file.file_name := 'pull_ts_log.log';&lt;br /&gt;&lt;br /&gt;      DBMS_STREAMS_TABLESPACE_ADM.PULL_TABLESPACES(&lt;br /&gt;         datapump_job_name            =&gt; l_dp_job_name,&lt;br /&gt;         database_link               =&gt; 'dwdb',&lt;br /&gt;         tablespace_names             =&gt; l_ts_names,&lt;br /&gt;         tablespace_directory_objects  =&gt; l_dirs,&lt;br /&gt;         conversion_extension         =&gt; 'sun',&lt;br /&gt;         log_file                    =&gt; l_log_file&lt;br /&gt;      );&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4401950293427647888?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4401950293427647888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4401950293427647888' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4401950293427647888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4401950293427647888'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/12/migrating-oracle-from-windows-to.html' title='migrating oracle from windows to solaris'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-816747712298049217</id><published>2007-11-30T11:15:00.000-08:00</published><updated>2007-11-30T11:16:31.614-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><title type='text'>rman restore on different filesystem</title><content type='html'>set dbid 21417441799&lt;br /&gt;startup nomount&lt;br /&gt;&lt;br /&gt;-restore your spfile or pfile&lt;br /&gt;&lt;br /&gt; restore controlfile from '/obackup/oracle/mtrx/hot/c-1651548318-20071129-00';&lt;br /&gt;&lt;br /&gt;shutdown abort;&lt;br /&gt;&lt;br /&gt;startup mount;&lt;br /&gt;&lt;br /&gt;catalog start with '/obackup/oracle/mtrx/hot/';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;run {&lt;br /&gt;&lt;br /&gt;allocate channel c1 device type disk;&lt;br /&gt;&lt;br /&gt;set newname for datafile 1 to '/ofs/prrs02/mtrx22/system01.dbf';&lt;br /&gt;set newname for datafile 2 to '/ofs/prrs02/mtrx22/undotbs01.dbf';&lt;br /&gt;set newname for datafile 3 to '/ofs/prrs02/mtrx22/sysaux01.dbf';&lt;br /&gt;set newname for datafile 4 to '/ofs/prrs02/mtrx22/users01.dbf';&lt;br /&gt;set newname for datafile 5 to '/ofs/prrs02/mtrx22/tools01.dbf';&lt;br /&gt;set newname for datafile 6 to '/ofs/prrs04/mtrx22/indx01.dbf';&lt;br /&gt;set newname for datafile 7 to '/ofs/prrs04/mtrx22/mtrxdata01.dbf';&lt;br /&gt;set newname for datafile 8 to '/ofs/prrs04/mtrx22/mtrxdata02.dbf';&lt;br /&gt;set newname for datafile 9 to '/ofs/prrs04/mtrx22/mtrxdata03.dbf';&lt;br /&gt;set newname for datafile 10 to '/ofs/prrs03/mtrx22/mtrxdata04.dbf';&lt;br /&gt;set newname for datafile 11 to '/ofs/prrs03/mtrx22/mgrtdata01.dbf';&lt;br /&gt;set newname for datafile 12 to '/ofs/prrs03/mtrx22/proddata01.dbf';&lt;br /&gt;set newname for datafile 13 to '/ofs/prrs03/mtrx22/reporter01.dbf';&lt;br /&gt;set newname for datafile 14 to '/ofs/prrs04/mtrx22/mtrxdata05.dbf';&lt;br /&gt;set newname for datafile 15 to '/ofs/prrs05/mtrx22/mtrxdata06.dbf';&lt;br /&gt;set newname for datafile 16 to '/ofs/prrs05/mtrx22/mtrxdata07.dbf';&lt;br /&gt;set newname for datafile 17 to '/ofs/prrs05/mtrx22/proddata02.dbf';&lt;br /&gt;&lt;br /&gt;set newname for datafile 18 to '/ofs/prrs05/mtrx22/METRIX_INDX01.dbf';&lt;br /&gt;&lt;br /&gt;sql "alter database rename file ''/metrix2/mtrx10g01/oracle/mtrx10g/mtrx10g/redo01.log''&lt;br /&gt;      to ''/ofs/prrs03/mtrx22/redo01.log'' ";&lt;br /&gt;&lt;br /&gt;sql "alter database rename file ''/metrix2/mtrx10g01/oracle/mtrx10g/mtrx10g/redo02.log''&lt;br /&gt;      to ''/ofs/prrs03/mtrx22/redo02.log'' ";&lt;br /&gt;&lt;br /&gt;sql "alter database rename file ''/metrix2/mtrx10g01/oracle/mtrx10g/mtrx10g/redo03.log''&lt;br /&gt;      to ''/ofs/prrs03/mtrx22/redo03.log'' "; &lt;br /&gt;     &lt;br /&gt;set until scn 21417441799;&lt;br /&gt;&lt;br /&gt;restore database;&lt;br /&gt;switch datafile all;&lt;br /&gt;&lt;br /&gt;recover database;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;alter database open resetlogs;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-816747712298049217?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/816747712298049217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=816747712298049217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/816747712298049217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/816747712298049217'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/rman-restore-on-different-filesystem.html' title='rman restore on different filesystem'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-3554286316456053956</id><published>2007-11-30T11:03:00.000-08:00</published><updated>2007-12-14T19:06:43.345-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='nid'/><category scheme='http://www.blogger.com/atom/ns#' term='lesson'/><title type='text'>ORA-19951: cannot modify control file until DBNEWID is completed</title><content type='html'>nid system/manager dbname=mtrx22&lt;br /&gt;&lt;br /&gt;while running nid on a cloned database I forgot to check the tempfile  which resulted into following error&lt;br /&gt;&lt;br /&gt;NID-00111: Oracle error reported from target database while executing&lt;br /&gt;   begin       dbms_backup_restore.nidprocessdf(:fno, :istemp, :skipped, :idchged,&lt;br /&gt;                             :nmchged);    end;&lt;br /&gt;ORA-01116: error in opening database file /metrix2/mtrx10g02/oracle/mtrx10g/temp01.dbf&lt;br /&gt;ORA-27037: unable to obtain file status&lt;br /&gt;SVR4 Error: 2: No such file or directory&lt;br /&gt;Additional information: 3&lt;br /&gt;ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 6164&lt;br /&gt;ORA-06512: at line 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After that no matter How I try to open the db or add the tempfile it didnt allow me .somehow not sure what I missed but the REVERT option didnt help me much.&lt;br /&gt;&lt;br /&gt;A lesson learned.&lt;br /&gt;&lt;br /&gt;make sure  all the datafiles,tempfiles&lt;br /&gt;are in place before you run nid. it is better if you have a fulll backup.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-3554286316456053956?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/3554286316456053956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=3554286316456053956' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3554286316456053956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3554286316456053956'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/ora-19951-cannot-modify-control-file.html' title='ORA-19951: cannot modify control file until DBNEWID is completed'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-1463032594099061147</id><published>2007-11-20T11:47:00.000-08:00</published><updated>2007-11-20T11:53:20.590-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>oracle 11g installed on ubuntu /vmware on Dell laptop</title><content type='html'>hardware - Dell Latitude D600 with 1 GB RAM&lt;br /&gt;Host O/S - Windows XP&lt;br /&gt;vmware 2.0&lt;br /&gt;Ubuntu 7.10&lt;br /&gt;filesystem xfs&lt;br /&gt;Oracle 11g Enterprise edition&lt;br /&gt;&lt;br /&gt;Reference.&lt;br /&gt;http://www.pythian.com/blogs/654/installing-oracle-11g-on-ubuntu-linux-710-gutsy-gibbon&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-1463032594099061147?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/1463032594099061147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=1463032594099061147' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1463032594099061147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1463032594099061147'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/oracle-11g-installed-on-ubuntu-vmware.html' title='oracle 11g installed on ubuntu /vmware on Dell laptop'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-399774355994767147</id><published>2007-11-19T19:34:00.000-08:00</published><updated>2007-11-19T22:26:51.336-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>ubuntu vmware networking /etc/network/interfaces</title><content type='html'>cat /etc/network/interfaces&lt;br /&gt;auto lo&lt;br /&gt;iface lo inet loopback&lt;br /&gt;#to enable dhcp&lt;br /&gt;# The primary network interface - use DHCP to find our address&lt;br /&gt;iface eth0 inet dhcp&lt;br /&gt;gateway: 10.247.16.253&lt;br /&gt;auto eth0&lt;br /&gt;&lt;br /&gt;it fixed these things&lt;br /&gt;1- now i am able to ping from host machine to the guest OS ubuntu inside vmware 2.0.&lt;br /&gt;2- when I try to logon to oracle using sqlplus '/as sysdba' it used to give me TNS error  .&lt;br /&gt;3- trying to start lsnrctl start was just hanging it was not even creating trace files.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-399774355994767147?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/399774355994767147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=399774355994767147' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/399774355994767147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/399774355994767147'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/ubuntu-vmware-networking.html' title='ubuntu vmware networking /etc/network/interfaces'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2614689591253031126</id><published>2007-11-16T19:06:00.000-08:00</published><updated>2007-11-16T19:09:29.722-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><title type='text'>Firefox   bookmark</title><content type='html'>Use the bookmark  manager to export and import&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-2614689591253031126?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2614689591253031126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2614689591253031126' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2614689591253031126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2614689591253031126'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/firefox-bookmark.html' title='Firefox   bookmark'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5431061164766956686</id><published>2007-11-16T17:19:00.000-08:00</published><updated>2007-11-16T17:20:20.324-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><title type='text'>generate user creation script</title><content type='html'>&lt;pre&gt;&lt;span&gt;&lt;span style=""&gt;http://toolkit.rdbms-insight.com/gen_cre_users.php&lt;br /&gt;&lt;br /&gt;set pagesize 0&lt;br /&gt;set escape on&lt;br /&gt;select 'create user ' || U.username || ' identified ' ||&lt;br /&gt;DECODE(password,&lt;br /&gt;    NULL, 'EXTERNALLY',&lt;br /&gt;    ' by values ' || '''' || password || ''''&lt;br /&gt;    )&lt;br /&gt;|| chr(10) ||&lt;br /&gt;'default tablespace ' || default_tablespace || chr(10) ||&lt;br /&gt;'temporary tablespace ' || temporary_Tablespace || chr(10) ||&lt;br /&gt;' profile ' || profile || chr(10) ||&lt;br /&gt;'quota ' ||&lt;br /&gt;decode ( Q.max_bytes, -1, 'UNLIMITED', NULL, 'UNLIMITED', Q.max_bytes) ||&lt;br /&gt;' on ' || default_tablespace ||&lt;br /&gt;decode (account_status,'LOCKED', ' account lock',&lt;br /&gt;  'EXPIRED', ' password expire',&lt;br /&gt;  'EXPIRED \&amp;amp; LOCKED', ' account lock password expire',&lt;br /&gt;  null)&lt;br /&gt;||&lt;br /&gt;';'&lt;br /&gt;from dba_users U, dba_ts_quotas Q&lt;br /&gt;-- Comment this clause out to include system &amp;amp; default users&lt;br /&gt;where U.username not in ('SYS','SYSTEM',&lt;br /&gt;'SCOTT','DBSNMP','OUTLN','WKPROXY','WMSYS','ORDSYS','ORDPLUGINS','MDSYS',&lt;br /&gt;'CTXSYS','XDB','ANONYMOUS','OWNER','WKSYS','ODM_MTR','ODM','OLAPSYS',&lt;br /&gt;'HR','OE','PM','SH','QS_ADM','QS','QS_WS','QS_ES','QS_OS','QS_CBADM',&lt;br /&gt;'QS_CB','QS_CS','PERFSTAT')&lt;br /&gt;and U.username=Q.username(+) and U.default_tablespace=Q.tablespace_name(+)&lt;br /&gt;;&lt;br /&gt;set pagesize 100&lt;br /&gt;set escape off&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-5431061164766956686?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5431061164766956686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5431061164766956686' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5431061164766956686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5431061164766956686'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/generate-user-creation-script.html' title='generate user creation script'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5124676116489278177</id><published>2007-11-16T17:13:00.000-08:00</published><updated>2007-11-16T17:15:23.501-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><title type='text'>generate tablespace  creation script</title><content type='html'>&lt;pre&gt;Ref# http://www.blacksheepnetworks.com/security/resources/www.think-forward.com/sql/gents.htm&lt;br /&gt;spool gents.lst&lt;br /&gt;&lt;br /&gt;set serveroutput on size 1000000&lt;br /&gt;DECLARE&lt;br /&gt;&lt;br /&gt; CURSOR get_ts IS SELECT * FROM dba_tablespaces&lt;br /&gt;                  WHERE tablespace_name != 'SYSTEM';&lt;br /&gt;&lt;br /&gt; CURSOR get_df (p_ts VARCHAR2) IS&lt;br /&gt;                  SELECT * from dba_data_files&lt;br /&gt;                  WHERE tablespace_name = p_ts;&lt;br /&gt;&lt;br /&gt; l_str VARCHAR2(10);&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;FOR ts_rec IN get_ts LOOP&lt;br /&gt;&lt;br /&gt; dbms_output.put_line ('CREATE TABLESPACE '||ts_rec.tablespace_name);&lt;br /&gt;&lt;br /&gt; -- For each tablespace loop through the datafiles&lt;br /&gt; FOR df_rec IN get_df (ts_rec.tablespace_name) LOOP&lt;br /&gt;&lt;br /&gt;   IF get_df%ROWCOUNT = 1 THEN&lt;br /&gt;      l_str := 'DATAFILE';&lt;br /&gt;   ELSE&lt;br /&gt;      l_str := ',';&lt;br /&gt;   END IF;&lt;br /&gt;&lt;br /&gt;   dbms_output.put_line (l_str||' '&lt;br /&gt;               ||chr(39)||df_rec.file_name||chr(39)&lt;br /&gt;               ||' SIZE '||df_rec.bytes||' REUSE ');&lt;br /&gt;&lt;br /&gt;   if df_rec.autoextensible = 'YES' then&lt;br /&gt;&lt;br /&gt;      dbms_output.put_line (' AUTOEXTEND ON'&lt;br /&gt;                            ||' NEXT '||df_rec.increment_by );&lt;br /&gt;&lt;br /&gt;      if df_rec.maxbytes = 68719443968 then&lt;br /&gt;         dbms_output.put_line (' MAXSIZE UNLIMITED');&lt;br /&gt;      else&lt;br /&gt;         dbms_output.put_line (' MAXSIZE '||df_rec.maxbytes);&lt;br /&gt;      end if;&lt;br /&gt;&lt;br /&gt;   end if;&lt;br /&gt;&lt;br /&gt; END LOOP;&lt;br /&gt;&lt;br /&gt;/* Extent Management Clause */&lt;br /&gt;&lt;br /&gt;  dbms_output.put_line  ('EXTENT MANAGEMENT ' ||ts_rec.extent_management );&lt;br /&gt;&lt;br /&gt;  if ts_rec.extent_management = 'LOCAL' then&lt;br /&gt;&lt;br /&gt;     if ts_rec.allocation_type = 'SYSTEM' then&lt;br /&gt;&lt;br /&gt;        dbms_output.put_line (' AUTOALLOCATE ');&lt;br /&gt;&lt;br /&gt;     else&lt;br /&gt;&lt;br /&gt;        dbms_output.put_line (' UNIFORM SIZE '||ts_rec.initial_extent);&lt;br /&gt;&lt;br /&gt;     end if;&lt;br /&gt;&lt;br /&gt;  end if;&lt;br /&gt;&lt;br /&gt;  if ts_rec.extent_management = 'DICTIONARY' then&lt;br /&gt;&lt;br /&gt;    dbms_output.put_line ('DEFAULT STORAGE (INITIAL '||ts_rec.initial_extent&lt;br /&gt;       ||' NEXT '||ts_rec.next_extent&lt;br /&gt;       ||' MINEXTENTS '||ts_rec.min_extents&lt;br /&gt;       ||' MAXEXTENTS '||ts_rec.max_extents&lt;br /&gt;       ||' PCTINCREASE '||ts_rec.pct_increase||' ) ');&lt;br /&gt;&lt;br /&gt;  end if;&lt;br /&gt;&lt;br /&gt;  dbms_output.put_line  (' ONLINE;');&lt;br /&gt;  dbms_output.new_line;&lt;br /&gt;&lt;br /&gt;END LOOP;&lt;br /&gt;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;spool off&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-5124676116489278177?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5124676116489278177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5124676116489278177' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5124676116489278177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5124676116489278177'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/generate-tablespace-creation-script.html' title='generate tablespace  creation script'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-9143604393843968143</id><published>2007-11-16T16:02:00.000-08:00</published><updated>2007-11-16T17:13:45.114-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xfs'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Add extra space to ubutu guest os in vmware</title><content type='html'>sudo apt-get install gparted&lt;br /&gt;&lt;br /&gt;1-Select your virtual machine Ubuntu and then "right-click",&lt;br /&gt;choose "Settings" -&gt; Add -&gt; Hard Disk -&gt; choose IDE/SCSI -&gt; decide the capacity -&gt; disk file nameubuntu(2).vmdk [your new virtual disk]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. boot up your ubuntu&lt;br /&gt;&lt;br /&gt;sudo apt-get install xfsprogs&lt;br /&gt;&lt;br /&gt;mkfs.xfs /dev/sdb&lt;br /&gt;&lt;br /&gt;fdisk -l&lt;br /&gt;&lt;br /&gt;mkdir /oracle&lt;br /&gt;mount /dev/sdb /or&lt;span style="text-decoration: underline;"&gt;a&lt;/span&gt;&lt;a href="javascript:void(0)" tabindex="10" onclick="return false;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;cle&lt;br /&gt;&lt;br /&gt;modify your "/etc/fstab" file, and adding&lt;br /&gt;/dev/sdb /oracle xfs  defaults 0 0&lt;br /&gt;&lt;br /&gt;chmod 777 /oracle&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-9143604393843968143?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/9143604393843968143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=9143604393843968143' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/9143604393843968143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/9143604393843968143'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/add-extra-space-to-ubutu-guest-os-in.html' title='Add extra space to ubutu guest os in vmware'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-1441268007408366207</id><published>2007-11-15T20:57:00.000-08:00</published><updated>2007-11-15T21:01:24.354-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>install rpm   file</title><content type='html'>&lt;strong&gt;Ref#http://www.ubuntugeek.com/install-rpm-files-in-ubuntu.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;install alien in Ubuntu&lt;/strong&gt; &lt;p&gt;sudo apt-get install alien&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Suppose we have a avg antivirus avg71lms-r30-a0782.i386.rpm file&lt;/p&gt; &lt;p&gt;To convert .rpm to debian&lt;/p&gt; &lt;p&gt;sudo alien -k avg71lms-r30-a0782.i386.rpm&lt;/p&gt; &lt;p&gt;Now you should be having avg71lms-r30-a0782.i386.deb file&lt;/p&gt; &lt;p&gt;&lt;strong&gt;To install .deb file&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;sudo dpkg -i avg71lms-r30-a0782.i386.deb&lt;/p&gt; &lt;p&gt;If you don’t use -k option you should see avg71lms_r30-1_i386.deb file the difference is it will add 1&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-1441268007408366207?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/1441268007408366207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=1441268007408366207' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1441268007408366207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1441268007408366207'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/install-rpm-file.html' title='install rpm   file'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-1241734145863973186</id><published>2007-11-15T15:46:00.000-08:00</published><updated>2007-11-28T15:24:01.953-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>ubuntu samba</title><content type='html'>sudo apt-get install samba&lt;br /&gt;&lt;br /&gt;sudo gedit /etc/samba/smb.conf&lt;br /&gt;change browsable and writable to yes&lt;br /&gt;&lt;br /&gt;sudo /etc/init.d/samba start&lt;br /&gt;&lt;br /&gt;sudo smbpasswd -a your_username&lt;br /&gt;&lt;br /&gt;and create a folder name sharesoftware and make it shared in ubuntu&lt;br /&gt;&lt;br /&gt;and then connect from windows -&lt;br /&gt;map network drive&lt;br /&gt;\\10.247.16.140\sharesoftware&lt;br /&gt;&lt;br /&gt;and access using your username and password&lt;br /&gt;&lt;br /&gt;To mount a remote windows system directly upon your current ubuntu system you'll need:&lt;br /&gt;&lt;br /&gt;   * The smbfs kernel module&lt;br /&gt;   * The smbfs package.&lt;br /&gt;   * A mountpoint - this is just an empty directory.&lt;br /&gt;   * The Name/IP address of the host to connect to.&lt;br /&gt;   * Login credentials to the remote share - both username and password.&lt;br /&gt;   * Local root privileges to do the mount, and load the kernel module.&lt;br /&gt;&lt;br /&gt;apt-get install smbfs&lt;br /&gt;&lt;br /&gt;as a small example lets assume I wish to mount the "C:" drive of remote machine "recurring.my.flat" to the local machine mystery.my.flat&lt;br /&gt;I would begin by loading the kernel module:&lt;br /&gt;&lt;br /&gt;mount -t smbfs -o username=Administrator,password=Password //recurring/c$ /mnt/recurring&lt;br /&gt;&lt;br /&gt;5232: session setup failed: ERRDOS - ERRnoaccess (Access denied.)&lt;br /&gt;SMB connection failed&lt;br /&gt;&lt;br /&gt;See the following link: will help you with samba and windows devices&lt;br /&gt;&lt;br /&gt;http://www.debian-administratrion.org/articles/165&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-1241734145863973186?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/1241734145863973186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=1241734145863973186' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1241734145863973186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1241734145863973186'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/ubuntu-samba.html' title='ubuntu samba'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8056224025431322010</id><published>2007-11-15T15:37:00.000-08:00</published><updated>2007-11-15T20:13:35.576-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>ubuntu Networking</title><content type='html'>&lt;p&gt;http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The basics for any network based on *nix hosts is the Transport Control Protocol/ Internet Protocol (TCP/IP) combination of three protocols. This combination consists of the Internet Protocol (IP),Transport Control Protocol (TCP), and Universal Datagram Protocol (UDP).&lt;/p&gt; &lt;p&gt;By Default most of the users configure their &lt;a id="KonaLink0" target="_new" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html#"&gt;&lt;span style="color: rgb(204, 153, 51) ! important; font-weight: 400; position: static;font-family:Verdana,Tahoma,Arial,sans-serif;font-size:10;"  &gt;&lt;span class="kLink" style="color: rgb(204, 153, 51) ! important; font-weight: 400; position: static;font-family:Verdana,Tahoma,Arial,sans-serif;font-size:10;"  &gt;network &lt;/span&gt;&lt;span class="kLink" style="color: rgb(204, 153, 51) ! important; font-weight: 400; position: static;font-family:Verdana,Tahoma,Arial,sans-serif;font-size:10;"  &gt;card&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; during the installation of Ubuntu. You can however, use the ifconfig command at the shell prompt or Ubuntu’s graphical network configuration tools, such as network-admin, to edit your system’s network device information or to add or remove network devices on your system&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Configure Network Interface Using Command-Line&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;You can configure a network interface from the command line using the networking utilities. You configure your network client hosts with the command line by using commands to change your current settings or by editing a number of &lt;a id="KonaLink1" target="_new" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html#"&gt;&lt;span style="color: rgb(204, 153, 51) ! important; font-weight: 400; position: static;font-family:Verdana,Tahoma,Arial,sans-serif;font-size:10;"  &gt;&lt;span class="kLink" style="color: rgb(204, 153, 51) ! important; font-weight: 400; position: static;font-family:Verdana,Tahoma,Arial,sans-serif;font-size:10;"  &gt;system &lt;/span&gt;&lt;span class="kLink" style="color: rgb(204, 153, 51) ! important; font-weight: 400; position: static;font-family:Verdana,Tahoma,Arial,sans-serif;font-size:10;"  &gt;files&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Configuring DHCP address for your network card&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;If you want to configure DHCP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card&lt;/p&gt; &lt;p&gt;sudo vi /etc/network/interfaces&lt;/p&gt; &lt;p&gt;# The primary network interface - use DHCP to find our address&lt;br /&gt;auto eth0&lt;br /&gt;iface eth0 inet dhcp&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Configuring Static IP address for your network card&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;If you want to configure Static IP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card&lt;/p&gt; &lt;p&gt;sudo vi /etc/network/interfaces&lt;/p&gt; &lt;p&gt;# The primary network interface&lt;br /&gt;auto eth0&lt;br /&gt;iface eth0 inet static&lt;br /&gt;address 192.168.3.90&lt;br /&gt;gateway 192.168.3.1&lt;br /&gt;netmask 255.255.255.0&lt;br /&gt;network 192.168.3.0&lt;br /&gt;broadcast 192.168.3.255&lt;/p&gt; &lt;p&gt;After entering all the details you need to restart networking services using the following command&lt;/p&gt; &lt;p&gt;sudo /etc/init.d/networking restart&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Setting up Second IP address or Virtual IP address in Ubuntu&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;If you are a server &lt;a id="KonaLink3" target="_new" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html#"&gt;&lt;span style="color: rgb(204, 153, 51) ! important; font-weight: 400; position: static;font-family:Verdana,Tahoma,Arial,sans-serif;font-size:10;"  &gt;&lt;span class="kLink" style="border-bottom: 1px solid rgb(204, 153, 51); color: rgb(204, 153, 51) ! important; font-weight: 400; position: static; padding-bottom: 1px;font-family:Verdana,Tahoma,Arial,sans-serif;font-size:10;color:#0000e0;"   &gt;system &lt;/span&gt;&lt;span class="kLink" style="border-bottom: 1px solid rgb(204, 153, 51); color: rgb(204, 153, 51) ! important; font-weight: 400; position: static; padding-bottom: 1px;font-family:Verdana,Tahoma,Arial,sans-serif;font-size:10;color:#0000e0;"   &gt;administrator&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; or normal user some time you need to assign a second ipaddress to your Ubuntu machine.For this you need to edit the /etc/network/interfaces file and you need to add the following syntax.Below one is the only example you need to chnage according to your ip address settings&lt;/p&gt; &lt;p&gt;sudo vi /etc/network/interfaces&lt;/p&gt; &lt;p&gt;auto eth0:1&lt;br /&gt;iface eth0:1 inet static&lt;br /&gt;address 192.168.1.60&lt;br /&gt;netmask 255.255.255.0&lt;br /&gt;network x.x.x.x&lt;br /&gt;broadcast x.x.x.x&lt;br /&gt;gateway x.x.x.x&lt;/p&gt; &lt;p&gt;You need to enter all the details like address,netmask,network,broadcast and gateways values after entering all the values save this file and you need to restart networking services in debian using the following command to take effect of our new ipaddress.&lt;/p&gt; &lt;p&gt;After entering all the details you need to restart networking services using the following command&lt;/p&gt; &lt;p&gt;sudo /etc/init.d/networking restart&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Setting your ubuntu stytem hostname &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Setting up your hostname upon a ubuntu installation is very straightforward. You can directly query, or set, the hostname with the hostname command.&lt;/p&gt; &lt;p&gt;As an user you can see your current hostname with&lt;/p&gt; &lt;p&gt;sudo /bin/hostname&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;To set the hostname directly you can become root and run&lt;/p&gt; &lt;p&gt;sudo /bin/hostname newname&lt;/p&gt; &lt;p&gt;When your system boots it will automatically read the hostname from the file /etc/hostname&lt;/p&gt; &lt;p&gt;If you want to know more about how to setup host name check &lt;a target="_blank" href="http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html"&gt;here&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Setting up DNS&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;When it comes to DNS setup Ubuntu doesn’t differ from other distributions. You can add hostname and IP addresses to the file /etc/hosts for static lookups.&lt;/p&gt; &lt;p&gt;To cause your machine to consult with a particular &lt;a id="KonaLink4" target="_new" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html#"&gt;&lt;span style="color: rgb(204, 153, 51) ! important; font-weight: 400; position: static;font-family:Verdana,Tahoma,Arial,sans-serif;font-size:10;"  &gt;&lt;span class="kLink" style="border-bottom: 1px solid rgb(204, 153, 51); color: rgb(204, 153, 51) ! important; font-weight: 400; position: static; padding-bottom: 1px;font-family:Verdana,Tahoma,Arial,sans-serif;font-size:10;color:#0000e0;"   &gt;server&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; for name lookups you simply add their addresses to /etc/resolv.conf.&lt;/p&gt; &lt;p&gt;For example a machine which should perform lookups from the DNS server at IP address 192.168.3.2 would have a resolv.conf file looking like this&lt;/p&gt; &lt;p&gt;sudo vi /etc/resolv.conf&lt;/p&gt; &lt;p&gt;enter the following details&lt;/p&gt; &lt;p&gt;search test.com&lt;br /&gt;nameserver 192.168.3.2&lt;/p&gt;&lt;br /&gt;&lt;p&gt;NOTE#-&lt;/p&gt;my ubuntu is installed on vmware on host os windows xp so I switched to bridge networking when I am on dhcp at work and I switch to NAT when I am working at home on wireless networking.  not sure if it is the right way?&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8056224025431322010?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8056224025431322010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8056224025431322010' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8056224025431322010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8056224025431322010'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/ubuntu-networking.html' title='ubuntu Networking'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-6527159187915104152</id><published>2007-11-12T12:03:00.000-08:00</published><updated>2007-11-12T12:04:37.479-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>ORA-07445: exception encountered: core dump [opidsa()+480] [SIGSEGV] [Address not mapped to object] [0x000000000] [] []</title><content type='html'>we hit these errors after upgrading to solaris 10.2.0.3 . metalink suggest a regular shutdown or flushing shared pool . of applying patch &lt;b&gt;&lt;span class="OraHeaderSub"&gt; Patch 5648872&lt;/span&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-6527159187915104152?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/6527159187915104152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=6527159187915104152' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6527159187915104152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6527159187915104152'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/ora-07445-exception-encountered-core.html' title='ORA-07445: exception encountered: core dump [opidsa()+480] [SIGSEGV] [Address not mapped to object] [0x000000000] [] []'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-3470413983908413362</id><published>2007-11-07T15:04:00.000-08:00</published><updated>2007-11-07T15:05:18.990-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='solaris'/><title type='text'>nfsstat - solaris</title><content type='html'>nfsstat -m&lt;br /&gt;/obackup/obackup_share from asb-sac-nms-001:/obackup&lt;br /&gt; Flags:         vers=3,proto=tcp,sec=sys,hard,intr,link,symlink,acl,rsize=32768,wsize=32768,retrans=5,timeo=600&lt;br /&gt; Attr cache:    acregmin=3,acregmax=60,acdirmin=30,acdirmax=60&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/etc/vfstab&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-3470413983908413362?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/3470413983908413362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=3470413983908413362' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3470413983908413362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3470413983908413362'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/nfsstat-solaris.html' title='nfsstat - solaris'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-2217909645225415835</id><published>2007-11-07T14:53:00.000-08:00</published><updated>2007-11-07T14:55:19.128-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><title type='text'>ORA-27054: NFS file system where the file is created or resides is not mounted with correct options</title><content type='html'>After moving the backup directory to a NFS for one 10gR2 db I started getting this error.&lt;br /&gt;&lt;br /&gt;RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/07/2007 14:16:10&lt;br /&gt;ORA-19504: failed to create file "/obackup/oracle/mtrx/hot/ffj0f358_1_1"&lt;br /&gt;ORA-27054: NFS file system where the file is created or resides is not mounted with correct options&lt;br /&gt;Additional information: 2&lt;br /&gt;&lt;br /&gt;Soln-&lt;br /&gt;&lt;br /&gt;Error is documented in Metalink Doc Id : Note:387700.1&lt;br /&gt;&lt;br /&gt;ORA-27054 ERRORS WHEN RUNNING RMAN WITH NFS&lt;br /&gt;&lt;br /&gt;Solution&lt;br /&gt;To implement the solution, please execute the following steps:&lt;br /&gt;&lt;br /&gt;From the erorrs that we see from the RMAN stack this looks like Bug 5146667&lt;br /&gt;This behaviour has been observed on Solaris and AIX Platform.&lt;br /&gt;&lt;br /&gt;WORKAROUND:&lt;br /&gt;As suggested in the bug the workaround recommended is to use the Event 10298.&lt;br /&gt;&lt;br /&gt;1) set the Event 10298 in the init file&lt;br /&gt;event="10298 trace name context forever, level 32"&lt;br /&gt;if you are using the spfile then the following can be done&lt;br /&gt;SQL&gt; alter system set event='10298 trace name context forever, level 32'scope= spfile ;&lt;br /&gt;&lt;br /&gt;Once you set the above parameter restart the instance check as follows&lt;br /&gt;SQL&gt; select name, value from v$parameter where name = 'event';&lt;br /&gt;NAME VALUE&lt;br /&gt;---------- ------------------------------------------------------------&lt;br /&gt;Event 10298 trace name context forever, level 32&lt;br /&gt;&lt;br /&gt;1 row selected.&lt;br /&gt;Then try the backups again&lt;br /&gt;&lt;br /&gt;2) PATCH&lt;br /&gt;Check if a one off patch for 10.2.0.1 for your platform is available&lt;br /&gt;Please follow next steps to download and test it :&lt;br /&gt;&lt;br /&gt;1. Login to Metalink&lt;br /&gt;2. Go to Patches and Updates -&gt; Simple Search&lt;br /&gt;3. Enter patch number 5146667 and platform you are on ( your version of OS )&lt;br /&gt;4. Download the patch&lt;br /&gt;5. Read the README file for installation instructions and test it to see if it fixes your problem&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-2217909645225415835?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/2217909645225415835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=2217909645225415835' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2217909645225415835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/2217909645225415835'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/ora-27054-nfs-file-system-where-file-is_07.html' title='ORA-27054: NFS file system where the file is created or resides is not mounted with correct options'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4447107867576853870</id><published>2007-11-07T14:51:00.000-08:00</published><updated>2007-11-07T14:55:56.559-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>unlink</title><content type='html'>the reverse of ln&lt;br /&gt;&lt;br /&gt;ln -s /obackup/oracle/mtrx mtrx&lt;br /&gt;unlink mtrx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4447107867576853870?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4447107867576853870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4447107867576853870' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4447107867576853870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4447107867576853870'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/unlink.html' title='unlink'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4320197008304147851</id><published>2007-11-07T14:26:00.000-08:00</published><updated>2007-11-07T14:27:26.306-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><title type='text'>ORA-27054: NFS file system where the file is created or resides is not mounted with correct options</title><content type='html'>After moving the rman backup for a solaris 5.8 to a nfs it started complaining&lt;br /&gt;&lt;br /&gt;RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/07/2007 14:16:10&lt;br /&gt;ORA-19504: failed to create file "/obackup/oracle/mtrx/hot/ffj0f358_1_1"&lt;br /&gt;ORA-27054: NFS file system where the file is created or resides is not mounted with correct options&lt;br /&gt;Additional information: 2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4320197008304147851?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4320197008304147851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4320197008304147851' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4320197008304147851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4320197008304147851'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/ora-27054-nfs-file-system-where-file-is.html' title='ORA-27054: NFS file system where the file is created or resides is not mounted with correct options'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4589745859548406231</id><published>2007-11-05T17:55:00.000-08:00</published><updated>2007-12-03T11:37:13.360-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='impdp'/><title type='text'>impdp</title><content type='html'>expdp system/managerpopv dumpfile=reporter.dmp directory=tmp  schemas=reporter&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;impdp system\acomp directory=tmp dumpfile=opvdb.dmp remap_schema=opvdb:dest_schema remap_tablespace=source_tablespace:dest_tablespace&lt;br /&gt;&lt;br /&gt;impdp system/manager directory=temp_dir dumpfile=ovdb.dmp remap_schema=ovdb:popv_ovdb remap_tablespace=owstage:afc_data logfile=ovdb.log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ref http://www.oracle-dba-online.com/data_pump_import_utility.htm&lt;br /&gt;&lt;br /&gt;*importing full dump file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;impdp hr/hr DIRECTORY=dpump_dir1 DUMPFILE=expfull.dmp FULL=y LOGFILE=full_imp.log&lt;br /&gt;impdp hr/hr DUMPFILE=dpump_dir1:expfull.dmp FULL=y LOGFILE=dpump_dir2:full_imp.log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*Importing Objects of One Schema to another Schema&lt;br /&gt;&lt;br /&gt;The following example loads all tables belonging to hr schema to scott schema&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$impdp SYSTEM/password DIRECTORY=dpump_dir1 DUMPFILE=hr.dmp REMAP_SCHEMA=hr:scott&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If SCOTT account exist in the database then hr objects will be loaded into scott schema.&lt;br /&gt;If scott account does not exist, then Import Utility will create the SCOTT account with an&lt;br /&gt;unusable password because, the dump file was exported by the user SYSTEM and imported by&lt;br /&gt;the user SYSTEM who has DBA privileges.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*Loading Objects of one Tablespace to another Tablespace.&lt;br /&gt;&lt;br /&gt;You can use remap_tablespace option to import objects of one tablespace to another tablespace&lt;br /&gt;by giving the command&lt;br /&gt;&lt;br /&gt;$impdp SYSTEM/password DIRECTORY=dpump_dir1 DUMPFILE=hr.dmp REMAP_TABLESPACE=users:sales&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*Generating SQL File containing DDL commands using Data Pump Import&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can generate SQL file which contains all the DDL commands which Import would&lt;br /&gt;have executed if you actually run Import utility&lt;br /&gt;&lt;br /&gt;The following is an example of using the SQLFILE parameter.&lt;br /&gt;&lt;br /&gt;$ impdp hr/hr DIRECTORY=dpump_dir1 DUMPFILE=expfull.dmp SQLFILE=dpump_dir2:expfull.sql&lt;br /&gt;&lt;br /&gt;A SQL file named expfull.sql is written to dpump_dir2.&lt;br /&gt;&lt;br /&gt;*Importing objects of only a Particular Schema&lt;br /&gt;&lt;br /&gt;If you have the IMP_FULL_DATABASE role, you can use this parameter to perform a schema-mode import&lt;br /&gt;by specifying a single schema other than your own or a list of schemas to import.&lt;br /&gt;First, the schemas themselves are created (if they do not already exist),&lt;br /&gt;including system and role grants, password history, and so on.&lt;br /&gt;Then all objects contained within the schemas are imported.&lt;br /&gt;Nonprivileged users can specify only their own schemas.&lt;br /&gt;In that case, no information about the schema definition is imported,&lt;br /&gt;only the objects contained within it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;br /&gt;The following is an example of using the SCHEMAS parameter.&lt;br /&gt;You can create the expdat.dmp file used in this example by running the example provided for the&lt;br /&gt;Export SCHEMAS parameter.&lt;br /&gt;&lt;br /&gt;$impdp hr/hr SCHEMAS=hr,oe DIRECTORY=dpump_dir1 LOGFILE=schemas.log&lt;br /&gt;&lt;br /&gt;DUMPFILE=expdat.dmp&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The hr and oe schemas are imported from the expdat.dmp file.&lt;br /&gt;The log file, schemas.log, is written to dpump_dir1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*Importing Only Particular Tables&lt;br /&gt;&lt;br /&gt;The following example shows a simple use of the TABLES parameter to import only&lt;br /&gt;the employees and jobs tables from the expfull.dmp file.&lt;br /&gt;You can create the expfull.dmp dump file used in this example by running the example&lt;br /&gt;provided for the Full Database Export in Previous Topic.&lt;br /&gt;&lt;br /&gt;$impdp hr/hr DIRECTORY=dpump_dir1 DUMPFILE=expfull.dmp TABLES=employees,jobs&lt;br /&gt;&lt;br /&gt;This will import only employees and jobs tables from the DUMPFILE.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*Running Import Utility in Interactive Mode&lt;br /&gt;&lt;br /&gt;Similar to the DATA PUMP EXPORT utility the Data Pump Import Jobs can also be suspended, resumed or killed. And, you can attach to an already existing import job from any client machine.&lt;br /&gt;&lt;br /&gt;For Example, suppose a DBA starts a importing by typing the following command at one client machine CLNT1 by typing the following command&lt;br /&gt;&lt;br /&gt;$impdp scott/tiger@mydb FULL=y DIRECTORY=data_pump_dir &lt;br /&gt;     DUMPFILE=full.dmp LOGFILE=myfullexp.log JOB_NAME=myfullJob&lt;br /&gt;&lt;br /&gt;After some time, the DBA wants to stop this job temporarily. Then he presses CTRL+C to enter into interactive mode. Then he will get the Import&gt; prompt where he can type interactive commands&lt;br /&gt;&lt;br /&gt;Now he wants to stop this export job so he will type the following command&lt;br /&gt;&lt;br /&gt;Import&gt; STOP_JOB=IMMEDIATE&lt;br /&gt;Are you sure you wish to stop this job ([y]/n): y&lt;br /&gt;&lt;br /&gt;The job is placed in a stopped state and exits the client.&lt;br /&gt;&lt;br /&gt;After finishing his other work, the DBA wants to resume the export job and the client machine from where he actually started the job is locked because,&lt;br /&gt;the user has locked his/her cabin. So now the DBA will go to another client machine and he reattach&lt;br /&gt;to the job by typing the following command&lt;br /&gt;&lt;br /&gt;$impdp hr/hr@mydb ATTACH=myfulljob&lt;br /&gt;&lt;br /&gt;After the job status is displayed, he can issue the CONTINUE_CLIENT command to resume logging mode&lt;br /&gt;and restart the myfulljob job.&lt;br /&gt;&lt;br /&gt;Import&gt; CONTINUE_CLIENT&lt;br /&gt;&lt;br /&gt;A message is displayed that the job has been reopened, and processing status is output to the client.&lt;br /&gt;&lt;br /&gt;Note: After reattaching to the Job a DBA can also kill the job by typing KILL_JOB, if he doesn’t&lt;br /&gt;want to continue with the import job.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4589745859548406231?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4589745859548406231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4589745859548406231' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4589745859548406231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4589745859548406231'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/impdp.html' title='impdp'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8372074130401945302</id><published>2007-11-05T17:49:00.001-08:00</published><updated>2007-11-05T17:51:35.496-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tde'/><title type='text'>oracle TDE</title><content type='html'>connect / as sysdba&lt;br /&gt;or creating a wallet a folder named wallet should be present in the directory&lt;br /&gt;$ORACLEBASE/admin/$ORACLESID&lt;br /&gt;&lt;br /&gt;Location of wallet can be changed if required. This can be done by entering the directory path for WALLET_LOCATION parameter in sqlnet.ora file as shown below&lt;br /&gt;&lt;br /&gt;WALLET_LOCATION = (SOURCE=&lt;br /&gt;                    (METHOD = FILE)&lt;br /&gt;                    (METHOD_DATA =&lt;br /&gt;                        (DIRECTORY=/u02/wallets)&lt;br /&gt;                        )))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;alter system set key identified by "welcome1";&lt;br /&gt;&lt;br /&gt;For later sessions, you do not want to use the command given above; you need the wallet to be open (it has been closed when you shut down your database), but you don't want to create a new master key. Then the command is:&lt;br /&gt;&lt;br /&gt;alter system set wallet open identified by "welcome1";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;create table cust_payment_info&lt;br /&gt; (first_name varchar2(11),&lt;br /&gt; last_name varchar2(10),&lt;br /&gt; order_number number(5),&lt;br /&gt; credit_card_number varchar2(16) ENCRYPT NO SALT,&lt;br /&gt; active_card varchar2(3));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;insert into cust_payment_info values&lt;br /&gt; ('Jon', 'Oldfield', 10001, '5446959708812985','YES');&lt;br /&gt;insert into cust_payment_info values&lt;br /&gt; ('Chris', 'White', 10002, '5122358046082560','YES');&lt;br /&gt;insert into cust_payment_info values&lt;br /&gt; ('Alan', 'Squire', 10003, '5595968943757920','YES');&lt;br /&gt;insert into cust_payment_info values&lt;br /&gt; ('Mike', 'Anderson', 10004, '4929889576357400','YES');&lt;br /&gt;insert into cust_payment_info values&lt;br /&gt; ('Annie', 'Schmidt', 10005, '4556988708236902','YES');&lt;br /&gt;insert into cust_payment_info values&lt;br /&gt; ('Elliott', 'Meyer', 10006, '374366599711820','YES');&lt;br /&gt;insert into cust_payment_info values&lt;br /&gt; ('Celine', 'Smith', 10007, '4716898533036','YES');&lt;br /&gt;insert into cust_payment_info values&lt;br /&gt; ('Steve', 'Haslam', 10008, '340975900376858','YES');&lt;br /&gt;insert into cust_payment_info values&lt;br /&gt; ('Albert', 'Einstein', 10009, '310654305412389','YES');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/devel/app/oracle/admin/dev10g/wallets&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;view sqlnet.ora&lt;br /&gt;WALLET_LOCATION = (SOURCE=&lt;br /&gt;                    (METHOD = FILE)&lt;br /&gt;                    (METHOD_DATA =&lt;br /&gt;                        (DIRECTORY=/devel/app/oracle/admin/dev10g/wallets)&lt;br /&gt;                        )))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; alter system set key identified by "pass";&lt;br /&gt;&lt;br /&gt;System altered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example 3-3 Adding Salt to an Encrypted Column&lt;br /&gt;&lt;br /&gt;ALTER TABLE employee MODIFY (first_name ENCRYPT SALT);&lt;br /&gt;&lt;br /&gt;Example 3-4 Removing Salt from an Encrypted Column&lt;br /&gt;&lt;br /&gt;ALTER TABLE employee MODIFY (first_name ENCRYPT NO SALT);&lt;br /&gt;&lt;br /&gt;expdp system/manager dumpfile=test.dmp directory=tmp_dir tables=scott.emp encryption_password=pass&lt;br /&gt;&lt;br /&gt;impdp system/manager tables=emp dumpfile=test.dmp directory=tmp_dir encryption_password=pass&lt;br /&gt;&lt;br /&gt;Import: Release 10.2.0.1.0 - Production on Tuesday, 18 September, 2007 12:17:55&lt;br /&gt;&lt;br /&gt;Copyright (c) 2003, 2005, Oracle.  All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production&lt;br /&gt;With the Partitioning, OLAP and Data Mining options&lt;br /&gt;ORA-39001: invalid argument value&lt;br /&gt;ORA-39180: unable to encrypt ENCRYPTION_PASSWORD&lt;br /&gt;ORA-28365: wallet is not open&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; create directory test as 'c:\temp';&lt;br /&gt;Directory created.&lt;br /&gt;&lt;br /&gt;SQL&gt; grant all on directory test to public;&lt;br /&gt;Grant succeeded.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;impdp system/manager tables=emp dumpfile=test.dmp directory=tmp_dir encryption_password=pass REMAP_SCHEMA=scott:system  remap_tablespace=users:system&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;after reboot of database&lt;br /&gt;&lt;br /&gt;SQL&gt; alter system set encryption wallet open identified by "pass";&lt;br /&gt;&lt;br /&gt;System altered.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8372074130401945302?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8372074130401945302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8372074130401945302' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8372074130401945302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8372074130401945302'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/oracle-tde.html' title='oracle TDE'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-1763592286492565068</id><published>2007-11-05T17:01:00.000-08:00</published><updated>2007-11-05T17:02:32.103-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>prereq- oracle 10g on linux 64bit</title><content type='html'>/usr/sbin/useradd nobody&lt;br /&gt;&lt;br /&gt;/etc/sysctl.conf&lt;br /&gt;&lt;br /&gt;kernel.shmall = 2097152&lt;br /&gt;kernel.shmmax = 2147483648&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 65000&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;&lt;br /&gt;/etc/security/limits.conf&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;/etc/pam.d/login&lt;br /&gt;&lt;br /&gt;session required pam_limits.so&lt;br /&gt;&lt;br /&gt;For the Bourne, Bash, or Korn shell, add the following lines to the&lt;br /&gt;/etc/profile file (or the /etc/profile.local file on SUSE systems):&lt;br /&gt;&lt;br /&gt;if [ $USER = "oracle" ]; then&lt;br /&gt;if [ $SHELL = "/bin/ksh" ]; then&lt;br /&gt;ulimit -p 16384&lt;br /&gt;ulimit -n 65536&lt;br /&gt;else&lt;br /&gt;ulimit -u 16384 -n 65536&lt;br /&gt;fi&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;mkdir -p /mount_point/app/oracle_sw_owner&lt;br /&gt;chown -R oracle:oinstall /mount_point/app/oracle_sw_owner&lt;br /&gt;chmod -R 775 /mount_point/app/oracle_sw_owner&lt;br /&gt;&lt;br /&gt;e.g /u01/app/oracle&lt;br /&gt;&lt;br /&gt;[root@localhost oracle]# mkdir /u01&lt;br /&gt;[root@localhost oracle]# mkdir /u01/app&lt;br /&gt;[root@localhost oracle]# mkdir /u01/app/oracle&lt;br /&gt;[root@localhost oracle]# chown -R oracle:oinstall /u01/app/oracle&lt;br /&gt;[root@localhost oracle]# chmod -R 775 /u01/app/oracle&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ASM&lt;br /&gt;&lt;br /&gt;rpm -Uvh oracleasm-support-1.0.0-1.i386.rpm \&lt;br /&gt;oracleasm-2.4.9-e-enterprise-1.0.0-1.i686.rpm \&lt;br /&gt;oracleasmlib-1.0.0-1.i386.rpm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/etc/init.d/oracleasm configure&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-1763592286492565068?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/1763592286492565068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=1763592286492565068' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1763592286492565068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/1763592286492565068'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/prereq-oracle-10g-on-linux-64bit.html' title='prereq- oracle 10g on linux 64bit'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-6100680024257998627</id><published>2007-11-05T13:36:00.001-08:00</published><updated>2007-11-05T13:37:35.221-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dataguard'/><title type='text'>Dataguard 9i</title><content type='html'>primary&lt;br /&gt;LOG_ARCHIVE_START=TRUE&lt;br /&gt;LOG_ARCHIVE_FORMAT=sfpvtl_%t_%s.log&lt;br /&gt;&lt;br /&gt;# Parameters for DataGuard Primary database role&lt;br /&gt;LOG_ARCHIVE_DEST_1='LOCATION=/sfpvtl/archlogs01/oracle/sfpvtl'&lt;br /&gt;&lt;br /&gt;# Location of the StandBy Database&lt;br /&gt;LOG_ARCHIVE_DEST_2 = 'SERVICE=sfpvtl_stdby'&lt;br /&gt;LOG_ARCHIVE_DEST_STATE_2 = ENABLE&lt;br /&gt;&lt;br /&gt;# Primary Database 2 archive log file system&lt;br /&gt;LOG_ARCHIVE_DEST_3 = 'LOCATION=/sfpvtl/archlogs02/oracle/sfpvtl'&lt;br /&gt;LOG_ARCHIVE_DEST_STATE_3 = DEFER&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;standby&lt;br /&gt;LOG_ARCHIVE_START=TRUE&lt;br /&gt;LOG_ARCHIVE_FORMAT=sfpvtl_%t_%s.log&lt;br /&gt;&lt;br /&gt;# Parameters for DataGuard Primary database role&lt;br /&gt;LOG_ARCHIVE_DEST_1='LOCATION=/sfpvtl/archlogs01/oracle/sfpvtl'&lt;br /&gt;&lt;br /&gt;# Location of the StandBy Database&lt;br /&gt;LOG_ARCHIVE_DEST_2 = 'SERVICE=sfpvtl_stdby'&lt;br /&gt;LOG_ARCHIVE_DEST_STATE_2 = ENABLE&lt;br /&gt;&lt;br /&gt;# Primary Database 2 archive log file system&lt;br /&gt;LOG_ARCHIVE_DEST_3 = 'LOCATION=/sfpvtl/archlogs02/oracle/sfpvtl'&lt;br /&gt;LOG_ARCHIVE_DEST_STATE_3 = DEFER&lt;br /&gt;&lt;br /&gt;#LOG_ARCHIVE_DEST=/sfpvtl/archlogs01/oracle/sfpvtl&lt;br /&gt;fal_client='sfpvtl_pri'&lt;br /&gt;fal_server='sfpvtl_stdby'&lt;br /&gt;&lt;br /&gt;standby_archive_dest='/sfpvtl/standbylogs01/oracle/sfpvtl'&lt;br /&gt;standby_file_management='auto'&lt;br /&gt;&lt;br /&gt;rman-&lt;br /&gt;&lt;br /&gt;BACKUP DATABASE&lt;br /&gt; INCLUDE CURRENT CONTROLFILE FOR STANDBY&lt;br /&gt; PLUS ARCHIVELOG;&lt;br /&gt;&lt;br /&gt;rsync -avvzrlpogt * --rsync-path=/opt/csw/bin/rsync -e ssh oracle@asb-con-dbs-001:/obackup/oracle/aug24/&lt;br /&gt;&lt;br /&gt;rman target / auxiliary sys/syspopv@popv_stdby&lt;br /&gt;duplicate target database for standby nofilenamecheck;&lt;br /&gt;&lt;br /&gt;startup nomount&lt;br /&gt;ALTER DATABASE MOUNT STANDBY DATABASE;&lt;br /&gt;alter database recover managed standby database disconnect from session;&lt;br /&gt;&lt;br /&gt;read only&lt;br /&gt;&lt;br /&gt;startup nomount&lt;br /&gt;alter database mount standby database;&lt;br /&gt;alter database open read only;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-6100680024257998627?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/6100680024257998627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=6100680024257998627' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6100680024257998627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/6100680024257998627'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/dataguard-9i.html' title='Dataguard 9i'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5897779342909403963</id><published>2007-11-05T11:00:00.000-08:00</published><updated>2007-11-05T11:04:54.783-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><title type='text'>RMAN  "memory fault"</title><content type='html'>saw this in  a oracle-l post.&lt;br /&gt;From Mr Dave . Herring&lt;br /&gt;&lt;br /&gt;In working with Oracle on this issue, they had me recreate my controlfiles, then add a second channel allocation as part of the DELETE OBSOLETE, this one to disk. &lt;br /&gt;&lt;br /&gt;All backups perform the following as their last step:&lt;br /&gt;&lt;br /&gt;           SQL 'ALTER SESSION SET tracefile_identifier=CONTROLFILE';&lt;br /&gt;           SQL 'ALTER DATABASE BACKUP CONTROLFILE TO trace';&lt;br /&gt;&lt;br /&gt;... and for some reason not being able to automatically remove obsolete versions of this controlfile backup was part of the problem&lt;br /&gt;&lt;br /&gt;follows the situation&lt;br /&gt;&lt;br /&gt;&gt; I've got a regular job to delete obsolete pieces from our RMAN catalog,&lt;br /&gt;&gt; which now is failing with "Memory fault".  The system is Tru64 5.1b&lt;br /&gt;&gt; running Oracle 9.2.0.6 and the RMAN catalog is 10.2.0.2.  Backups are to&lt;br /&gt;&gt; tape using Legato Networker 7.1.1.&lt;br /&gt;&gt;&lt;br /&gt;&gt; The procedure is very simple, just connecting to the target and catalog,&lt;br /&gt;&gt; allocating a channel and deleting:&lt;br /&gt;&gt;&lt;br /&gt;&gt; CONNECT CATALOG ../..@..&lt;br /&gt;&gt; CONNECT TARGET ../..@..&lt;br /&gt;&gt; ALLOCATE CHANNEL FOR MAINTENANCE DEVICE TYPE sbt_tape;&lt;br /&gt;&gt; DELETE NOPROMPT OBSOLETE;&lt;br /&gt;&gt;&lt;br /&gt;&gt; The ONLY thing I get back is:&lt;br /&gt;&gt;&lt;br /&gt;&gt; RMAN retention policy will be applied to the command&lt;br /&gt;&gt; RMAN retention policy is set to redundancy 4&lt;br /&gt;&gt; Memory fault&lt;br /&gt;&gt;&lt;br /&gt;&gt; No Oracle errors show up in either database.  I can't find messages or&lt;br /&gt;&gt; info anywhere as to why this is happening.  I tried setting my retention&lt;br /&gt;&gt; to larger numbers, thinking there's too many pieces to delete, but that&lt;br /&gt;&gt; didn't work.  Current retention is 4 copies.  I also tried using RECOVERY&lt;br /&gt;&gt; WINDOW TO xxx DAYS, which failed too.  I even truss'ed the session and it&lt;br /&gt;&gt; ends with:&lt;br /&gt;&gt;&lt;br /&gt;&gt;          ...&lt;br /&gt;&gt; write(10, "\0BD\0\006\0\0\0\0\003 ^".., 189)    = 189&lt;br /&gt;&gt; read(10, "01 m\0\006\0\0\0\0\00701".., 2064)    = 365&lt;br /&gt;&gt; write(10, "\0BD\0\006\0\0\0\0\003 ^".., 189)    = 189&lt;br /&gt;&gt; read(10, "01 t\0\006\0\0\0\0\00701".., 2064)    = 372&lt;br /&gt;&gt;     Incurred fault #32, FLTBOUNDS  %pc = 0x000000012105DD84   addr =&lt;br /&gt;&gt; 0x000000011FFF4D00&lt;br /&gt;&gt;     Received signal #11, SIGSEGV [default]&lt;br /&gt;&gt;       siginfo: SIGSEGV SEGV_MAPERR addr=0x0000000000000058&lt;br /&gt;&gt;                                                 Err#11 Error 11 occurred.&lt;br /&gt;&gt;         *** process killed ***&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-5897779342909403963?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5897779342909403963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5897779342909403963' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5897779342909403963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5897779342909403963'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/rman-memory-fault.html' title='RMAN  &quot;memory fault&quot;'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-5085681229246945058</id><published>2007-11-02T20:14:00.000-07:00</published><updated>2007-11-02T22:09:15.084-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='dataguard'/><title type='text'>solaris upgrade to 10.2.0.3 from 10.2.0.1</title><content type='html'>install the patch p5337014_10203_SOLARIS64.zip&lt;br /&gt;&lt;br /&gt;startup upgrade&lt;br /&gt;@?/rdbms/admin/catupgrd.sql&lt;br /&gt;shutdown immediate&lt;br /&gt;&lt;br /&gt;as this was a primary db on a dataguard config.&lt;br /&gt;&lt;br /&gt;we just created a tar out from the 10.2.0.3 in primary and extracted into the standby db&lt;br /&gt;&lt;br /&gt;and started the standby db in standby recovery mode and automatically all the archivelog were transmitted from primary to standby and the db was automatically upgraded . we didnt have to run catupgrd on standby.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-5085681229246945058?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/5085681229246945058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=5085681229246945058' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5085681229246945058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/5085681229246945058'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/solaris-upgrade-to-10203-from-10201.html' title='solaris upgrade to 10.2.0.3 from 10.2.0.1'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4989382524357475719</id><published>2007-11-02T18:15:00.001-07:00</published><updated>2007-11-29T17:52:39.988-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>rsync</title><content type='html'>rsync -avvzrlpogt p5337014_10203_SOLARIS64.zip --rsync-path=/opt/csw/bin/rsync -e ssh oracle@asb-sac-nms-001:/obackup/oracle/popv/&lt;br /&gt;&lt;br /&gt;check the status&lt;br /&gt;&lt;br /&gt;oracle@asb-con-dbm-001:~/software&gt; rsync -avvzrlpogt p5337014_10203_SOLARIS64.zip --stats --progress --rsync-path=/opt/csw/bin/rsync -e ssh oracle@asb-sac-nms-001:/obackup/oracle/popv/&lt;br /&gt;&lt;br /&gt;rsync from remote to local&lt;br /&gt;&lt;br /&gt;/opt/csw/bin/rsync --progress -avvzrlpogt --rsync-path=/opt/csw/bin/rsync -e ssh oracle@10.247.48.18:/obackup/obackup2/PRRS/cold/20071109/prrs03/syst*.dbf  .&lt;br /&gt;&lt;br /&gt;nohup rsync&lt;br /&gt;&lt;br /&gt;nohup rsync -avvzrlpogt --stats --progress * --rsync-path=/usr/local/bin/rsync -e ssh oracle@172.16.4.135:/obackup/oracle/mtrx/hot/&lt;br /&gt;&lt;br /&gt;ctrl+z&lt;br /&gt;bg %1&lt;br /&gt;&lt;br /&gt;tail -f nohup.out&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4989382524357475719?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4989382524357475719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4989382524357475719' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4989382524357475719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4989382524357475719'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/rsync.html' title='rsync'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8083876273325755583</id><published>2007-11-02T15:44:00.000-07:00</published><updated>2007-11-02T15:49:57.905-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>color your windows command editor</title><content type='html'>set the properties -&gt; edit option -&gt; quick edit mode.&lt;br /&gt;&lt;br /&gt;create a DWORD value in Windows registry &lt;strong style="font-weight: normal;"&gt;HKEY_CURRENT_USER\Console\EnableColorSelection&lt;/strong&gt; and set it to &lt;strong&gt;1&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;now select something on the cmd.exe editor and press ctrl or alt +0..9&lt;br /&gt;&lt;strong&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8083876273325755583?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8083876273325755583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8083876273325755583' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8083876273325755583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8083876273325755583'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/color-your-windows-command-editor.html' title='color your windows command editor'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-8121233859488915661</id><published>2007-11-02T15:12:00.000-07:00</published><updated>2007-11-02T15:27:21.622-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trace'/><title type='text'>tkprof</title><content type='html'>&lt;pre&gt;&lt;code&gt;alter session set "_dump_qbc_tree"=1;&lt;br /&gt;&lt;/code&gt;&lt;code&gt;alter session set "_simple_view_merging"=false;&lt;br /&gt;&lt;br /&gt;SQL&gt; alter session set events '10046 trace name context&lt;br /&gt; forever,level 12';&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter session set events '10046 trace name context off';&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;tkprof&lt;br /&gt;Usage: tkprof tracefile outputfile [explain= ] [table= ]&lt;br /&gt;            [print= ] [insert= ] [sys= ] [sort= ]&lt;br /&gt;table=schema.tablename   Use 'schema.tablename' with 'explain=' option.&lt;br /&gt;explain=user/password    Connect to ORACLE and issue EXPLAIN PLAN.&lt;br /&gt;print=integer    List only the first 'integer' SQL statements.&lt;br /&gt;aggregate=yes|no&lt;br /&gt;insert=filename  List SQL statements and data inside INSERT statements.&lt;br /&gt;sys=no           TKPROF does not list SQL statements run as user SYS.&lt;br /&gt;record=filename  Record non-recursive statements found in the trace file.&lt;br /&gt;waits=yes|no     Record summary for any wait events found in the trace file.&lt;br /&gt;sort=option      Set of zero or more of the following sort options:&lt;br /&gt;  prscnt  number of times parse was called&lt;br /&gt;  prscpu  cpu time parsing&lt;br /&gt;  prsela  elapsed time parsing&lt;br /&gt;  prsdsk  number of disk reads during parse&lt;br /&gt;  prsqry  number of buffers for consistent read during parse&lt;br /&gt;  prscu   number of buffers for current read during parse&lt;br /&gt;  prsmis  number of misses in library cache during parse&lt;br /&gt;  execnt  number of execute was called&lt;br /&gt;  execpu  cpu time spent executing&lt;br /&gt;  exeela  elapsed time executing&lt;br /&gt;  exedsk  number of disk reads during execute&lt;br /&gt;  exeqry  number of buffers for consistent read during execute&lt;br /&gt;  execu   number of buffers for current read during execute&lt;br /&gt;  exerow  number of rows processed during execute&lt;br /&gt;  exemis  number of library cache misses during execute&lt;br /&gt;  fchcnt  number of times fetch was called&lt;br /&gt;  fchcpu  cpu time spent fetching&lt;br /&gt;  fchela  elapsed time fetching&lt;br /&gt;  fchdsk  number of disk reads during fetch&lt;br /&gt;  fchqry  number of buffers for consistent read during fetch&lt;br /&gt;  fchcu   number of buffers for current read during fetch&lt;br /&gt;  fchrow  number of rows fetched&lt;br /&gt;  userid  userid of user that parsed the cursor&lt;br /&gt;&lt;br /&gt;Sort options: default&lt;br /&gt;&lt;br /&gt;tkprof output&lt;br /&gt;********************************************************************************&lt;br /&gt;count    = number of times OCI procedure was executed&lt;br /&gt;cpu      = cpu time in seconds executing&lt;br /&gt;elapsed  = elapsed time in seconds executing&lt;br /&gt;disk     = number of physical reads of buffers from disk&lt;br /&gt;query    = number of buffers gotten for consistent read&lt;br /&gt;current  = number of buffers gotten in current mode (usually for update)&lt;br /&gt;rows     = number of rows processed by the fetch or execute call&lt;br /&gt;********************************************************************************&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-8121233859488915661?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/8121233859488915661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=8121233859488915661' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8121233859488915661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/8121233859488915661'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/tkprof.html' title='tkprof'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-3083868687161828513</id><published>2007-11-02T11:45:00.000-07:00</published><updated>2007-11-02T11:48:51.548-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><title type='text'>rman restore validate database  taking a long time</title><content type='html'>One of the database was taking really long time while doing the rman restore validate database.&lt;br /&gt;somehow I found out the oracle process for this db was running under oinstall . and the oracle user which was only part of dba group was doing the rman. not sure if it is the cause but after making oracle user also as part of oinstall it started  to validate as expected.&lt;br /&gt;&lt;br /&gt;solaris&lt;br /&gt;bash-2.03$ id -a&lt;br /&gt;uid=600(oracle) gid=600(dba) groups=600(dba),1005(oinstall)&lt;br /&gt;&lt;br /&gt;still confused....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-3083868687161828513?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/3083868687161828513/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=3083868687161828513' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3083868687161828513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3083868687161828513'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/rman-restore-validate-database-taking.html' title='rman restore validate database  taking a long time'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-3638969543590963681</id><published>2007-11-02T11:37:00.000-07:00</published><updated>2007-11-02T16:04:38.956-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trace'/><title type='text'>truss a os process</title><content type='html'>$&gt;ps -ef| grep 16069| grep -v grep&lt;br /&gt;oracle 16069     1  0 14:07:17 ?        0:00 ora_d000_mtrx&lt;br /&gt;&lt;br /&gt;$&gt;truss -o a.log -p 16069&lt;br /&gt;&lt;br /&gt;$&gt;cat a.log&lt;br /&gt;poll(0x106785F40, 2, 60000)     (sleeping...)&lt;br /&gt;&lt;br /&gt;few other tools that helps&lt;br /&gt;ps&lt;br /&gt;prstat&lt;br /&gt;pstatck -&lt;br /&gt;&lt;br /&gt;for linux -  strace&lt;br /&gt;tru64  trace&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-3638969543590963681?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/3638969543590963681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=3638969543590963681' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3638969543590963681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3638969543590963681'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/truss-os-process.html' title='truss a os process'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-7869250090030346677</id><published>2007-11-02T11:20:00.000-07:00</published><updated>2007-11-02T11:24:25.167-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trace'/><category scheme='http://www.blogger.com/atom/ns#' term='mview'/><title type='text'>trace over dblink</title><content type='html'>CONNECT / AS SYSDBA&lt;br /&gt;grant alter session to &lt;&lt;user&gt;&gt;;&lt;br /&gt;alter system set timed_statistics=true;&lt;br /&gt;alter system set max_dump_file_size=unlimited;&lt;br /&gt;CONNECT &lt;&lt;user&gt;&gt;/&lt;&lt;password&gt;&gt;&lt;br /&gt;/* create this procedure on local and remote site */&lt;br /&gt;CREATE OR REPLACE PROCEDURE SETTRACE_ON&lt;br /&gt;     as&lt;br /&gt;     c1  integer;&lt;br /&gt;     r1 integer;&lt;br /&gt;BEGIN&lt;br /&gt;     c1:=dbms_sql.open_cursor;&lt;br /&gt;     dbms_sql.parse(c1,'alter session set timed_statistics=true', dbms_sql.v7);&lt;br /&gt;     r1:=dbms_sql.execute(c1);          &lt;br /&gt;     dbms_sql.parse(c1,'alter session set max_dump_file_size=unlimited', dbms_sql.v7);&lt;br /&gt;     r1:=dbms_sql.execute(c1);                &lt;br /&gt;     dbms_sql.parse(c1,'alter session set tracefile_identifier=''mv''', dbms_sql.v7);&lt;br /&gt;     r1:=dbms_sql.execute(c1);          &lt;br /&gt;     dbms_sql.parse(c1,'alter session set events ''10046 trace name context for&lt;br /&gt;ever, level 12''',dbms_sql.v7);&lt;br /&gt;     r1:=dbms_sql.execute(c1);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;CREATE OR REPLACE PROCEDURE SETTRACE_OFF&lt;br /&gt;     as&lt;br /&gt;     c1  integer;&lt;br /&gt;     r1 integer;&lt;br /&gt;BEGIN&lt;br /&gt;     c1:=dbms_sql.open_cursor;                      &lt;br /&gt;     dbms_sql.parse(c1,'alter session set events ''10046 trace name context off''',dbms_sql.v7);&lt;br /&gt;     r1:=dbms_sql.execute(c1);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;connect &lt;user&gt;/&lt;pwd&gt;&lt;br /&gt;execute SETTRACE_ON&lt;br /&gt;execute SETTRACE_ON@&lt;dblink&gt;&lt;br /&gt;execute dbms_mview.refresh(....);&lt;br /&gt;--wait for 15 mins and CTRIL+C&lt;br /&gt;exit;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-7869250090030346677?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/7869250090030346677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=7869250090030346677' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7869250090030346677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7869250090030346677'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/trace-over-dblink.html' title='trace over dblink'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-4458403798095689875</id><published>2007-11-02T11:18:00.000-07:00</published><updated>2007-11-02T11:19:07.583-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trace'/><title type='text'>trace oracle session</title><content type='html'>dbms_system.set_bool_param_in_session(&lt;br /&gt;   sid     =&gt; 42,&lt;br /&gt;   serial# =&gt; 1215,&lt;br /&gt;   parnam  =&gt; 'timed_statistics',&lt;br /&gt;   bval    =&gt; true)&lt;br /&gt;dbms_system.set_int_param_in_session(&lt;br /&gt;   sid     =&gt; 42,&lt;br /&gt;   serial# =&gt; 1215,&lt;br /&gt;   parnam  =&gt; 'max_dump_file_size',&lt;br /&gt;   intval  =&gt; 2147483647)&lt;br /&gt;&lt;br /&gt;SQL&gt; alter session set events '10046 trace name context forever,level 12';&lt;br /&gt;&lt;br /&gt;Session altered.&lt;br /&gt;&lt;br /&gt;SQL&gt; alter session set events '10046 trace name context off';&lt;br /&gt;&lt;br /&gt;Session altered.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-4458403798095689875?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/4458403798095689875/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=4458403798095689875' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4458403798095689875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/4458403798095689875'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/trace-oracle-session.html' title='trace oracle session'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-7276454421498133393</id><published>2007-11-02T11:16:00.001-07:00</published><updated>2007-11-02T11:17:36.349-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trace'/><title type='text'>oradebug</title><content type='html'>SELECT    p.program, p.spid, s.saddr, s.sid, s.serial#, s.username,&lt;br /&gt;    s.osuser, s.machine, s.program, s.logon_time, s.status&lt;br /&gt;FROM v$session s, v$process p&lt;br /&gt;WHERE s.paddr = p.addr&lt;br /&gt;AND s.sid =&lt;397&gt;&lt;br /&gt;&lt;br /&gt;sql&gt;oradebug setospid  &lt;p.spid&gt;&lt;p.spid&gt;&lt;br /&gt;sql&gt;oradebug unlimit&lt;br /&gt;sql&gt;oradebug dump errorstack 3;&lt;br /&gt;&lt;wait&gt;&lt;br /&gt;sql&gt;oradebug dump errorstack 3;&lt;br /&gt;&lt;wait&gt;&lt;br /&gt;sql&gt;oradebug dump errorstack 3;&lt;br /&gt;sql&gt;oradebug tracefile_name&lt;br /&gt;sql&gt;exit&lt;/wait&gt;&lt;/wait&gt;&lt;/p.spid&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-7276454421498133393?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/7276454421498133393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=7276454421498133393' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7276454421498133393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/7276454421498133393'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/oradebug.html' title='oradebug'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-3807855700973068651</id><published>2007-11-01T22:04:00.000-07:00</published><updated>2007-11-01T22:05:02.262-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><title type='text'>firefox magic</title><content type='html'>Type about:config in the address bar&lt;br /&gt;     &lt;br /&gt;      network.http.max-connections-per-server =32&lt;br /&gt;      network.http.max-persistent-connections-per-proxy =16&lt;br /&gt;      network.http.max-connections = 64&lt;br /&gt;      network.http.max-persistent-connections-per-server = 10&lt;br /&gt;      network.http.pipelining = true&lt;br /&gt;      network.http.pipelining.maxrequests = 200&lt;br /&gt;      network.http.request.max-start-delay = 0&lt;br /&gt;      network.http.proxy.pipelining = true&lt;br /&gt;      network.http.proxy.version = 1.0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-3807855700973068651?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/3807855700973068651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=3807855700973068651' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3807855700973068651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3807855700973068651'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/firefox-magic.html' title='firefox magic'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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-6015060604187975214.post-3654630666815184374</id><published>2007-11-01T16:19:00.000-07:00</published><updated>2007-11-01T17:07:48.002-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman'/><title type='text'>rman backup of controlfile</title><content type='html'>RMAN&gt; list backup of controlfile completed before 'sysdate -4/24';&lt;br /&gt;&lt;br /&gt;RMAN&gt; delete noprompt backup of controlfile completed before 'sysdate -4/24';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;crosscheck backup of controlfile;&lt;br /&gt;delete noprompt expired backup of controlfile;&lt;br /&gt;&lt;a href="javascript:void(0)" tabindex="10" onclick="return false;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6015060604187975214-3654630666815184374?l=p4cl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://p4cl.blogspot.com/feeds/3654630666815184374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6015060604187975214&amp;postID=3654630666815184374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3654630666815184374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6015060604187975214/posts/default/3654630666815184374'/><link rel='alternate' type='text/html' href='http://p4cl.blogspot.com/2007/11/rman-backup-of-controlfile.html' title='rman backup of controlfile'/><author><name>Prasad N</name><uri>http://www.blogger.com/profile/05705786750116282619</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>
