<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6160333468452022034</id><updated>2011-11-27T19:26:42.222-05:00</updated><category term='awr_stage'/><category term='constraints'/><category term='procedure to disable all constraints'/><category term='Automatic Workload Repository'/><category term='blocking sessions'/><category term='copy roles in oracle'/><category term='Basic SQL'/><category term='copyroles.sql'/><category term='oradebug'/><category term='procedure to enable all triggers'/><category term='oracle tracing'/><category term='Moving table statistics from one database to other database'/><category term='schema'/><category term='disable all constraints'/><category term='v$lock'/><category term='disable all triggers'/><category term='waiting sessions'/><category term='dbms_swrf_internal'/><category term='duplicate roles'/><category term='triggers'/><category term='oracle privileges'/><category term='awr'/><category term='dbms_stats'/><title type='text'>Oracle DBA Blog</title><subtitle type='html'>- Think oracle</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rmatte.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rmatte.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Matte</name><uri>http://www.blogger.com/profile/02811215575036946855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_pH5e4wNEP3s/TRu4grWfIOI/AAAAAAAAIKQ/PU-Op_qj7yU/S220/MyIphonePictures%2B193.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6160333468452022034.post-7222640873798602700</id><published>2011-07-13T12:31:00.002-04:00</published><updated>2011-07-13T12:31:42.623-04:00</updated><title type='text'>Modify oracle table structure with low impact</title><content type='html'>&lt;div style="background-color: transparent; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br id="internal-source-marker_0.056664754869416356" /&gt;&lt;span id="internal-source-marker_0.056664754869416356" style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Goal:&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;To modify a table structure with low impact &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;from DATE to TIMESTAMP assuming T1 table is a multi million row table &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;and T1 table is an --&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;highly available table.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; drop table t1 purge;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Table dropped.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; create table t1 as select * from dba_objects;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Table created.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; create index t1_idx_01 on t1(object_id);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Index created.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; delete from t1 where object_id is NULL;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;22 rows deleted.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; commit;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Commit complete.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; alter table t1 add constraint pk_t1_01 primary key(object_id);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Table altered.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; desc t1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&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;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; - -------- ----------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OWNER &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(30)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OBJECT_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;&amp;nbsp;&amp;nbsp;VARCHAR2(128)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; SUBOBJECT_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;VARCHAR2(30)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OBJECT_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;NOT NULL NUMBER&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; DATA_OBJECT_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;NUMBER&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OBJECT_TYPE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(19)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; CREATED &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DATE&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; LAST_DDL_TIME &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DATE&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; TIMESTAMP &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(19)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; STATUS &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(7)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; TEMPORARY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; GENERATED &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; SECONDARY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Create a interim table that matches your target table requirements. &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;You can specify partition option or different storage parameters.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;CREATE TABLE RMATTE.T1_INTERIM&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;(&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;OWNER &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VARCHAR2(30 BYTE),&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;OBJECT_NAME &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VARCHAR2(128 BYTE),&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;SUBOBJECT_NAME &amp;nbsp;VARCHAR2(30 BYTE),&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;OBJECT_ID &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NUMBER,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;DATA_OBJECT_ID &amp;nbsp;NUMBER,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;OBJECT_TYPE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VARCHAR2(19 BYTE),&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;CREATED &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TIMESTAMP(6),&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;LAST_DDL_TIME &amp;nbsp;&amp;nbsp;TIMESTAMP(6),&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;TIMESTAMP &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VARCHAR2(19 BYTE),&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;STATUS &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VARCHAR2(7 BYTE),&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;TEMPORARY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VARCHAR2(1 BYTE),&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;GENERATED &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VARCHAR2(1 BYTE),&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;SECONDARY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VARCHAR2(1 BYTE)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;/&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Check whether you can redefine your table or not?&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; EXEC DBMS_REDEFINITION.CAN_REDEF_TABLE('RMATTE', 'T1', DBMS_REDEFINITION.CONS_USE_PK);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;PL/SQL procedure successfully completed.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;-- This function is required because to_timestamp parameter is not compatible with dbms_redifinition &amp;nbsp;package.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;create or replace function my_to_timestamp(p_date date) return timestamp is&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;begin&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;return to_timestamp(p_date);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;end;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;/ &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Function created.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Start the redefinition process. It will move all records from source table to interim table(target table).&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;2 &amp;nbsp;dbms_redefinition.start_redef_table('RMATTE', 'T1','T1_INTERIM',&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;3 &amp;nbsp;&amp;nbsp;'OWNER,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;4 &amp;nbsp;&amp;nbsp;OBJECT_NAME,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;5 &amp;nbsp;&amp;nbsp;SUBOBJECT_NAME,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;6 &amp;nbsp;&amp;nbsp;OBJECT_ID,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;7 &amp;nbsp;&amp;nbsp;DATA_OBJECT_ID,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;8 &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; OBJECT_TYPE,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;9 &amp;nbsp;&amp;nbsp;my_to_timestamp(CREATED) CREATED,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; 10 &amp;nbsp;&amp;nbsp;11 &amp;nbsp;&amp;nbsp;my_to_timestamp(LAST_DDL_TIME) LAST_DDL_TIME,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; 12 &amp;nbsp;&amp;nbsp;13 &amp;nbsp;&amp;nbsp;TIMESTAMP,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; 14 &amp;nbsp;&amp;nbsp;STATUS,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; 15 &amp;nbsp;&amp;nbsp;TEMPORARY,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; 16 &amp;nbsp;&amp;nbsp;GENERATED,&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; 17 &amp;nbsp;&amp;nbsp;SECONDARY',DBMS_REDEFINITION.CONS_USE_PK);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; 18 &amp;nbsp;END;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; 19 &amp;nbsp;/&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;PL/SQL procedure successfully completed.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Move all dependent objects from source table to interim table (Target table). &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;It will create the depended objects with TMP names.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; DECLARE&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;2 &amp;nbsp;&amp;nbsp;RETVAL NUMBER(5);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;3 &amp;nbsp;BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;4 &amp;nbsp;&amp;nbsp;dbms_redefinition.copy_table_dependents('RMATTE', 'T1', 'T1_INTERIM', copy_indexes=&amp;gt;dbms_redefinition.cons_orig_params, copy_triggers=&amp;gt;TRUE, copy_constraints=&amp;gt;TRUE,copy_privileges=&amp;gt;TRUE, num_errors=&amp;gt;RETVAL);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;5 &amp;nbsp;&amp;nbsp;dbms_output.put_line(RETVAL);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;6 &amp;nbsp;END;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;7 &amp;nbsp;/&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;0&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;PL/SQL procedure successfully completed.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Complete the redefinition process.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;It flips the sources table name/dependent objects with interim tablename/dependent objects (target table).&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; EXEC dbms_redefinition.finish_redef_table('RMATTE', 'T1', 'T1_INTERIM');&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;PL/SQL procedure successfully completed.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; DESC T1;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&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;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; - -------- ----------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OWNER &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(30)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OBJECT_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;&amp;nbsp;&amp;nbsp;VARCHAR2(128)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; SUBOBJECT_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;VARCHAR2(30)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OBJECT_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;NUMBER&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; DATA_OBJECT_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;NUMBER&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OBJECT_TYPE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(19)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; CREATED &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TIMESTAMP(6)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; LAST_DDL_TIME &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TIMESTAMP(6)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; TIMESTAMP &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(19)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; STATUS &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(7)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; TEMPORARY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; GENERATED &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; SECONDARY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; DESC T1_INTERIM;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&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;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; - -------- ----------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OWNER &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(30)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OBJECT_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;&amp;nbsp;&amp;nbsp;VARCHAR2(128)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; SUBOBJECT_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;VARCHAR2(30)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OBJECT_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;NOT NULL NUMBER&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; DATA_OBJECT_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;NUMBER&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; OBJECT_TYPE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(19)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; CREATED &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DATE&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; LAST_DDL_TIME &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DATE&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; TIMESTAMP &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(19)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; STATUS &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(7)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; TEMPORARY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; GENERATED &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; SECONDARY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;RMATTE@hhp3 SQL&amp;gt; DROP TABLE T1_INTERIM;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Table dropped.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6160333468452022034-7222640873798602700?l=rmatte.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rmatte.blogspot.com/feeds/7222640873798602700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6160333468452022034&amp;postID=7222640873798602700' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/7222640873798602700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/7222640873798602700'/><link rel='alternate' type='text/html' href='http://rmatte.blogspot.com/2011/07/modify-oracle-table-structure-with-low.html' title='Modify oracle table structure with low impact'/><author><name>Matte</name><uri>http://www.blogger.com/profile/02811215575036946855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_pH5e4wNEP3s/TRu4grWfIOI/AAAAAAAAIKQ/PU-Op_qj7yU/S220/MyIphonePictures%2B193.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6160333468452022034.post-7964337958716267728</id><published>2011-03-22T12:08:00.001-04:00</published><updated>2011-03-22T12:08:58.187-04:00</updated><title type='text'>SQL loader using EXTERNAL_TABLE option (ravinder_matte.postit@blogger.com)</title><content type='html'>&lt;div style="background-color: #d1e4f0; width: auto; font-family: Arial, sans-serif; color: #000; padding: 5px;"&gt;&lt;div style="height: 36px; font-size: 14px; font-weight: bold; padding-bottom: 4px;"&gt;&lt;table style="display: inline;width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="32px" style="padding: 0;"&gt;&lt;img src="https://docs.google.com/images/doclist/icon_7_document_email.png" style="height: 32px; margin-right: 5px;" alt=""&gt;&lt;/td&gt; &lt;td valign="middle" height="32px" style="padding: 0;"&gt;SQL loader testing&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt; &lt;div style="overflow: auto; font-size: 13px; background-color: #FFF; padding: 10px 7px 7px 7px;"&gt;  &lt;div style="border: 1px 0 solid #000; padding: 10px 0;"&gt;&lt;html&gt;&lt;head&gt;&lt;title&gt;SQL loader testing&lt;/title&gt;&lt;/head&gt;&lt;body style="width:648.0pt;background-color:#FFFFFF;padding:72.0pt 72.0pt 72.0pt 72.0pt"&gt;&lt;h5 style="padding-top:11.0pt;line-height:1.15;text-indent:0.0pt;direction:ltr;margin:0;padding-bottom:2.0pt"&gt;&lt;a name="h.48fep0tl0n3c"&gt;&lt;/a&gt;&lt;span style="color:#ff0000;font-size:11pt;text-decoration:underline;font-family:Courier New;font-weight:bold"&gt;PERFORMANCE BENEFITS USING EXTERNAL_TABLE=EXECUTE/GENERATE_ONLY OPTION IN SQL LOADER&lt;/span&gt;&lt;/h5&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#0000ff;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;-- PREPARATION FOR TEST START HERE --&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;spool Million_Rec_File.txt&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;begin&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;for i in 1..1000000&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;loop&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbms_output.put_line(round(dbms_random.value(1,1000))||chr(9)||dbms_random.string(&amp;#39;U&amp;#39;,10)||chr(9)||round(dbms_random.value(10000,12000))||chr(9)||dbms_random.string(&amp;#39;X&amp;#39;,20));&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;end loop;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;end;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;/&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;spool off;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;create table t1 (no number,ename varchar2(20), sal number, address varchar2(30));&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;alter table t1 parallel 16;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;oracle@bond[ORA10GR2] /export/home/oracle/&amp;gt;cat Million_Rec_File.ctl&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;load data&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt; infile &amp;#39;/export/home/oracle//Million_Rec_File.txt&amp;#39;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt; into table t1&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt; fields terminated by &amp;quot;|&amp;quot; optionally enclosed by &amp;#39;&amp;quot;&amp;#39;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt; ( no, ename, sal, &amp;nbsp;address)&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#0000ff;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;-- PREPARATION FOR TEST ENDS HERE --&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#0000ff;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#0000ff;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#0000ff;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#0000ff;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#0000ff;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#0000ff;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;-- TESTING START HERE --&lt;/span&gt;&lt;/p&gt;&lt;h6 style="padding-top:10.0pt;line-height:1.15;text-indent:0.0pt;direction:ltr;margin:0;padding-bottom:2.0pt"&gt;&lt;a name="h.o27iy5a4bpd8"&gt;&lt;/a&gt;&lt;span style="color:#ff0000;font-size:10pt;text-decoration:underline;font-family:Courier New;font-weight:bold"&gt;Case - 1:&lt;/span&gt;&lt;/h6&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;RMATTE@ORA10GR2 SQL&amp;gt; truncate table t1;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Table truncated.&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;RMATTE@ORA10GR2 SQL&amp;gt; exit&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;oracle@bond[ORA10GR2] /export/home/oracle/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;time sqlldr rmatte/&amp;lt;password&amp;gt;@ORA10GR2 control=Million_Rec_File.ctl silent=all&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;real &amp;nbsp; &amp;nbsp;0m16.664s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;user &amp;nbsp; &amp;nbsp;0m2.297s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;sys &amp;nbsp; &amp;nbsp; 0m1.208s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;h6 style="padding-top:10.0pt;line-height:1.15;text-indent:0.0pt;direction:ltr;margin:0;padding-bottom:2.0pt"&gt;&lt;a name="h.y8v1j0inra0o"&gt;&lt;/a&gt;&lt;span style="color:#ff0000;font-size:10pt;text-decoration:underline;font-family:Courier New;font-weight:bold"&gt;Case - 2:&lt;/span&gt;&lt;/h6&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;RMATTE@ORA10GR2 SQL&amp;gt; &amp;nbsp;truncate table t1;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Table truncated.&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;RMATTE@ORA10GR2 SQL&amp;gt; exit&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;oracle@bond[ORA10GR2] /export/home/oracle/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;time sqlldr rmatte/&amp;lt;password&amp;gt;@ORA10GR2 control=Million_Rec_File.ctl silent=all &amp;nbsp;rows=1000&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;real &amp;nbsp; &amp;nbsp;0m9.349s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;user &amp;nbsp; &amp;nbsp;0m2.100s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;sys &amp;nbsp; &amp;nbsp; 0m0.547s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;RMATTE@ORA10GR2 SQL&amp;gt; select count(*) from t1;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt; &amp;nbsp;COUNT(*)&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;----------&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt; &amp;nbsp; 1000000&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;h6 style="padding-top:10.0pt;line-height:1.15;text-indent:0.0pt;direction:ltr;margin:0;padding-bottom:2.0pt"&gt;&lt;a name="h.lqee07l0ejqt"&gt;&lt;/a&gt;&lt;span style="color:#ff0000;font-size:10pt;text-decoration:underline;font-family:Courier New;font-weight:bold"&gt;Case - 3:&lt;/span&gt;&lt;/h6&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;RMATTE@ORA10GR2 SQL&amp;gt; truncate table t1;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Table truncated.&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;RMATTE@ORA10GR2 SQL&amp;gt; exit&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;oracle@bond[ORA10GR2] /export/home/oracle/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;time sqlldr rmatte/&amp;lt;password&amp;gt;@ORA10GR2 control=Million_Rec_File.ctl silent=all parallel=true rows=1000&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;real &amp;nbsp; &amp;nbsp;0m8.162s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;user &amp;nbsp; &amp;nbsp;0m2.116s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;sys &amp;nbsp; &amp;nbsp; 0m0.603s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;RMATTE@ORA10GR2 SQL&amp;gt; select count(*) from t1;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt; &amp;nbsp;COUNT(*)&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;----------&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt; &amp;nbsp; 1000000&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;h6 style="padding-top:10.0pt;line-height:1.15;text-indent:0.0pt;direction:ltr;margin:0;padding-bottom:2.0pt"&gt;&lt;a name="h.oak2szdo4i7u"&gt;&lt;/a&gt;&lt;span style="color:#ff0000;font-size:10pt;text-decoration:underline;font-family:Courier New;font-weight:bold"&gt;Case - 4:&lt;/span&gt;&lt;/h6&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;RMATTE@ORA10GR2 SQL&amp;gt; &amp;nbsp;truncate table t1;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Table truncated.&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;RMATTE@ORA10GR2 SQL&amp;gt; exit&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;oracle@bond[ORA10GR2] /export/home/oracle/&amp;gt;time &lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;sqlldr rmatte/&amp;lt;password&amp;gt;@ORA10GR2 control=Million_Rec_File.ctl external_table=execute&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;SQL*Loader: Release 10.2.0.4.0 - Production on Mon Mar 21 14:19:38 2011&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Copyright (c) 1982, 2007, Oracle. &amp;nbsp;All rights reserved.&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;real &amp;nbsp; &amp;nbsp;0m2.499s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;user &amp;nbsp; &amp;nbsp;0m0.029s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;sys &amp;nbsp; &amp;nbsp; 0m0.034s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;RMATTE@ORA10GR2 SQL&amp;gt; select count(*) from t1;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt; &amp;nbsp;COUNT(*)&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;----------&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt; &amp;nbsp; 1000000&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#0000ff;font-size:11pt;font-family:Courier New;font-weight:bold"&gt;-- TESTING ENDS HERE --&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4 style="padding-top:12.0pt;line-height:1.15;text-indent:0.0pt;direction:ltr;margin:0;padding-bottom:2.0pt"&gt;&lt;a name="h.d3jdrhwplazm"&gt;&lt;/a&gt;&lt;span style="color:#ff0000;font-size:12pt;text-decoration:underline;font-family:Courier New;font-weight:bold"&gt;OBSERVATIONS:&lt;/span&gt;&lt;/h4&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" style="border-collapse:collapse"&gt;&lt;tbody&gt;&lt;tr style="height:0pt"&gt;&lt;td style="vertical-align:top;width:129.6pt;border-style:solid;border-color:#000000;border-width:1.0pt;padding:5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;p style="line-height:1.0;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Convention SQL Loader&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:top;width:129.6pt;border-style:solid;border-color:#000000;border-width:1.0pt;padding:5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;p style="line-height:1.0;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Conventional SQL Loader with Rows=1000&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:top;width:129.6pt;border-style:solid;border-color:#000000;border-width:1.0pt;padding:5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;p style="line-height:1.0;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Conventional SQL Loader with rows=1000 and parallel=TRUE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:top;width:129.6pt;border-style:solid;border-color:#000000;border-width:1.0pt;padding:5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;p style="line-height:1.0;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;SQL Loader with external table&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:top;width:129.6pt;border-style:solid;border-color:#000000;border-width:1.0pt;padding:5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;p style="line-height:1.0;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;Improvements using external_table=execute option.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:0pt"&gt;&lt;td style="vertical-align:top;width:129.6pt;border-style:solid;border-color:#000000;border-width:1.0pt;padding:5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;real &amp;nbsp; &amp;nbsp;0m16.664s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;user &amp;nbsp; &amp;nbsp;0m2.297s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;sys &amp;nbsp; &amp;nbsp; 0m1.208s&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:top;width:129.6pt;border-style:solid;border-color:#000000;border-width:1.0pt;padding:5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;real &amp;nbsp; &amp;nbsp;0m9.349s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;user &amp;nbsp; &amp;nbsp;0m2.100s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;sys &amp;nbsp; &amp;nbsp; 0m0.547s&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:top;width:129.6pt;border-style:solid;border-color:#000000;border-width:1.0pt;padding:5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;p style="line-height:1.0;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;real &amp;nbsp; &amp;nbsp;0m8.162s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.0;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;user &amp;nbsp; &amp;nbsp;0m2.116s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.0;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;sys &amp;nbsp; &amp;nbsp; 0m0.603s&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:top;width:129.6pt;border-style:solid;border-color:#000000;border-width:1.0pt;padding:5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;real &amp;nbsp; &amp;nbsp;0m2.499s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;user &amp;nbsp; &amp;nbsp;0m0.029s&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;sys &amp;nbsp; &amp;nbsp; 0m0.034s&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:top;width:129.6pt;border-style:solid;border-color:#000000;border-width:1.0pt;padding:5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;p style="line-height:1.0;text-indent:0.0pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#ff0000;font-size:11pt;font-family:Courier New"&gt;~ &amp;gt;3.26 times faster.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="line-height:1.15;text-indent:0.0pt;height:11pt;color:#000000;direction:ltr;font-size:11pt;font-family:Arial"&gt;&lt;span style="color:#000000;font-size:11pt;font-family:Courier New"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;&lt;/div&gt; &lt;br&gt; &lt;span style="color: #898989;"&gt;Google Docs makes it easy to create, store and share online documents, spreadsheets and presentations.&lt;/span&gt; &lt;div style="text-align: right;"&gt;&lt;a href="http://docs.google.com"&gt;&lt;img style="border: 0;margin-top: 10px;" src="https://docs.google.com/images/doclist/docs_logo_sm.gif" alt="Logo for Google Docs"&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6160333468452022034-7964337958716267728?l=rmatte.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rmatte.blogspot.com/feeds/7964337958716267728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6160333468452022034&amp;postID=7964337958716267728' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/7964337958716267728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/7964337958716267728'/><link rel='alternate' type='text/html' href='http://rmatte.blogspot.com/2011/03/sql-loader-using-externaltable-option.html' title='SQL loader using EXTERNAL_TABLE option (ravinder_matte.postit@blogger.com)'/><author><name>Matte</name><uri>http://www.blogger.com/profile/02811215575036946855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_pH5e4wNEP3s/TRu4grWfIOI/AAAAAAAAIKQ/PU-Op_qj7yU/S220/MyIphonePictures%2B193.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6160333468452022034.post-6421005749711513051</id><published>2011-02-25T19:19:00.000-05:00</published><updated>2011-02-25T19:19:41.983-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='procedure to disable all constraints'/><category scheme='http://www.blogger.com/atom/ns#' term='schema'/><category scheme='http://www.blogger.com/atom/ns#' term='procedure to enable all triggers'/><category scheme='http://www.blogger.com/atom/ns#' term='copy roles in oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='disable all constraints'/><category scheme='http://www.blogger.com/atom/ns#' term='constraints'/><category scheme='http://www.blogger.com/atom/ns#' term='triggers'/><category scheme='http://www.blogger.com/atom/ns#' term='disable all triggers'/><title type='text'>Disable / Enable all constraints and trigger for a given schema.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="background-color: transparent; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span id="internal-source-marker_0.7732847731094807" style="background-color: transparent; color: black; font-family: Cambria; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Following 2 procedures will allow you to enable/disable all constraints and triggers for a given schema.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Cambria; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Cambria; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Usage:&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 12pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;EXEC DISABLE_ALL_CONS_TRGS('RMATTE');&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 12pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;exec ENABLE_ALL_CONS_TRGS('RMATTE');&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: Cambria; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;CREATE OR REPLACE PROCEDURE DISABLE_ALL_CONS_TRGS (V_OWNER in varchar2 )&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;IS&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;for i IN (select owner,table_name, constraint_name from dba_constraints where constraint_type ='R'and status = 'ENABLED' and owner=v_owner)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;loop&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;dbms_output.put_line ('alter table ' ||i.owner||'.'||i.table_name|| ' disable constraint ' ||i.constraint_name||'.');&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;EXECUTE IMMEDIATE 'alter table ' ||i.owner||'.'||i.table_name|| ' disable constraint ' ||i.constraint_name;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;end loop i;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;for i IN (select owner,table_name, constraint_name from dba_constraints where status = 'ENABLED' and owner=V_OWNER)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;loop&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;dbms_output.put_line ('alter table ' ||i.owner||'.'||i.table_name|| ' disable constraint ' ||i.constraint_name||'.');&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;EXECUTE IMMEDIATE 'alter table ' ||i.owner||'.'||i.table_name|| ' disable constraint ' ||i.constraint_name;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;end loop i;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;for i IN (select distinct owner,table_name from dba_triggers where status = 'ENABLED' and owner=V_OWNER)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;loop&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;dbms_output.put_line('alter table ' ||i.owner||'.'||i.table_name|| ' disable ALL TRIGGERS ;');&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;EXECUTE IMMEDIATE 'alter table ' ||i.owner||'.'||i.table_name|| ' disable ALL TRIGGERS ';&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;end loop i;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;EXCEPTION&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;WHEN OTHERS THEN&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;END;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;/&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;CREATE OR REPLACE PROCEDURE ENABLE_ALL_CONS_TRGS (V_OWNER in varchar2 )&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;IS&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;for i IN (select owner,table_name, constraint_name from dba_constraints where status = 'DISABLED' and owner=V_OWNER)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;loop&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;DBMS_OUTPUT.PUT_LINE ('alter table ' ||i.owner||'.'||i.table_name|| ' enable novalidate constraint &amp;nbsp;' ||i.constraint_name||';');&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;EXECUTE IMMEDIATE 'alter table ' ||i.owner||'.'||i.table_name|| ' enable novalidate constraint &amp;nbsp;' ||i.constraint_name;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;end loop i;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;for i IN (select distinct owner,table_name from dba_triggers where status = 'DISABLED' and owner=V_OWNER)&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;loop&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;dbms_output.put_line ('alter table ' ||i.owner||'.'||i.table_name|| ' enable ALL TRIGGERS ;');&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;EXECUTE IMMEDIATE 'alter table ' ||i.owner||'.'||i.table_name|| ' enable ALL TRIGGERS ';&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;end loop i;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;EXCEPTION&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;WHEN OTHERS THEN&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;END;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;/&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6160333468452022034-6421005749711513051?l=rmatte.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rmatte.blogspot.com/feeds/6421005749711513051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6160333468452022034&amp;postID=6421005749711513051' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/6421005749711513051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/6421005749711513051'/><link rel='alternate' type='text/html' href='http://rmatte.blogspot.com/2011/02/disable-enable-all-constraints-and.html' title='Disable / Enable all constraints and trigger for a given schema.'/><author><name>Matte</name><uri>http://www.blogger.com/profile/02811215575036946855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_pH5e4wNEP3s/TRu4grWfIOI/AAAAAAAAIKQ/PU-Op_qj7yU/S220/MyIphonePictures%2B193.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6160333468452022034.post-8479881832413977062</id><published>2010-04-03T22:32:00.006-04:00</published><updated>2010-11-23T10:27:07.742-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dbms_stats'/><category scheme='http://www.blogger.com/atom/ns#' term='Moving table statistics from one database to other database'/><title type='text'>Moving table statistics from one database to other database</title><content type='html'>&lt;div style="font-family: inherit; text-align: justify;"&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;To avoid the load of gathering stats on production database,  oracle providing a way to move the stats from one database to other  database. Normally it is very useful when we want to gather stats on  UAT/TEST database and move them to PROD database.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;  See this following example to understand the procedure.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;Gather  stats on source(UAT/TEST) database:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;SQL&amp;gt; exec &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;dbms_stats.gather_table_&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;stats&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;ownname&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'RMATTE', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;tabname&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'T1', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;method_opt&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt; =&amp;gt; 'for all indexed colum&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;ns size &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;auto',cascade&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt; =&amp;gt; TRUE);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;Create  a stats table:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;SQL&amp;gt; exec dbms_stats.create_stat_&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;table(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;ownname=&amp;gt;'RMATTE',stattab=&amp;gt;'&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;STATS',tblspace=&amp;gt;'USERS&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;Save the T1 tables stats into stats table:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;SQL&amp;gt; exec &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;dbms_stats.export_table_stats&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;ownname&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'RMATTE',  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;tabname&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'T1', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;stattab&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'STATS', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;statown&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'RMATTE', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;statid&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'T1_NEWSTATS');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;Move the STATS table from UAT/TEST database to PRODUCTION  database using convenient way. (exp/imp, data pump, db link etc):&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;Save  the old T1 stats to STATS table with T1_OLD_STATS id incase if you want  to revert the stats to old stats:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;SQL&amp;gt;  exec &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;dbms_stats.export_table_stats&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;ownname&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'RMATTE',  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;tabname&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'T1', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;stattab&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'STATS', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;statown&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'RMATTE', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;statid&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'T1_OLDSTATS');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;Apply the new stats on T1 table:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;SQL&amp;gt; exec &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;dbms_stats.import_table_stats&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;ownname&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'RMATTE',  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;tabname&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'T1', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;statown&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'RMATTE', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;stattab&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'STATS', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;statid&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'T1_NEWSTATS',  cascade=&amp;gt;TRUE);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: inherit; text-align: justify;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;If you want to  rollback the stats to original stats just import the T1_OLDSTATS:&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;SQL&amp;gt; exec &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;dbms_stats.import_table_stats&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;ownname&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'RMATTE',  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;tabname&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'T1', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;statown&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'RMATTE', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;stattab&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'STATS', &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;statid&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;=&amp;gt;'T1_OLDSTATS',  cascade=&amp;gt;TRUE);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;Hope this  simple example will helps you....&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6160333468452022034-8479881832413977062?l=rmatte.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rmatte.blogspot.com/feeds/8479881832413977062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6160333468452022034&amp;postID=8479881832413977062' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/8479881832413977062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/8479881832413977062'/><link rel='alternate' type='text/html' href='http://rmatte.blogspot.com/2010/04/moving-stats-from-one-database-to-other.html' title='Moving table statistics from one database to other database'/><author><name>Matte</name><uri>http://www.blogger.com/profile/02811215575036946855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_pH5e4wNEP3s/TRu4grWfIOI/AAAAAAAAIKQ/PU-Op_qj7yU/S220/MyIphonePictures%2B193.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6160333468452022034.post-3992767451723052559</id><published>2009-10-22T15:10:00.009-04:00</published><updated>2010-03-27T12:25:25.765-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oracle privileges'/><category scheme='http://www.blogger.com/atom/ns#' term='copy roles in oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='duplicate roles'/><category scheme='http://www.blogger.com/atom/ns#' term='copyroles.sql'/><title type='text'>Copy all privileges from one role to other role</title><content type='html'>Whenever you need to copy all the privileges (Roles, System privs, Object privs and Column prives) from one existing role to an new/existing role, this script is useful as an handful tool.&lt;br /&gt;&lt;br /&gt;Don't forget to save the script in .sql format and run.&lt;br /&gt;&lt;br /&gt;-- Script begin here --&lt;br /&gt;-- CopyRole.sql&lt;br /&gt;-- Takes 2 inputs (old role to copy from and new role name to copy to.&lt;br /&gt;-- Version : 1.0&lt;br /&gt;-- Tested on 10.2.0.3 Version.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- Create the New Role&lt;br /&gt;accept OldRoleName prompt'please enter old role:'&lt;br /&gt;accept NewRoleNameprompt'please enter new role:'&lt;br /&gt;declare&lt;br /&gt;Role_Exist exception;&lt;br /&gt;pragma_exception_init(Role_Exist, -1921);&lt;br /&gt;begin&lt;br /&gt;execute immediate 'create role &amp;amp;&amp;amp;NewRoleName ';&lt;br /&gt;exception&lt;br /&gt;when Role_Exist then&lt;br /&gt;dbms_output.put_line ('&amp;amp;&amp;amp;NewRoleName is alredy exicted, so i am append the privileges now.. ');&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;-- Append the privs to new role&lt;br /&gt;&lt;br /&gt;declare&lt;br /&gt;stmt varchar2(3000);&lt;br /&gt;begin&lt;br /&gt;-- Grant Roles...&lt;br /&gt;for i in (select granted_role,admin_option from sys.dba_role_privs where grantee=upper('&amp;amp;&amp;amp;OldRoleName'))&lt;br /&gt;loop&lt;br /&gt;select decode(i.admin_option, 'YES', ' WITH ADMIN OPTION') into stmt from dual;&lt;br /&gt;declare&lt;br /&gt;invalid_priv exception;&lt;br /&gt;pragma_exception_init(invalid_priv, -990);&lt;br /&gt;begin&lt;br /&gt;execute immediate 'grant '||i.granted_role||' to "'||upper('&amp;amp;&amp;amp;NewRoleName')||'"'|| stmt;&lt;br /&gt;exception&lt;br /&gt;when invalid_priv then&lt;br /&gt;dbms_output.put_line (i.granted_role||' can not be granted because it might be deleted');&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;end loop;&lt;br /&gt;&lt;br /&gt;for i in (select privilege,admin_option from sys.dba_sys_privs where grantee=upper('&amp;amp;&amp;amp;OldRoleName'))&lt;br /&gt;loop&lt;br /&gt;select decode(i.admin_option, 'YES', ' WITH ADMIN OPTION') into stmt from dual;&lt;br /&gt;declare&lt;br /&gt;invalid_priv exception;&lt;br /&gt;pragma_exception_init(invalid_priv, -990);&lt;br /&gt;begin&lt;br /&gt;execute immediate 'grant '||i.privilege||' to "'||upper('&amp;amp;&amp;amp;NewRoleName')||'"'|| stmt;&lt;br /&gt;exception&lt;br /&gt;when invalid_priv then&lt;br /&gt;dbms_output.put_line (i.privilege||' can not be granted because it might be deleted');&lt;br /&gt;end;&lt;br /&gt;end loop;&lt;br /&gt;&lt;br /&gt;for i in (select privilege,owner,table_name from sys.dba_tab_privs where grantee=upper('&amp;amp;&amp;amp;OldRoleName'))&lt;br /&gt;loop&lt;br /&gt;declare&lt;br /&gt;invalid_priv exception;&lt;br /&gt;pragma_exception_init(invalid_priv, -990);&lt;br /&gt;begin&lt;br /&gt;execute immediate 'grant '||i.privilege||' on '||i.owner||'.'||i.table_name||' to "'||upper('&amp;amp;&amp;amp;NewRoleName')||'"';&lt;br /&gt;exception&lt;br /&gt;when invalid_priv then&lt;br /&gt;dbms_output.put_line (i.privilege||' can not be granted because it might be deleted');&lt;br /&gt;end;&lt;br /&gt;end loop;&lt;br /&gt;&lt;br /&gt;for i in (select privilege,owner,table_name,column_name from sys.dba_col_privs where grantee=upper('&amp;amp;&amp;amp;OldRoleName'))&lt;br /&gt;loop&lt;br /&gt;declare&lt;br /&gt;invalid_priv exception;&lt;br /&gt;pragma_exception_init(invalid_priv, -990);&lt;br /&gt;begin&lt;br /&gt;execute immediate 'grant '||i.privilege||' on '||i.owner||'.'||i.table_name||'('||i.column_name||') to "'||upper('&amp;amp;&amp;amp;NewRoleName')||'"';&lt;br /&gt;exception&lt;br /&gt;when invalid_priv then&lt;br /&gt;dbms_output.put_line (i.privilege||' can not be granted because it might be deleted');&lt;br /&gt;end;&lt;br /&gt;end loop;&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;-- Script ends here --&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6160333468452022034-3992767451723052559?l=rmatte.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rmatte.blogspot.com/feeds/3992767451723052559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6160333468452022034&amp;postID=3992767451723052559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/3992767451723052559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/3992767451723052559'/><link rel='alternate' type='text/html' href='http://rmatte.blogspot.com/2009/10/copy-all-privileges-from-one-role-to.html' title='Copy all privileges from one role to other role'/><author><name>Matte</name><uri>http://www.blogger.com/profile/02811215575036946855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_pH5e4wNEP3s/TRu4grWfIOI/AAAAAAAAIKQ/PU-Op_qj7yU/S220/MyIphonePictures%2B193.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6160333468452022034.post-6157980235934415439</id><published>2008-11-28T16:29:00.009-05:00</published><updated>2010-12-29T17:04:29.707-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='awr'/><category scheme='http://www.blogger.com/atom/ns#' term='awr_stage'/><category scheme='http://www.blogger.com/atom/ns#' term='Automatic Workload Repository'/><category scheme='http://www.blogger.com/atom/ns#' term='dbms_swrf_internal'/><title type='text'>Error while Transporting Automatic Workload Repository (AWR) Data</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family: arial;"&gt;. . imported "AWR_STAGE"."WRH$_WAITSTAT":"WRH$_WAITSTAT_MXDB_MXSN" 0 KB 0 rows&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family: arial;"&gt;. . imported "AWR_STAGE"."WRH$_WAITSTAT":"WRH$_WAITST_312119078_435" 0 KB 0 rows&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family: arial;"&gt;. .  imported "AWR_STAGE"."WRM$_SNAP_ERROR" 0 KB 0 rowsProcessing object type&lt;br /&gt;&lt;br /&gt;TABLE_EXPORT/TABLE/INDEX/INDEXProcessing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINTProcessing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT&lt;br /&gt;Job "SYS"."SYS_IMPORT_FULL_01" successfully completed at 15:08:23&lt;br /&gt;Elapsed: 00:00:56.08&lt;br /&gt;begin&lt;br /&gt;*&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-20105: unable to move AWR data to SYS&lt;br /&gt;ORA-06512: at "SYS.DBMS_SWRF_INTERNAL", line 1760ORA-20107: not allowed to move AWR data for local dbid&lt;br /&gt;ORA-06512: at line 3&lt;br /&gt;Elapsed: 00:00:00.05...&lt;br /&gt;Dropping AWR_STAGE userElapsed: 00:00:06.70&lt;br /&gt;End of AWR Load&lt;br /&gt;&lt;br /&gt;This is the error message when you are running $ORACLE_HOME/rdbms/admin/awrload.sql.&lt;br /&gt;Purpose: To transfer the awr snapshots from one database to other database for various reasons.&lt;br /&gt;Snashots are exported from source database successfully and this is the error message when trying to load the snapshots into an destination database.&lt;br /&gt;&lt;br /&gt;If we open the awrload.sql file all the sql and pl/sql are executed without any error except this procedure.&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt;/* call PL/SQL routine to move the data into AWR */&lt;br /&gt;dbms_swrf_internal.move_to_awr(schname =&amp;gt; :schname);&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;From the error message, it is definately an error while &lt;span style="color: #cc0000;"&gt;trying to move the snapshots from a temporary schema to same schema. (looks like it is a bug). &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The &lt;span style="color: #cc0000;"&gt;"dbms_swrf_internal"&lt;/span&gt; package is wrapped package (Unable to see the contents in the package.). So It is a NO go for me.&lt;br /&gt;&lt;br /&gt;But i will keep you posted if I find a solution. Please comment if you find a solution...&lt;/span&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Ravi Matte&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6160333468452022034-6157980235934415439?l=rmatte.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rmatte.blogspot.com/feeds/6157980235934415439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6160333468452022034&amp;postID=6157980235934415439' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/6157980235934415439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/6157980235934415439'/><link rel='alternate' type='text/html' href='http://rmatte.blogspot.com/2008/11/awr-errors-while-transfering-snapshots.html' title='Error while Transporting Automatic Workload Repository (AWR) Data'/><author><name>Matte</name><uri>http://www.blogger.com/profile/02811215575036946855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_pH5e4wNEP3s/TRu4grWfIOI/AAAAAAAAIKQ/PU-Op_qj7yU/S220/MyIphonePictures%2B193.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6160333468452022034.post-4490577468712867525</id><published>2008-09-25T12:58:00.006-04:00</published><updated>2010-03-26T22:52:55.217-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oradebug'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle tracing'/><title type='text'>ORADEBUG - Excellent oracle tracing tool</title><content type='html'>&lt;p style="color: rgb(255, 255, 255);" class="MsoNormal"&gt;&lt;span class="Apple-style-span"   style="font-weight: bold;font-family:Arial;font-size:48;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;- oracle debugging/tracing tool&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oracledebug is an un-documented debugging utility provided by oracle. You need to connect as sysdba before start using oradebug.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;Please find some of the useful &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;commands and examples below.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;-- list of all command and its usages.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;help&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;--find the process id you need to attach&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;select s.username,s.sid,p.spid&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;from v$session s, v$process p&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;where s.paddr=p.addr&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;and s.username='scott'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;username &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sid &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;                   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;spid&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;-------------------- &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;---------- &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;span&gt;&lt;/span&gt;------------------------------&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;------&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;scott &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;32 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;                    &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;6580&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;--attach scott spid to&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug utility&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sys @ xe:&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; setospid 6580&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oracle pid: 18, unix process pid: 6580, image: oracle@rmatte (tns v1-v3)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;--hint&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;if you are doing system wide dumps rather than single process dumps then you can attach to a process something like this.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; setmypid;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;--get the list of dumps you can get.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; dumplist&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;--where is my dumpfiles going to be?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; tracefile_name&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;--how much could be the tracefile size?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;the default maximum size will be 20m&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;you can override that restriction using&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; unlimit;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;***********************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;example of system state dump.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;***********************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; setmypid;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;--dump systemstate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; dump systemstate 10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;you will see a trace under udump directory.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;--hints:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;to flush any pending writes to tracefile use :&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; flush;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;--close tracing.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; close_trace;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;***********************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;example of tracing other sessions.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;***********************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;select s.username,s.sid,p.spid&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;from v$session s, v$process p&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;where s.paddr=p.addr&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;and s.username='scott'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; setospid ;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; event 10053 trace name context forever, level 1;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;.... start the commands from scott session.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sys @ xe:&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; tracefile_name;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;/usr/lib/oracle/xe/app/oracle/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;admin/xe/udump/xe_ora_7567.trc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;!vi /usr/lib/oracle/xe/app/oracle/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;admin/xe/udump/xe_ora_7567.trc --- see the trace file.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; flush;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;--flush any pending writes to tracefile.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; close_trace;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;--stop tracing.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;***********************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;Got problem with 2rd party tools, needs to know what statements it is trying to execute internally... sometimes 3rd party tools will show the error messages leaving actual statements.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;you can start tracing for 3rd party tools like:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; event 942 trace name errorstock forever, level 3;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;***********************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;how the events will be turned off;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; event 10053 trace name context off;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; event 842 trace name context off;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;***********************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;session suspend and resume&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;***********************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sys @ xe:&gt; @pidbyuser&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;username (=all): scott&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sid serial# spid osuser machine sql_addr&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;----- ------- ------ ------ ------ --&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;32 68 8352 oracle rmatte 00&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sys @ xe:&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sys @ xe:&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sys @ xe:&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; setospid 8352&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oracle pid: 21, unix process pid: 8352, image: oracle@rmatte (tns v1-v3)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sys @ xe:&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; suspend;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;statement processed.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sys @ xe:&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;from this time onwards, scott cannot execute any sql statement until his process resume like:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sys @ xe:&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; resume;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;statement processed.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;***********************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;hanganalyze -- metalink reference document 215858.1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;***********************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;-- hanganalyze is new in&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;oradebug. it is most powerfull tool which helps in a situations when the database instance/session hung.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;hanganalyze is "not" a dump, it produces output in udump directory in human readable format.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;S&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;ome guidelines to understand the output of hanganalyze:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;chains: chains are formed by the processes competing for a resource. Cyclical or closed chains&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;are deadlocks and are considered true hangs. Open chains consist of processes waiting for a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;resource held by a blocker. these are not true hangs and can be resolved by killing the holding&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;session and allowing the blocked processes to proceed. This can be useful when a process is&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;holding a latch, frequent example is the library latch, and other processes are waiting for the latch.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;be careful, however, not to kill smon or pmon as that would usually bring down the entire&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;instance.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;T&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;he format of each chain entry is the following:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;chain 1 : :&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;these abbreviations have the following meanings:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;cnode=cluster node, available as of 9i&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sid = session id, the same as sid in v$session&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;sess_srno = serial number, the same as serial# in v$session.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;ospid=operating system pid (process id)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;nodes: nodes are sessions. the first line explains the session listing:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;([nodenum]/cnode/sid/sess_&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;srno/session/ospid/state/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;start/finish/[adjlist]/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;predecessor):&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;****&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;the meaning of the abbreviations is the same as for the chains.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;state column in the nodes list is matters most of the time,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;in_hang - sid is hanged.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;leaf or leaf_new -this session is blocking others, probably this is on the tops of the open chain.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;nleaf -this session is waiting on other sessions.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;ign or ign_dump -session is idle.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;******************************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;***********************&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;reference link :&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;http://www.mladen-gogala.com/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;wbr&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt; oradebug.pdf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="color:#666666;"&gt;metalink note ids:29786.1, 118570.1, 1058210.6 ,105395.1 and 215858.1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;o:p style="color: rgb(255, 255, 255);"&gt;&lt;/o:p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6160333468452022034-4490577468712867525?l=rmatte.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rmatte.blogspot.com/feeds/4490577468712867525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6160333468452022034&amp;postID=4490577468712867525' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/4490577468712867525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/4490577468712867525'/><link rel='alternate' type='text/html' href='http://rmatte.blogspot.com/2008/09/oradebug-excellent-oracle-tracing-tool.html' title='ORADEBUG - Excellent oracle tracing tool'/><author><name>Matte</name><uri>http://www.blogger.com/profile/02811215575036946855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_pH5e4wNEP3s/TRu4grWfIOI/AAAAAAAAIKQ/PU-Op_qj7yU/S220/MyIphonePictures%2B193.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6160333468452022034.post-2619055916011037950</id><published>2008-08-27T17:53:00.014-04:00</published><updated>2010-06-22T21:36:59.221-04:00</updated><title type='text'>Backup your oracle listener log</title><content type='html'>&lt;div style="background-color: white; color: black; font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="background-color: #666666;"&gt;&lt;/span&gt;For the production databases you will see the listener log grows rapidly. you may need to backup and delete the listener log. If you move the listener.log while the listener is up and running, listener will stop writing to log file. It won't create new log file like alert log file.&lt;br /&gt;&lt;br /&gt;rmatte:(test):/ora/app/oracle&amp;gt; lsnrctl&lt;br /&gt;lsnrctl&amp;gt; show log_directory&lt;br /&gt;connecting to (description=(address=(protocol=tcp)(host=rmatte)(port=1521))) listener parameter "log_directory" set to /u01/app/oracle/product/&lt;/span&gt;&lt;/span&gt;&lt;db&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;/network/log/&lt;br /&gt;the command completed successfully&lt;br /&gt;lsnrctl&amp;gt; show log_file&lt;br /&gt;connecting to (description=(address=(protocol=tcp)(host=rmatte)(port=1521))) listener parameter "log_file" set to listener.log&lt;br /&gt;the command completed successfully&lt;br /&gt;lsnrctl&amp;gt; show log_status&lt;br /&gt;connecting to (description=(address=(protocol=tcp)(host=rmatte)(port=1521))) listener parameter "log_status" set to on&lt;br /&gt;the command completed successfully&lt;br /&gt;lsnrctl&amp;gt; set log_status off&lt;br /&gt;connecting to (description=(address=(protocol=tcp)(host=rmatte)(port=1521))) listener parameter "log_status" set to off&lt;br /&gt;the command completed successfully&lt;br /&gt;&lt;br /&gt;rmatte:(test):/u01/app/oracle&amp;gt; mv /u01/app/oracle/product/&lt;/span&gt;&lt;/span&gt;&lt;db&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;/network/log/listener.log /u01/app/oracle/product/&lt;/span&gt;&lt;/span&gt;&lt;db&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;/network/log/listener.log.backup&lt;br /&gt;&lt;br /&gt;lsnrctl&amp;gt; set log_status on&lt;br /&gt;connecting to (description=(address=(protocol=tcp)(host=rmatte)(port=1521))) listener parameter "log_status" set to on&lt;br /&gt;the command completed successfully&lt;br /&gt;&lt;br /&gt;Don't be panic if you move/rename the listener log without following the above procedure. You just need to set the log_status on.&lt;br /&gt;&lt;br /&gt;NOTE: You will miss all the listener log entries from the time you set the log_status to off to the time you set to on.&lt;/span&gt;&lt;/span&gt;&lt;/db&gt;&lt;/db&gt;&lt;/db&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6160333468452022034-2619055916011037950?l=rmatte.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rmatte.blogspot.com/feeds/2619055916011037950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6160333468452022034&amp;postID=2619055916011037950' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/2619055916011037950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/2619055916011037950'/><link rel='alternate' type='text/html' href='http://rmatte.blogspot.com/2008/08/backup-your-oracle-listener-log.html' title='Backup your oracle listener log'/><author><name>Matte</name><uri>http://www.blogger.com/profile/02811215575036946855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_pH5e4wNEP3s/TRu4grWfIOI/AAAAAAAAIKQ/PU-Op_qj7yU/S220/MyIphonePictures%2B193.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6160333468452022034.post-2162614419122374906</id><published>2008-08-22T17:55:00.018-04:00</published><updated>2010-12-29T17:05:40.227-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Basic SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='blocking sessions'/><category scheme='http://www.blogger.com/atom/ns#' term='waiting sessions'/><category scheme='http://www.blogger.com/atom/ns#' term='v$lock'/><title type='text'>Basic oracle scripts - 1</title><content type='html'>&lt;div align="left" style="color: black; font-family: arial;"&gt;&lt;strong&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family: inherit;"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span"&gt;Active sql:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;set linesize 150 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set pages 100 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;col sid_serial noprint &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;col firstload for a10 head 'firstload' &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;col username for a10 word_wrap &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;col sql_text for a35 wrap &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;col sid_serial# for a10 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;col process format a10 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;col sid_ser format a10&lt;br /&gt;select s.sid','s.serial# sid_ser&lt;br /&gt;,s.username&lt;br /&gt;,s.sid'.'s.serial# sid_serial&lt;br /&gt;,s.process&lt;br /&gt;,a.rows_processed&lt;br /&gt;,substr(a.first_load_time,12,5) firstload&lt;br /&gt;,a.sql_text&lt;br /&gt;from v$sql a,&lt;br /&gt;v$session s&lt;br /&gt;where a.address = s.sql_address&lt;br /&gt;and s.username is not null&lt;br /&gt;and a.users_executing &amp;gt; 0&lt;br /&gt;order by users_executing,&lt;br /&gt;first_load_time&lt;br /&gt;/&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Waiting sessions : &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set heading on &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set head on &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set feedback on &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set trimspool on &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set trunc on &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set linesize 220 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column username format a20 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column event format a23 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column p1 format a20 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column p2 format a15 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column p3 format a15 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column wait_time format 999 heading waittime &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column state format a16 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column sid format 999 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column sec_in_wait format 999 heading secondsinwait &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;select sw.sid,&lt;br /&gt;s.username,&lt;br /&gt;sw.event, '('sw.p1')' as p1, &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;sw.p2text'('sw.p2')' as p2, &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;sw.p3text'('sw.p3')' as p3, &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;sw.wait_time, sw.state&lt;br /&gt;from v$session s,&lt;br /&gt;v$session_wait sw &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;where s.sid=sw.sid &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;and sw.event not like '%sql*net%' &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;and s.username is not null &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;order by sw.wait_time desc &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;/ &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Holding and Waitings sessions:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set truncate off&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set linesize 200&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;select decode(request,0,'holder: ','waiter: ') sid sess, &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;id1,&lt;br /&gt;id2,&lt;br /&gt;lmode,&lt;br /&gt;request,&lt;br /&gt;type &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;from v$lock &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;where (id1, id2, type) in ( select id1, id2, type&lt;br /&gt;from v$lock &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;where request&amp;gt;0) &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;order by id1, &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;request &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;/&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Tables in your rollback/undo segments?&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set echo off&lt;br /&gt;set linesize 200&lt;br /&gt;set pagesize 200&lt;br /&gt;set wrap off&lt;br /&gt;column os_login format a10 heading "oslogin"&lt;br /&gt;column db_login format a10 heading "dblogin"&lt;br /&gt;column sid_serial format a10 heading "sidserial"&lt;br /&gt;column sql_hash_address format a10 heading "sqlhashaddress"&lt;br /&gt;column schema format a10 heading "schemaname"&lt;br /&gt;column object_name format a20 heading "objectname"&lt;br /&gt;column object_type format a10 heading "objecttype"&lt;br /&gt;#column rollback_segment format a5 heading "rbseg"&lt;br /&gt;column rollback_segment format a10 heading "rbseg"&lt;br /&gt;column sql_address format a5 heading "sqladdress"&lt;br /&gt;column records_locked format 999,999,999 heading "recordslocked"&lt;br /&gt;column command_type format a25 heading "commandtype"&lt;br /&gt;column sid noprint&lt;br /&gt;&lt;br /&gt;select distinct&lt;br /&gt;a.os_user_name os_login&lt;br /&gt;,a.oracle_username db_login&lt;br /&gt;,e.sid&lt;br /&gt;,e.sid','e.serial# sid_serial&lt;br /&gt;,e.sql_hash_value sql_hash_value&lt;br /&gt;,e.sql_address sql_address&lt;br /&gt;,b.owner schema&lt;br /&gt;,b.object_name object_name&lt;br /&gt;,b.object_type object_type&lt;br /&gt;,c.segment_name rollback_segment&lt;br /&gt;,d.used_urec records_locked&lt;br /&gt;,f.name command_type&lt;br /&gt;from&lt;br /&gt;v$locked_object a&lt;br /&gt;, dba_objects b&lt;br /&gt;, dba_rollback_segs c&lt;br /&gt;, v$transaction d&lt;br /&gt;, v$session e&lt;br /&gt;, audit_actions f&lt;br /&gt;where&lt;br /&gt;a.object_id = b.object_id&lt;br /&gt;and a.xidusn = c.segment_id&lt;br /&gt;and a.xidusn = d.xidusn&lt;br /&gt;and a.xidslot = d.xidslot&lt;br /&gt;and d.addr = e.taddr&lt;br /&gt;and e.command = f.action&lt;br /&gt;&lt;br /&gt;order by&lt;br /&gt;records_locked,&lt;br /&gt;e.sid&lt;br /&gt;,c.segment_name;&lt;br /&gt;set echo off&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Top 10 resource intensive queires in oracle :&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set lines 300&lt;br /&gt;set pages 40&lt;br /&gt;set heading on&lt;br /&gt;clear columns&lt;br /&gt;ttitle off&lt;br /&gt;column hash_value heading "hash value"&lt;br /&gt;column address heading "address"&lt;br /&gt;column buffer_gets heading "buff gets" format 99,999,999,999&lt;br /&gt;column disk_reads heading "disk reads" format 99,999,999,999&lt;br /&gt;column executions heading "executions" format 999,999,999,999&lt;br /&gt;column stext heading "sql text" format a70 wrapped&lt;br /&gt;column pctbuf heading "buff readsper exec" format 99999.99&lt;br /&gt;column pctdsk heading "disk readsper exec" format 99999.99&lt;br /&gt;column parse_schema heading "parsing user" format a12 trunc&lt;br /&gt;column sharable_mem heading "memory usage" format 999,999,999,999&lt;br /&gt;column parse_user heading "parse user" format a12 trunc&lt;br /&gt;column parse_calls heading "parse calls" format 999,999,999&lt;br /&gt;column rows_processed heading "rows processed" format 9,999,999,999&lt;br /&gt;column pct_exec heading "rows per execs"&lt;br /&gt;&lt;br /&gt;spool top10sql.log&lt;br /&gt;prompt top 10 by buffer gets&lt;br /&gt;&lt;br /&gt;select * from&lt;br /&gt;(select&lt;br /&gt;c.username parse_user,&lt;br /&gt;a.sql_text stext,&lt;br /&gt;a.executions,&lt;br /&gt;a.rows_processed,&lt;br /&gt;a.buffer_gets,&lt;br /&gt;(a.buffer_gets/a.executions) pctbuf&lt;br /&gt;from v$sqlarea a,&lt;br /&gt;dba_users b,&lt;br /&gt;dba_users c&lt;br /&gt;where (a.buffer_gets &amp;gt; 0 and a.executions &amp;gt; 100)&lt;br /&gt;and c.username not in ('johnd','sdavis','sys','system')&lt;br /&gt;and a.parsing_schema_id = b.user_id&lt;br /&gt;and a.parsing_user_id = c.user_id&lt;br /&gt;order by a.buffer_gets desc)&lt;br /&gt;where rownum &amp;lt;= 10; prompt top 10 by disk reads select * from (select c.username parse_user, a.sql_text stext, a.executions, a.rows_processed, a.disk_reads, (a.disk_reads/a.executions) pctdsk from v$sqlarea a, dba_users b, dba_users c where a.disk_reads &amp;gt; 0 and a.executions &amp;gt; 1000&lt;br /&gt;and a.parsing_schema_id = b.user_id&lt;br /&gt;and c.username not in ('johnd','sdavis','sys','system')&lt;br /&gt;and a.parsing_user_id = c.user_id&lt;br /&gt;order by a.disk_reads desc)&lt;br /&gt;where rownum &amp;lt;= 10; prompt top 10 by memory usage select * from (select c.username parse_user, a.sql_text stext, a.executions , a.rows_processed, a.sharable_mem from v$sqlarea a, dba_users b, dba_users c where a.sharable_mem &amp;gt; 0&lt;br /&gt;and a.parsing_schema_id = b.user_id&lt;br /&gt;and c.username not in ('johnd','sdavis','sys','system')&lt;br /&gt;and a.parsing_user_id = c.user_id&lt;br /&gt;order by a.sharable_mem desc)&lt;br /&gt;where rownum &amp;lt;= 10; prompt top 10 by executions select * from (select c.username parse_user, a.sql_text stext, a.executions, a.rows_processed, a.rows_processed/a.executions pct_exec from v$sqlarea a, dba_users b, dba_users c where a.executions &amp;gt; 1000&lt;br /&gt;and a.parsing_schema_id = b.user_id&lt;br /&gt;and a.parsing_user_id = c.user_id&lt;br /&gt;and c.username not in ('johnd','sdavis','sys','system')&lt;br /&gt;order by a.executions desc)&lt;br /&gt;where rownum &amp;lt;= 10; prompt top 10 by parse calls select * from (select c.username parse_user, a.sql_text stext, a.executions, a.rows_processed, a.parse_calls from v$sqlarea a, dba_users b, dba_users c where a.parse_calls &amp;gt; 100&lt;br /&gt;and a.parsing_schema_id = b.user_id&lt;br /&gt;and c.username not in ('johnd','sdavis','sys','system')&lt;br /&gt;and a.parsing_user_id = c.user_id&lt;br /&gt;order by a.parse_calls desc)&lt;br /&gt;where rownum &amp;lt;= 10; &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;spool off&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;What is in the oracle buffer now?&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set linesize 140&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column c0 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;heading 'Owner' format a30&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column c1 heading 'ObjectName' format a30&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column c2 heading 'NumberofBuffers' format 999,999 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;column c3 heading 'Percentageof DataBuffer' format 999,999,999&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;select owner c0,&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;object_name c1,&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;count(1) c2, &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;(count(1)/(select count(*) from v$bh)) *100 c3&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;from dba_objects o,&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;v$bh bh&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;whereo.object_id = bh.objd&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;ando.owner not in ('SYS','SYSTEM')&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;group by owner,&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;object_name &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;order by count(1) desc&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;/&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;div align="left" face="arial"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Create a user same as other user in oracle:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;set echo off&lt;br /&gt;set pages 0 feed off veri off lines 500&lt;br /&gt;set timing off&lt;br /&gt;accept oldname prompt "enter user to model new user to: "&lt;br /&gt;accept newname prompt "enter new user name: "&lt;br /&gt;&lt;br /&gt;-- create user...&lt;br /&gt;select 'create user "&amp;amp;&amp;amp;newname" identified 'decode(password,'external',' externally',' by welcome2fxfn')&lt;br /&gt;' default tablespace 'default_tablespace&lt;br /&gt;' temporary tablespace 'temporary_tablespace' profile '&lt;br /&gt;profile';'&lt;br /&gt;from   sys.dba_users&lt;br /&gt;where  username = upper('&amp;amp;&amp;amp;oldname');&lt;br /&gt;&lt;br /&gt;-- grant roles...&lt;br /&gt;select 'grant 'granted_role' to "&amp;amp;&amp;amp;newname"'&lt;br /&gt;decode(admin_option, 'yes', ' with admin option')';'&lt;br /&gt;from   sys.dba_role_privs&lt;br /&gt;where  grantee = upper('&amp;amp;&amp;amp;oldname');&lt;br /&gt;&lt;br /&gt;-- grant system privs...&lt;br /&gt;select 'grant 'privilege' to "&amp;amp;&amp;amp;newname"'&lt;br /&gt;decode(admin_option, 'yes', ' with admin option')';'&lt;br /&gt;from   sys.dba_sys_privs&lt;br /&gt;where  grantee = upper('&amp;amp;&amp;amp;oldname');&lt;br /&gt;&lt;br /&gt;-- grant table privs...&lt;br /&gt;select 'grant 'privilege' on 'owner'.'table_name' to "&amp;amp;&amp;amp;newname;"'&lt;br /&gt;from   sys.dba_tab_privs&lt;br /&gt;where  grantee = upper('&amp;amp;&amp;amp;oldname');&lt;br /&gt;&lt;br /&gt;-- grant column privs...&lt;br /&gt;select 'grant 'privilege' on 'owner'.'table_name&lt;br /&gt;'('column_name') to "&amp;amp;&amp;amp;newname";'&lt;br /&gt;from   sys.dba_col_privs&lt;br /&gt;where  grantee = upper('&amp;amp;&amp;amp;oldname');&lt;br /&gt;&lt;br /&gt;-- tablespace quotas...&lt;br /&gt;select 'alter user "&amp;amp;&amp;amp;newname" quota '&lt;br /&gt;decode(max_bytes, -1, 'unlimited', max_bytes)&lt;br /&gt;' on 'tablespace_name';'&lt;br /&gt;from   sys.dba_ts_quotas&lt;br /&gt;where  username = upper('&amp;amp;&amp;amp;oldname');&lt;br /&gt;&lt;br /&gt;-- set default role...&lt;br /&gt;set serveroutput on&lt;br /&gt;declare&lt;br /&gt;defroles varchar2(4000);&lt;br /&gt;atleast number;&lt;br /&gt;begin&lt;br /&gt;atleast := 0;&lt;br /&gt;for c1 in (select * from sys.dba_role_privs&lt;br /&gt;where grantee = upper('&amp;amp;&amp;amp;oldname')&lt;br /&gt;and default_role = 'yes'&lt;br /&gt;) loop&lt;br /&gt;atleast := 1;&lt;br /&gt;if length(defroles) &amp;gt; 0 then&lt;br /&gt;defroles := defroles','c1.granted_role;&lt;br /&gt;else&lt;br /&gt;defroles := defrolesc1.granted_role;&lt;br /&gt;end if;&lt;br /&gt;end loop;&lt;br /&gt;if(atleast = 1) then&lt;br /&gt;dbms_output.put_line('alter user "&amp;amp;&amp;amp;newname"  default role 'defroles';');&lt;br /&gt;end if;&lt;br /&gt;end;&lt;br /&gt;/&lt;br /&gt;select 'alter user "&amp;amp;&amp;amp;newname" password expire;'&lt;br /&gt;from dba_users where username = upper('&amp;amp;&amp;amp;oldname')&lt;br /&gt;and password not in ('external');&lt;br /&gt;select ' ' from dba_users where rownum&amp;lt;5;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6160333468452022034-2162614419122374906?l=rmatte.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rmatte.blogspot.com/feeds/2162614419122374906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6160333468452022034&amp;postID=2162614419122374906' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/2162614419122374906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6160333468452022034/posts/default/2162614419122374906'/><link rel='alternate' type='text/html' href='http://rmatte.blogspot.com/2008/08/basic-oracle-scripts.html' title='Basic oracle scripts - 1'/><author><name>Matte</name><uri>http://www.blogger.com/profile/02811215575036946855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_pH5e4wNEP3s/TRu4grWfIOI/AAAAAAAAIKQ/PU-Op_qj7yU/S220/MyIphonePictures%2B193.jpg'/></author><thr:total>0</thr:total></entry></feed>
