<?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:blogger='http://schemas.google.com/blogger/2008' 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-6718035270796119870</id><updated>2026-02-17T01:00:45.591-08:00</updated><category term="EXPDP  IMPDP in WINDOWS 2003 SERVER ERROR"/><title type='text'>Oracle World</title><subtitle type='html'>Just A Checkpoint Away From You</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>80</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-4097267424109458496</id><published>2017-09-08T08:49:00.001-07:00</published><updated>2017-09-08T08:49:41.375-07:00</updated><title type='text'>Driving Site Hint is not working with Insert statement</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;We had recently came across a situation that, Driving site Hint is not working with insert statement. Please see the test case below. Here you can see that select statement is working fine with hint and Driving site&amp;nbsp; Hint is not working as expected&amp;nbsp; when we add insert statement at the beginning.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: inherit; font-style: inherit; font-weight: 700; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Select statement with hint(Working fine as expected)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;Execution Plan&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;----------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;Plan hash value: 1144483799&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;-----------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;| Id&amp;nbsp; | Operation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Rows&amp;nbsp; | Bytes |TempSpc| Cost (%CPU)| Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;-----------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;|&amp;nbsp;&amp;nbsp; 0 | SELECT STATEMENT REMOTE|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 160M|&amp;nbsp;&amp;nbsp;&amp;nbsp; 30G|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 15M&amp;nbsp; (1)| 00:09:57 |&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;|&amp;nbsp;&amp;nbsp; 1 |&amp;nbsp; HASH GROUP BY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 160M|&amp;nbsp;&amp;nbsp;&amp;nbsp; 30G|&amp;nbsp;&amp;nbsp;&amp;nbsp; 33G|&amp;nbsp;&amp;nbsp;&amp;nbsp; 15M&amp;nbsp; (1)| 00:09:57 |&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;|*&amp;nbsp; 2 |&amp;nbsp;&amp;nbsp; HASH JOIN RIGHT OUTER|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 160M|&amp;nbsp;&amp;nbsp;&amp;nbsp; 30G|&amp;nbsp;&amp;nbsp;&amp;nbsp; 18M|&amp;nbsp; 8120K&amp;nbsp; (1)| 00:05:18 |&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;|&amp;nbsp;&amp;nbsp; 3 |&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE ACCESS FULL&amp;nbsp;&amp;nbsp; | MASTER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 467K|&amp;nbsp;&amp;nbsp;&amp;nbsp; 12M|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 9744&amp;nbsp;&amp;nbsp; (1)| 00:00:01 |&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;|*&amp;nbsp; 4 |&amp;nbsp;&amp;nbsp;&amp;nbsp; HASH JOIN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 160M|&amp;nbsp;&amp;nbsp;&amp;nbsp; 26G|&amp;nbsp;&amp;nbsp; 121M|&amp;nbsp; 6687K&amp;nbsp; (1)| 00:04:22 |&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;|&amp;nbsp;&amp;nbsp; 5 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REMOTE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | JOBS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 1874K|&amp;nbsp;&amp;nbsp; 100M|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 17789&amp;nbsp;&amp;nbsp; (1)| 00:00:01 |&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;|*&amp;nbsp; 6 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE ACCESS FULL&amp;nbsp; | DETAILS_MASTER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; 304M|&amp;nbsp;&amp;nbsp;&amp;nbsp; 33G|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; 4777K&amp;nbsp; (1)| 00:03:07 |&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: xx-small;&quot;&gt;-----------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;In the above Execution plan you can see that Table &quot;JOBS&quot; referred as REMOTE and this query complete in 5 Minutes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: inherit; font-style: inherit; font-weight: 700; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Insert statement explain plan&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Plan hash value: 1159224495&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;-------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;| Id &amp;nbsp;| Operation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Rows &amp;nbsp;| Bytes |TempSpc| Cost (%CPU)| Time &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;-------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;| &amp;nbsp; 0 | INSERT STATEMENT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; 160M| &amp;nbsp; &amp;nbsp;52G| &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp;19M &amp;nbsp;(1)| 00:13:00 |&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;| &amp;nbsp; 1 | &amp;nbsp;LOAD TABLE CONVENTIONAL | SUMMARY_TMP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;| &amp;nbsp; 2 | &amp;nbsp; HASH GROUP BY &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; 160M| &amp;nbsp; &amp;nbsp;52G| &amp;nbsp; &amp;nbsp;55G| &amp;nbsp; &amp;nbsp;19M &amp;nbsp;(1)| 00:13:00 |&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;|* &amp;nbsp;3 | &amp;nbsp; &amp;nbsp;HASH JOIN RIGHT OUTER | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; 160M| &amp;nbsp; &amp;nbsp;52G| &amp;nbsp; &amp;nbsp;57M| &amp;nbsp;8000K &amp;nbsp;(1)| 00:05:13 |&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;| &amp;nbsp; 4 | &amp;nbsp; &amp;nbsp; REMOTE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | MASTER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; 467K| &amp;nbsp; &amp;nbsp;52M| &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp;6235 &amp;nbsp; (1)| 00:00:01 |&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;|* &amp;nbsp;5 | &amp;nbsp; &amp;nbsp; HASH JOIN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; 160M| &amp;nbsp; &amp;nbsp;34G| &amp;nbsp; &amp;nbsp;76M| &amp;nbsp;6144K &amp;nbsp;(1)| 00:04:01 |&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;| &amp;nbsp; 6 | &amp;nbsp; &amp;nbsp; &amp;nbsp;TABLE ACCESS FULL &amp;nbsp; | JOBS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp;1874K| &amp;nbsp; &amp;nbsp;55M| &amp;nbsp; &amp;nbsp; &amp;nbsp; | 27801 &amp;nbsp; (1)| 00:00:02 |&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;| &amp;nbsp; 7 | &amp;nbsp; &amp;nbsp; &amp;nbsp;REMOTE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| DETAILS_MASTER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; 304M| &amp;nbsp; &amp;nbsp;56G| &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp;3061K &amp;nbsp;(1)| 00:02:00 |&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier; font-size: xx-small;&quot;&gt;-------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;In the above execution plan, you can see that Table &quot;DETAILS_MASTER&quot; referred as REMOTE table and entire insert is taking almost 1 hour to complete their execution.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Comparison between both execution plan, we identified that Driving site hint is not working as expected with insert statement.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;I have decided to give a PL\SQL block to resolve this issue, Also added bulk collect + FOR ALL (Improve the Bulk Insert). Please see the below details.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;DECLARE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp; TYPE ARRAY IS TABLE OF alltmrsmry%ROWTYPE;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CURSOR get_data&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp; IS&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;select nbsp=&quot;&quot; statement=&quot;&quot;&gt;&amp;gt;&lt;/select&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp; l_data&amp;nbsp;&amp;nbsp; ARRAY;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp; OPEN get_data;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp; LOOP&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FETCH get_data&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BULK COLLECT INTO l_data LIMIT 2000;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FORALL i IN 1 .. l_data.COUNT&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSERT INTO SUMMARY_TMP&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUES l_data (i);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXIT WHEN get_data%NOTFOUND;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp; END LOOP;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CLOSE get_data;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;COMMIT;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;END;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Select query with Driving hint is working fine with cursor and insert 2000 rows each. Entire PL\SQL block (SELECT+INSERT) is completing in 10 minutes now.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; min-height: 8pt; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: content-box !important; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: content-box !important; font-family: &amp;quot;courier new&amp;quot;, courier; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Customer is Happy and also our team.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/4097267424109458496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2017/09/driving-site-hint-is-not-working-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/4097267424109458496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/4097267424109458496'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2017/09/driving-site-hint-is-not-working-with.html' title='Driving Site Hint is not working with Insert statement'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-212542826021503687</id><published>2016-07-04T20:29:00.003-07:00</published><updated>2016-07-04T20:38:37.442-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/212542826021503687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2016/07/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/212542826021503687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/212542826021503687'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2016/07/blog-post.html' title=''/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-7982628667041069588</id><published>2016-07-04T20:29:00.002-07:00</published><updated>2016-07-04T20:38:32.046-07:00</updated><title type='text'>Are we getting different plan by using bind variable for an SQL_ID?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;I wonder why are we getting
different plan for an SQL_ID while using bind variable. I have verified first
plan is going for a full table scan and second plan is going for an index read
instead of Full table scan. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;Did Optimizer played a bad game
again? No... Please do not blame optimizer every time &lt;/span&gt;&lt;span style=&quot;color: #44546a; font-family: &amp;quot;wingdings&amp;quot;;&quot;&gt;J&lt;/span&gt;&lt;span style=&quot;color: #44546a;&quot;&gt;.
There is a chance of skewed distribution of values in predicate column . &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;If Index histogram of the
predicate column has an accurate information about the skewed distribution, we
will get different plan sometime with respect to the predicate which we given.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;How it will work ?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;Adaptive Cursor is playing a
major role for this scenario.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;This feature will decide , if
plan has to be&amp;nbsp; recalculated when the bind variable values changes. Who is
helping to&amp;nbsp; make a good plan with respect to the bind variable value?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;of course, it is Index Histogram
, we should have accurate index histogram details otherwise they cannot make a
decision for recalculation(Wrong Estimation of Cardinality) and again it will
end up with bad performance&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;by using old cached execution
plan.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;Let me give a quick and simple
test.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;We
have a table called JOB_MASTER and which is having two column named JOB_ID,
JOB_CODE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;SQL&amp;gt;
DESC JOB_MASTER;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Null?&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;-----------------------------------------
-------- -------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;JOB_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
NUMBER(10)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;JOB_CODE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
VARCHAR2(10)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;And there is also a non-unique
index in the JOB_CODE column.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;Please
see the query passing from application side against this table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;SQL_ID:
cyt7c564y3nf6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;SQL_TEXT
:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;select
max(JOB_ID) from JOB_MASTER where JOB_CODE=:B1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;I
checked AWR history of this query and found we are getting different plan for
this particular SQL for most of the time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;PLAN_HASH_VALUE
SQL_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHILD_NUMBER&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;---------------
------------- ------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
4293876030
cyt7c564y3nf6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
1405390124
cyt7c564y3nf6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;Plan
with Table Scan :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;Execution Plan&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;----------------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;Plan hash value: 1405390124&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;--------------------------------------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;| Id&amp;nbsp; |
Operation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |
Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Rows&amp;nbsp; | Bytes | Cost (%CPU)|
Time&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;--------------------------------------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;|&amp;nbsp;&amp;nbsp; 0 | SELECT STATEMENT&amp;nbsp;&amp;nbsp;
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7 |&amp;nbsp;
3923&amp;nbsp;&amp;nbsp; (3)| 00:00:48&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;|&amp;nbsp;&amp;nbsp; 1 |&amp;nbsp; SORT AGGREGATE&amp;nbsp;&amp;nbsp;&amp;nbsp;
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;|*&amp;nbsp; 2 |&amp;nbsp;&amp;nbsp; TABLE ACCESS FULL| JOB_MASTER |&amp;nbsp;
4196K|&amp;nbsp;&amp;nbsp;&amp;nbsp; 28M|&amp;nbsp; 3923&amp;nbsp;&amp;nbsp; (3)|
00:00:48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =====&amp;gt; Full Table Scan&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;|&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;--------------------------------------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;3 - access(&quot;JOB_CODE&quot;=&#39;DBA&#39;)&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;Second Plan with Index Read:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;Execution Plan&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;----------------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;Plan hash value: 4293876030&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;-------------------------------------------------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;| Id&amp;nbsp; |
Operation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
| Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Rows&amp;nbsp; | Bytes | Cost (%CPU)|
Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;-------------------------------------------------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;|&amp;nbsp;&amp;nbsp; 0 | SELECT
STATEMENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 16&amp;nbsp;&amp;nbsp;
(0)| 00:00:01 |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;|&amp;nbsp;&amp;nbsp; 1 |&amp;nbsp; SORT
AGGREGATE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;|&amp;nbsp;&amp;nbsp; 2 |&amp;nbsp;&amp;nbsp; TABLE ACCESS BY INDEX ROWID|
JOB_MASTER |&amp;nbsp; 2311 | 16177 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 16&amp;nbsp;&amp;nbsp; (0)|
00:00:01 |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;|*&amp;nbsp; 3 |&amp;nbsp;&amp;nbsp;&amp;nbsp; INDEX RANGE
SCAN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | TEST_INDX&amp;nbsp; |
&amp;nbsp;2383 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
7&amp;nbsp;&amp;nbsp; (0)| 00:00:01 |&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;-------------------------------------------------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;Predicate Information (identified by operation id):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;---------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp; 3 - access(&quot;JOB_CODE&quot;=&#39;DEVELOPER&#39;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;Why do we get this different plan, is this column having Skewed
distribution of values?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;Let me have a look,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;SQL&amp;gt; select count(*),JOB_CODE from JOB_MASTER group by
JOB_CODE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp; COUNT(*) JOB_CODE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;---------- ----------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp; 8388608 DBA&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4608 DEVELOPER&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;Then we found its highly skewed
values in the column JOB_CODE and we can see very less percentage of rows
having &quot;DEVELOPER&quot; compared to &quot;DBA&quot; value in this column&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;There is a catch, It’s a thumb
rule oracle following , Oracle will decide to go with full table scan when the
bind variable (:B1) is &quot;DBA&quot; and will decide to go with index read &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;when bind variable (:B1) is
&quot;DEVELOPER&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;It is really costly when oracle
use full table scan while access predicate is &quot;DEVELOPER&quot; and on the
other hand , when the access predicate is &quot;DBA&quot;, index read is
useless.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a;&quot;&gt;If the plan need to be
recalculated by this way, cursor denoted as Bind Sensitive.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;SQL&amp;gt;
select plan_hash_value,sql_id,child_number,IS_BIND_SENSITIVE from gv$sql where
sql_id=&#39;cyt7c564y3nf6&#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;PLAN_HASH_VALUE
SQL_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHILD_NUMBER I&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;---------------
------------- ------------ -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
4293876030
cyt7c564y3nf6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
0 Y&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-size: 12.0pt;&quot;&gt;My request is ,
please do not scare, if we get multiple plan while using bind variable until we
get a performance degradation over there. Please make sure to test SQL Profile
couple of time to verify the performance improvement before getting to default
category(Live).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-size: 12.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-size: 12.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-size: 12.0pt;&quot;&gt;Thanks,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #44546a; font-size: 12.0pt;&quot;&gt;Jyothish B&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/7982628667041069588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2016/07/are-we-getting-different-plan-by-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/7982628667041069588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/7982628667041069588'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2016/07/are-we-getting-different-plan-by-using.html' title='Are we getting different plan by using bind variable for an SQL_ID?'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-6453380544823178468</id><published>2016-03-20T12:01:00.000-07:00</published><updated>2016-03-20T12:01:09.648-07:00</updated><title type='text'>Fixing Archive Gap in Standby From Archive Log Backup</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Check the archive log gap in standby&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; select * from v$archive_gap;&lt;br /&gt;
&lt;br /&gt;
Suppose &amp;nbsp;you have &amp;nbsp;archive gap from&amp;nbsp;2940 to&amp;nbsp;2954. We are going to restore Archive files from Backup in the primary.&lt;br /&gt;
&lt;br /&gt;
RMAN&amp;gt; run&lt;br /&gt;
2&amp;gt; {&lt;br /&gt;
3&amp;gt; restore archivelog from logseq 2940 until logseq 2954;&lt;br /&gt;
4&amp;gt; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will restore the archive logs from Backup to Disk.&lt;br /&gt;
&lt;br /&gt;
Note : If you are using SBT for taking Backups, Please add appropriate details in the script, Example is referring Disk Backups.&lt;br /&gt;
&lt;br /&gt;
Once the archive restore completed, you can use below command in standby.&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt;RECOVER AUTOMATIC STANDBY DATABASE ;&lt;br /&gt;
&lt;br /&gt;
# This will automatically recover your standby using archive files which is created by the restore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/6453380544823178468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2016/03/fixing-archive-gap-in-standby-from.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/6453380544823178468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/6453380544823178468'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2016/03/fixing-archive-gap-in-standby-from.html' title='Fixing Archive Gap in Standby From Archive Log Backup'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-8245270215951461594</id><published>2016-03-20T11:50:00.001-07:00</published><updated>2016-03-20T11:50:41.153-07:00</updated><title type='text'>SQL PLAN Fixing Using SQLT</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-size: large;&quot;&gt;&lt;u&gt;Tune Bad SQL Using SQLT&lt;/u&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
We are getting a good plan and bad plan for a sql. In production we have bad plan and getting very bad result so we are planning to export good plan from non production to production.&lt;br /&gt;
SQL history of SQL ID : 7yq9pgtsundq0&lt;br /&gt;
col begin_time for a25&lt;br /&gt;
col end_time for a11&lt;br /&gt;
col inst for 99999&lt;br /&gt;
col snapid for 999999&lt;br /&gt;
set lines 200&lt;br /&gt;
set pages 20000&lt;br /&gt;
select snap_id snapid,&lt;br /&gt;
(select substr(BEGIN_INTERVAL_TIME,1,18)||&#39; &#39;||substr(BEGIN_INTERVAL_TIME,24,2) from dba_hist_snapshot&lt;br /&gt;
b where b.snap_id=a.snap_id and a.INSTANCE_NUMBER=b.INSTANCE_NUMBER) begin_time&lt;br /&gt;
,(select substr(end_INTERVAL_TIME,11,8)||&#39; &#39;||substr(end_INTERVAL_TIME,24,2) from dba_hist_snapshot b&lt;br /&gt;
where b.snap_id=a.snap_id and a.INSTANCE_NUMBER=b.INSTANCE_NUMBER) end_time&lt;br /&gt;
,INSTANCE_NUMBER inst , PLAN_HASH_VALUE,&lt;br /&gt;
EXECUTIONS_DELTA Executions,&lt;br /&gt;
ROWS_PROCESSED_DELTA rows1,&lt;br /&gt;
round( CPU_TIME_DELTA /1000000,0) cpu_time,round(IOWAIT_DELTA /1000000,0) io_wait,&lt;br /&gt;
round( ELAPSED_TIME_DELTA /1000000,0) elapsed&lt;br /&gt;
from sys.wrh$_sqlstat a where sql_id in(&#39;7yq9pgtsundq0&#39;)&lt;br /&gt;
order by snap_id, INSTANCE_NUMBER;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Above query will help you to get a good plan and bad plan from the history with respect to the SNAP_ID&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Example&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: .0001pt; margin: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 7.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;SNAPID
BEGIN_TIME END_TIME INST PLAN_HASH_VALUE EXECUTIONS ROWS1 CPU_TIME IO_WAIT
ELAPSED&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;------- ------------------------- ----------- ------
--------------- ---------- ---------- ---------- ---------- ----------&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: red; font-family: &#39;Courier New&#39;;&quot;&gt;65849 16-FEB-16 09.00.07 AM
10.00.27 AM 1 857637189 9513 9512 2501 2 2539 =====&lt;/span&gt;&lt;span style=&quot;background: red;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: red; font-family: &#39;Courier New&#39;;&quot;&gt;65850 16-FEB-16 10.00.27 AM
11.00.48 AM 1 857637189 13378 13378 3469 0 3519&lt;/span&gt;&lt;span style=&quot;background: red;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: red; font-family: &#39;Courier New&#39;;&quot;&gt;65851 16-FEB-16 11.00.48 AM
12.00.08 PM 1 857637189 2568 2569 649 0 660&lt;/span&gt;&lt;span style=&quot;background: red;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: red; font-family: &#39;Courier New&#39;;&quot;&gt;65855 16-FEB-16 03.00.10 PM 04.00.31
PM 1 857637189 3986 3985 1010 0 1023&lt;/span&gt;&lt;span style=&quot;background: red;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: red; font-family: &#39;Courier New&#39;;&quot;&gt;65856 16-FEB-16 04.00.31 PM
05.00.51 PM 1 857637189 6042 6043 1520 0 1539 BAD PLAN&lt;/span&gt;&lt;span style=&quot;background: red;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: red; font-family: &#39;Courier New&#39;;&quot;&gt;65875 17-FEB-16 10.58.22 AM
11.15.53 AM 1 1673898079 11271 11271 928 4 947&lt;/span&gt;&lt;span style=&quot;background: red;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: red; font-family: &#39;Courier New&#39;;&quot;&gt;65876 17-FEB-16 11.15.53 AM
11.30.58 AM 1 1673898079 10955 10955 883 0 896&lt;/span&gt;&lt;span style=&quot;background: red;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: red; font-family: &#39;Courier New&#39;;&quot;&gt;65877 17-FEB-16 11.30.58 AM
11.45.03 AM 1 1673898079 10207 10207 824 0 836&lt;/span&gt;&lt;span style=&quot;background: red;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: red; font-family: &#39;Courier New&#39;;&quot;&gt;65878 17-FEB-16 11.45.03 AM
12.00.08 PM 1 1673898079 11115 11115 882 0 896&lt;/span&gt;&lt;span style=&quot;background: red;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: red; font-family: &#39;Courier New&#39;;&quot;&gt;65879 17-FEB-16 12.00.08 PM
12.06.49 PM 1 1673898079 4029 4030 318 0 321 ======&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: aqua; font-family: &#39;Courier New&#39;;&quot;&gt;65880 17-FEB-16 12.06.49 PM
12.15.13 PM 1 1749449121 349619 349619 12 0 12 ======&lt;/span&gt;&lt;span style=&quot;background: aqua;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: aqua; font-family: &#39;Courier New&#39;;&quot;&gt;65881 17-FEB-16 12.15.13 PM
12.30.18 PM 1 1749449121 997986 997986 34 0 34&lt;/span&gt;&lt;span style=&quot;background: aqua;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: aqua; font-family: &#39;Courier New&#39;;&quot;&gt;65885 17-FEB-16 01.15.34 PM
01.30.39 PM 1 1749449121 690501 690501 23 0 25 Good Plan&lt;/span&gt;&lt;span style=&quot;background: aqua;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: aqua; font-family: &#39;Courier New&#39;;&quot;&gt;65886 17-FEB-16 01.30.39 PM
01.45.48 PM 1 1749449121 657170 657170 22 0 22&lt;/span&gt;&lt;span style=&quot;background: aqua;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background: aqua; font-family: &#39;Courier New&#39;;&quot;&gt;65894 17-FEB-16 03.30.28 PM
05.00.58 PM 1 1749449121 1347708 1347708 44 0 46&lt;/span&gt;&lt;span style=&quot;background: aqua;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: aqua; font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;65901 17-FEB-16 11.00.03 PM
12.00.26 AM 1 1749449121 1347765 1347765 44 0 44 ======&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 6pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: aqua; font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: yellow; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-family: Courier New; font-size: x-small;&quot;&gt;From the above SQL history we identified “1749449121” is a Good plan and “1673898079” is a bad plan.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-family: Courier New; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;Look at the CPU Time and Elapsed Time for bad plan, should be very high percentage CPU utilization hence very high elapsed time.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;So we are planning to pin the plan using sql profile.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;1) Download SQLT from below link.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=189245731844662&amp;amp;id=215187.1&amp;amp;_afrWindowMode=0&amp;amp;_adf.ctrlstate=&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;1dezgs4aky_4&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;2) Install SQLT as per the document.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;3) Once it is installed, please follow below step to create SQL Profile.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;SQL&amp;gt;@coe_xfr_sql_profile.sql 68gtz2b5hby5m 4270379085&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;It will create sql profile script in sqlt/utl coe_xfr_sql_profile_7yq9pgtsundq0_1749449121.sql&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;4) If you are using coe_gen_sql_profile.sql instead of coe_xfr_sql_profile.sql , you will get all possible sql profile from history and it will&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;includes good and bad execution plan with this profiles.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;5) &lt;span style=&quot;background-color: yellow;&quot;&gt;Once the SQL Profile script created you can able to create sql profile using the above script and check whether we have good result or&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: yellow; font-family: &#39;Courier New&#39;;&quot;&gt;bad after applying SQL profile using query mentioned earlier.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;Now you have two choice, you can export the profile from non production or you can directly create the sql profile using sql which is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;created by sqlt.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New; font-size: large;&quot;&gt;&lt;b&gt;Exporting SQL Profile&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;1) Create Staging table which will hold our SQL Profile.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;DBMS_SQLTUNE.create_stgtab_sqlprof(&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;table_name =&amp;gt; &#39;SQL_PROF_29_02_2016&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;schema_name =&amp;gt; &#39;JYOTHISH&#39; );&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;END;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;2) Packing SQL Profile content to the staging Table.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;DBMS_SQLTUNE.pack_stgtab_sqlprof(&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;profile_name =&amp;gt; &#39;SQL_PROF_7yq9pgtsundq0&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;staging_table_name =&amp;gt; &#39;SQL_PROF_29_02_2016&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;staging_schema_owner =&amp;gt; &#39;JYOTHISH&#39; );&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;END;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;3) Export Staging Table using Data pump&lt;normal export=&quot;&quot; table=&quot;&quot; tables=&quot;JYOTHISH.SQL_PROF_29_02_2016&quot; using=&quot;&quot;&gt;&lt;/normal&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;4) Import dump file in production.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;5) Unpack SQL Profile from Staging Table.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;SQL&amp;gt;conn JYOTHISH/xxxxxx&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;DBMS_SQLTUNE.UNPACK_STGTAB_SQLPROF(&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;replace =&amp;gt; TRUE,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;staging_table_name =&amp;gt; &#39;SQL_PROF_29_02_2016&#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;END;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;6) Validate newly created sql profile in production.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;SQL&amp;gt; select name,status from dba_sql_profiles where profile_name like ‘SQL_PROF_7%’;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;7) We need to flush shared pool or need to wait for the Database bounce for getting new plan from SQL Profile.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;Check with Application team and select a convenient way for this step.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;SQL&amp;gt; Alter system flush shared_pool;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;If you would like to Extract Hints from a PLAN. Please see the below example.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New; font-size: large;&quot;&gt;&lt;b&gt;Extracting Hint from Plan&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;Suppose if you don’t have licence to use the Database Tuning Pack license, Please use below query to extract hints and adding these hints in SQL&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;query will help you improve the SQL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;select&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;extractvalue(value(d), &#39;/hint&#39;) as outline_hints&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;from&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;xmltable(&#39;/*/outline_data/hint&#39;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;passing (&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;select&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;xmltype(other_xml) as xmlval&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;from&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;dba_hist_sql_plan&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;where&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;sql_id = &#39;7yq9pgtsundq0&#39;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;and plan_hash_value = 1749449121&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;and other_xml is not null&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;b&gt;) d&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;Webpage Reference :&amp;nbsp;https://carlos-sierra.net/2012/04/03/what-is-sqltxplain/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/8245270215951461594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2016/03/sql-plan-fixing-using-sqlt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/8245270215951461594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/8245270215951461594'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2016/03/sql-plan-fixing-using-sqlt.html' title='SQL PLAN Fixing Using SQLT'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-925887500123598800</id><published>2016-03-20T11:25:00.000-07:00</published><updated>2016-03-20T11:29:15.166-07:00</updated><title type='text'>RMAN Backup Status Script</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We can see the RMAN Backup Status using below query.&lt;br /&gt;
&lt;br /&gt;
col curtime for a11&lt;br /&gt;
set lines 200&lt;br /&gt;
select substr(systimestamp,11,8) curtime,&lt;br /&gt;
to_char(START_TIME, &#39;DD hh24:mi&#39;) START_TIME,&lt;br /&gt;
to_char(END_TIME, &#39;DD hh24:mi&#39;) END_TIME,&lt;br /&gt;
round(MBYTES_PROCESSED/1024,6) Processed,&lt;br /&gt;
round(INPUT_BYTES/1024/1024/1024,6) input_GB,&lt;br /&gt;
round(OUTPUT_BYTES/1024/1024/1024,6) output_GB&lt;br /&gt;
from v$rman_status where status=&#39;RUNNING&#39;;&lt;br /&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;
Thanks,&lt;/div&gt;
&lt;div&gt;
Jyothish B&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/925887500123598800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2016/03/rman-backup-status-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/925887500123598800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/925887500123598800'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2016/03/rman-backup-status-script.html' title='RMAN Backup Status Script'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-6655151191643303584</id><published>2014-02-12T00:14:00.000-08:00</published><updated>2014-02-12T00:14:19.374-08:00</updated><title type='text'>RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 57889 and starting SCN of 10236493076989</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 57889 and starting SCN of 10236493076989&lt;br /&gt;
&lt;br /&gt;
Cause:- Controlfile does nt have the entry of archive log 57889 starting SCN 10236493076989&lt;br /&gt;
&lt;br /&gt;
Action :-&lt;br /&gt;
1) Take the new controlfile backup from source &lt;br /&gt;2) Shutdown Target Database. startup the Database in nomount state&lt;br /&gt;3) Restore the new controlfile&lt;br /&gt;
Terminal&amp;gt;rman target /&lt;br /&gt;
RMAN&amp;gt;restore controlfile from &#39;restore controlfile from &#39;controlfile_Location&#39;;&lt;br /&gt;
Restore has been Completed .&lt;br /&gt;
4) Startup the database in mount state&lt;br /&gt;
RMAN&amp;gt;sql &#39;alter database mount&#39;;&lt;br /&gt;
5) Do a incomplete recovery or complete recovery what ever you want.&lt;br /&gt;
RMAN&amp;gt;Recover database;&lt;br /&gt;
Restore command may failure with below error.&lt;br /&gt;
RMAN-03002: failure of recover command at 08/28/2013 12:23:47&lt;br /&gt;RMAN-06094: datafile 1 must be restored&lt;br /&gt;
&lt;br /&gt;
6)Here we can use catalog option to resolve this issue.Below example &quot;+ORA01_D1&quot; is the disk group name for the entire Datafiles&lt;br /&gt;
&lt;br /&gt;
RMAN&amp;gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;catalog start with &#39;+ORA01_D1&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Rman will show all the Datafile need to be catalogged.&lt;br /&gt;
See the below example&lt;br /&gt;
List of Cataloged Files&lt;br /&gt;=======================&lt;br /&gt;File Name: +ORA01_D1/MYDB/AUTOBACKUP/2013_08_28/s_824645393.441.824645393&lt;br /&gt;File Name: +ORA01_D1/MYDB/DATAFILE/SYSAUX.317.824646109&lt;br /&gt;File Name: +ORA01_D1/MYDB/DATAFILE/SYSTEM.318.824646105&lt;br /&gt;File Name: +ORA01_D1/MYDB/DATAFILE/UNDOTBS1.328.824646110&lt;br /&gt;File Name: +ORA01_D1/MYDB/DATAFILE/D12.327.824646908&lt;br /&gt;File Name: +ORA01_D1/MYDB/DATAFILE/D13.326.824641013&lt;br /&gt;File Name: +ORA01_D1/MYDB/DATAFILE/D14.325.8246463105&lt;br /&gt;File Name: +ORA01_D1/MYDB/DATAFILE/D15.324.82464632095&lt;br /&gt;File Name: +ORA01_D1/MYDB/DATAFILE/D16.323.824646987&lt;br /&gt;File Name: +ORA01_D1/MYDB/DATAFILE/USERS.322.82464131&lt;br /&gt;File Name: +ORA01_D1/MYDB/DATAFILE/D17.321.824646989&lt;br /&gt;
Now it will Prompt for YES/NO . Put &#39;YES&#39; if everything looks Good.&lt;br /&gt;
&lt;br /&gt;Now&amp;nbsp; Oracle identified all the Datafiles which we restored from source. &lt;br /&gt;
&lt;br /&gt;
7) Switches to image copy backup of database.&lt;br /&gt;
&lt;br /&gt;
RMAN&amp;gt; &lt;span style=&quot;background-color: yellow;&quot;&gt;switch database to copy;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
8)Recover Database&lt;br /&gt;
&lt;br /&gt;
Rman&amp;gt;Recover Database;&lt;br /&gt;
&lt;br /&gt;
again if it is failed with unknown archive log entry to the controlfile. Please do a incomplete recovery.&lt;br /&gt;
&lt;br /&gt;
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 57889 and starting SCN of 10236493076989&lt;br /&gt;
&lt;br /&gt;
9)Open Database with reset log sequence&lt;br /&gt;
&lt;br /&gt;
RMAN&amp;gt;sql &#39;alter database open resetlogs&#39;;&lt;br /&gt;
&lt;br /&gt;
10)Check the status &lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt;select status from v$instance;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPEN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;Jyothish&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/6655151191643303584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/02/rman-06054-media-recovery-requesting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/6655151191643303584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/6655151191643303584'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/02/rman-06054-media-recovery-requesting.html' title='RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 57889 and starting SCN of 10236493076989'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-6314269236964845650</id><published>2014-01-17T01:29:00.001-08:00</published><updated>2014-01-17T01:29:47.935-08:00</updated><title type='text'>SQL History of an Oracle Session from ASH</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Query help to find out the SQL history of an oracle session from Active Session History(ASH) . Here we can see the historical &amp;nbsp;Data available from AWR too.&lt;br /&gt;
&lt;br /&gt;
SELECT SQL_ID,PLAN_HASH_VALUE,inst_id, sum(execs) &quot;Execution&quot;, round(sum(tot_time)/1000000,2) &quot;Elapsed_time&quot;,&lt;br /&gt;
(case when sum(execs) &amp;gt; 0 then sum(tot_time)/ sum(execs)/1000000 else 0 end) Average_exe_Second&lt;br /&gt;
FROM (SELECT C.SQL_ID ,c.PLAN_HASH_VALUE,b.inst_id,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c.executions execs ,c.elapsed_time tot_time&lt;br /&gt;
&amp;nbsp;FROM gv$ACTIVE_SESSION_HISTORY A,gv$session b,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gv$SQLAREA C where&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a.sql_id=c.sql_id and b.sid=a.session_id and b.sql_id=c.sql_id and b.sid=131&lt;br /&gt;
&amp;nbsp; &amp;nbsp; union all&lt;br /&gt;
SELECT C.SQL_ID &amp;nbsp;,c.PLAN_HASH_VALUE ,b.inst_id ,c.executions_delta Execs,c.elapsed_time_delta tot_time&lt;br /&gt;
&amp;nbsp;from dba_hist_active_sess_history a, gv$session b, dba_hist_sqlstat c where&lt;br /&gt;
a.sql_id=c.sql_id and b.sid=a.session_id and b.sql_id=c.sql_id and b.sid=12 )&lt;br /&gt;
GROUP BY SQL_ID,PLAN_HASH_VALUE,inst_id;&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Jyothish&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/6314269236964845650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/01/sql-history-of-oracle-session-from-ash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/6314269236964845650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/6314269236964845650'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/01/sql-history-of-oracle-session-from-ash.html' title='SQL History of an Oracle Session from ASH'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-5077428413130142292</id><published>2014-01-17T01:20:00.001-08:00</published><updated>2014-01-17T01:23:43.413-08:00</updated><title type='text'>PGA Allocation for an Oracle Process</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Query help to find out how much PGA allocated for an Oracle Process.&lt;br /&gt;
&lt;br /&gt;
SELECT&lt;br /&gt;
&amp;nbsp; s.sid,&lt;br /&gt;
&amp;nbsp; p.spid,&lt;br /&gt;
&amp;nbsp; DECODE(s.program, NULL, p.program, s.program) AS &quot;Program&quot;,&lt;br /&gt;
&amp;nbsp; pga_used_mem,&lt;br /&gt;
&amp;nbsp; pga_alloc_mem,&lt;br /&gt;
&amp;nbsp; pga_max_mem&lt;br /&gt;
FROM gv$process p, gv$session s&lt;br /&gt;
WHERE s.paddr = p.addr&lt;br /&gt;
ORDER BY s.sid;&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Jyothish&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/5077428413130142292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/01/pga-allocation-for-oracle-process.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/5077428413130142292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/5077428413130142292'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/01/pga-allocation-for-oracle-process.html' title='PGA Allocation for an Oracle Process'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-3078243088083486662</id><published>2014-01-17T01:18:00.001-08:00</published><updated>2014-01-17T01:24:19.865-08:00</updated><title type='text'>PGA Allocated Memory for an Oracle Session</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Below Query help to find out PGA Allocated Memory for an Oracle Session.&lt;br /&gt;
&lt;br /&gt;
select&lt;br /&gt;
&amp;nbsp; &amp;nbsp; to_char(ssn.sid, &#39;9999&#39;) || &#39; – &#39; || nvl(ssn.username,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; nvl(bgp.name, &#39;background&#39;)) || nvl(lower(ssn.machine), ins.host_name) &quot;Session_Details&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; to_char(prc.spid, &#39;999999999&#39;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pid_thread,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; to_char((se1.value / 1024) / 1024, &#39;999g999g990d00&#39;) current_size_mb,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; to_char((se2.value / 1024) / 1024, &#39;999g999g990d00&#39;) maximum_size_mb&lt;br /&gt;
from&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gv$statname &amp;nbsp;stat1,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gv$statname &amp;nbsp;stat2,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gv$session &amp;nbsp; ssn,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gv$sesstat &amp;nbsp; se1,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gv$sesstat &amp;nbsp; se2,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gv$bgprocess bgp,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gv$process &amp;nbsp; prc,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gv$instance &amp;nbsp;ins&lt;br /&gt;
where stat1.name = &#39;session pga memory&#39;&lt;br /&gt;
and stat2.name = &#39;session pga memory max&#39;&lt;br /&gt;
and se1.sid = ssn.sid&lt;br /&gt;
and se2.sid = ssn.sid&lt;br /&gt;
and se2.statistic# = stat2.statistic#&lt;br /&gt;
and se1.statistic# = stat1.statistic#&lt;br /&gt;
and ssn.paddr = bgp.paddr(+)&lt;br /&gt;
and ssn.paddr = prc.addr(+) ;&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Jyothish&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/3078243088083486662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/01/pga-allocated-memory-for-oracle-session.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/3078243088083486662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/3078243088083486662'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/01/pga-allocated-memory-for-oracle-session.html' title='PGA Allocated Memory for an Oracle Session'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-1336998906824478923</id><published>2014-01-17T01:08:00.000-08:00</published><updated>2014-01-17T01:08:08.026-08:00</updated><title type='text'>Sort Area Usage/Temp Tablespace Usage of an Oracle Session</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Below query will picture of Temp Usage of an Oracle Session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
set lines 132&lt;br /&gt;
set feedback on&lt;br /&gt;
set pages 99&lt;br /&gt;
&lt;br /&gt;
select s.osuser, s.sid, s.serial#,s.username, s.program,&lt;br /&gt;
s.client_info,(sum(u.blocks)*vp.value/1024/1024/1024) AS GB_USED, a.sql_text as sql_t&lt;br /&gt;
from sys.gv_$session s, sys.gv_$sort_usage u, sys.gv_$parameter vp, sys.gv_$sqlarea a, sys.gv_$process b&lt;br /&gt;
where&lt;br /&gt;
s.saddr = u.session_addr and&lt;br /&gt;
vp.name = &#39;db_block_size&#39; and&lt;br /&gt;
a.address = s.sql_address and&lt;br /&gt;
b.addr = s.paddr&lt;br /&gt;
group by s.osuser, s.sid, s.serial#,s.username, s.program,s.client_info, vp.value, a.sql_text;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Jyothish&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/1336998906824478923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/01/sort-area-usagetemp-tablespace-usage-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/1336998906824478923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/1336998906824478923'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/01/sort-area-usagetemp-tablespace-usage-of.html' title='Sort Area Usage/Temp Tablespace Usage of an Oracle Session'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-6760739290367251357</id><published>2014-01-17T01:04:00.003-08:00</published><updated>2014-01-17T01:04:44.692-08:00</updated><title type='text'>CPU usage of an Oracle session</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Below query help to &amp;nbsp;find out the CPU usage(Second) for a &amp;nbsp;oracle session session.&lt;br /&gt;
&lt;br /&gt;
select&lt;br /&gt;
&amp;nbsp; &amp;nbsp;ss.sql_id &quot;SQL_ID&quot;,ss.username,ss.status,ss.machine,b.sql_text,b.PLAN_HASH_VALUE,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;VALUE/100 cpu_usage_seconds&lt;br /&gt;
from&lt;br /&gt;
&amp;nbsp; &amp;nbsp;gv$session ss,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;gv$sesstat se,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;gv$statname sn,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;gv$sql b&lt;br /&gt;
where&lt;br /&gt;
&amp;nbsp; &amp;nbsp;se.STATISTIC# = sn.STATISTIC#&lt;br /&gt;
and&lt;br /&gt;
&amp;nbsp; &amp;nbsp;NAME like &#39;%CPU used by this session%&#39;&lt;br /&gt;
and&lt;br /&gt;
&amp;nbsp; &amp;nbsp;se.SID = ss.SID and ss.sql_id=b.sql_id&lt;br /&gt;
and&lt;br /&gt;
&amp;nbsp; &amp;nbsp;ss.status=&#39;ACTIVE&#39;&lt;br /&gt;
and&lt;br /&gt;
&amp;nbsp; &amp;nbsp;ss.username is not null&lt;br /&gt;
order by VALUE desc;&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Jyothish&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/6760739290367251357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/01/cpu-usage-of-oracle-session.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/6760739290367251357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/6760739290367251357'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2014/01/cpu-usage-of-oracle-session.html' title='CPU usage of an Oracle session'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-3560527037394392666</id><published>2013-12-10T00:09:00.005-08:00</published><updated>2013-12-10T00:10:52.669-08:00</updated><title type='text'>ORA-01105: mount is incompatible with mounts by other instances ORA-19808: recovery destination parameter mismatch</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Please check both db_recovery_file_dest and &amp;nbsp;db_recovery_file_dest_size parameters . In my case&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;db_recovery_file_dest_size is different . See the below&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;details&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;1)Instance 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span dir=&quot;ltr&quot; style=&quot;direction: ltr; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;SQL&amp;gt; show parameter recovery&lt;br /&gt;&lt;br /&gt;NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TYPE &amp;nbsp; &amp;nbsp; &amp;nbsp; VALUE&lt;br /&gt;-------------- ---------------------- ----------- ------------------------------&lt;br /&gt;db_recovery_file_dest &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string &amp;nbsp; &amp;nbsp; &amp;nbsp;+ARCH01_R5&lt;br /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;db_recovery_file_dest_size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; big integer &amp;nbsp;50G&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span dir=&quot;ltr&quot; style=&quot;direction: ltr; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;2)Instance 2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span dir=&quot;ltr&quot; style=&quot;direction: ltr; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span dir=&quot;ltr&quot; style=&quot;direction: ltr; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span dir=&quot;ltr&quot; style=&quot;direction: ltr; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;SQL&amp;gt; show parameter recovery&lt;br /&gt;&lt;br /&gt;NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TYPE &amp;nbsp; &amp;nbsp; &amp;nbsp; VALUE&lt;br /&gt;-------------- ---------------------- ----------- ------------------------------&lt;br /&gt;db_recovery_file_dest &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string &amp;nbsp; &amp;nbsp; &amp;nbsp;+ARCH01_R5&lt;br /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;db_recovery_file_dest_size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; big integer &amp;nbsp;40G&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span dir=&quot;ltr&quot; style=&quot;direction: ltr; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span dir=&quot;ltr&quot; style=&quot;direction: ltr; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;I have Started &amp;nbsp;the Instance 2 and changed the file_dest_size to 50G&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span dir=&quot;ltr&quot; style=&quot;direction: ltr; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Terminal&amp;gt; srvctl start instance -d DBname -i Instance_name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span dir=&quot;ltr&quot; style=&quot;direction: ltr; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span dir=&quot;ltr&quot; style=&quot;direction: ltr; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Terminal&amp;gt; sqlplus /nolog&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;SQL&amp;gt;conn / as sysdba&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;SQL&amp;gt; alter system set&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;db_recovery_file_dest_size&amp;nbsp;=50G scope=both;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Then again i tried to start first instance and it is successfully started.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Terminal&amp;gt;srvctl start instance -d DBname -i Instance_name&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Thanks,&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;imcontent&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Jyothish Balakrishnan&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/3560527037394392666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/12/ora-01105-mount-is-incompatible-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/3560527037394392666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/3560527037394392666'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/12/ora-01105-mount-is-incompatible-with.html' title='ORA-01105: mount is incompatible with mounts by other instances ORA-19808: recovery destination parameter mismatch'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-2515630368585041984</id><published>2013-11-21T00:17:00.000-08:00</published><updated>2013-11-21T00:17:00.979-08:00</updated><title type='text'>Schema Details</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Sharing a simple query occupying some useful information about Oracle schema.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;select a.username,a.created,a.profile,a.default_tablespace,a.account_status,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;round(sum(b.bytes/1024/1024/1024),2) as &quot;SIZE&quot;,c.ptime as &quot;Last_password_change&quot;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;from dba_users a,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;dba_segments b,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;sys.user$ c&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;where a.username=b.owner&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;and a.username=&#39;JYOTHISH&#39; and c.name=a.username and c.name=b.owner group by username,a.created,a.profile,a.default_tablespace,a.account_status,c.ptime;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Thanks,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Jyothish&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/2515630368585041984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/11/schema-details.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/2515630368585041984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/2515630368585041984'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/11/schema-details.html' title='Schema Details'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-7830265355905427005</id><published>2013-10-19T12:19:00.000-07:00</published><updated>2013-10-20T09:43:38.875-07:00</updated><title type='text'>ORA-00214: control file &#39;+DATA02_R5/fdmn1i/controlfile/current.265.799827461&#39;  version 6909395 inconsistent with file &#39;+ARCH02_R5/fdmn1i/controlfile/current.11120.826208033&#39; version 6909384</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We already know about the reason but my overconfidence spoil around 1 hr for this error in RAC environment. Simple explanation is needed here &#39;+DATA02_R5/fdmn1i/controlfile/current.265.799827461&#39;&lt;br /&gt;
scn is 6909395 and other controlfile &#39;+ARCH02_R5/fdmn1i/controlfile/current.11120.826208033&#39; not able to write the changes after scn 6909384. So we need to need the recreate second&lt;br /&gt;
controfile as well. Please follow the below steps.&lt;br /&gt;
&lt;br /&gt;
1)Add the Controlfile Entry Using spfile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C:\&amp;gt;sqlplus /nolog&lt;br /&gt;
&lt;br /&gt;
SQL*Plus: Release 11.2.0.1.0 Production on Sat Oct 19 16:43:00 2013&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 1982, 2010, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; conn / as sysdba&lt;br /&gt;
Connected to an idle instance.&lt;br /&gt;
SQL&amp;gt; startup nomount&lt;br /&gt;
ORACLE instance started.&lt;br /&gt;
&lt;br /&gt;
Total System Global Area 3140026368 bytes&lt;br /&gt;
Fixed Size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2230600 bytes&lt;br /&gt;
Variable Size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1996490424 bytes&lt;br /&gt;
Database Buffers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1124073472 bytes&lt;br /&gt;
Redo Buffers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 17231872 bytes&lt;br /&gt;
SQL&amp;gt; alter system set control_files =&#39;+DATA02_R5/fdmn1i/controlfile/current.265.799827461&#39; ,&#39;+ARCH02_R5&#39; scope=spfile;&lt;br /&gt;
&lt;br /&gt;
System altered.&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; shutdown immediate;&lt;br /&gt;
ORA-01507: database not mounted&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ORACLE instance shut down.&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; startup nomount&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; show parameter control&lt;br /&gt;
&lt;br /&gt;
NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TYPE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VALUE&lt;br /&gt;
------------------------------------ ----------- ------------------------------&lt;br /&gt;
control_file_record_keep_time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;integer &amp;nbsp; &amp;nbsp; 14&lt;br /&gt;
control_files &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string &amp;nbsp; &amp;nbsp; &amp;nbsp;+DATA02_R5/fdmn1i/controlfile/&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;current.265.799827461, +ARCH02&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_R5&lt;br /&gt;
control_management_pack_access &amp;nbsp; &amp;nbsp; &amp;nbsp; string &amp;nbsp; &amp;nbsp; &amp;nbsp;DIAGNOSTIC+TUNING&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; exit&lt;br /&gt;
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production&lt;br /&gt;
With the Partitioning, Real Application Clusters, OLAP, Data Mining&lt;br /&gt;
and Real Application Testing options&lt;br /&gt;
&lt;br /&gt;
2)Restore controlfile using RMAN&lt;br /&gt;
rman target /&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Recovery Manager: Release 11.2.0.2.0 - Production on Sat Oct 19 08:47:29 2013&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 1982, 2009, Oracle and/or its affiliates. &amp;nbsp;All rights reserved.&lt;br /&gt;
&lt;br /&gt;
connected to target database: FDMN1I (not mounted)&lt;br /&gt;
&lt;br /&gt;
RMAN&amp;gt; restore controlfile from &#39;+DATA02_R5/fdmn1i/controlfile/current.265.799827461&#39;;&lt;br /&gt;
&lt;br /&gt;
Starting restore at 19-OCT-13&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=1511 instance=FDMN1I1 device type=DISK&lt;br /&gt;
&lt;br /&gt;
channel ORA_DISK_1: copied control file copy&lt;br /&gt;
output file name=+DATA02_R5/fdmn1i/controlfile/current.265.799827461&lt;br /&gt;
output file name=+ARCH02_R5/fdmn1i/controlfile/current.10645.829212487&lt;br /&gt;
Finished restore at 19-OCT-13&lt;br /&gt;
&lt;br /&gt;
RMAN&amp;gt; exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Recovery Manager complete.&lt;br /&gt;
/ora001/g09104064 FDMN1I1]&amp;gt;sqlplus /nolog&lt;br /&gt;
&lt;br /&gt;
SQL*Plus: Release 11.2.0.2.0 Production on Sat Oct 19 08:48:17 2013&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 1982, 2010, Oracle. &amp;nbsp;All rights reserved.&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; conn / as sysdba&lt;br /&gt;
Connected.&lt;br /&gt;
SQL&amp;gt; alter system set control_files =&#39;+DATA02_R5/fdmn1i/controlfile/current.265.799827461&#39; ,&#39;+ARCH02_R5/fdmn1i/controlfile/current.10645.829212487&#39; scope=spfile;&lt;br /&gt;
&lt;br /&gt;
System altered.&lt;br /&gt;
&lt;br /&gt;
Please Dont use sqlplus here if you are already configured with Cluster Service&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; exit&lt;br /&gt;
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production&lt;br /&gt;
With the Partitioning, Real Application Clusters, OLAP, Data Mining&lt;br /&gt;
and Real Application Testing options&lt;br /&gt;
Terminal&amp;gt;srvctl stop database -d FDMN1I -o immediate;&lt;br /&gt;
Terminal&amp;gt;srvctl &amp;nbsp;start database -d FDMN1I&lt;br /&gt;
Terminal&amp;gt;srvctl status database -d FDMN1I&lt;br /&gt;
Instance FDMN1I1 is running on node svr00085&lt;br /&gt;
Instance FDMN1I2 is running on node svr00086&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Jyothish&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/7830265355905427005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/10/ora-00214-control-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/7830265355905427005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/7830265355905427005'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/10/ora-00214-control-file.html' title='ORA-00214: control file &#39;+DATA02_R5/fdmn1i/controlfile/current.265.799827461&#39;  version 6909395 inconsistent with file &#39;+ARCH02_R5/fdmn1i/controlfile/current.11120.826208033&#39; version 6909384'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-555407796764367095</id><published>2013-10-16T21:26:00.000-07:00</published><updated>2013-10-16T21:26:35.743-07:00</updated><title type='text'>ORA-1555 Snapshot Too old while a running job or query .</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If we are getting this error frequently we need to think about the size of &amp;nbsp;undo tablespace and undo retention &amp;nbsp;time. Below query helped me to take optimum size of&lt;br /&gt;
undo tablespace and undo retention time.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ACTUAL UNDO SIZE&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;OPTIMAL UNDO RETENTION = &amp;nbsp;____________________________________&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DB_BLOCK_SIZE*UNDO_BLOCK_PER_SEC&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
SELECT d.undo_size/(1024*1024) &quot;ACTUAL UNDO SIZE [MByte]&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUBSTR(e.value,1,25) &quot;UNDO RETENTION [Sec]&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ROUND((d.undo_size / (to_number(f.value) *&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;g.undo_block_per_sec))) &quot;OPTIMAL UNDO RETENTION [Sec]&quot;&lt;br /&gt;
&amp;nbsp; FROM (&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SELECT SUM(a.bytes) undo_size&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM v$datafile a,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v$tablespace b,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dba_tablespaces c&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE c.contents = &#39;UNDO&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AND c.status = &#39;ONLINE&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AND b.name = c.tablespace_name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AND a.ts# = b.ts#&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;) d,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v$parameter e,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v$parameter f,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SELECT MAX(undoblks/((end_time-begin_time)*3600*24))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; undo_block_per_sec&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FROM v$undostat&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;) g&lt;br /&gt;
WHERE e.name = &#39;undo_retention&#39;&lt;br /&gt;
&amp;nbsp; AND f.name = &#39;db_block_size&#39;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt; &lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt; &lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;OPTIMAL UNDO SIZE &amp;nbsp; &amp;nbsp; &amp;nbsp;= UNDO RETENTION*DB_BLOCK_SIZE*UNDO_BLOCK_PER_SEC&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
SELECT d.undo_size/(1024*1024) &quot;ACTUAL UNDO SIZE [MByte]&quot;,&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUBSTR(e.value,1,25) &quot;UNDO RETENTION [Sec]&quot;,&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(TO_NUMBER(e.value) * TO_NUMBER(f.value) *&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;g.undo_block_per_sec) / (1024*1024)&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;NEEDED UNDO SIZE [MByte]&quot;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; FROM (&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SELECT SUM(a.bytes) undo_size&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FROM v$datafile a,&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; v$tablespace b,&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dba_tablespaces c&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE c.contents = &#39;UNDO&#39;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND c.status = &#39;ONLINE&#39;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND b.name = c.tablespace_name&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND a.ts# = b.ts#&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;) d,&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; v$parameter e,&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v$parameter f,&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SELECT MAX(undoblks/((end_time-begin_time)*3600*24))&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;undo_block_per_sec&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FROM v$undostat&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;) g&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;WHERE e.name = &#39;undo_retention&#39;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; AND f.name = &#39;db_block_size&#39;;&lt;/div&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; Note:This above estimation undo size and retention are depends upon the calculations from v$undostat during the previous run. Please impliment this estimation carefully&lt;br /&gt;
&amp;nbsp; as per your requirment and resource avaialability.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Jyothish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/555407796764367095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/10/ora-1555-snapshot-too-old-while-running.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/555407796764367095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/555407796764367095'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/10/ora-1555-snapshot-too-old-while-running.html' title='ORA-1555 Snapshot Too old while a running job or query .'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-4501749496059932926</id><published>2013-08-27T21:03:00.001-07:00</published><updated>2013-08-27T21:03:53.264-07:00</updated><title type='text'>Execution Time of an SQL using SQL_ID with respect to SNAP_ID</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here we can calculate Elapsed of time of an sql statement using sql id. Below query will figure out the Elapsed time in seconds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
col begin_time for a25&lt;br /&gt;
col end_time for a11&lt;br /&gt;
col inst for 99999&lt;br /&gt;
col snapid for 999999&lt;br /&gt;
set lines 200&lt;br /&gt;
set pages 20000&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;select snap_id snapid,&lt;br /&gt;
(select substr(BEGIN_INTERVAL_TIME,1,18)||&#39; &#39;||substr(BEGIN_INTERVAL_TIME,24,2) from dba_hist_snapshot b where b.snap_id=a.snap_id and&lt;br /&gt;
&lt;br /&gt;
a.INSTANCE_NUMBER=b.INSTANCE_NUMBER) begin_time&lt;br /&gt;
,(select substr(end_INTERVAL_TIME,11,8)||&#39; &#39;||substr(end_INTERVAL_TIME,24,2) from dba_hist_snapshot b where b.snap_id=a.snap_id and&lt;br /&gt;
&lt;br /&gt;
a.INSTANCE_NUMBER=b.INSTANCE_NUMBER) end_time&lt;br /&gt;
,INSTANCE_NUMBER inst , PLAN_HASH_VALUE,&lt;br /&gt;
EXECUTIONS_DELTA Executions,&lt;br /&gt;
ROWS_PROCESSED_DELTA rows1,&lt;br /&gt;
round( CPU_TIME_DELTA /1000000,0) cpu_time,round(IOWAIT_DELTA /1000000,0) io_wait,&lt;br /&gt;
round( ELAPSED_TIME_DELTA /1000000,0) elapsed&lt;br /&gt;
from wrh$_sqlstat a where sql_id in(&#39;&amp;amp;SQL_ID&#39;)&lt;br /&gt;
order by snap_id, INSTANCE_NUMBER;&lt;br /&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;
Thanks,&lt;/div&gt;
&lt;div&gt;
Jyothish Balakrishnan&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/4501749496059932926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/08/execution-time-of-sql-using-sqlid-with.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/4501749496059932926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/4501749496059932926'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/08/execution-time-of-sql-using-sqlid-with.html' title='Execution Time of an SQL using SQL_ID with respect to SNAP_ID'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-4183800470732007290</id><published>2013-08-20T14:23:00.000-07:00</published><updated>2013-08-20T14:23:02.997-07:00</updated><title type='text'>Archive Generation Details</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Archive Generation per Hour&lt;br /&gt;
&lt;br /&gt;
ALTER SESSION SET NLS_DATE_FORMAT = &#39;YYYY MM DD HH24:MI:SS&#39;;&lt;br /&gt;
select trunc(COMPLETION_TIME,&#39;HH&#39;) Hour,round(sum(BLOCKS*BLOCK_SIZE)/1024/1024/1024) GB,count(*) Archives from v$archived_log group by trunc(COMPLETION_TIME,&#39;HH&#39;) order by 1 ;&lt;br /&gt;
&lt;br /&gt;
Archive Generation per Day&lt;br /&gt;
&lt;br /&gt;
select trunc(COMPLETION_TIME,&#39;DD&#39;) Day, round(sum(BLOCKS*BLOCK_SIZE)/1024/1024/1024) GB,count(*) Archives_Generated from v$archived_log&lt;br /&gt;
group by trunc(COMPLETION_TIME,&#39;DD&#39;) order by 1;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/4183800470732007290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/08/archive-generation-details.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/4183800470732007290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/4183800470732007290'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/08/archive-generation-details.html' title='Archive Generation Details'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-6111100774063966275</id><published>2013-08-20T14:14:00.001-07:00</published><updated>2013-08-20T14:14:53.170-07:00</updated><title type='text'>How to find out ASM file locations for a Database</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
column full_alias_path format a70&lt;br /&gt;
column file_type format a15&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
select concat(&#39;+&#39;||gname, sys_connect_by_path(aname, &#39;/&#39;)) full_alias_path,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;system_created, alias_directory, file_type&lt;br /&gt;
from ( select b.name gname, a.parent_index pindex, a.name aname,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a.reference_index rindex , a.system_created, a.alias_directory,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c.type file_type&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from v$asm_alias a, v$asm_diskgroup b, v$asm_file c&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where a.group_number = b.group_number&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and a.group_number = c.group_number(+)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and a.file_number = c.file_number(+)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and a.file_incarnation = c.incarnation(+)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;br /&gt;
start with (mod(pindex, power(2, 24))) = 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and rindex in&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ( select a.reference_index&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from v$asm_alias a, v$asm_diskgroup b&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where a.group_number = b.group_number&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and (mod(a.parent_index, power(2, 24))) = 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and a.name = &#39;&amp;amp;DATABASENAME&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;br /&gt;
connect by prior rindex = pindex;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can use this query with any Database running on the same server for a Database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/6111100774063966275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/08/how-to-find-out-asm-file-locations-for.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/6111100774063966275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/6111100774063966275'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/08/how-to-find-out-asm-file-locations-for.html' title='How to find out ASM file locations for a Database'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-3949982630542583685</id><published>2013-04-16T16:19:00.000-07:00</published><updated>2013-04-16T16:19:21.127-07:00</updated><title type='text'>Drop Database Link in another schema .</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We can drop Database link in another schema by a simple procedure without knowing password of the user&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; conn / as sysdba&lt;br /&gt;
SQL&amp;gt; create or replace procedure schema.procedurename as&lt;br /&gt;
begin&lt;br /&gt;
execute immediate &amp;nbsp;‘drop database link &amp;nbsp;db_link_name’;&lt;br /&gt;
end procedurename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt;exec Procedurename;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/3949982630542583685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/04/drop-database-link-in-another-schema.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/3949982630542583685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/3949982630542583685'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/04/drop-database-link-in-another-schema.html' title='Drop Database Link in another schema .'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-2694667620555183062</id><published>2013-03-26T11:39:00.002-07:00</published><updated>2013-03-26T11:39:30.858-07:00</updated><title type='text'>Oracle Multimedia (ORDIM) status is &quot;LOADING&quot; in DBA_REGISTRY </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Oracle Version - 11g&lt;br /&gt;
&lt;br /&gt;
Cause : Oracle Multimedia Registry Components are not properly configured .&lt;br /&gt;
&lt;br /&gt;
sqlplus / as sysdab&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; COL COMP_NAME FOR A20&lt;br /&gt;
SQL&amp;gt; COL COMP_ID FOR A20&lt;br /&gt;
SQL&amp;gt; select comp_id,comp_name,status from dba_registry where comp_name=&#39;Oracle Multimedia&#39;;&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; select comp_id,comp_name,status from dba_registry where comp_name=&#39;Oracle Multimedia&#39;;&lt;br /&gt;
&lt;br /&gt;
COMP_ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;COMP_NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;STATUS&lt;br /&gt;
-------------------- -------------------- --------&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;ORDIM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Oracle Multimedia &amp;nbsp; &amp;nbsp;LOADING&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Action&lt;br /&gt;
&lt;br /&gt;
1) Reload Registry component&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt;conn / as sysdba&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; execute sys.dbms_registry.loaded(&#39;ORDIM&#39;);&lt;br /&gt;
&lt;br /&gt;
2) Validate Registry Status .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; execute sys.dbms_registry.valid(&#39;ORDIM&#39;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we can see the status is &quot;VALID&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; select comp_id,comp_name,status from dba_registry where comp_name=&#39;Oracle Multimedia&#39;;&lt;br /&gt;
&lt;br /&gt;
COMP_ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;COMP_NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;STATUS&lt;br /&gt;
-------------------- -------------------- --------&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;ORDIM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Oracle Multimedia &amp;nbsp; &amp;nbsp;VALID&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/2694667620555183062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/03/oracle-multimedia-ordim-status-is.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/2694667620555183062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/2694667620555183062'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/03/oracle-multimedia-ordim-status-is.html' title='Oracle Multimedia (ORDIM) status is &quot;LOADING&quot; in DBA_REGISTRY '/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-1943972716184486294</id><published>2013-03-21T12:07:00.003-07:00</published><updated>2013-03-21T12:08:25.494-07:00</updated><title type='text'>Drop user failed with ERROR at line 1: ORA-00604: error occurred at recursive SQL level 1 ORA-00942: table or view does not exist</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;Cause&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;Table system.aq$_internet_agent_privs is missing in &quot;SYSTEM&quot; Schema.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;Action:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;1. Check if system.aq$_internet_agent_privs exist.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SQL&amp;gt; conn / as sysdba&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SQL&amp;gt; desc system.aq$_internet_agent_privs&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;2. Make sure that the default tablespace of SYSTEM user is properly set to SYSTEM tablespace.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SQL&amp;gt; select default_tablespace from dba_users where &amp;nbsp; username=’SYSTEM’;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; DEFAULT_TABLESPACE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ——————————&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; SYSTEM&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;Run the below Script as sysdba user.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; SQL&amp;gt; conn / as sysdba&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; SQL&amp;gt; @$ORACLE_HOME/rdbms/admin/catqueue.sql&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; SQL&amp;gt; exit&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;3. Then execute the DROP USER command again.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;4. &amp;nbsp; SQL&amp;gt; Drop user Username;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, BitStream vera Sans;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; User Dropped&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/1943972716184486294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/03/drop-user-failed-with-error-at-line-1.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/1943972716184486294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/1943972716184486294'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/03/drop-user-failed-with-error-at-line-1.html' title='Drop user failed with ERROR at line 1: ORA-00604: error occurred at recursive SQL level 1 ORA-00942: table or view does not exist'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-1808938902158818064</id><published>2013-01-24T10:13:00.002-08:00</published><updated>2013-01-24T10:13:48.910-08:00</updated><title type='text'>ORA-16053: DB_UNIQUE_NAME  is not in the Data Guard Configuration</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;Cause :
DB_UNIQUE_NAME is not in the Data Guard Configuration. We can check current DB_UNIQUE_NAME
in the configuration.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;SQL&amp;gt; show parameter
log_archive_config;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;The list
of valid DB_ UNIQUE_NAMEs can be seen with the V$DATAGUARD_CONFIG view. This
problem can also occur when specifying a non-standby destination with an DB_
UNIQUE_NAME attribute that does not match the DB_UNIQUE_NAME initialization
parameter for the current instance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;Action:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;Amend
the &amp;nbsp;&amp;nbsp;DB_UNIQUE_NAME in &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; line-height: 115%; mso-bidi-font-size: 12.0pt;&quot;&gt;LOG_ARCHIVE_CONFIG
parameter . Below example shows &amp;nbsp;physical
standby database as ORCL_STBY&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;1) ALTER SYSTEM SET LOG_ARCHIVE_CONFIG=&#39;DG_CONFIG=(ORCL,
ORCL_STBY)&#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;2)&amp;nbsp; Re – enable Standby Archive Location
Parameter;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;ALTER
SYSTEM SET LOG_ARCHIVE_DEST_2=&#39;SERVICE= ORCL_STBY &amp;nbsp;REOPEN=5 NOAFFIRM &amp;nbsp;ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
DB_UNIQUE_NAME= ORCL_STBY;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;ALTER SYSTEM SET
LOG_ARCHIVE_DEST_STATE_3=ENABLE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;3) Check that status of the &amp;nbsp;standby destination.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;SQL&amp;gt; &amp;nbsp;select dest_name,status,error from
v$archive_dest_status where dest_id=2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 8.0pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 12px;&quot;&gt;&lt;b&gt;&lt;i&gt;Cheers !!!&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/1808938902158818064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/01/ora-16053-dbuniquename-is-not-in-data.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/1808938902158818064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/1808938902158818064'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2013/01/ora-16053-dbuniquename-is-not-in-data.html' title='ORA-16053: DB_UNIQUE_NAME  is not in the Data Guard Configuration'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-4944403225838660433</id><published>2012-12-28T05:51:00.000-08:00</published><updated>2012-12-28T05:51:17.633-08:00</updated><title type='text'>ORA-27100: shared memory realm already exists </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;style2&quot;&gt;&lt;i&gt;&lt;span class=&quot;style1&quot;&gt;You may get this error after restarting the database with improper memory management of SGA in SPFILE or from a Improper shutdown .&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;style2&quot;&gt;&lt;i&gt;&lt;span class=&quot;style1&quot;&gt;Scenario&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style2&quot;&gt;&lt;i&gt;&lt;span class=&quot;style1&quot;&gt;*******&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style2&quot;&gt;&lt;i&gt;&lt;span class=&quot;style1&quot;&gt;startup nomount&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style2&quot;&gt;&lt;i&gt;&lt;span class=&quot;style1&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;style1&quot;&gt;&lt;br /&gt;
 &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;style1&quot;&gt;&lt;span class=&quot;style2&quot;&gt;ORA-27100: shared memory realm already exists&lt;br /&gt;
 &lt;br /&gt;
 &lt;i&gt;SQL&amp;gt; shutdown immediate&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style1&quot;&gt;&lt;span class=&quot;style2&quot;&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
 ORA-01034: ORACLE not available&lt;br /&gt;
 ORA-27101: shared memory realm does not exist&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Following Steps will help to overcome this issue .&lt;br /&gt;&lt;span class=&quot;style1&quot;&gt;&lt;span class=&quot;style2&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;style1&quot;&gt;&lt;span class=&quot;style2&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1)Rename existing SPFILE in the Database folder of Oracle Home.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style1&quot;&gt;&lt;span class=&quot;style2&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2)Restart the Service .&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style1&quot;&gt;&lt;span class=&quot;style2&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3) Startup database using pfile with reverting changes .&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style1&quot;&gt;&lt;span class=&quot;style2&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4)Create SPFILE from PFILE .&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style1&quot;&gt;&lt;span class=&quot;style2&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5)Shutdown and Startup the Database using newly created SPFILE.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;style1&quot;&gt;&lt;span class=&quot;style2&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style1&quot;&gt;&lt;span class=&quot;style2&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/4944403225838660433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2012/12/ora-27100-shared-memory-realm-already.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/4944403225838660433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/4944403225838660433'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2012/12/ora-27100-shared-memory-realm-already.html' title='ORA-27100: shared memory realm already exists '/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718035270796119870.post-204638066767786410</id><published>2012-12-24T06:40:00.002-08:00</published><updated>2012-12-24T07:09:34.439-08:00</updated><title type='text'>ORA-39776 &amp; ORA-00600 in IMPDP  on 11.1.0.6.0</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;b&gt;&amp;nbsp;We may have to get ORA-39776 &amp;amp; ORA-00600 errors while importing dump file using IMPDP &lt;/b&gt;&lt;b&gt;on 11.1.0.6.0&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ORA-02354&lt;/b&gt;: error in exporting/importing data&lt;br /&gt;
&lt;b&gt; ORA-39776&lt;/b&gt;: fatal Direct Path API error loading table &lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;table name=&quot;name&quot;&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;b&gt;ORA-00600&lt;/b&gt;: internal error code, arguments: [klaprs_11], [], [], [], [], [], [],&lt;br /&gt;
&lt;br /&gt;
Cause : Oracle bug on version 11.1.0.6.0&lt;br /&gt;
&lt;br /&gt;
Action: Export Dump file without COMPRESSION option or Apply Patchset 11.1.0.7 . &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://oracleworld-hands.blogspot.com/feeds/204638066767786410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://oracleworld-hands.blogspot.com/2012/12/ora-39776-ora-00600-in-impdp-on-111060.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/204638066767786410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718035270796119870/posts/default/204638066767786410'/><link rel='alternate' type='text/html' href='http://oracleworld-hands.blogspot.com/2012/12/ora-39776-ora-00600-in-impdp-on-111060.html' title='ORA-39776 &amp; ORA-00600 in IMPDP  on 11.1.0.6.0'/><author><name>Jyothish</name><uri>http://www.blogger.com/profile/10837336864227425839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp8zQ3v3sFurKA479q2Ape3YWTXR1_SQyoAo6xstpZes0PH45Xn-5khT7ANcuZJc1zJDl1HNqi0CR1d1jCVDKwZBuTde2B60U6GbdsznrdQj0FLeoY-k7ZpY1v31vt9w/s113/*'/></author><thr:total>0</thr:total></entry></feed>