<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6930610543009221558</id><updated>2024-08-31T20:55:36.256+07:00</updated><category term="oracle"/><category term="Grid Control"/><category term="Oracle 10g"/><category term="change DBNAME"/><category term="11g Grid Control"/><category term="Grid Control Installation"/><category term="linux"/><category term="mount"/><category term="Agent 11g"/><category term="Auditing and reporting Oracle user activity"/><category term="Can not connect to Oracle 11g"/><category term="Change Java Heap Size In R12"/><category term="Chuyển đổi file Excel xls sang file csv vẫn giữ font tiếng Việt"/><category term="Command Input"/><category term="Configuration files for Oracle Business Intelligence system component"/><category term="Convert xls to csv unicode"/><category term="Create and configure Listener for Oracle 10g"/><category term="Cài đặt Oracle 10g trên RedHat Enterprise Linux 5"/><category term="DBNEWID Utility"/><category term="DB_NAME"/><category term="Database Control"/><category term="Duplication Fails with RMAN-06023 Errors"/><category term="Enterprise Manager"/><category term="Failovers"/><category term="Grid Control 11g"/><category term="How Change ORACLE_SID and DB_NAME"/><category term="How to Get the Locked Tables List In Oracle"/><category term="How to prevent users using TOAD connecting to Oracle server from their client"/><category term="Identifying Open Ports"/><category term="Install Grid Control"/><category term="Install Oracle 10g"/><category term="Installing Oracle Management Agent 11g with response file"/><category term="Installing Oracle Management Agent Using Response File"/><category term="Java Heap Space Error"/><category term="Java.Lang.OutOfMemoryError"/><category term="Linux Hard Disk Format Command"/><category term="Linux date formatting"/><category term="Listener"/><category term="Listener.log"/><category term="Local Yum"/><category term="Local Yum Repository"/><category term="Local Yum Repository Using an ISO Image"/><category term="MEMORY_TARGET"/><category term="MEMORY_TARGET not supported on this system;Oracle 11g"/><category term="Memory Requirements for Oracle 11g"/><category term="MySQL command"/><category term="MySQL configuration"/><category term="MySQL linux command"/><category term="MySQL my.cnf configuration for a large Drupal site"/><category term="MySQL shell command"/><category term="NID-00111: Oracle error reported from target database"/><category term="Network File System"/><category term="OBIEE Configuration files"/><category term="OEM 11g"/><category term="ORA-00604: error occurred at recursive SQL level 1"/><category term="ORA-01110"/><category term="ORA-10560"/><category term="ORA-10567"/><category term="ORA-10567: Redo is inconsistent with data block"/><category term="ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE"/><category term="ORACLE_SID"/><category term="Oracle 10g Data Dictionary"/><category term="Oracle 10g Release 2 Grid Control Installation On Red Hat Enterprise Linux and CentOS"/><category term="Oracle 10g on RedHat 5"/><category term="Oracle BI"/><category term="Oracle Basic commands should be remembered"/><category term="Oracle Database 10g Installation on redhat enterprise linux 5"/><category term="Oracle Enterprise Manager Grid Control Installation"/><category term="Oracle Management Agent"/><category term="Oracle Management Agent 11g"/><category term="Oracle physical standby database"/><category term="Output"/><category term="Platform-Specific Kernel Requirements"/><category term="Platform-Specific Package Requirements"/><category term="RHEL 5"/><category term="RMAN-06023: no backup or copy of datafile N found to restore"/><category term="RealVnc"/><category term="Recovery database"/><category term="Redirection Operators"/><category term="Reinstall OEM 11g"/><category term="Reinstalling OEM 11g"/><category term="Restore and Recovery of the Database on a New Host"/><category term="Restore database"/><category term="SHUTDOWN ABORT"/><category term="SHUTDOWN IMMEDIATE"/><category term="SHUTDOWN NORMAL"/><category term="SHUTDOWN TRANSACTIONAL"/><category term="SHUTTING DOWN THE DATABASE"/><category term="SQLPLUS"/><category term="Secure the Database Control"/><category term="Services on Linux"/><category term="Shell script schedule backup MySQL Database"/><category term="Start and Stop Oracle Grid Control 11g"/><category term="Starting Weblogic Server Managed Server without password"/><category term="Starting and Stopping Oracle Enterprise Manager 11g Grid Control"/><category term="Summary DBA&#39;s linux commands"/><category term="Summary MySQL commands"/><category term="Summary shell script for DBA"/><category term="Switchover"/><category term="TOAD"/><category term="Undo space"/><category term="Unsupported cypher suite: TLS_RSA_EXPORT_WITH_RC4_40_MD5"/><category term="Who is using your UNDO space"/><category term="Writing udev rules"/><category term="archivelog mode"/><category term="change DBID"/><category term="change ORACLE_SID"/><category term="config oms"/><category term="configure vncserver"/><category term="connect to MS SQL from Oracle database"/><category term="connection from Oracle database to Microsoft SQL server"/><category term="create and configure Listener"/><category term="create physical standby database"/><category term="data dictionary"/><category term="date formatting"/><category term="delete listener log"/><category term="delete listener.log"/><category term="desktop remote"/><category term="edit fstab"/><category term="emctl"/><category term="emoms.properties"/><category term="error while loading shared libraries: libdb.so.2"/><category term="export to csv file"/><category term="fdisk"/><category term="font Tiếng Việt trong csv file"/><category term="howto reset root password"/><category term="installation Oracle 10g on RHEL5"/><category term="libXtst.so.6"/><category term="libXtst.so.6 cannot open shared object"/><category term="linux commands"/><category term="linux desktop remote"/><category term="linux service"/><category term="listener log file"/><category term="locked tables"/><category term="memory requirement"/><category term="mkdir"/><category term="mount windowns folder"/><category term="my.cnf"/><category term="nfs"/><category term="nid command"/><category term="noarchivelog mode"/><category term="open port"/><category term="oracle 11g"/><category term="oracle basic commands"/><category term="oracle listener"/><category term="oracle listener log"/><category term="oracle table to csv file"/><category term="prevent users connect to oracle server"/><category term="realvnc server"/><category term="recreate database control"/><category term="reinstall 11g Grid Control"/><category term="reinstall database control"/><category term="repair filesystem"/><category term="repository database"/><category term="reset root password"/><category term="root password"/><category term="running queries"/><category term="schedule backup"/><category term="script backup MySQL"/><category term="setting up NFS"/><category term="shell command"/><category term="shell script"/><category term="shell script for dba"/><category term="shut down database"/><category term="standby"/><category term="standby database"/><category term="startNodeManager.sh"/><category term="starting weblogic"/><category term="system trigger"/><category term="udev"/><category term="udev rule"/><category term="udev rules"/><category term="using undo space"/><category term="vncserver"/><category term="without password"/><title type='text'>Oracle Database</title><subtitle type='html'>&lt;b&gt;on Linux OS&lt;/b&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>60</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-3004984042761822117</id><published>2021-03-03T16:31:00.001+07:00</published><updated>2021-03-03T16:31:11.371+07:00</updated><title type='text'>Database Administration Tips: Upgrade from 11.2.0.3 to 19c Using GoldenGate [Coo...</title><content type='html'>&lt;a href=&quot;https://dba-tips.blogspot.com/2019/10/upgrade-from-11g-11203-to-19c-194-using.html?spref=bl&quot;&gt;Database Administration Tips: Upgrade from 11.2.0.3 to 19c Using GoldenGate [Coo...&lt;/a&gt;:  Introduction:   In this post, I&amp;#39;ll discuss the migration of 11.2.0.3 RAC DB on Oracle Linux 6 to 19.4 RAC on a different cluster on Ora...</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/3004984042761822117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2021/03/database-administration-tips-upgrade.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/3004984042761822117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/3004984042761822117'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2021/03/database-administration-tips-upgrade.html' title='Database Administration Tips: Upgrade from 11.2.0.3 to 19c Using GoldenGate [Coo...'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-5810439575363055122</id><published>2016-02-02T11:35:00.002+07:00</published><updated>2016-02-02T16:22:13.672+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ORA-01110"/><category scheme="http://www.blogger.com/atom/ns#" term="ORA-10560"/><category scheme="http://www.blogger.com/atom/ns#" term="ORA-10567"/><category scheme="http://www.blogger.com/atom/ns#" term="ORA-10567: Redo is inconsistent with data block"/><title type='text'>&quot;ORA-10567: Redo is inconsistent with data block&quot; on Physical Standby 11g</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Today is a wonderful day. It&#39;s cool and sunny. We are in Spring. But I don&#39;t want to talk about the weather at this moment. I am sipping a cup of coffee and typing a note on my Oracle Database experience yesterday.&lt;br /&gt;
I have a Dataguard 11g using physical standby. After a long active time and some end of year batch jobs the size of UNDO tablespace so large. The result from checking show that the usage space is very little. So I decide resize the datafile of UNDO tablespace. The commands are success. And the file has a smaller size.&lt;br /&gt;
But on the Standby Database, the archivelogs are still recieved from&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: arial, sans-serif; font-size: 14.6667px;&quot;&gt;Primary&lt;/span&gt;&lt;span style=&quot;font-family: arial, sans-serif; font-size: 14.6667px;&quot;&gt;&amp;nbsp;Database&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: arial, sans-serif; font-size: 11pt;&quot;&gt;and cannot be applied. The alert log show the error:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida grande&amp;quot; , sans-serif; font-size: 11px;&quot;&gt;Recovered data files to a consistent state at change 1443961551&lt;br /&gt;
Errors in file /oracle/app/diag/rdbms/proddr/PRODDR/trace/PRODDR_pr00_2930.trc:&lt;br /&gt;
ORA-00448: normal completion of background process&lt;br /&gt;
Errors in file /oracle/app/diag/rdbms/proddr/PRODDR/trace/PRODDR_mrp0_2918.trc:&lt;br /&gt;
ORA-00600: internal error code, arguments: [3020], [6], [11627], [25177451], [], [], [], [], [], [], [], []&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;
ORA-10567: Redo is inconsistent with data block&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida grande&amp;quot; , sans-serif; font-size: 11px;&quot;&gt; (file# 6, block# 11627, file offset is 95248384 bytes)&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;
ORA-10564: tablespace UNDOTBS1&lt;br /&gt;
ORA-01110: data file 6:&lt;/span&gt;&lt;/b&gt; &#39;/oradata/PRODDR/undotbs02.dbf&#39;&lt;br /&gt;
ORA-10560: block type &#39;KTU UNDO BLOCK&#39;&lt;br /&gt;
MRP0: Background Media Recovery process shutdown (PRODDR)&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;I have faced the lost of sync on Standby Database before. I have resolved by guide on &lt;a href=&quot;http://arup.blogspot.com/2009/12/resolving-gaps-in-data-guard-apply.html&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;http://arup.blogspot.com/2009/12/resolving-gaps-in-data-guard-apply.html&lt;/span&gt;&lt;/a&gt;. But yesterday&#39;s error is different. The following are steps that I performed to fix the error.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;Check the SCN on Primary:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida grande&amp;quot; , sans-serif; font-size: 11px;&quot;&gt;SQL&amp;gt; select current_scn, scn_to_timestamp(current_scn) from v$database;&lt;br /&gt;
CURRENT_SCN&amp;nbsp;&amp;nbsp; SCN_TO_TIMESTAMP(CURRENT_SCN)&lt;br /&gt;
----------- &amp;nbsp; ---------------------------------------------------------------------------&lt;br /&gt;
&amp;nbsp;1447116920&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02-FEB-16 10.43.58.000000000 AM&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Check the SCN on Standby:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida grande&amp;quot; , sans-serif; font-size: 11px;&quot;&gt;SQL&amp;gt; select current_scn from v$database;&lt;br /&gt;
CURRENT_SCN&lt;br /&gt;
-----------&lt;br /&gt;
&amp;nbsp;1446590956&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida grande&amp;quot; , sans-serif; font-size: 11px;&quot;&gt;&lt;br /&gt;

SQL&amp;gt; select scn_to_timestamp(1446590956) from dual;&lt;br /&gt;
SCN_TO_TIMESTAMP(1446590956)&lt;br /&gt;
---------------------------------------------------------------------------&lt;br /&gt;
02-FEB-16 09.26.47.000000000 AM&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;Check archivelog on Standby: logs are transfered but cannot be applied&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida grande&amp;quot; , sans-serif; font-size: 11px;&quot;&gt;SQL&amp;gt; select dest_id, sequence#, applied, deleted, to_char(first_time,&#39;dd/mm/yyyy hh24:mi:ss&#39;) first_time&lt;br /&gt;
&amp;nbsp; 2&amp;nbsp; from (&lt;br /&gt;
&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp; select dest_id, first_time, sequence#, applied, deleted from v$archived_log order by first_time desc, dest_id&lt;br /&gt;
&amp;nbsp; 4&amp;nbsp; )&lt;br /&gt;
&amp;nbsp; 5&amp;nbsp; where rownum&amp;lt;=5&lt;br /&gt;
&amp;nbsp; 6&amp;nbsp; ;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; DEST_ID&amp;nbsp; SEQUENCE# S APPLIED&amp;nbsp;&amp;nbsp; DEL FIRST_TIME&lt;br /&gt;
---------- ---------- - --------- --- -------------------&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19220 A NO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO&amp;nbsp; 02/02/2016 10:30:18&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19219 A NO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO&amp;nbsp; 02/02/2016 10:13:53&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19218 A NO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO&amp;nbsp; 02/02/2016 09:56:23&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19217 A NO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO&amp;nbsp; 02/02/2016 09:39:35&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19216 A NO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO&amp;nbsp; 02/02/2016 09:30:16&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;Check process on Standby: MRP-apply process not running&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida grande&amp;quot; , sans-serif; font-size: 11px;&quot;&gt;SQL&amp;gt; select process, status from v$managed_standby;&lt;br /&gt;
PROCESS&amp;nbsp;&amp;nbsp; STATUS&lt;br /&gt;
--------- ------------&lt;br /&gt;
ARCH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSING&lt;br /&gt;
ARCH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSING&lt;br /&gt;
ARCH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONNECTED&lt;br /&gt;
ARCH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSING&lt;br /&gt;
RFS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDLE&lt;br /&gt;
RFS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDLE&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;On Primary: backup datafile 6 as shown in the alertlog &amp;amp; copy to Standby host:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida grande&amp;quot; , sans-serif; font-size: 11px;&quot;&gt;rman&amp;gt; backup format &#39;/BACKUP/undofile2%U&#39; datafile 6&lt;br /&gt;
# scp /BACKUP/undofile2d8qsrpml_1_1 oracle@standby-host:/BACKUP/&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;On Standby: catalog the new backuppiece; shutdown, mount DB and restore datafile 6:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida grande&amp;quot; , sans-serif; font-size: 11px;&quot;&gt;rman&amp;gt; catalog start with &#39;/BACKUP/undofile2d8qsrpml_1_1&#39;&lt;br /&gt;
alter database recover managed standby database cancel&lt;br /&gt;
shutdown immediate;&lt;br /&gt;
startup mount;&lt;br /&gt;
RMAN&amp;gt; restore datafile 6;

Starting restore at 01-FEB-16&lt;br /&gt;
using target database control file instead of recovery catalog&lt;br /&gt;
allocated channel: ORA_DISK_1&lt;br /&gt;
channel ORA_DISK_1: SID=577 device type=DISK&lt;br /&gt;
allocated channel: ORA_DISK_2&lt;br /&gt;
channel ORA_DISK_2: SID=768 device type=DISK&lt;br /&gt;
allocated channel: ORA_DISK_3&lt;br /&gt;
channel ORA_DISK_3: SID=959 device type=DISK&lt;br /&gt;

channel ORA_DISK_1: starting datafile backup set restore&lt;br /&gt;
channel ORA_DISK_1: specifying datafile(s) to restore from backup set&lt;br /&gt;
channel ORA_DISK_1: restoring datafile 00006 to /oradata/PRODDR/undotbs02.dbf&lt;br /&gt;
channel ORA_DISK_1: reading from backup piece /BACKUP/undofile2d8qsrpml_1_1&lt;br /&gt;
channel ORA_DISK_1: piece handle=/BACKUP/undofile2d8qsrpml_1_1 tag=TAG20160201T181341&lt;br /&gt;
channel ORA_DISK_1: restored backup piece 1&lt;br /&gt;
channel ORA_DISK_1: restore complete, elapsed time: 00:00:36&lt;br /&gt;
Finished restore at 01-FEB-16&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;Starting apply process:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;lucida grande&amp;quot; , sans-serif; font-size: 11px;&quot;&gt;SQL&amp;gt; alter database recover managed standby database using current logfile disconnect from session&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Now you can re-check the archivelog &amp;amp; MRP process on Standby as mentioned above.&lt;br /&gt;
Then taking a cup of coffe as the reward after a work hard.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Untimately, I want to say thank you to &lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;http://bbalijepalli.blogspot.com/2011/02/work-around-ora-600-internal-error.html&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Bhavani&lt;/span&gt;&lt;/a&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;and &lt;a href=&quot;http://arup.blogspot.com/2009/12/resolving-gaps-in-data-guard-apply.html&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Arup Nanda&lt;/span&gt;&lt;/a&gt;. Yours&#39; post help me to solve problems.&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/5810439575363055122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2016/02/ora-10567-redo-is-inconsistent-with.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/5810439575363055122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/5810439575363055122'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2016/02/ora-10567-redo-is-inconsistent-with.html' title='&lt;h1 style=&quot;font-size:22px;&quot;&gt;&quot;ORA-10567: Redo is inconsistent with data block&quot; on Physical Standby 11g&lt;/h1&gt;'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-4628530879117189396</id><published>2016-01-06T16:43:00.001+07:00</published><updated>2016-01-06T17:10:03.082+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Configuration files for Oracle Business Intelligence system component"/><category scheme="http://www.blogger.com/atom/ns#" term="OBIEE Configuration files"/><title type='text'>Configuration files for Oracle Business Intelligence system component</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-layout-alt: fixed; mso-yfti-tbllook: 1184; width: 770px;&quot; title=&quot;Oracle Business Intelligence System Component Configuration File Locations &quot; border=&quot;0&quot; summary=&quot;Lists and displays the locations of configuration files.&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr style=&quot;height: 15.0pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;
&lt;td style=&quot;background: #2F75B5; border: solid windowtext 1.0pt; height: 15.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; &quot; width=&quot;100&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; text-align: center;&quot; align=&quot;center&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;BI Component&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;background: #2F75B5; border-left: none; border: solid windowtext 1.0pt; height: 15.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; &quot; width=&quot;138&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; text-align: center;&quot; align=&quot;center&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;Configuration File&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;background: #2F75B5; border-left: none; border: solid windowtext 1.0pt; height: 15.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; &quot; width=&quot;528&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in; text-align: center;&quot; align=&quot;center&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;File Location&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 111.0pt; mso-yfti-irow: 1;&quot;&gt;
&lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 111.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 80pt;&quot;  width=&quot;186&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Oracle BI Server&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 111.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; &quot; width=&quot;138&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;NQSConfig.INI&lt;br /&gt; &lt;br /&gt; logconfig.xml&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 111.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; &quot; width=&quot;528&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;ORACLE_INSTANCE\config\OracleBIServerComponent\coreapplication_obisn&lt;br /&gt; For example:&lt;br /&gt; \instances\instance1\config\OracleBIServerComponent\coreapplication_obis1&lt;br /&gt; &lt;br /&gt; Note: Although DBFeatures.ini is also located in this directory, do not edit this file directly. See Oracle Fusion Middleware Metadata Repository Builder&#39;s Guide for Oracle Business Intelligence Enterprise Edition for information about how to edit features for a database.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 105.0pt; mso-yfti-irow: 2;&quot;&gt;
&lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 105.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;&quot;  width=&quot;186&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Oracle BI Presentation Services&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 105.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; &quot; width=&quot;138&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;instanceconfig.xml&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 105.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;&quot; width=&quot;528&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;ORACLE_INSTANCE\config\OracleBIPresentationServicesComponent\coreapplication_obipsn&lt;br /&gt; For example:&lt;br /&gt; \instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1&lt;br /&gt; &lt;br /&gt; Note: Do not add elements to the instanceconfig.xml file unless you are overriding the stated default values. Override only those settings that are necessary for configuring the system to meet the needs of your organization.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 45.0pt; mso-yfti-irow: 3;&quot;&gt;
&lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 45.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;&quot;  width=&quot;186&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Cluster Controller&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 45.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; &quot; width=&quot;138&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;ClusterConfig.xml&lt;br /&gt; &lt;br /&gt; ccslogging.xml&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 45.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; &quot; width=&quot;528&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;ORACLE_INSTANCE\config\OracleBIApplication\coreapplication&lt;br /&gt; For example:&lt;br /&gt; \instances\instance1\config\OracleBIApplication\coreapplication&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 46.5pt; mso-yfti-irow: 4;&quot;&gt;
&lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 46.5pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;&quot; width=&quot;186&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Oracle BI Scheduler&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 46.5pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;&quot; width=&quot;138&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;instanceconfig.xml&lt;br /&gt; ccslogging.xml&lt;br /&gt; (for Cluster Controller)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 46.5pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; &quot; width=&quot;528&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;ORACLE_INSTANCE\config\OracleBISchedulerComponent\coreapplication_obischn&lt;br /&gt; For example:&lt;br /&gt; \instances\instance1\config\OracleBISchedulerComponent\coreapplication_obisch1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 45.0pt; mso-yfti-irow: 5;&quot;&gt;
&lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 45.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;&quot; width=&quot;186&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;JavaHost&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 45.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; &quot; width=&quot;138&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;config.xml&lt;br /&gt; logging_config.xml&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 45.0pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;&quot; width=&quot;528&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;ORACLE_INSTANCE\config\OracleBIJavaHostComponent\coreapplication_obijhn&lt;br /&gt; For example:&lt;br /&gt; \instances\instance1\config\OracleBIJavaHostComponent\coreapplication_obijh1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 61.5pt; mso-yfti-irow: 6; mso-yfti-lastrow: yes;&quot;&gt;
&lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 61.5pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;&quot; width=&quot;80&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Oracle BI Presentation Services Plug-in&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 61.5pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;&quot; width=&quot;138&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;bridgeconfig.properties&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 61.5pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt;&quot; width=&quot;528&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;MW_HOME\user_projects\domains\domain_name\config\fmwconfig\biinstances\coreapplication&lt;br /&gt; For example:&lt;br /&gt; mw_home\user_projects\domains\bifoundation_domain\config\fmwconfig\biinstances\coreapplication&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/4628530879117189396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2016/01/configuration-files-for-oracle-business.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/4628530879117189396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/4628530879117189396'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2016/01/configuration-files-for-oracle-business.html' title='Configuration files for Oracle Business Intelligence system component'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-792689822349333911</id><published>2015-05-08T14:26:00.001+07:00</published><updated>2017-07-20T14:20:54.210+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="export to csv file"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle table to csv file"/><title type='text'>Exporting data from Table to CSV file</title><content type='html'>At a beautyful day, your manager said that: &quot;give me the log of database&quot;. Of course, you can not tell your manager that the log is real large to select and read. I&#39;m sure that you must perform the task cheerfully. And you&#39;ll think of exporting log data from tables to csv files. If that&#39;s what you&#39;re thinking about. Then the following is what you must do to finish your task.&lt;br /&gt;
I&#39;m not the author. I only cache them here and retest.&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 539.5pt;&quot; valign=&quot;top&quot; width=&quot;719&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;CREATE&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;REPLACE&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;PACKAGE&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: olive; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;csv&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--
  --------------------------------------------------------------------------&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :
  http://oracle-base.com/dba/miscellaneous/cvs.sql&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Tim Hall&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Description&amp;nbsp; : Basic CSV API. For usage notes see:&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  http://oracle-base.com/articles/9i/GeneratingCSVFiles.php&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATE OR REPLACE DIRECTORY
  dba_dir AS &#39;/u01/app/oracle/dba/&#39;;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALTER SESSION SET
  NLS_DATE_FORMAT=&#39;DD-MON-YYYY HH24:MI:SS&#39;;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EXEC csv.generate(&#39;DBA_DIR&#39;,
  &#39;generate.csv&#39;, p_query =&amp;gt; &#39;SELECT * FROM emp&#39;);&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Requirements : UTL_FILE,
  DBMS_SQL&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Ammedments&amp;nbsp;&amp;nbsp; :&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp; When&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Who&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp; ===========&amp;nbsp; ========&amp;nbsp;
  =================================================&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp; 14-MAY-2005&amp;nbsp; Tim Hall&amp;nbsp;
  Initial Creation&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--
  --------------------------------------------------------------------------&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;PROCEDURE&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; generate &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;p_dir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_file&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_query&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: olive; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;csv&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;SHOW&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;ERRORS&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;CREATE&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;REPLACE&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;PACKAGE&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;BODY&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: olive; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;csv&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--
  --------------------------------------------------------------------------&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :
  http://oracle-base.com/dba/miscellaneous/cvs.sql&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Tim Hall&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Description&amp;nbsp; : Basic CSV API. For usage notes see:&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  http://oracle-base.com/articles/9i/GeneratingCSVFiles.php&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATE OR REPLACE DIRECTORY
  dba_dir AS &#39;/u01/app/oracle/dba/&#39;;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALTER SESSION SET
  NLS_DATE_FORMAT=&#39;DD-MON-YYYY HH24:MI:SS&#39;;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXEC
  csv.generate(&#39;DBA_DIR&#39;, &#39;generate.csv&#39;, p_query =&amp;gt; &#39;SELECT * FROM emp&#39;);&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Requirements : UTL_FILE,
  DBMS_SQL&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Ammedments&amp;nbsp;&amp;nbsp; :&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp; When&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &amp;nbsp;Who&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp; ===========&amp;nbsp; ========&amp;nbsp;
  =================================================&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--&amp;nbsp;&amp;nbsp; 14-MAY-2005&amp;nbsp; Tim Hall&amp;nbsp;
  Initial Creation&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;--
  --------------------------------------------------------------------------&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; g_sep&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;
  &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&#39;,&#39;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;PROCEDURE&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; generate &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;p_dir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_file&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_query&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_cursor&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;PLS_INTEGER;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_rows&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;PLS_INTEGER;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_col_cnt&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;PLS_INTEGER;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_desc_tab&amp;nbsp; &lt;b&gt;&lt;i&gt;DBMS_SQL.desc_tab&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_buffer&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;32767&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_file&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;file_type&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;BEGIN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_cursor &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;b&gt;&lt;i&gt;DBMS_SQL.open_cursor&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;DBMS_SQL.parse&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; p_query&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;b&gt;&lt;i&gt;DBMS_SQL.native&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;DBMS_SQL.describe_columns&lt;/i&gt;&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; l_col_cnt&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; l_desc_tab&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;..&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; l_col_cnt &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;LOOP&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;DBMS_SQL.define_column&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; i&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; l_buffer&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;32767&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;LOOP;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_rows &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;b&gt;&lt;i&gt;DBMS_SQL.execute&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_file &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;p_dir&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; p_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&#39;w&#39;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;32767&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Output the column names.&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;..&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; l_col_cnt &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;LOOP&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;
  i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; g_sep&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IF;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; l_desc_tab&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;col_name&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;LOOP;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;new_line&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;-- Output the data.&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;LOOP&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;EXIT&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;WHEN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;b&gt;&lt;i&gt;DBMS_SQL.fetch_rows&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;..&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; l_col_cnt &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;LOOP&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;
  i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; g_sep&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IF;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;DBMS_SQL.COLUMN_VALUE&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; i&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; l_buffer&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; l_buffer&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;LOOP;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;new_line&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;LOOP;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;EXCEPTION&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;WHEN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;OTHERS&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;
  UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;is_open&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IF;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;
  &lt;b&gt;&lt;i&gt;DBMS_SQL.is_open&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;DBMS_SQL.close_cursor&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;IF;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;RAISE;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; generate&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: olive; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;csv&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;SHOW&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;ERRORS&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;courier&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;exec&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; sys&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: olive; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;csv&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;generate&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&#39;DUMP_DIR&#39;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&#39;testcsv.dat&#39;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; font-family: &amp;quot;courier&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;&#39;select username,
  account_status from dba_users&#39;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: &amp;quot;courier&amp;quot;;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;courier&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
The result you&#39;ll get is the file as bellow:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr-RpWes-9Z7w1P4rzXYnqiL8-eoiyRFNW3jNBM2XQMlsCVMxPKjBkfeVDa6pcnmyBAoFaGugf4mrvlMVc1vg3Hb2e7U-kd4krSIdgLmEMMXFW2bWKcUTHUCwb2r-neJo0DYQ8SXn5PNQ/s1600/csv1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr-RpWes-9Z7w1P4rzXYnqiL8-eoiyRFNW3jNBM2XQMlsCVMxPKjBkfeVDa6pcnmyBAoFaGugf4mrvlMVc1vg3Hb2e7U-kd4krSIdgLmEMMXFW2bWKcUTHUCwb2r-neJo0DYQ8SXn5PNQ/s320/csv1.PNG&quot; width=&quot;302&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
If you want to split the output to many file:&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:OfficeDocumentSettings&gt;
  &lt;o:AllowPNG/&gt;
 &lt;/o:OfficeDocumentSettings&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:EnableOpenTypeKerning/&gt;
   &lt;w:DontFlipMirrorIndents/&gt;
   &lt;w:OverrideTableStyleHps/&gt;
  &lt;/w:Compatibility&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;&amp;#45;-&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;false&quot;
  DefSemiHidden=&quot;false&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;371&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Normal Indent&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;footnote text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;annotation text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;header&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;footer&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;index heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;table of figures&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;envelope address&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;envelope return&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;footnote reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;annotation reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;line number&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;page number&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;endnote reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;endnote text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;table of authorities&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;macro&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;toa heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Bullet 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Number 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Closing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Signature&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text Indent&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;List Continue 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Message Header&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Salutation&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Date&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text First Indent&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text First Indent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Note Heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text Indent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Body Text Indent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Block Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Hyperlink&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;FollowedHyperlink&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Document Map&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Plain Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;E-mail Signature&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Top of Form&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Bottom of Form&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Normal (Web)&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Acronym&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Address&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Cite&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Code&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Definition&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Keyboard&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Preformatted&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Sample&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Typewriter&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;HTML Variable&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Normal Table&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;annotation subject&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;No List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Outline List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Outline List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Outline List 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Simple 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Simple 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Simple 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Classic 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Colorful 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Colorful 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Colorful 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Columns 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Grid 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table List 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table 3D effects 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table 3D effects 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table 3D effects 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Contemporary&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Elegant&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Professional&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Subtle 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Subtle 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Web 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Web 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Web 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Balloon Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; UnhideWhenUsed=&quot;true&quot;
   Name=&quot;Table Theme&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; SemiHidden=&quot;true&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; QFormat=&quot;true&quot;
   Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; QFormat=&quot;true&quot;
   Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; QFormat=&quot;true&quot;
   Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; QFormat=&quot;true&quot;
   Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; QFormat=&quot;true&quot;
   Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; QFormat=&quot;true&quot;
   Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; SemiHidden=&quot;true&quot;
   UnhideWhenUsed=&quot;true&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;41&quot; Name=&quot;Plain Table 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;42&quot; Name=&quot;Plain Table 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;43&quot; Name=&quot;Plain Table 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;44&quot; Name=&quot;Plain Table 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;45&quot; Name=&quot;Plain Table 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;40&quot; Name=&quot;Grid Table Light&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot; Name=&quot;Grid Table 1 Light&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot; Name=&quot;Grid Table 6 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot; Name=&quot;Grid Table 7 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;Grid Table 1 Light Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;Grid Table 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;Grid Table 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;Grid Table 4 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;Grid Table 5 Dark Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;Grid Table 6 Colorful Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;Grid Table 7 Colorful Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot; Name=&quot;List Table 1 Light&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot; Name=&quot;List Table 6 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot; Name=&quot;List Table 7 Colorful&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;46&quot;
   Name=&quot;List Table 1 Light Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;47&quot; Name=&quot;List Table 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;48&quot; Name=&quot;List Table 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;49&quot; Name=&quot;List Table 4 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;50&quot; Name=&quot;List Table 5 Dark Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;51&quot;
   Name=&quot;List Table 6 Colorful Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;52&quot;
   Name=&quot;List Table 7 Colorful Accent 6&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin-top:0in;
 mso-para-margin-right:0in;
 mso-para-margin-bottom:8.0pt;
 mso-para-margin-left:0in;
 line-height:107%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-bidi-font-family:&quot;Times New Roman&quot;;
 mso-bidi-theme-font:minor-bidi;}
table.MsoTableGrid
 {mso-style-name:&quot;Table Grid&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-priority:39;
 mso-style-unhide:no;
 border:solid windowtext 1.0pt;
 mso-border-alt:solid windowtext .5pt;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-border-insideh:.5pt solid windowtext;
 mso-border-insidev:.5pt solid windowtext;
 mso-para-margin:0in;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-bidi-font-family:&quot;Times New Roman&quot;;
 mso-bidi-theme-font:minor-bidi;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 467.5pt;&quot; valign=&quot;top&quot; width=&quot;623&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;CREATE&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;REPLACE&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;PACKAGE&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; csv &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--
  --------------------------------------------------------------------------&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Name&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;:
  http://oracle-base.com/dba/miscellaneous/cvs.sql&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Author&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;:
  Tim Hall&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Description&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;:
  Basic CSV API. For usage notes see:&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;http://oracle-base.com/articles/9i/GeneratingCSVFiles.php&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;CREATE OR REPLACE DIRECTORY dba_dir AS &#39;/u01/app/oracle/dba/&#39;;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;ALTER SESSION SET
  NLS_DATE_FORMAT=&#39;DD-MON-YYYY HH24:MI:SS&#39;;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;EXEC csv.generate(&#39;DBA_DIR&#39;, &#39;generate.csv&#39;, p_query =&amp;gt; &#39;SELECT *
  FROM emp&#39;);&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Requirements : UTL_FILE, DBMS_SQL&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Ammedments&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;:&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;When&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Who&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;What&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;===========&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;========&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
  &lt;/span&gt;=================================================&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;14-MAY-2005&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Tim Hall&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Initial Creation&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--
  --------------------------------------------------------------------------&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;PROCEDURE&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; generate &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;p_dir&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;p_file&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;p_query&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;p_row_per_file &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;NUMBER&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; csv&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;CREATE&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;REPLACE&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;PACKAGE&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;BODY&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; csv &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--
  --------------------------------------------------------------------------&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Name&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;:
  http://oracle-base.com/dba/miscellaneous/cvs.sql&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Author&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;:
  Tim Hall&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Description&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;:
  Basic CSV API. For usage notes see:&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;http://oracle-base.com/articles/9i/GeneratingCSVFiles.php&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;CREATE OR REPLACE DIRECTORY dba_dir AS &#39;/u01/app/oracle/dba/&#39;;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;ALTER SESSION SET NLS_DATE_FORMAT=&#39;DD-MON-YYYY HH24:MI:SS&#39;;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;EXEC csv.generate(&#39;DBA_DIR&#39;, &#39;generate.csv&#39;, p_query =&amp;gt; &#39;SELECT *
  FROM emp&#39;);&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Requirements : UTL_FILE, DBMS_SQL&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Ammedments&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;:&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;When&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Who&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;What&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;===========&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;========&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
  &lt;/span&gt;=================================================&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;14-MAY-2005&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Tim Hall&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Initial Creation&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;--
  --------------------------------------------------------------------------&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;g_sep&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&#39;,&#39;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;PROCEDURE&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; generate &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;p_dir&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;p_file&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;p_query&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;p_row_per_file &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;NUMBER&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;l_cursor&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;PLS_INTEGER;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;l_rows&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;PLS_INTEGER;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;l_col_cnt&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;PLS_INTEGER;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;l_desc_tab&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;i&gt;DBMS_SQL.desc_tab&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;l_buffer&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;VARCHAR2&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;32767&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;l_file&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;file_type&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;i_row&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;PLS_INTEGER;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;i_page&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;PLS_INTEGER;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;BEGIN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;l_cursor &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;b&gt;&lt;i&gt;DBMS_SQL.open_cursor&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;i&gt;DBMS_SQL.parse&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; p_query&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;b&gt;&lt;i&gt;DBMS_SQL.native&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;i&gt;DBMS_SQL.describe_columns&lt;/i&gt;&lt;/b&gt;
  &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; l_col_cnt&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; l_desc_tab&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;..&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; l_col_cnt &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;LOOP&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;i&gt;DBMS_SQL.define_column&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; i&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; l_buffer&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;32767&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;LOOP;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;l_rows &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;b&gt;&lt;i&gt;DBMS_SQL.execute&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;i_page &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;l_file &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;p_dir&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;TO_CHAR(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;i_page&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;)||&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;p_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&#39;w&#39;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;32767&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Output the column names.&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;..&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; l_col_cnt &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;LOOP&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; g_sep&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; l_desc_tab&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;col_name&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;LOOP;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;new_line&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Output the data.&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;i_row &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;LOOP&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;EXIT&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;WHEN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;b&gt;&lt;i&gt;DBMS_SQL.fetch_rows&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;..&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; l_col_cnt &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;LOOP&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; g_sep&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;i&gt;DBMS_SQL.COLUMN_VALUE&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; i&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; l_buffer&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; l_buffer&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;LOOP;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;new_line&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;i_row &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; i_row&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- New file with column header&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;nvl(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;p_row_per_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;MOD(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;i_row&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; p_row_per_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;)=&lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;i_page
  &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;
  i_page &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;l_file
  &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;:=&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;
  UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;p_dir&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;TO_CHAR(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;i_page&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;)||&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;p_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&#39;w&#39;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;32767&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;-- Output the column names.&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;..&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; l_col_cnt &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;LOOP&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: maroon; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; g_sep&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; l_desc_tab&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;col_name&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;LOOP;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;new_line&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;LOOP;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;EXCEPTION&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;WHEN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: red; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;OTHERS&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;is_open&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;UTL_FILE&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_file&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;b&gt;&lt;i&gt;DBMS_SQL.is_open&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;THEN&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;i&gt;DBMS_SQL.close_cursor&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;l_cursor&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;IF;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;RAISE;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; generate&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt; csv&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: black; font-family: Consolas; font-size: 8.0pt; mso-highlight: white;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&amp;nbsp;

</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/792689822349333911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2015/05/exporting-data-from-table-to-csv-file.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/792689822349333911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/792689822349333911'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2015/05/exporting-data-from-table-to-csv-file.html' title='Exporting data from Table to CSV file'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr-RpWes-9Z7w1P4rzXYnqiL8-eoiyRFNW3jNBM2XQMlsCVMxPKjBkfeVDa6pcnmyBAoFaGugf4mrvlMVc1vg3Hb2e7U-kd4krSIdgLmEMMXFW2bWKcUTHUCwb2r-neJo0DYQ8SXn5PNQ/s72-c/csv1.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-6406098295715023593</id><published>2014-06-18T00:08:00.002+07:00</published><updated>2015-03-17T17:17:32.670+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle BI"/><category scheme="http://www.blogger.com/atom/ns#" term="starting weblogic"/><category scheme="http://www.blogger.com/atom/ns#" term="Starting Weblogic Server Managed Server without password"/><category scheme="http://www.blogger.com/atom/ns#" term="without password"/><title type='text'>Starting Weblogic Server &amp; Managed Server without password</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;
You can use boot.properties file for starting without typing username password.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Please avoide blank lines in boot.properties file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
The clear text username and password will be encrypted the
first time Weblogic server has been started.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; margin-left: 22.5pt; mso-border-alt: solid black .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184; width: 673px;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid black 1.0pt; mso-border-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 504.9pt;&quot; valign=&quot;top&quot; width=&quot;673&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; mso-bidi-font-size: 9.0pt;&quot;&gt;Weblogic Server / Admin
  Server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;cd
  ${DOMAIN_HOME}/servers/AdminServer/security&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt; mso-themecolor: background1; mso-themeshade: 191;&quot;&gt;#pwd /u01/app/bihome/user_projects/domains/bifoundation_domain/servers/&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;AdminServer/security&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;echo
  username=weblogic &amp;gt; boot.properties&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;echo
  password=******&amp;gt;&amp;gt;boot.properties&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;nohup
  ${DOMAIN_HOME}/bin/startWebLogic.sh &amp;gt;&amp;gt; Adminserver.log 2&amp;gt;&amp;amp;1
  &amp;amp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;tail
  -f Adminserver.log &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 504.9pt;&quot; valign=&quot;top&quot; width=&quot;673&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; mso-bidi-font-size: 9.0pt;&quot;&gt;Managed Server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;cd
  ${MW_HOME}/&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;user_projects/domains/bifoundation_domain/servers/bi_server1/security
  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #bfbfbf; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt; mso-themecolor: background1; mso-themeshade: 191;&quot;&gt;#pwd /u01/app/bihome/user_projects/domains/bifoundation_domain/servers/&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;bi_server1/security&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;echo
  username=weblogic &amp;gt; boot.properties&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;echo
  password=******&amp;gt;&amp;gt;boot.properties&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;cd
  $DOMAIN_HOME &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;nohup
  ${DOMAIN_HOME}/bin/&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;startManagedWebLogic.sh
  &amp;gt;&amp;gt; ManagedServer.log 2&amp;gt;&amp;amp;1 &amp;amp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.0pt;&quot;&gt;tail
  -f ManagedServer.log&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-bidi-font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Moreover You can use environment variable:&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; margin-left: 22.5pt; width: 673px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border: 1pt solid black; padding: 0in 5.4pt; width: 504.9pt;&quot; valign=&quot;top&quot; width=&quot;673&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 12px;&quot;&gt;export JAVA_OPTIONS=&quot;${JAVA_OPTIONS} -Dweblogic.management.username=weblogic -Dweblogic.management.password=******&quot;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Read more :&amp;nbsp;&lt;a href=&quot;http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/10g/r3/installconfig/enable_auto_login/boot_identity_file.htm#o&quot;&gt;http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/10g/r3/installconfig/enable_auto_login/boot_identity_file.htm#o&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/6406098295715023593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2014/06/starting-weblogic-server-managed-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/6406098295715023593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/6406098295715023593'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2014/06/starting-weblogic-server-managed-server.html' title='Starting Weblogic Server &amp; Managed Server without password'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-1805815616382567485</id><published>2014-06-17T18:12:00.004+07:00</published><updated>2014-06-17T18:12:57.732+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="startNodeManager.sh"/><category scheme="http://www.blogger.com/atom/ns#" term="Unsupported cypher suite: TLS_RSA_EXPORT_WITH_RC4_40_MD5"/><title type='text'>Start Oracle BI startNodeManager.sh has error &quot;Unsupported cypher suite: TLS_RSA_EXPORT_WITH_RC4_40_MD5&quot;</title><content type='html'>Hi all,&lt;br /&gt;
&lt;br /&gt;
Today after I have installed Oracle BI, I restart BI application server. To start BI Application server we have to perform 2 step as below:&lt;br /&gt;
1) source Environment variable:&lt;br /&gt;
. /u01/app/bihome/wlserver_10.3/common/bin/commEnv.sh&lt;br /&gt;. /u01/app/bihome/user_projects/domains/bifoundation_domain/bin/setDomainEnv.sh&lt;br /&gt;. /u01/app/bihome/user_projects/domains/bifoundation_domain/bin/setOBIDomainEnv.sh&lt;br /&gt;&lt;br /&gt;
2) start BI server:&lt;br /&gt;
&amp;nbsp; i&amp;gt; nohup sh ${DOMAIN_HOME}/bin/startWebLogic.sh -Dweblogic.management.username=weblogic -Dweblogic.management.password=123456 &amp;gt; log_WL.out &amp;amp;&lt;br /&gt;&amp;nbsp; ii&amp;gt; nohup sh ${WL_HOME}/server/bin/startNodeManager.sh &amp;gt; log_NOD.out &amp;amp;&lt;br /&gt;&amp;nbsp; iii&amp;gt; nohup sh ${DOMAIN_HOME}/bin/startManagedWebLogic.sh bi_server1 t3://biapp.mylab.com:7001 &amp;gt; log_MWL.out &amp;amp;&lt;br /&gt;&amp;nbsp; iv&amp;gt; ${MW_HOME}/instances/instance1/opmnctl startall&lt;br /&gt;&lt;br /&gt;
But I have the error as below at&amp;nbsp; &lt;b&gt;startNodeManager.sh&lt;/b&gt; :&lt;br /&gt;
&lt;br /&gt;
Jun 17, 2014 6:01:32 PM weblogic.nodemanager.server.AbstractServerManager log&lt;br /&gt;INFO: Startup configuration properties loaded from &quot;/u01/app/bihome/user_projects/domains/bifoundation_domain/servers/bi_server1/data/nodemanager/startup.properties&quot;&lt;br /&gt;&lt;jun 17=&quot;&quot; 2014=&quot;&quot; 6:01:33=&quot;&quot; pm=&quot;&quot;&gt; &lt;severe&gt; &lt;fatal error=&quot;&quot; in=&quot;&quot; manager=&quot;&quot; node=&quot;&quot; server=&quot;&quot;&gt;&lt;br /&gt;java.io.IOException: Unsupported cypher suite: TLS_RSA_EXPORT_WITH_RC4_40_MD5&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at weblogic.nodemanager.server.SSLListener.init(SSLListener.java:82)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at weblogic.nodemanager.server.NMServer.start(NMServer.java:206)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at weblogic.nodemanager.server.NMServer.main(NMServer.java:377)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at weblogic.NodeManager.main(NodeManager.java:31)&lt;br /&gt;&lt;br /&gt;Jun 17, 2014 6:01:33 PM weblogic.nodemanager.server.NMServer main&lt;br /&gt;SEVERE: Fatal error in node manager server&lt;br /&gt;java.io.IOException: Unsupported cypher suite: TLS_RSA_EXPORT_WITH_RC4_40_MD5&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at weblogic.nodemanager.server.SSLListener.init(SSLListener.java:82)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at weblogic.nodemanager.server.NMServer.start(NMServer.java:206)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at weblogic.nodemanager.server.NMServer.main(NMServer.java:377)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at weblogic.NodeManager.main(NodeManager.java:31)&lt;/fatal&gt;&lt;/severe&gt;&lt;/jun&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;b&gt;&lt;u&gt;To fix this &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
Add a new line to file &lt;b&gt;/u01/app/bihome/wlserver_10.3/common/nodemanager/nodemanager.properties&lt;/b&gt; as below:&lt;br /&gt;
&lt;br /&gt;
CipherSuite=SSL_RSA_EXPORT_WITH_RC4_40_MD5&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Read more:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Metalink: &lt;span class=&quot;x1a&quot; id=&quot;kmPgTpl:r1:0:mr1:r1:0:iRrec:0:pgl25&quot;&gt;&lt;a class=&quot;p_AFHoverTarget x252 xfe&quot; href=&quot;https://support.oracle.com/epmos/faces/KMConsolidatedSearch?_adf.ctrl-state=1dv28pp60o_9&amp;amp;_afrLoop=274991178826586#&quot; id=&quot;kmPgTpl:r1:0:mr1:r1:0:iRrec:0:gl24&quot;&gt;WebLogic Server 10.3.x: Getting &quot;Unsupported Cipher&quot; Exceptions When Starting Node Manager&lt;/a&gt;&lt;img alt=&quot;&quot; height=&quot;10&quot; id=&quot;kmPgTpl:r1:0:mr1:r1:0:iRrec:0:s2&quot; src=&quot;https://support.oracle.com/epmos/adf/images/t.gif&quot; width=&quot;10&quot; /&gt;&lt;span class=&quot;x253&quot;&gt;(Doc ID 1307325.1)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
http://docs.oracle.com/cd/E13222_01/wls/docs100/nodemgr/java_nodemgr.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; </content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/1805815616382567485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2014/06/start-oracle-bi-startnodemanagersh-has.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/1805815616382567485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/1805815616382567485'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2014/06/start-oracle-bi-startnodemanagersh-has.html' title='Start Oracle BI startNodeManager.sh has error &quot;Unsupported cypher suite: TLS_RSA_EXPORT_WITH_RC4_40_MD5&quot;'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-334412262274242835</id><published>2014-04-12T00:23:00.002+07:00</published><updated>2014-04-12T00:23:17.948+07:00</updated><title type='text'>Unable to add disk using oracleasm and getting Instantiating disk: failed</title><content type='html'>&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot;&gt;Unable to create the disk on RHEL6 using oracleasm&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot; /&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot;&gt;
[root@racdr1 ~]# oracleasm createdisk ASM1 /dev/sdb1&lt;br /&gt;Writing disk header: done&lt;br /&gt;Instantiating disk: failed&lt;br /&gt;Clearing disk header: done&lt;br /&gt;[root@racdr1 ~]#&lt;/blockquote&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot;&gt;The reason behind this is under /etc/selinux/config file&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot;&gt;make sure that it have following value&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot; /&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot;&gt;
SELINUX=permissive&lt;/blockquote&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot;&gt;If not then set it and restart the system then issue the command again and there will be success.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot; /&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;Courier New&#39;, Courier, FreeMono, monospace; font-size: 12px; line-height: 16.631999969482422px;&quot;&gt;
[root@racdr1 ~]# cat &amp;nbsp;/etc/selinux/config&lt;br /&gt;# This file controls the state of SELinux on the system.&lt;br /&gt;# SELINUX= can take one of these three values:&lt;br /&gt;# &amp;nbsp; &amp;nbsp; enforcing - SELinux security policy is enforced.&lt;br /&gt;# &amp;nbsp; &amp;nbsp; permissive - SELinux prints warnings instead of enforcing.&lt;br /&gt;# &amp;nbsp; &amp;nbsp; disabled - No SELinux policy is loaded.&lt;br /&gt;SELINUX=permissive&lt;br /&gt;# SELINUXTYPE= can take one of these two values:&lt;br /&gt;# &amp;nbsp; &amp;nbsp; targeted - Targeted processes are protected,&lt;br /&gt;# &amp;nbsp; &amp;nbsp; mls - Multi Level Security protection.&lt;br /&gt;SELINUXTYPE=targeted&lt;br /&gt;&lt;br /&gt;[root@racdr1 ~]# oracleasm createdisk ASM1 /dev/sdb1&lt;br /&gt;Writing disk header: done&lt;br /&gt;Instantiating disk: done&lt;br /&gt;[root@racdr1 ~]#&amp;nbsp;&lt;/blockquote&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;a href=&quot;http://harvarinder.blogspot.com/2013/08/unable-to-add-disk-using-oracleasm-and.html&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;http://harvarinder.blogspot.com/2013/08/unable-to-add-disk-using-oracleasm-and.html&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/334412262274242835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2014/04/unable-to-add-disk-using-oracleasm-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/334412262274242835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/334412262274242835'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2014/04/unable-to-add-disk-using-oracleasm-and.html' title='Unable to add disk using oracleasm and getting Instantiating disk: failed'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-6405319446184889023</id><published>2013-11-05T22:16:00.002+07:00</published><updated>2013-11-05T22:16:33.499+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Change Java Heap Size In R12"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Heap Space Error"/><category scheme="http://www.blogger.com/atom/ns#" term="Java.Lang.OutOfMemoryError"/><title type='text'>How To Change Java Heap Size In R12 To Avoid Java.Lang.OutOfMemoryError: Java Heap Space Error?</title><content type='html'>&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
Recently we had encountered a situation, wherein end users where not able to get the R12 login page and&lt;br /&gt;
it just hangs, but all the opmn processess were up and running – adopmnctl.sh status gives status as&lt;br /&gt;
alive for all the components viz., HTTP, oafm, oacore &amp;amp; forms. The same environment was available and&lt;br /&gt;
end users were able to access without any isuses 15 minutes before. This error happens only when&lt;br /&gt;
multiple people login to the same page and perform simillar activity like employee self service form&lt;br /&gt;
etc. So where and what exactly could be the problem.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
This is how we approached and resolved the issue.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
First we checked apache error log. The following error was reported in the error log.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
==============================================================&lt;br /&gt;
[warn] [client IP Address ] oc4j_socket_recvfull timed out&lt;br /&gt;
[error] [client IP Address ] mod_oc4j: There is no oc4j process (for destination: application://oacore) available to service request.&lt;br /&gt;
[error] [client&amp;nbsp; IP Address] mod_oc4j: request to OC4J [servername:OC4J AJP Port Range for Oacore]&lt;br /&gt;
failed: Connect failed&lt;br /&gt;
==============================================================&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
Above error message does give us a hint that the problem is with oacore, but as i said earlier the oacore is alive according to opmn.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
Next, we verified the oacore log file.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
($INST_TOP/logs/ora/10.1.3/opmn/oacore_default_group_1/oacorestd.err)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
Error Message in the file&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
=======================================================&lt;br /&gt;
Exception in thread “OC4JMonitorThread” java.lang.OutOfMemoryError: Java heap space&lt;br /&gt;
=======================================================&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
While checking the error in file, parallely we opened another window to see the CPU and memory usage and we could see one java process was taking more than 100% CPU. This process was spawned by the opmn -d process and the process id didnt match with the oacore process id. Hint: adopmnctl.sh status will give the status as well the process id. It looked like a end client java process.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
At this stage we had 3 options.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
1. Kill the java process which is consuming high cpu.&lt;br /&gt;
2. Bounce oacore component&lt;br /&gt;
3. Adjust java (jvm) memory parameters&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
Each of the above options has its own implications and advantages. To minimize the downtime we decided&amp;nbsp; to kill the java processes, and the moment we killed the java process, all the browsers which were hanging reported instantaneously Internal Server Error. This proved to be a bad decision.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
So we moved to the next option, bouncing the oacore service which we are sure will resolve the issue&amp;nbsp; (temporarily) and it did as expected. Basically when you bounce the services all the existing&lt;br /&gt;
connections and processess will be released which results in more available memory when you re-start the services.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
Ok, now we tackled the problem and provided a temporary solution but we need to find a long term solution. This is option 3, adjusting java memory size.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Steps to change the heap size.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
First, you need to identify how much is the maximum heap size that you can set. Click&amp;nbsp;&lt;a href=&quot;http://oraclepitstop.wordpress.com/2008/09/11/how-to-identifydetermine-the-maximum-jvm-heap-size-for-oc4j-components-in-r12-10gas/&quot; sl-processed=&quot;1&quot; style=&quot;color: #80ae14; margin: 0px; padding: 0px;&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
Once you had identified the maximum heap size, we need to change the configuration files to make it&lt;br /&gt;
permanent.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Step 1:&lt;/strong&gt;&amp;nbsp;Edit opmn.xml file.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Location :&lt;/strong&gt;&lt;/em&gt;$INST_TOP/ora/10.1.3/opmn/conf/&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
Open opmn.xml&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Search&lt;/strong&gt;&lt;/em&gt;&amp;nbsp;for string Xms or Xmx or module-id=”OC4J”&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
This search should lead you to below location&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
‘&amp;lt;’process-type id=”oacore” module-id=”OC4J” status=”enabled” working-dir=”$ORACLE_HOME/j2ee/home”‘&amp;gt;’&lt;br /&gt;
‘&amp;lt;’category id=”start-parameters”‘&amp;gt;’&lt;br /&gt;
‘&amp;lt;’data id=”java-options” value=”-server -verbose:gc -Xmx512M -Xms128M ……]&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
The default value for Maximum (-Xmx) and Minimum (-Xms) heap sizes are 512M and 128M respectively.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
Again here you have options, you can set both Xms and Xmx has the same value as Xmx if you feel all your sessoins require higher memory or set a lower value for Xms and the maximum value for Xmx. Dont forget to change the values under ‘&amp;lt;’category id=”stop-parameters”‘&amp;gt;’&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
opmn.xml also contains jvm configurations for other components – oafm &amp;amp; forms.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Step 2:&lt;/strong&gt;&amp;nbsp;Edit oc4j.properties file.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Location :&lt;/strong&gt;&lt;/em&gt;($INST_TOP/ora/10.1.3/j2ee/oacore/config)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
This step is optional since we had already made changes in opmn.xml but there is no harm in making the change here. This step will come handy for troubleshooting specific components of Oracle viz., configurator, iSupplier or any other option which heavily utilizes/consumes CPU/memory.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Search&lt;/strong&gt;&lt;/em&gt;&amp;nbsp;for string Xms or Xmx or wrapper.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Option 1:&lt;/strong&gt;&lt;/em&gt;&amp;nbsp;If you find any of the above parameters change the values corresponding to the value you had&amp;nbsp; mentioned in opmn.xml or even more than that, as long as you dont exceed the maximum heap size limit.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Option 2:&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;If you DO NOT find any of the above parameters, then make an entry like this, under the heading “# Java Object Cache Configuration Parameters”&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
wrapper.bin.parameters=-Xms[Value]M -Xmx[Value]M -XX:NewSize=256M -XX:MaxNewSize=256M&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Step 3:&lt;/strong&gt;&amp;nbsp;Edit Applications Context file&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
vi $CONTEXT_FILE&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Location:&lt;/strong&gt;&lt;/em&gt;$INST_TOP/appl/admin/SID_hostname.xml&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;search&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;for string s_oacore_jvm_start_options&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
Change Xms and Xmx value. Repeat the same step for parameter s_oacore_jvm_stop_options.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
Changes made in Step 3 will take effect the next time you run autoconfig, whereas Step 1 &amp;amp; 2 changes will take effect the next time you bounce opmn services, but the values are not permanent in the sense these will be wiped off next time you run autoconfig. Yes you can preserve the changes by placing it inbetween Begin and End customizations.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 1em; margin-top: 0.5em; padding: 0px;&quot;&gt;
You can also increase the Garbage Collection threads parameter (-XX:ParallelGCThreads) to a higher value if you have JDK 1.5 or more than 2 cpus or more memory. For more information on this you can refer to Metalink Note: 362851 – Guidelines to setup the JVM in Apps Ebusiness Suite 11i and R12.&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://oracamp.com/how-change-java-heap-size-r12-avoid-javalangoutofmemoryerror-java-heap-space-error&quot;&gt;http://oracamp.com/how-change-java-heap-size-r12-avoid-javalangoutofmemoryerror-java-heap-space-error&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/6405319446184889023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2013/11/how-to-change-java-heap-size-in-r12-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/6405319446184889023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/6405319446184889023'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2013/11/how-to-change-java-heap-size-in-r12-to.html' title='How To Change Java Heap Size In R12 To Avoid Java.Lang.OutOfMemoryError: Java Heap Space Error?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-1430332021869237754</id><published>2013-09-05T23:35:00.002+07:00</published><updated>2013-09-05T23:36:12.778+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="libXtst.so.6"/><category scheme="http://www.blogger.com/atom/ns#" term="libXtst.so.6 cannot open shared object"/><title type='text'>libXtst.so.6 cannot open shared object file error during Oracle Installation</title><content type='html'>&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-918811991283216400&quot; style=&quot;background-color: white; font-family: Verdana, Geneva, sans-serif; font-size: 13px; line-height: 1.4; position: relative; width: 586px;&quot;&gt;
&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The &quot;libXtst.so.6 cannot open shared object file&quot; is quite common if you install any oracle product on 64bit system and misses something in the system&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6930610543009221558&quot; name=&quot;more&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;prerequisites. A quick resolution is installing the &amp;nbsp;libXtst package for both 32 bit and 64 bit. But, last time while installing OID on 64bit Linux, I found that though libXtst package is already there, still this error is coming. See the error below and its solution.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The following error is coming during starting of installer.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;$ ./runInstaller -ignoreSysPrereqs&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;-------------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The OUI Screen may take around 5 to 30 seconds to come up depending upon system performance. Please Wait .......&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;-------------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Starting Oracle Universal Installer...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Checking installer requirements...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Checking operating system version: must be redhat-Red Hat Enterprise Linux AS release 4, redhat-2.1, redhat-3, SuSE-9 or UnitedLinux-1.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Failed &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; Ignoring required pre-requisite failures. Continuing...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-02-11_01-46-40PM. Please wait ...[xxxxxx@Disk1]$ Oracle Universal Installer, Version 10.1.0.5.0 Production&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Copyright (C) 1999, 2006, Oracle. All rights reserved.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2013-02-11_01-46-40PM/jre/1.4.2/lib/i386/libawt.so: libXtst.so.6: cannot open shared object file: No such file or directory occurred..&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;java.lang.UnsatisfiedLinkError: /tmp/OraInstall2013-02-11_01-46-40PM/jre/1.4.2/lib/i386/libawt.so: libXtst.so.6: cannot open shared object file: No such file or directory&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader$NativeLibrary.load(Native Method)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Runtime.loadLibrary0(Runtime.java:788)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.System.loadLibrary(System.java:834)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Solution&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Although the following command is showing that libXtst package is installed for both 32bit and 64bit.&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;# &amp;nbsp;rpm -q --qf &#39;%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Verdana, sans-serif;&quot;&gt;libXt-1.0.2-3.2.el5 (x86_64)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Verdana, sans-serif;&quot;&gt;libXt-1.0.2-3.2.el5 (i386)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;But oracle installer is trying to get file libXtst.so.6 from /usr/lib/libXtst.so.6 where libXtst.so.6 file doesn&#39;t exist. The 32bit version of the file is in /usr/X11R6/lib/libXtst.so.6 location.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;So, I have created a softlink using following command and restarted the installation.&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394; font-family: Verdana, sans-serif;&quot;&gt;ln -s /usr/X11R6/lib/libXtst.so.6 /usr/lib/libXtst.so.6&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;cached from:&amp;nbsp;&lt;a href=&quot;http://oracle-latest-technology.blogspot.com/2013/02/libxtstso6-cannot-open-shared-object.html&quot;&gt;http://oracle-latest-technology.blogspot.com/2013/02/libxtstso6-cannot-open-shared-object.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/1430332021869237754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2013/09/libxtstso6-cannot-open-shared-object.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/1430332021869237754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/1430332021869237754'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2013/09/libxtstso6-cannot-open-shared-object.html' title='libXtst.so.6 cannot open shared object file error during Oracle Installation'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-6983225087874895179</id><published>2013-04-15T22:20:00.001+07:00</published><updated>2013-04-15T22:20:55.682+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Local Yum"/><category scheme="http://www.blogger.com/atom/ns#" term="Local Yum Repository"/><category scheme="http://www.blogger.com/atom/ns#" term="Local Yum Repository Using an ISO Image"/><title type='text'>Creating a Local Yum Repository Using an ISO Image</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;note&quot; style=&quot;border-left-color: black; border-left-style: solid; border-left-width: 5px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; margin-left: 0.5in; margin-right: 0.5in; padding-left: 5px;&quot;&gt;
&lt;div class=&quot;admon-title&quot; style=&quot;font-size: 13px; font-weight: bold;&quot;&gt;
Note&lt;/div&gt;
&lt;div style=&quot;max-width: 720px;&quot;&gt;
The system must have sufficient storage space to host a full Oracle Linux Media Pack DVD image (approximately 3.5 GB for Oracle Linux Release 6 Update 3).&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Helvetica, Arial, sans-serif; font-size: 14px; max-width: 720px;&quot;&gt;
To create a local yum repository (for example, if a system does not have Internet access):&lt;/div&gt;
&lt;div class=&quot;orderedlist&quot; style=&quot;font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;ol class=&quot;orderedlist&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 16px; list-style: decimal outside none; vertical-align: middle;&quot;&gt;&lt;div style=&quot;max-width: 720px;&quot;&gt;
On a system with Internet access, download a full Oracle Linux DVD image from the Oracle Software Delivery Cloud at&amp;nbsp;&lt;a class=&quot;ulink&quot; href=&quot;http://edelivery.oracle.com/linux&quot; style=&quot;color: #015a84;&quot; target=&quot;_top&quot;&gt;http://edelivery.oracle.com/linux&lt;/a&gt;&amp;nbsp;onto removable storage (such as a USB memory stick). For example,&lt;code class=&quot;literal&quot; style=&quot;background-color: white; color: #0e4075; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px;&quot;&gt;V33411-01.iso&lt;/code&gt;&amp;nbsp;contains the Oracle Linux Release 6 Update 3 Media Pack for x86 (64 bit).&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 16px; list-style: decimal outside none; vertical-align: middle;&quot;&gt;&lt;div style=&quot;max-width: 720px;&quot;&gt;
Transfer the removable storage to the system on which you want to create a local yum repository, and copy the DVD image to a directory in a local file system.&lt;/div&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-color: #eeeeee; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px; line-height: 20px; max-width: 720px; padding: 2px;&quot;&gt;# &lt;strong class=&quot;userinput&quot;&gt;&lt;code style=&quot;background-color: inherit; color: inherit; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 12px; padding: 1px;&quot;&gt;cp /media/&lt;em class=&quot;replaceable&quot;&gt;&lt;code style=&quot;background-color: inherit; color: inherit; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; padding: 1px;&quot;&gt;USB_stick&lt;/code&gt;&lt;/em&gt;/V33411-01.iso /ISOs&lt;/code&gt;&lt;/strong&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 16px; list-style: decimal outside none; vertical-align: middle;&quot;&gt;&lt;div style=&quot;max-width: 720px;&quot;&gt;
Create a suitable mount point, for example&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-color: white; color: #0e4075; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px;&quot;&gt;/var/OSimage/OL6.3_x86_64&lt;/code&gt;, and mount the DVD image on it.&lt;/div&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-color: #eeeeee; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px; line-height: 20px; max-width: 720px; padding: 2px;&quot;&gt;# &lt;strong class=&quot;userinput&quot;&gt;&lt;code style=&quot;background-color: inherit; color: inherit; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 12px; padding: 1px;&quot;&gt;mkdir -p /var/OSimage/OL6.3_x86_64&lt;/code&gt;&lt;/strong&gt;
# &lt;strong class=&quot;userinput&quot;&gt;&lt;code style=&quot;background-color: inherit; color: inherit; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 12px; padding: 1px;&quot;&gt;mount -o loop /ISOs/V33411-01.iso /var/OSimage/OL6.3_x86_64&lt;/code&gt;&lt;/strong&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 16px; list-style: decimal outside none; vertical-align: middle;&quot;&gt;&lt;div style=&quot;max-width: 720px;&quot;&gt;
Create an entry in&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-color: white; color: #0e4075; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px;&quot;&gt;/etc/fstab&lt;/code&gt;&amp;nbsp;so that the system always mounts the DVD image after a reboot.&lt;/div&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-color: #eeeeee; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px; line-height: 20px; max-width: 720px; padding: 2px;&quot;&gt;/ISOs/V33411-01.iso /var/OSimage/OL6.3_x86_64 loop defaults 0 0&lt;/pre&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 16px; list-style: decimal outside none; vertical-align: middle;&quot;&gt;&lt;div style=&quot;max-width: 720px;&quot;&gt;
In the&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-color: white; color: #0e4075; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px;&quot;&gt;/etc/yum.repos.d&lt;/code&gt;&amp;nbsp;directory, edit the existing repository files, such as&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-color: white; color: #0e4075; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px;&quot;&gt;public-yum-ol6.repo&lt;/code&gt;&amp;nbsp;or&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-color: white; color: #0e4075; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px;&quot;&gt;ULN-base.repo&lt;/code&gt;, and disable all entries by setting&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-color: white; color: #0e4075; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px;&quot;&gt;enabled=0&lt;/code&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 16px; list-style: decimal outside none; vertical-align: middle;&quot;&gt;&lt;div style=&quot;max-width: 720px;&quot;&gt;
Create the following entries in a new repository file (for example,&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-color: white; color: #0e4075; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px;&quot;&gt;/etc/yum.repos.d/OL63.repo&lt;/code&gt;).&lt;/div&gt;
&lt;div style=&quot;max-width: 720px;&quot;&gt;
&lt;/div&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-color: #eeeeee; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px; line-height: 20px; max-width: 720px; padding: 2px;&quot;&gt;[OL63]
name=Oracle Linux 6.3 x86_64
baseurl=file:///var/OSimage/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
gpgcheck=1 
enabled=1 &lt;/pre&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 16px; list-style: decimal outside none; vertical-align: middle;&quot;&gt;&lt;div style=&quot;max-width: 720px;&quot;&gt;
Clean up the&amp;nbsp;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;yum&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;cache.&lt;/div&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-color: #eeeeee; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px; line-height: 20px; max-width: 720px; padding: 2px;&quot;&gt;# &lt;strong class=&quot;userinput&quot;&gt;&lt;code style=&quot;background-color: inherit; color: inherit; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 12px; padding: 1px;&quot;&gt;yum clean all&lt;/code&gt;&lt;/strong&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 16px; list-style: decimal outside none; vertical-align: middle;&quot;&gt;&lt;div style=&quot;max-width: 720px;&quot;&gt;
Test that you can use&amp;nbsp;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;yum&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;to access the repository.&lt;/div&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-color: #eeeeee; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 13px; line-height: 20px; max-width: 720px; padding: 2px;&quot;&gt;# &lt;strong class=&quot;userinput&quot;&gt;&lt;code style=&quot;background-color: inherit; color: inherit; font-family: &#39;Courier New&#39;, Courier, fixed, monospace; font-size: 12px; padding: 1px;&quot;&gt;yum repolist&lt;/code&gt;&lt;/strong&gt;
Loaded plugins: refresh-packagekit, security
...
repo id                    repo name                                status
OL63                       Oracle Linux 6.3 x86_64                  25,459
repolist: 25,459&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Ref: &lt;a href=&quot;http://docs.oracle.com/cd/E37670_01/E37355/html/ol_create_repo.html&quot;&gt;http://docs.oracle.com/cd/E37670_01/E37355/html/ol_create_repo.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/6983225087874895179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2013/04/creating-local-yum-repository-using-iso.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/6983225087874895179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/6983225087874895179'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2013/04/creating-local-yum-repository-using-iso.html' title='Creating a Local Yum Repository Using an ISO Image'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-2796458306409252940</id><published>2013-04-11T04:39:00.000+07:00</published><updated>2013-04-11T04:53:25.350+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="udev"/><category scheme="http://www.blogger.com/atom/ns#" term="udev rule"/><category scheme="http://www.blogger.com/atom/ns#" term="udev rules"/><category scheme="http://www.blogger.com/atom/ns#" term="Writing udev rules"/><title type='text'>Writing udev rules</title><content type='html'>&lt;br /&gt;
&lt;h3&gt;
Built-in persistent naming schemes&lt;/h3&gt;
udev provides persistent naming for some device types out of the box. This is a very useful feature, and in many circumstances means that your journey ends here: you do not have to write any rules.&lt;br /&gt;
udev provides out-of-the-box persistent naming for storage devices in the&amp;nbsp;&lt;em&gt;/dev/disk&lt;/em&gt;&amp;nbsp;directory. To view the persistent names which have been created for your storage hardware, you can use the following command:&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre&gt;# ls -lR /dev/disk&lt;/pre&gt;
&lt;/blockquote&gt;
This works for all storage types. As an example, udev has created&amp;nbsp;&lt;em&gt;/dev/disk/by-id/scsi-SATA_ST3120827AS_4MS1NDXZ-part3&lt;/em&gt;&amp;nbsp;which is a persistent-named symbolic link to my root partition. udev creates&amp;nbsp;&lt;em&gt;/dev/disk/by-id/usb-Prolific_Technology_Inc._USB_Mass_Storage_Device-part1&lt;/em&gt;&amp;nbsp;when I plug my USB flash disk in, which is also a persistent name.&lt;br /&gt;
&lt;h2&gt;
Rule writing&lt;/h2&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6930610543009221558&quot; name=&quot;files&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
Rule files and semantics&lt;/h3&gt;
When deciding how to name a device and which additional actions to perform, udev reads a series of rules files. These files are kept in the&amp;nbsp;&lt;em&gt;/etc/udev/rules.d&lt;/em&gt;&amp;nbsp;directory, and they all must have the&amp;nbsp;&lt;em&gt;.rules&lt;/em&gt;&amp;nbsp;suffix.&lt;br /&gt;
Default udev rules are stored in&amp;nbsp;&lt;em&gt;/etc/udev/rules.d/50-udev.rules&lt;/em&gt;. You may find it interesting to look over this file - it includes a few examples, and then some default rules proving a devfs-style /dev layout. However, you should not write rules into this file directly.&lt;br /&gt;
Files in /etc/udev/rules.d/ are parsed in&amp;nbsp;&lt;b&gt;lexical&lt;/b&gt;&amp;nbsp;order, and in some circumstances, the order in which rules are parsed is important. In general, you want your own rules to be parsed before the defaults, so I suggest you create a file at&amp;nbsp;&lt;em&gt;/etc/udev/rules.d/10-local.rules&lt;/em&gt;&amp;nbsp;and write all your rules into this file.&lt;br /&gt;
In a rules file, lines starting with &quot;#&quot; are treated as comments. Every other non-blank line is a rule. Rules cannot span multiple lines.&lt;br /&gt;
&lt;span style=&quot;background-color: #ffe599;&quot;&gt;One device can be matched by more than one rule&lt;/span&gt;. This has it&#39;s practical advantages, for example, we can write two rules which match the same device, where each one provides its own alternate name for the device. Both alternate names will be created, even if the rules are in separate files. It is important to understand that udev will&amp;nbsp;&lt;em&gt;not&lt;/em&gt;&amp;nbsp;stop processing when it finds a matching rule, it will continue searching and attempt to apply every rule that it knows about.&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6930610543009221558&quot; name=&quot;syntax&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
Rule syntax&lt;/h3&gt;
Each rule is constructed from a series of key-value pairs, which are separated by commas.&amp;nbsp;&lt;b&gt;match&lt;/b&gt;&amp;nbsp;keys are conditions used to identify the device which the rule is acting upon. When&amp;nbsp;&lt;u&gt;all&lt;/u&gt;&amp;nbsp;match keys in a rule correspond to the device being handled, then the rule is applied and the actions of the&amp;nbsp;&lt;b&gt;assignment&lt;/b&gt;&amp;nbsp;keys are invoked. Every rule should consist of at least one match key and at least one assignment key.&lt;br /&gt;
Here is an example rule to illustrate the above:&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre&gt;KERNEL==&quot;hdb&quot;, NAME=&quot;my_spare_disk&quot;&lt;/pre&gt;
&lt;/blockquote&gt;
The above rule includes one match key (&lt;em&gt;KERNEL&lt;/em&gt;) and one assignment key (&lt;em&gt;NAME&lt;/em&gt;). The semantics of these keys and their properties will be detailed later. It is important to note that the match key is related to its value through the &lt;span style=&quot;background-color: #93c47d;&quot;&gt;equality operator &lt;/span&gt;(==), whereas the assignment key is related to its value through the &lt;span style=&quot;background-color: #93c47d;&quot;&gt;assignment operato&lt;/span&gt;r (=).&lt;br /&gt;
Be aware that udev does not support any form of line continuation. Do not insert any line breaks in your rules, as this will cause udev to see your one rule as multiple rules and will not work as expected.&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6930610543009221558&quot; name=&quot;basic&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
Basic Rules&lt;/h3&gt;
udev provides several different match keys which can be used to write rules which match devices very precisely. Some of the most common keys are introduced below, others will be introduced later in this document. For a complete list, see the udev man page.&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;KERNEL&lt;/b&gt;&amp;nbsp;- match against the kernel name for the device&lt;/li&gt;
&lt;li&gt;&lt;b&gt;SUBSYSTEM&lt;/b&gt;&amp;nbsp;- match against the subsystem of the device&lt;/li&gt;
&lt;li&gt;&lt;b&gt;DRIVER&lt;/b&gt;&amp;nbsp;- match against the name of the driver backing the device&lt;/li&gt;
&lt;/ul&gt;
After you have used a series of match keys to precisely match a device, udev gives you fine control over what happens next, through a range of assignment keys. For a complete list of possible assignment keys, see the udev man page. The most basic assignment keys are introduced below. Others will be introduced later in this document.&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;NAME&lt;/b&gt;&amp;nbsp;- the name that shall be used for the device node&lt;/li&gt;
&lt;li&gt;&lt;b&gt;SYMLINK&lt;/b&gt;&amp;nbsp;- a&amp;nbsp;&lt;b&gt;list&lt;/b&gt;&amp;nbsp;of symbolic links which act as alternative names for the device node&lt;/li&gt;
&lt;/ul&gt;
As hinted above, &lt;span style=&quot;background-color: #ffd966;&quot;&gt;udev only creates one true device node for one device. If you wish to provide alternate names for this device node, you use the symbolic link functionality&lt;/span&gt;. With the&amp;nbsp;&lt;em&gt;SYMLINK&lt;/em&gt;&amp;nbsp;assignment, you are actually maintaining a&amp;nbsp;&lt;em&gt;list&lt;/em&gt;&amp;nbsp;of symbolic links, all of which will be pointed at the real device node. To manipulate these links, we introduce a new operator for appending to lists:&amp;nbsp;&lt;b&gt;+=&lt;/b&gt;. You can append multiple symlinks to the list from any one rule by separating each one with a space.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre&gt;KERNEL==&quot;hdb&quot;, NAME=&quot;my_spare_disk&quot;&lt;/pre&gt;
&lt;/blockquote&gt;
The above rule says:&amp;nbsp;&lt;em&gt;match a device which was named by the kernel as hdb, and instead of calling it hdb, name the device node as my_spare_disk&lt;/em&gt;. The device node appears at&amp;nbsp;&lt;em&gt;/dev/my_spare_disk&lt;/em&gt;.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre&gt;KERNEL==&quot;hdb&quot;, DRIVER==&quot;ide-disk&quot;, SYMLINK+=&quot;sparedisk&quot;&lt;/pre&gt;
&lt;/blockquote&gt;
The above rule says:&amp;nbsp;&lt;em&gt;match a device which was named by the kernel as hdb AND where the driver is ide-disk. Name the device node with the default name and create a symbolic link to it named sparedisk&lt;/em&gt;. Note that we did not specify a device node name, so udev uses the default. In order to preserve the standard&amp;nbsp;&lt;em&gt;/dev&lt;/em&gt;&amp;nbsp;layout, your own rules will typically leave the NAME alone but create some SYMLINKs and/or perform other assignments.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre&gt;KERNEL==&quot;hdc&quot;, SYMLINK+=&quot;cdrom cdrom0&quot;&lt;/pre&gt;
&lt;/blockquote&gt;
The above rule is probably more typical of the types of rules you might be writing. It creates two symbolic links at&amp;nbsp;&lt;em&gt;/dev/cdrom&lt;/em&gt;&amp;nbsp;and&amp;nbsp;&lt;em&gt;/dev/cdrom0&lt;/em&gt;, both of which point at&amp;nbsp;&lt;em&gt;/dev/hdc&lt;/em&gt;. Again, no NAME assignment was specified, so the default kernel name (hdc) is used.&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6930610543009221558&quot; name=&quot;sysfsmatch&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
Matching sysfs attributes&lt;/h3&gt;
The match keys introduced so far only provide limited matching capabilities. Realistically we require much finer control: we want to identify devices based on advanced properties such as vendor codes, exact product numbers, serial numbers, storage capacities, number of partitions, etc.&lt;br /&gt;
Many drivers export information like this into sysfs, and udev allows us to incorporate sysfs-matching into our rules, using the&amp;nbsp;&lt;em&gt;ATTR&lt;/em&gt;&amp;nbsp;key with a slightly different syntax.&lt;br /&gt;
Here is an example rule which matches a single attribute from sysfs. Further detail will be provided later in this document which will aid you in writing rules based on sysfs attributes.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre&gt;SUBSYSTEM==&quot;block&quot;, ATTR{size}==&quot;234441648&quot;, SYMLINK+=&quot;my_disk&quot;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;h3&gt;
Device hierarchy&lt;/h3&gt;
The Linux kernel actually represents devices in a tree-like structure, and this information is exposed through sysfs and useful when writing rules. For example, the device representation of my hard disk device is a child of the SCSI disk device, which is in turn a child of the Serial ATA controller device, which is in turn a child of the PCI bus device. It is likely that you will find yourself needing to refer to information from a parent of the device in question, for example the serial number of my hard disk device is not exposed at the device level, it is exposed by its direct parent at the SCSI disk level.&lt;br /&gt;
The &lt;span style=&quot;background-color: #fff2cc;&quot;&gt;four main match keys introduced so far (KERNEL/SUBSYSTEM/DRIVER/ATTR) only match against values corresponding to the device in question, and do not match values from parent devices&lt;/span&gt;. udev provides variants of the match keys that will search upwards through the tree:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;KERNELS&lt;/b&gt;&amp;nbsp;- match against the kernel name for the device, or the kernel name for any of the parent devices&lt;/li&gt;
&lt;li&gt;&lt;b&gt;SUBSYSTEMS&lt;/b&gt;&amp;nbsp;- match against the subsystem of the device, or the subsystem of any of the parent devices&lt;/li&gt;
&lt;li&gt;&lt;b&gt;DRIVERS&lt;/b&gt;&amp;nbsp;- match against the name of the driver backing the device, or the name of the driver backing any of the parent devices&lt;/li&gt;
&lt;li&gt;&lt;b&gt;ATTRS&lt;/b&gt;&amp;nbsp;- match a sysfs attribute of the device, or a sysfs attribute of any of the parent devices&lt;/li&gt;
&lt;/ul&gt;
With hierarchy considerations in mind, you may feel that rule writing is becoming a little complicated. Rest assured that there are tools that help out here, which will be introduced later.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/2796458306409252940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2013/04/writing-udev-rules.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/2796458306409252940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/2796458306409252940'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2013/04/writing-udev-rules.html' title='Writing udev rules'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-6232248547799692578</id><published>2013-01-04T13:34:00.002+07:00</published><updated>2013-01-04T14:13:16.299+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="connect to MS SQL from Oracle database"/><category scheme="http://www.blogger.com/atom/ns#" term="connection from Oracle database to Microsoft SQL server"/><title type='text'>Heterogenous connection from Oracle database to Microsoft SQL server</title><content type='html'>Using Oracle&#39;s heterogenous services also known as HS, we can make a 
connection to non-Oracle databases and access the data remotely. I used 
MS SQL server as the target non-Oracle database on Windows and used HS 
to access from Oracle database residing on Linux. Here, we&#39;ll see step 
by step instructions on how to set up a connection from Oracle database 
to Microsoft SQL server.&lt;br /&gt;
&lt;br /&gt;
In this example, I&#39;ve used the following:&lt;br /&gt;
Source Oracle database on Linux:test-oralin&lt;br /&gt;
Target SQL server on Windows:test-mssqlwin&lt;br /&gt;
DSN name:MSORA&lt;br /&gt;
&lt;br /&gt;
Our objective is to make a connection from test-oralin to test-mssqlwin 
and access the SQL server database from Oracle. Here are the steps:&lt;br /&gt;
&lt;br /&gt;
1. On test-mssqlwin, install Oracle Home. Example: E:\OraHome&lt;br /&gt;
Note: Only Oracle binaries are needed here so you need not create a database.&lt;br /&gt;
&lt;br /&gt;
2. On test-mssqlwin, install ODBC drivers so that Oracle can access SQL server&lt;br /&gt;
&lt;br /&gt;
3. On test-mssqlwin, configure ODBC by setting up a system DSN(Data Source Name)&lt;br /&gt;
Typically you can find this at Start-&amp;gt;Settings-&amp;gt;Control 
Panel-&amp;gt;Administrative Tools-&amp;gt;Data Sources(ODBC) however depending 
on the Windows version, this may differ slightly.&lt;br /&gt;
On System DSN tab, click Add button and then choose the driver you want 
to use to connect to SQL server. Continue with the ODBC configuration by
 entering the details of the SQL server you wish to connect to along 
with necessary credentials. For this test, I&#39;ve chosen &quot;MSORA&quot; as my DSN
 name. &lt;br /&gt;
&lt;br /&gt;
4. On test-mssqlwin, setup the heterogenous services init file.&lt;br /&gt;
Look for inithsodbc.ora in $ORACLE_HOME/hs/admin/ which in our case 
would be E:\OraHome\hs\admin. Make a copy of it and rename it to 
initMSORA.ora. Remember we had chosen &quot;MSORA&quot; as our DSN name. Open the 
file and enter the DSN name that you just created recently i.e &quot;MSORA&quot;. 
This is how E:\OraHome\hs\admin\initMSORA.ora should look like:&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt; # This is a sample agent init file that contains the HS parameters that are needed for an ODBC Agent.&lt;br /&gt;
#&lt;br /&gt;
# HS init parameters&lt;br /&gt;
#&lt;br /&gt;
HS_FDS_CONNECT_INFO = MSORA&lt;br /&gt;
HS_FDS_TRACE_LEVEL = OFF&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
5. On test-mssqlwin, configure listener.ora. Take a sample copy from 
E:\OraHome\hs\admin\listener.ora.sample and copy it to 
E:\OraHome\network\admin\listener.ora&lt;br /&gt;
This is how your E:\OraHome\network\admin\listener.ora should look like:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt; LISTENER_MSORA =&lt;br /&gt;
&amp;nbsp;(ADDRESS_LIST=&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ADDRESS=(PROTOCOL=tcp)(HOST=test-mssqlwin)(PORT=1521))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))&lt;br /&gt;
&lt;br /&gt;
SID_LIST_LISTENER_MSORA=&lt;br /&gt;
&amp;nbsp; (SID_LIST=&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SID_DESC=&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SID_NAME=MSORA)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ORACLE_HOME = E:\OraHome)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PROGRAM=hsodbc)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt;
&amp;nbsp; )&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
Note: SID_NAME should be your DSN name. PROGRAM=hsodbc tells Oracle to 
use heterogenous services. Restart your listener to make sure the 
settings are in effect.&lt;br /&gt;
&lt;br /&gt;
We have completed our configuration on the target MS SQL server i.e 
test-mssqlwin. Now let us move to our source Oracle database i.e 
test-oralin from where we wish to access test-mssqlwin&lt;br /&gt;
&lt;br /&gt;
6. On test-oralin, configure your $ORACLE_HOME/network/admin/tnsnames.ora&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt; MSORA =&lt;br /&gt;
&amp;nbsp; (DESCRIPTION =&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; (ADDRESS = (PROTOCOL = TCP)(HOST = test-mssqlwin)(PORT = 1521))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; (CONNECT_DATA =&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SERVER = DEDICATED)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SID = MSORA)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt;
&amp;nbsp;&amp;nbsp; (HS=OK)&lt;br /&gt;
&amp;nbsp; )&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;Note:SID should be the DSN name created on test-mssqlwin. 
PORT should be same as what was configured for the listener on Oracle 
Home that was installed on test-mssqlwin. HS=OK means Oracle will use 
heterogenous services.&lt;br /&gt;
&lt;br /&gt;
7. Verify the connection from test-oralin to test-mssqlwin by doing a tnsping MSORA from test-oralin. &lt;br /&gt;
&lt;br /&gt;
8. We are all set now so let us access the SQL server database now from Oracle. &lt;br /&gt;
On test-oralin, connect to the Oracle database from where you want to access SQL server database located on test-mssqlwin&lt;br /&gt;
Make sure that global_names parameter is set to false&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt; SQL&amp;gt; sho parameter global_names&lt;br /&gt;
&lt;br /&gt;
NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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; VALUE&lt;br /&gt;
------------------ ---------------- -------&lt;br /&gt;
global_names&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; boolean&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FALSE&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
Create a database link:&lt;br /&gt;
CREATE DATABASE LINK &amp;lt;&lt;dblinkname&gt;&amp;gt; CONNECT TO 
&amp;lt;&lt;username&gt;&amp;gt; IDENTIFIED BY &amp;lt;&lt;password&gt;&amp;gt; USING 
&#39;&amp;lt;&lt;connection string=&quot;string&quot;&gt;&amp;gt;&#39;;



&lt;/connection&gt;&lt;/password&gt;&lt;/username&gt;&lt;/dblinkname&gt;&lt;br /&gt;
Example:&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt; SQL&amp;gt; CREATE DATABASE LINK MSORA CONNECT TO REPL IDENTIFIED BY REPL USING &#39;MSORA&#39;;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
Database link created.&lt;br /&gt;
&lt;br /&gt;
Note: REPL is a user on SQL server database i.e test-mssqlwin with REPL 
as it&#39;s password. &#39;MSORA&#39; was given as a connection string in 
tnsnames.ora. Here, we have chosen MSORA as dblinkname, you could have 
any name.&lt;br /&gt;
&lt;br /&gt;
We have completed our configuration. You may start accessing the data now.&lt;br /&gt;
Example:&lt;br /&gt;
&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;SQL&amp;gt; desc emp@msora&lt;br /&gt;
&amp;nbsp;Name&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;&amp;nbsp;&amp;nbsp; Type&lt;br /&gt;
&amp;nbsp;------------- --------&amp;nbsp;&amp;nbsp; --------------&lt;br /&gt;
&amp;nbsp;EMPID&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOT NULL&amp;nbsp;&amp;nbsp; NUMBER(1)&lt;br /&gt;
&amp;nbsp;EMPNAME&amp;nbsp;&amp;nbsp;&amp;nbsp; &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(60)&lt;br /&gt;
&amp;nbsp;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; DATE&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;b&gt;reference:&lt;/b&gt; &lt;a href=&quot;http://www.ritzyblogs.com/OraTalk/PostID/107/Heterogenous-connection-from-Oracle-database-to-Microsoft-SQL-server&quot;&gt;http://www.ritzyblogs.com/OraTalk/PostID/107/Heterogenous-connection-from-Oracle-database-to-Microsoft-SQL-server&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;a href=&quot;http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/6232248547799692578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2013/01/heterogenous-connection-from-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/6232248547799692578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/6232248547799692578'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2013/01/heterogenous-connection-from-oracle.html' title='Heterogenous connection from Oracle database to Microsoft SQL server'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-9019970772073105080</id><published>2012-09-20T00:44:00.001+07:00</published><updated>2012-09-20T00:46:15.891+07:00</updated><title type='text'>Differences and Similarities Between Index Coalesce and Shrink Space</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
The first thing to point out is that each command has a slightly different purpose.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
Coalesce is designed specifically to reduce fragmentation within&amp;nbsp;an index but not to&amp;nbsp;deallocate any freed up blocks which are placed on the freelist and&amp;nbsp;recycled by subsequent block splits.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
Shrink is designed specifically to reduce the overall size of an index segment, resetting the High Water Mark (HWM) and releasing any&amp;nbsp;excess storage as necessary.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
The key difference&amp;nbsp;being that Shrink must reorganise the index leaf blocks in such a way that all the freed up, now empty&amp;nbsp;blocks are all grouped together at “one end” of the index segment. All these blocks can then be deallocated and removed from the index segment. This means that specific leaf block entries must be removed from these specific blocks, in order to free up the leaf blocks in this manner.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
Although Coalesce in 10g performs the operation in a similar manner to that of the Shrink Space, it can be more “lazy” in how it deals with the subsequent empty blocks and places then on the segment freelist as necessary.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
COALESCE and SHRINK SPACE COMPACT are logically equivalent commands. Both options will “defragment” an index by “merging” index entries&amp;nbsp;where possible thus reducing the number of blocks within the logical index structure. Both will result in the same number of leaf blocks within the index and both will result in the index height not being changed.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
However, there are two key differences.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
1) The SHRINK SPACE COMPACT option has the disadvantage of&amp;nbsp;being more expensive to process as it has to concern itself with ensuring all necessary blocks can be emptied from the physical “end” of the index segment to be subsequently deallocated. This will result in more undo and redo being generated during the defragmentation of the index than would have been generated by the same corresponding COALESCE command.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
2) The SHRINK SPACE COMPACT option has the advantage of being able to&amp;nbsp;immediately deallocate the empty blocks, thereby reducing the actual size of the index segment by issuing a subsequent SHRINK SPACE option (although of course this can be performed in the one step by issuing SHRINK SPACE in the first place). However, the COALESCE option will not be able to just deallocate the free space. A subsequent Index SHRINK SPACE&amp;nbsp;command on a previously&amp;nbsp;coalesced index&amp;nbsp;will require additional undo and redo&amp;nbsp;than that of a previously “Shrunk” index as the necessary empty blocks are&amp;nbsp;removed from the freelist&amp;nbsp;and redistributed to allow for the de-allocation of blocks and the resetting of the High Water Mark of the index segment.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
Note also that the Shrink option can only be used in Automatic Segment Space Management (ASSM)&amp;nbsp;tablespaces.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
Use Coalesce when the intent is to just defragment an index, knowing that the freed leaf blocks will be recycled by subsequent block splits, as it uses less resources than an equivalent Index Shrink Space.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
Use Shrink Space when the intent is to reduce the actual storage allocated to an index, for example in the scenario where a table has permanently reduced its size and the index is unlikely to reuse the freed storage.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
This demo&amp;nbsp;highlights the&amp;nbsp;&lt;a href=&quot;http://richardfoote.files.wordpress.com/2008/02/coalesce-vs-shrink-demo.pdf&quot; style=&quot;border-bottom-color: rgb(153, 153, 204); border-bottom-style: dotted; border-bottom-width: 1px; color: #333333; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;Differences (and similarities) between an Index Coalesce and an Index Shrink Space&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
Note however, that an&amp;nbsp;index&amp;nbsp;REBUILD might actually use substantially less resources than either a Coalesce&amp;nbsp;or a Shrink Space and might reduce the height of an index as well.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
But that’s a discussion for another day …&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px; text-align: right;&quot;&gt;
&lt;a href=&quot;http://richardfoote.wordpress.com/2008/02/06/differences-and-similarities-between-index-coalesce-and-shrink-space/&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;http://richardfoote.wordpress.com/2008/02/06/differences-and-similarities-between-index-coalesce-and-shrink-space/&lt;/span&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
Scripts&lt;/div&gt;
&lt;div style=&quot;background-color: white; margin-bottom: 12px; margin-top: 12px; padding: 0px;&quot;&gt;
&lt;div style=&quot;color: #666666; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Verdana, sans-serif; font-size: 12px; line-height: 1.5em;&quot;&gt;
http://jonathanlewis.wordpress.com/2008/05/14/index-efficiency/&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #666666; font-family: Lucida Grande, Lucida Sans Unicode, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;http://jonathanlewis.wordpress.com/2010/02/28/index-efficiency-2/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #666666; font-family: Lucida Grande, Lucida Sans Unicode, Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;http://jonathanlewis.wordpress.com/2010/03/03/index-efficiency-3/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/9019970772073105080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2012/09/differences-and-similarities-between.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/9019970772073105080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/9019970772073105080'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2012/09/differences-and-similarities-between.html' title='Differences and Similarities Between Index Coalesce and Shrink Space'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-3142736853187173661</id><published>2012-06-12T10:37:00.001+07:00</published><updated>2012-06-12T10:42:25.610+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Undo space"/><category scheme="http://www.blogger.com/atom/ns#" term="using undo space"/><category scheme="http://www.blogger.com/atom/ns#" term="Who is using your UNDO space"/><title type='text'>Who is using your UNDO space?</title><content type='html'>Sure you&#39;ve faced this situation: a growing undo tablespace, that seems 
it could engulf your entire disk space... until finally stops demanding 
additional space, and within some minutes (or hours, depends on your 
UNDO_RETENTION setting) you start to see more and more free space in 
your tablespace. If you scratched your head wondering &#39;what happened?&#39; 
or &#39;who the User did this?&#39;, this post may be helpful.&lt;br /&gt;
&lt;br /&gt;
There are some views that show information related to undo activity:&lt;br /&gt;
&lt;br /&gt;
* &lt;span style=&quot;font-weight: bold;&quot;&gt;V$UNDOSTAT&lt;/span&gt;: histogram-like view that shows statistics for 10-minute intervals.&lt;br /&gt;
* &lt;span style=&quot;font-weight: bold;&quot;&gt;V$TRANSACTION&lt;/span&gt;: present time view providing information on current transactions.&lt;br /&gt;
* &lt;span style=&quot;font-weight: bold;&quot;&gt;V$SESSTAT&lt;/span&gt;: individual session statistics, which includes one for undo usage.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;V$UNDOSTAT&lt;/span&gt; will provide a &lt;span style=&quot;font-style: italic;&quot;&gt;who did&lt;/span&gt; hint, recording the longest running query for that 10-interval, through the MAXQUERYID column which may be linked to &lt;span style=&quot;font-weight: bold;&quot;&gt;V$SQL&lt;/span&gt; and use columns PARSING_USER_ID or PARSING_SCHEMA_NAME the get a grip on the suspect.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;V$TRANSACTION&lt;/span&gt; linked with &lt;span style=&quot;font-weight: bold;&quot;&gt;V$SESSION&lt;/span&gt; will show &lt;span style=&quot;font-style: italic;&quot;&gt;current&lt;/span&gt; used undo blocks for ongoing transactions. This query may help:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;SELECT  a.sid, a.username, b.used_urec, &lt;span style=&quot;color: red;&quot;&gt;b.used_ublk&lt;/span&gt;
FROM v$session a, v$transaction b
WHERE a.saddr = b.ses_addr
ORDER BY b.used_ublk DESC&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;V$SESSTAT&lt;/span&gt; provides another view, a &lt;span style=&quot;font-style: italic;&quot;&gt;who uses the undo&lt;/span&gt;
 kind of view, but we must avoid to get lost in the maze of Oracle 
statistics and focus on just one: Undo change vector size, which will 
accumulate the bytes of undo used during the session lifetime. Following
 query is designed to pinpoint who is having a high undo activity.&lt;br /&gt;
&lt;pre&gt;SELECT a.sid, b.name, a.value
FROM v$sesstat a, v$statname b
WHERE a.statistic# = b.statistic#
AND a.statistic# = 176    &amp;lt;-- Which stands for &lt;span style=&quot;color: red;&quot;&gt;undo change vector size&lt;/span&gt;
ORDER BY a.value DESC &lt;/pre&gt;
&lt;br /&gt;
Good luck with your UNDO-eating monsters...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://oracledisect.blogspot.com/2011/11/who-is-using-your-undo-space-improved.html&quot;&gt;Who is using your UNDO space? Improved Script&quot;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I have extended the Undo usage scripts to include two additional indicators:&lt;br /&gt;
1) undo change vector size statistics&lt;br /&gt;
2) Used undo records/blocks&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;

and support for RAC infrastructure, so you can spot the hungriest UNDO eaters for any given instance.&lt;/div&gt;
&lt;br /&gt;
Then the script for Oracle 11g is as follows:&lt;br /&gt;
&lt;pre&gt;set pagesize 400
set linesize 140
col name for a25
col program for a50
col username for a12
col osuser for a12
SELECT a.inst_id, a.sid, c.username, c.osuser, c.program, b.name,
a.value, d.used_urec, d.used_ublk
FROM gv$sesstat a, v$statname b, gv$session c, gv$transaction d
WHERE a.statistic# = b.statistic#
AND a.inst_id = c.inst_id
AND a.sid = c.sid
AND c.inst_id = d.inst_id
AND c.saddr = d.ses_addr
AND a.statistic# = 284
AND a.value &amp;gt; 0
ORDER BY a.value DESC&lt;/pre&gt;
&lt;br /&gt;
If you want to run this script on versions 10g1 and 10g2, just replace 
the statistic# with 176; 216 if your database is 11gR1... or use the 
following version independent script!!! (Hope we don&#39;t change the 
statistic name).&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;set pagesize 400
set linesize 140
col name for a25
col program for a50
col username for a12
col osuser for a12
SELECT a.inst_id, a.sid, c.username, c.osuser, c.program, b.name,
a.value, d.used_urec, d.used_ublk
FROM gv$sesstat a, v$statname b, gv$session c, gv$transaction d
WHERE a.statistic# = b.statistic#
AND a.inst_id = c.inst_id
AND a.sid = c.sid
AND c.inst_id = d.inst_id
AND c.saddr = d.ses_addr
AND b.name = &#39;undo change vector size&#39;
AND a.value &amp;gt; 0
ORDER BY a.value DESC&lt;/pre&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;a href=&quot;http://oracledisect.blogspot.com/2008/05/who-is-using-your-undo-space.html&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://oracledisect.blogspot.com/2008/05/who-is-using-your-undo-space.html&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/3142736853187173661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2012/06/who-is-using-your-undo-space.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/3142736853187173661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/3142736853187173661'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2012/06/who-is-using-your-undo-space.html' title='Who is using your UNDO space?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-1125335226989360361</id><published>2012-06-04T09:56:00.003+07:00</published><updated>2013-01-04T13:37:55.003+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Grid Control 11g"/><category scheme="http://www.blogger.com/atom/ns#" term="Start and Stop Oracle Grid Control 11g"/><category scheme="http://www.blogger.com/atom/ns#" term="Starting and Stopping Oracle Enterprise Manager 11g Grid Control"/><title type='text'>Starting and Stopping Oracle Enterprise Manager 11g Grid Control</title><content type='html'>&lt;div class=&quot;content&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 0px; orphans: 2; padding: 0px; text-align: -webkit-auto; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
This document will detail the steps required to stop and start Oracle Enterprise Manager 11g Grid Control and all its components. For information on installing Oracle Enterprise Manager 11g Grid Control see the post&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.oracledistilled.com/grid-control/installing-oracle-enterprise-manager-grid-control-11gr1-on-linux/&quot; style=&quot;border: 0px; color: #08698c; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; text-decoration: underline; vertical-align: baseline;&quot;&gt;Install Oracle Enterprise Manager Grid Control 11gR1 on Linux&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span id=&quot;more-461&quot; style=&quot;border: 0px none; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
In this document I will be making references to the&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OMS_HOME&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;and&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;AGENT_HOME&lt;/code&gt;. If you do not happen to know what those locations are you can find them in the&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/oratab&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;file.&lt;/div&gt;
&lt;pre class=&quot;brush: plain; title: ; notranslate&quot; style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 1.5em 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot; title=&quot;&quot;&gt;[oracle@gc bin]$ grep -E &#39;oms|agent&#39; /etc/oratab
*:/u02/app/oracle/product/weblogic/oms11g:N
*:/u02/app/oracle/product/weblogic/agent11g:N
[oracle@gc bin]$
&lt;/pre&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
So in this example the&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OMS_HOME&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;would be&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/u02/app/oracle/product/weblogic/oms11g&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;and&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;AGENT_HOME&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;would be&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/u02/app/oracle/product/weblogic/agent11g&lt;/code&gt;.&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;i style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: italic; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NOTE:&lt;/i&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;The Oracle Enterprise Manger 11g Grid Control install process puts a script called&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;gcstartup&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;in&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/init.d&lt;/code&gt;that will stop and start the Oracle Management Service and Agent on OS startup/shutdown. It does not start or stop the repository database. If you would like to stop the automated startup/shutdown of Grid Control services place comments in front of the&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OMS&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;and&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;AGENT&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;home directories in the&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/oratab&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;file or remove the script&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/init.d/gcstartup&lt;/code&gt;.&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b style=&quot;font-weight: bold;&quot;&gt;Stopping Oracle Enterprise Manager 11g Grid Control&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
Stop the Oracle Management Service&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
From the&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OMS_HOME&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;directory run the following to stop the OMS and WebTier services.&lt;/div&gt;
&lt;pre class=&quot;brush: plain; title: ; notranslate&quot; style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 1.5em 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot; title=&quot;&quot;&gt;OMS_HOME/bin/emctl stop oms –all

[oracle@gc ~]$ /u02/app/oracle/product/weblogic/oms11g/bin/emctl stop oms -all
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
[oracle@gc ~]$
&lt;/pre&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
Note if you do not include the –all flag the HTTP services for the WebLogic Server will not be shutdown.&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
Stop the Oracle Management Agent&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
From the&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;AGENT_HOME&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;directory run the following to stop the Agent.&lt;/div&gt;
&lt;pre class=&quot;brush: plain; title: ; notranslate&quot; style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 1.5em 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot; title=&quot;&quot;&gt;AGENT_HOME/bin/emctl stop agent

[oracle@gc ~]$ /u02/app/oracle/product/weblogic/agent11g/bin/emctl stop agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.
[oracle@gc ~]$
&lt;/pre&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
Stop the repository database&lt;/div&gt;
&lt;pre class=&quot;brush: plain; title: ; notranslate&quot; style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 1.5em 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot; title=&quot;&quot;&gt;[oracle@gc ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue May 11 11:41:21 2010

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL&amp;gt; shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL&amp;gt; exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@gc ~]$
&lt;/pre&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
Stop the Listener&lt;/div&gt;
&lt;pre class=&quot;brush: plain; title: ; notranslate&quot; style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 1.5em 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot; title=&quot;&quot;&gt;[oracle@gc ~]$ lsnrctl stop

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-MAY-2010 11:42:03

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=gc)(PORT=1521)))
The command completed successfully
[oracle@gc ~]$
&lt;/pre&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
That is it. Oracle Enterprise Manager 11g Grid Control and all associated services are now shutdown.&lt;br /&gt;
&lt;b style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;Starting Oracle Enterprise Manager 11g Grid Control&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
Start the Listener&lt;/div&gt;
&lt;pre class=&quot;brush: plain; title: ; notranslate&quot; style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 1.5em 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot; title=&quot;&quot;&gt;[oracle@gc ~]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-MAY-2010 12:58:01

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Starting /u02/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u02/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u02/app/oracle/diag/tnslsnr/gc/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gc.localdomain)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=gc)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                11-MAY-2010 12:58:01
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u02/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u02/app/oracle/diag/tnslsnr/gc/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gc.localdomain)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@gc ~]$
&lt;/pre&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
Start the repository database&lt;/div&gt;
&lt;pre class=&quot;brush: plain; title: ; notranslate&quot; style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 1.5em 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot; title=&quot;&quot;&gt;[oracle@gc ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue May 11 12:58:49 2010

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL&amp;gt; startup
ORACLE instance started.

Total System Global Area 1272213504 bytes
Fixed Size                  1336260 bytes
Variable Size             805309500 bytes
Database Buffers          452984832 bytes
Redo Buffers               12582912 bytes
Database mounted.
Database opened.
SQL&amp;gt; exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@gc ~]$
&lt;/pre&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
Start the Oracle Management Service&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
From the&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OMS_HOME&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;directory run the following to start the OMS and WebTier services&lt;/div&gt;
&lt;pre class=&quot;brush: plain; title: ; notranslate&quot; style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 1.5em 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot; title=&quot;&quot;&gt;OMS_HOME/bin/emctl start oms

[oracle@gc ~]$ /u02/app/oracle/product/weblogic/oms11g/bin/emctl start oms
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Successfully Started
Oracle Management Server is Up
[oracle@gc ~]$
&lt;/pre&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
Start the Oracle Management Agent&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
From the&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;AGENT_HOME&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;directory run the following to start the Agent.&lt;/div&gt;
&lt;pre class=&quot;brush: plain; title: ; notranslate&quot; style=&quot;border: 0px; font-family: &#39;andale mono&#39;, &#39;lucida console&#39;, monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.5; margin: 1.5em 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot; title=&quot;&quot;&gt;AGENT_HOME/bin/emctl start agent

[oracle@gc ~]$ /u02/app/oracle/product/weblogic/agent11g/bin/emctl start agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting agent ........ started.
[oracle@gc ~]$
&lt;/pre&gt;
&lt;div style=&quot;border: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; margin: 0px 0px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
Enterprise Manager 11g Grid Control and all associated services and can be accessed at https://servername.domain:7799/em.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://www.oracledistilled.com/grid-control/starting-and-stopping-oracle-enterprise-manager-11g-grid-control/&quot;&gt;http://www.oracledistilled.com/grid-control/starting-and-stopping-oracle-enterprise-manager-11g-grid-control/&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/1125335226989360361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2012/06/starting-and-stopping-oracle-enterprise.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/1125335226989360361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/1125335226989360361'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2012/06/starting-and-stopping-oracle-enterprise.html' title='Starting and Stopping Oracle Enterprise Manager 11g Grid Control'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-854850053053828086</id><published>2012-05-06T20:17:00.000+07:00</published><updated>2012-05-06T20:17:17.488+07:00</updated><title type='text'>How to remove Agent/targets from Grid Control neatly</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Arial, sans-serif; font-size: 12px; margin-bottom: 1em; margin-top: 1em; text-align: justify;&quot;&gt;
I was given the task to remove the target host/agents and other listed targets of Server1 from Oracle grid control. At first I thought it was very easy and I was definitely correct. Here’s what happened:&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Arial, sans-serif; font-size: 12px; margin-bottom: 1em; margin-top: 1em; text-align: justify;&quot;&gt;
From OEM Grid Control I clicked on targets and selected the Server1 from the list. Then from its homepage I clicked on the the targets and then I eventually select all the targets except of course from the agent. Note: (the management agent of server1 must be running to do this). The targets were successfully deleted and now the only thing left is the host and the agent of Server1.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Arial, sans-serif; font-size: 12px; margin-bottom: 1em; margin-top: 1em; text-align: justify;&quot;&gt;
To remove the agent and host form the list, I stop the management agent of server1 then I went back to my OEM Grid control to remove the host Server1. Now there comes the challenge, No matter how many times I tried to delete the host Server1 from oem grid control It seems like the page is just running and nothing happens. No matter how long I’ve waited the host Server1 still remains on the list.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Arial, sans-serif; font-size: 12px; margin-bottom: 1em; margin-top: 1em; text-align: justify;&quot;&gt;
Now to clean it manually, I connect to the OEM Grid Repository and perform the following:&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Arial, sans-serif; font-size: 12px; margin-bottom: 1em; margin-top: 1em; text-align: justify;&quot;&gt;
SQL&amp;gt; select target_name from mgmt_targets where target_type=’oracle_emd’;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Arial, sans-serif; font-size: 12px; margin-bottom: 1em; margin-top: 1em; text-align: justify;&quot;&gt;
This command show me the list of all the registered targets from my OEM and I can see that Server1 is still there. Then to manually remove Server1 from the list, I then execute:&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Arial, sans-serif; font-size: 12px; margin-bottom: 1em; margin-top: 1em; text-align: justify;&quot;&gt;
SQL&amp;gt; exec mgmt_admin.cleanup_agent(‘Server1:3872′);&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Arial, sans-serif; font-size: 12px; margin-bottom: 1em; margin-top: 1em; text-align: justify;&quot;&gt;
It will take a while at least 3 to 5 mins the most. Once it was completed&amp;nbsp; I quickly checked my OEM Grid Control Target List and voila!!! Server1 was successfully removed from the target list together with its agent.&lt;/div&gt;
&lt;address style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Arial, sans-serif; font-size: 12px; text-align: justify;&quot;&gt;

Thanks to Metalink&amp;nbsp;&lt;span style=&quot;font-family: helvetica;&quot;&gt;&lt;strong&gt;Note:454081.1&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;and to Luis Cardenas post (http://www.lazydba.com/oracle/0__146127.html)&amp;nbsp; who gave me the idea to solve my problem.&lt;/address&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;a href=&quot;http://dbamac.wordpress.com/2008/08/06/how-to-remove-agenttargets-from-grid-control-neatly/&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;http://dbamac.wordpress.com/2008/08/06/how-to-remove-agenttargets-from-grid-control-neatly/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/854850053053828086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2012/05/how-to-remove-agenttargets-from-grid.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/854850053053828086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/854850053053828086'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2012/05/how-to-remove-agenttargets-from-grid.html' title='How to remove Agent/targets from Grid Control neatly'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-4732475913375909958</id><published>2012-04-20T11:20:00.000+07:00</published><updated>2013-01-04T13:38:34.305+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><category scheme="http://www.blogger.com/atom/ns#" term="mount windowns folder"/><title type='text'>Mount Windows folder on Linux</title><content type='html'>&lt;h2&gt;
&lt;/h2&gt;
&lt;div class=&quot;date&quot;&gt;
&lt;/div&gt;
Sometimes, we need to mount a Windows folder on Linux. In order to do it, let’s follow these steps:&lt;br /&gt;
1. Create a directory in Windows, share it and give full permission:&lt;br /&gt;
&lt;a href=&quot;http://kamranagayev.com/wp-content/uploads/2009/04/mount_11.jpg&quot;&gt;&lt;img alt=&quot;mount_1&quot; class=&quot;alignnone size-medium wp-image-223&quot; height=&quot;253&quot; src=&quot;http://kamranagayev.com/wp-content/uploads/2009/04/mount_11.jpg?w=300&quot; title=&quot;mount_1&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
2. Create new directory in /tmp directory&amp;nbsp;on Linux, name it to  “test_dir” and mount shared Windows directory into that directory by  running below code:&lt;br /&gt;
&lt;b&gt;mount -t cifs -o username=#####,password=###### //192.168.##.##/test&amp;nbsp; &amp;nbsp;/tmp/test_dir&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://kamranagayev.com/wp-content/uploads/2009/04/mount_231.jpg&quot;&gt;&lt;img alt=&quot;mount_23&quot; class=&quot;alignnone size-medium wp-image-229&quot; height=&quot;269&quot; src=&quot;http://kamranagayev.com/wp-content/uploads/2009/04/mount_231.jpg?w=300&quot; title=&quot;mount_23&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
3. Now, by creating new file and folder in Windows directory, we can  get them from Linux box. Let’s create a file and a directory in Windows  folder&lt;br /&gt;
&lt;a href=&quot;http://kamranagayev.com/wp-content/uploads/2009/04/mount_31.jpg&quot;&gt;&lt;img alt=&quot;mount_3&quot; class=&quot;alignnone size-medium wp-image-226&quot; height=&quot;182&quot; src=&quot;http://kamranagayev.com/wp-content/uploads/2009/04/mount_31.jpg?w=300&quot; title=&quot;mount_3&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
4. At last, let’s check it from Linux, whether we can see the file and the directory or not&lt;br /&gt;
&lt;a href=&quot;http://kamranagayev.com/wp-content/uploads/2009/04/mount_41.jpg&quot;&gt;&lt;img alt=&quot;mount_4&quot; class=&quot;alignnone size-medium wp-image-227&quot; height=&quot;269&quot; src=&quot;http://kamranagayev.com/wp-content/uploads/2009/04/mount_41.jpg?w=300&quot; title=&quot;mount_4&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
As you can see, we can mount any Windows folder in Linux with very easy steps&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;a href=&quot;http://kamranagayev.com/2009/04/06/mount-windows-folder-on-linux/&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;http://kamranagayev.com/2009/04/06/mount-windows-folder-on-linux/ &lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/4732475913375909958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2012/04/mount-windows-folder-on-linux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/4732475913375909958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/4732475913375909958'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2012/04/mount-windows-folder-on-linux.html' title='Mount Windows folder on Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-4505205605333083830</id><published>2012-03-22T08:53:00.001+07:00</published><updated>2016-02-17T22:02:22.665+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ORA-00604: error occurred at recursive SQL level 1"/><category scheme="http://www.blogger.com/atom/ns#" term="ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE"/><title type='text'>ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables</title><content type='html'>&lt;div style=&quot;background-color: white; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #282828; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 4pt; padding-left: 0in; padding-right: 0in; padding-top: 0in; text-align: justify;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 4pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables .&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;font-size: 12px;&quot;&gt;
&lt;span class=&quot;MsoBookTitle&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Scenario&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: 18px;&quot;&gt;&lt;b&gt;I was getting  this error when I was trying to drop a schema.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-size: 12px;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;courier new&amp;quot;;&quot;&gt;Sql&amp;gt; drop user test cascade;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0in; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;ERROR at line 1:&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;ORA-00604: error occurred at recursive SQL level 1&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;apple-style-span&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 10pt; line-height: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Logged in as Test user and checked for queue tables .&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;SQL&amp;gt; select * from user_queue_tables;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;no rows selected&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;SQL&amp;gt; select OWNER, NAME, QUEUE_TABLE, ENQUEUE_ENABLED, DEQUEUE_ENABLED&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;from DBA_QUEUES where OWNER=&#39;TEST&#39;;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;no rows selected&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
However I was able to locate few queue tables in the schema when I used&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Sql&amp;gt; select table_name from user_tables;&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Got few Tables starting with&amp;nbsp;&lt;span class=&quot;apple-style-span&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 10pt; line-height: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;AQ$_&lt;/span&gt;&amp;nbsp;*******&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;apple-style-span&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 10pt; line-height: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Tried to delete these tables using the DBMS_AQADM.DROP_QUEUE_TABLE procedure . However ended with the following error message .&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;SQL&amp;gt; begin&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;2&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;DBMS_AQADM.DROP_QUEUE_TABLE(‘&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;AQ$_&lt;/span&gt;test&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&#39;);&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;3&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;end;&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;4&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;5&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;/&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;begin&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;*&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;ERROR at line 1:&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;ORA-24002: QUEUE_TABLE SCOTT.&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;AQ$_&lt;/span&gt;test&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;does not exist&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;ORA-06512: at &quot;SYS.DBMS_AQADM_SYS&quot;, line 4084&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;ORA-06512: at &quot;SYS.DBMS_AQADM&quot;, line 197&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 10pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;ORA-06512: at line 2&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 4pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;&quot;&gt;
&lt;div class=&quot;MsoTitle&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Working solution :&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Logged in as sys and issued the following command :&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;alter session set events &#39;10851 trace name context forever, level 2&#39;;&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
and then dropped all the AQ$.*****&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;tables from sys successfully.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Finally dropped the particular schema .&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 12px; margin-bottom: 0in; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Issue resolved&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, sans-serif; font-size: 12px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/4505205605333083830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2012/03/ora-24005-must-use-dbmsaqadmdropqueueta.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/4505205605333083830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/4505205605333083830'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2012/03/ora-24005-must-use-dbmsaqadmdropqueueta.html' title='ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-8061176843039434100</id><published>2012-03-16T15:38:00.000+07:00</published><updated>2012-06-29T14:21:35.134+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="date formatting"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux date formatting"/><title type='text'>Linux shell script date formatting</title><content type='html'>Linux date FAQ:&amp;nbsp;How do&amp;nbsp;I create a formatted  date in Linux?&amp;nbsp;(Most likely, &quot;How do I create a formatted date I can use  in a Linux shell script?&quot;)&lt;br /&gt;
I just ran into a case where I&amp;nbsp;needed to create a formatted date in a Linux shell script, where the date format looks like this:&lt;br /&gt;
&lt;pre&gt;2010-07-11&lt;/pre&gt;
To create this formatted date string, I&amp;nbsp;just used the Linux date  command, using the &quot;+&quot;&amp;nbsp;sign to specify that I want to use the date  formatting option, like this:&lt;br /&gt;
&lt;pre&gt;thedate=`date +&quot;%Y-%m-%d&quot;`&lt;/pre&gt;
The Linux&amp;nbsp;&lt;em&gt;date&lt;/em&gt; command shown in this line of code creates  the date string in the format I want, and then I save the date output to  a Linux shell script variable named &quot;thedate&quot;.&lt;br /&gt;
This just shows one possible way to format a date in a Linux shell  script. Of course you can use &#39;-&#39;, &#39;.&#39;, and many other characters as  date field separators, or use no characters at all.&lt;br /&gt;
&lt;h2&gt;
More Linux date formatting information&lt;/h2&gt;
For more information on other Linux date formatting options (there  are many more date formatting options), take a look at the man page for  the date command on your Linux system, like this:&lt;br /&gt;
&lt;pre&gt;man date
&lt;/pre&gt;
When I run that&amp;nbsp;command on a CentOS Linux system, it shows these date formatting operators:&lt;br /&gt;
&lt;pre&gt;%%     a literal %
%a     locale’s abbreviated weekday name (e.g., Sun)
%A     locale’s full weekday name (e.g., Sunday)
%b     locale’s abbreviated month name (e.g., Jan)
%B     locale’s full month name (e.g., January)
%c     locale’s date and time (e.g., Thu Mar  3 23:05:25 2005)
%C     century; like %Y, except omit last two digits (e.g., 21)
%d     day of month (e.g, 01)
%D     date; same as %m/%d/%y
%e     day of month, space padded; same as %_d
%F     full date; same as %Y-%m-%d
%g     last two digits of year of ISO week number (see %G)
%G     year of ISO week number (see %V); normally useful only with %V
%h     same as %b
%H     hour (00..23)
%I     hour (01..12)
%j     day of year (001..366)
%k     hour ( 0..23)
%l     hour ( 1..12)
%m     month (01..12)
%M     minute (00..59)
%n     a newline
%N     nanoseconds (000000000..999999999)
%p     locale’s equivalent of either AM or PM; blank if not known
%P     like %p, but lower case
%r     locale’s 12-hour clock time (e.g., 11:11:04 PM)
%R     24-hour hour and minute; same as %H:%M
%s     seconds since 1970-01-01 00:00:00 UTC
%S     second (00..60)
%t     a tab
%T     time; same as %H:%M:%S
%u     day of week (1..7); 1 is Monday
%U     week number of year, with Sunday as first day of week (00..53)
%V     ISO week number, with Monday as first day of week (01..53)
%w     day of week (0..6); 0 is Sunday
%W     week number of year, with Monday as first day of week (00..53)
%x     locale’s date representation (e.g., 12/31/99)
%X     locale’s time representation (e.g., 23:13:48)
%y     last two digits of year (00..99)
%Y     year
%z     +hhmm numeric timezone (e.g., -0400)
%:z    +hh:mm numeric timezone (e.g., -04:00)
%::z   +hh:mm:ss numeric time zone (e.g., -04:00:00)
%:::z  numeric time zone with : to necessary precision (e.g., -04, +05:30)
%Z     alphabetic time zone abbreviation (e.g., EDT)
&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
Because Unix and Linux systems are very consistent in this area, you  should be able to write a date formatting command on one Unix or Linux  system, and use that same command on another Unix system.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;a href=&quot;http://www.devdaily.com/linux-unix/date-format-formatted-linux-shell-script-command&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;http://www.devdaily.com/linux-unix/date-format-formatted-linux-shell-script-command&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/8061176843039434100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2012/03/linux-shell-script-date-formatting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/8061176843039434100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/8061176843039434100'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2012/03/linux-shell-script-date-formatting.html' title='Linux shell script date formatting'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-205547492960760328</id><published>2012-02-27T16:50:00.000+07:00</published><updated>2012-02-27T16:50:13.819+07:00</updated><title type='text'>Script to Check Physical Standby in Sync with the Primary</title><content type='html'>http://shrikantrao.wordpress.com/2011/08/03/script-to-check-physical-standby-in-sync-with-the-primary/&lt;br /&gt;
https://support.oracle.com/CSP/main/article?cmd=show&amp;amp;type=NOT&amp;amp;doctype=HOWTO&amp;amp;id=861595.1 &lt;br /&gt;
&lt;br /&gt;
A simple script, on single click will provide us the status of DR sync with primary database.&lt;br /&gt;
&lt;br /&gt;
Script 1) .bat file&lt;br /&gt;
&lt;br /&gt;
sqlplus &quot;sys/sys@prod as sysdba&quot;  @E:\DRSTATUS\onproduction.sql&lt;br /&gt;
sqlplus &quot;sys/sys@standby as sysdba&quot;  @E:\DRSTATUS\onstandby.sql &amp;gt;&amp;gt; E:\cloverdba1_Clover_report\DRSTATUS\drsysn.out&lt;br /&gt;
&lt;br /&gt;
I am appending the second output (for standby) to the same file. So that the output for both will be displayed in a single .out file.&lt;br /&gt;
&lt;br /&gt;
Script 2) onproduction.sql file (On Primary)&lt;br /&gt;
&lt;br /&gt;
set time on&lt;br /&gt;
set lines 200&lt;br /&gt;
&lt;br /&gt;
spool E:\DRSTATUS\drsysn.out&lt;br /&gt;
&lt;br /&gt;
prompt +++++++++++LAST PRODUCTION SEQUENCE GENERATED++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
select to_char(sysdate,&#39;dd-mon-yyyy hh24:mi:ss&#39;) Date from dual;&lt;br /&gt;
SELECT distinct SEQUENCE# &quot;Last Sequence Generated&quot;, THREAD# &quot;Thread&quot;&lt;br /&gt;
FROM V$ARCHIVED_LOG&lt;br /&gt;
WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)&lt;br /&gt;
ORDER BY 1;&lt;br /&gt;
&lt;br /&gt;
spool off&lt;br /&gt;
exit&lt;br /&gt;
&lt;br /&gt;
Script 3) onstandby.sql file (On Physical Standby)&lt;br /&gt;
&lt;br /&gt;
set time on&lt;br /&gt;
set lines 200&lt;br /&gt;
&lt;br /&gt;
prompt ++++++++++++++++++++LAST SEQUENCE RECIEVED FROM PRODUCTION and APPLIED ON STANDBY+++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
SELECT ARCH.THREAD# &quot;Thread&quot;, ARCH.SEQUENCE# &quot;Last Sequence Received&quot;, APPL.SEQUENCE# &quot;Last Sequence Applied&quot;, (ARCH.SEQUENCE# - APPL.SEQUENCE#) &quot;Difference&quot;&lt;br /&gt;
FROM&lt;br /&gt;
(SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,&lt;br /&gt;
(SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL&lt;br /&gt;
WHERE&lt;br /&gt;
ARCH.THREAD# = APPL.THREAD#&lt;br /&gt;
;&lt;br /&gt;
&lt;br /&gt;
prompt ++++++++++++++++++++CHECK FOR GAP AT STANDBY+++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP;&lt;br /&gt;
exit&lt;br /&gt;
&lt;br /&gt;
Explanation:&lt;br /&gt;
&lt;br /&gt;
1. To check availability of redo on standby. This can be done, by checking the output of “last Sequence Generated” in script 2(at primary) with “Last Sequence Received” in script 3(at standby). If the value differs that shows the archive is missing on standby.&lt;br /&gt;
2. To Check for redo applied on standby. The column “difference” in script 3(at standby) should be 0. This specifies that the primary is in sync with physical standby.&lt;br /&gt;
3. Second query of 3rd script will provide detail on archive gap, which redo is still missing at standby.&lt;br /&gt;
&lt;br /&gt;
To demo the archive lag, I have cancelled managed recovery. This will show the number of lag in “difference” column (7 in my case). The Output file will be displayed as,&lt;br /&gt;
&lt;br /&gt;
+++++++++++LAST PRODUCTION SEQUENCE GENERATED++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
TO_CHAR(SYSDATE,&#39;DD-MON-YYYYH&lt;br /&gt;
---------------------------------------------------------------------------&lt;br /&gt;
02-aug-2011 19:03:58&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.00&lt;br /&gt;
&lt;br /&gt;
Last Sequence Generated     Thread&lt;br /&gt;
----------------------- ----------&lt;br /&gt;
582535                  1&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:00.09&lt;br /&gt;
&lt;br /&gt;
SQL*Plus: Release 9.2.0.1.0 - Production on Tue Aug 2 19:08:05 2011&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
Connected to:&lt;br /&gt;
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production&lt;br /&gt;
With the Partitioning, OLAP and Oracle Data Mining options&lt;br /&gt;
JServer Release 9.2.0.8.0 - Production&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++LAST SEQUENCE RECEIVED FROM PRODUCTION and APPLIED ON STANDBY+++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
Thread Last Sequence Received Last Sequence Applied      Difference&lt;br /&gt;
----------  ---------------------- --------------------- ----------&lt;br /&gt;
1           582535                 582528                7&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:02.01&lt;br /&gt;
++++++++++++++++++++CHECK FOR GAP AT STANDBY+++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
no rows selected&lt;br /&gt;
&lt;br /&gt;
Elapsed: 00:00:34.06&lt;br /&gt;
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production&lt;br /&gt;
With the Partitioning, OLAP and Oracle Data Mining options&lt;br /&gt;
JServer Release 9.2.0.8.0 - Production&lt;br /&gt;
&lt;br /&gt;
Ref: How To Check Whether Physical Standby is in Sync with the Primary? [ID 861595.1]&lt;br /&gt;
&lt;br /&gt;
I found out a nice shell script while googling, would like to share,&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Script to check if standby database is in sync and in read only with apply mode&lt;br /&gt;
#&lt;br /&gt;
# Purpose script:&lt;br /&gt;
# This script checks if standby and primary are in sync and if standby is in mode &quot;READ ONLY WITH APPLY&quot;&lt;br /&gt;
# violations will be mailed to recepients defined in this script.&lt;br /&gt;
#&lt;br /&gt;
# Usage script:&lt;br /&gt;
# Place this script on the standby database server in /home/oracle/scripts&lt;br /&gt;
# The following changes will be necessary when implementing this script&lt;br /&gt;
# 1: CONNECTRSTR refers to the connectstring to connect to the primary db from the standby db&lt;br /&gt;
# 2: ORACLE_SID referts to the oracle SID of the standby database&lt;br /&gt;
# 3: ORACLE_HOME refers to the oracle HOME of the standby database&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
#!/usr/bin/ksh&lt;br /&gt;
. /etc/profile&lt;br /&gt;
&lt;br /&gt;
DBSID=PROD                              # Database sid&lt;br /&gt;
CONNECTSTR=scott/tiger@PROD     # Connect string prod&lt;br /&gt;
MAILADR=scott.tiger@everywhere.com      # mail&lt;br /&gt;
NIETERG=2                               # allowed difference between standby log and primary log sequence#&lt;br /&gt;
&lt;br /&gt;
# set the environment to the standby database&lt;br /&gt;
export ORACLE_SID=PROD&lt;br /&gt;
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1&lt;br /&gt;
&lt;br /&gt;
# declare functions to query v$archived_log and other checks&lt;br /&gt;
&lt;br /&gt;
runsqlstb()&lt;br /&gt;
{&lt;br /&gt;
sqlplus -S &amp;lt;&amp;lt; TOTZOVER / as sysdba set heading off select max(sequence#) from v\$archived_log where applied=&#39;YES&#39; and dest_id=2 ; exit TOTZOVER }  runsqlprd() { sqlplus -S ${CONNECTSTR} &amp;lt;&amp;gt; mailtempl&lt;br /&gt;
echo logseq ${DBSID} standby database is $NUMBERSTB &amp;gt;&amp;gt; mailtempl&lt;br /&gt;
echo&lt;br /&gt;
mailx -s &quot;Standby database out of sync &quot; ${MAILADR}  mailtempl&lt;br /&gt;
mailx -s &quot;Fout in script &quot; ${MAILADR}  mailtempl&lt;br /&gt;
errtrap&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
NUMBERPRD=`runsqlprd`&lt;br /&gt;
if [ $? -ne 0 ]&lt;br /&gt;
then&lt;br /&gt;
echo Something wrong with ${DBSID}  &amp;gt; mailtempl&lt;br /&gt;
errtrap&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo standby database is ${NUMBERSTB}&lt;br /&gt;
echo productie database is ${NUMBERPRD}&lt;br /&gt;
&lt;br /&gt;
VERSCHIL=`expr ${NUMBERPRD} - ${NUMBERSTB}`&lt;br /&gt;
echo Standby is $VERSCHIL sequence achter&lt;br /&gt;
mailme&lt;br /&gt;
&lt;br /&gt;
Advertisement</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/205547492960760328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2012/02/script-to-check-physical-standby-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/205547492960760328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/205547492960760328'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2012/02/script-to-check-physical-standby-in.html' title='Script to Check Physical Standby in Sync with the Primary'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-7037636835523676558</id><published>2011-12-07T22:19:00.003+07:00</published><updated>2011-12-07T22:21:20.643+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="howto reset root password"/><category scheme="http://www.blogger.com/atom/ns#" term="reset root password"/><category scheme="http://www.blogger.com/atom/ns#" term="root password"/><title type='text'>HOWTO reset root password in linux redhat</title><content type='html'>Today when i trying to connect to our development database on linux server with root user, but i forget the correct password. :) because i was logging after a 10 months. after that i need to reset root password and this is the following step.&lt;br /&gt;
&lt;br /&gt;
linux machine :&lt;br /&gt;
Red Hat Enterprise Linux AS release 4 (Nahant Update 3)&lt;br /&gt;
and grub loader.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
step.&lt;br /&gt;
1. reboot machine&lt;br /&gt;
2. wait for GRUB splash screen appear&lt;br /&gt;
3. then click on &quot;e&quot; keyword in keyboard  (hit enter)&lt;br /&gt;
4. after that another window will open again click on &quot;e&quot; keyword in keyword to select &quot;KERNAL ... &quot; from list of value. (hit enter)&lt;br /&gt;
5.  then type &quot;single&quot; included space (hit enter)&lt;br /&gt;
6. then type &quot;b&quot; from keyboard to boot (hit enter)&lt;br /&gt;
7. system boot up as single user mode &lt;br /&gt;
8. you will see # prompt , here type &quot;passwd&quot; command to change root password&lt;br /&gt;
9. reboot&lt;br /&gt;
10. enjoy to logging with new user&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;reference:&lt;/b&gt; &lt;a href=&quot;http://www.wallpaperama.com/forums/how-to-reset-linux-root-forgotten-passwords-get-retrieve-root-password-t956.html&quot;&gt;http://www.wallpaperama.com/forums/how-to-reset-linux-root-forgotten-passwords-get-retrieve-root-password-t956.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/7037636835523676558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2011/12/howto-reset-root-password-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/7037636835523676558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/7037636835523676558'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2011/12/howto-reset-root-password-in-linux.html' title='HOWTO reset root password in linux redhat'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-8546238511734856899</id><published>2011-11-04T10:41:00.005+07:00</published><updated>2012-07-04T17:03:16.460+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to Get the Locked Tables List In Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="locked tables"/><category scheme="http://www.blogger.com/atom/ns#" term="running queries"/><title type='text'>How to Get the Locked Tables List In Oracle</title><content type='html'>Get the Locked Tables List&lt;br /&gt;
&lt;blockquote&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;SELECT&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;l&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;inst_id&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;SUBSTR&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;L&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;ORACLE_USERNAME&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; ORA_USER&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;SUBSTR&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;L&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;SESSION_ID&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;SID,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; S&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;serial#&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;SUBSTR&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;O&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;OWNER || &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&#39;.&#39;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; || O&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;OBJECT_NAME&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;OBJECT,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;P.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;SPID OS_PID&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;DECODE&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;L&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;LOCKED_MODE&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&#39;NONE&#39;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&#39;NULL&#39;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&#39;ROW SHARE&#39;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&#39;ROW EXCLUSIVE&#39;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&#39;SHARE&#39;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&#39;SHARE ROW EXCLUSIVE&#39;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&#39;EXCLUSIVE&#39;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;NULL)&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOCK_MODE&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;FROM&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;GV_$LOCKED_OBJECT L&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBA_OBJECTS O&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;GV_$SESSION S&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;GV_$PROCESS &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;P&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; L&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;OBJECT_ID &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; O&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;OBJECT_ID&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; l&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;inst_id &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; s&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;inst_id&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; L&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;SESSION_ID &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; S&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.SID&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; s&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;inst_id &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;p.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;inst_id&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; S&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;PADDR &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;P.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;ADDR&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;(+)&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;ORDER&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;BY&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp; l&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;inst_id&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;span style=&quot;text-decoration: underline;&quot;&gt;And to get the details of a particular session given by the sid in the above query use this query &lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
select STATUS ,&amp;nbsp; PROCESS , PROGRAM , LOGON_TIME&amp;nbsp; from v$session where sid=&lt;sid&gt;&lt;/sid&gt;&lt;/blockquote&gt;
&lt;br /&gt;
This will give you queries currently running for more than 60 seconds. Note that it prints multiple lines per running query if the SQL has multiple lines. Look at the sid,serial# to see what belongs together.&lt;br /&gt;
&lt;blockquote&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; s&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;.sid,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;serial#&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;last_call_et &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: Courier; font-size: 10pt;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; mins_running&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; tab-stops: 111.35pt; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; q&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;sql_text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; v$session s&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;JOIN&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; v$sqltext_with_newlines q &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;ON&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; s&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;sql_address &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; q&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;address&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; status &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: red; font-family: Courier; font-size: 10pt;&quot;&gt;&#39;ACTIVE&#39;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;TYPE&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: red; font-family: Courier; font-size: 10pt;&quot;&gt;&#39;BACKGROUND&#39;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; last_call_et &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: maroon; font-family: Courier; font-size: 10pt;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;ORDER&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;BY&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;sid,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; serial#&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt; q&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Courier; font-size: 10pt;&quot;&gt;piece&lt;/span&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/8546238511734856899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2011/11/how-to-get-locked-tables-list-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/8546238511734856899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/8546238511734856899'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2011/11/how-to-get-locked-tables-list-in-oracle.html' title='How to Get the Locked Tables List In Oracle'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-8003289223090019921</id><published>2011-11-01T22:03:00.001+07:00</published><updated>2011-11-01T22:16:38.692+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="archivelog mode"/><category scheme="http://www.blogger.com/atom/ns#" term="noarchivelog mode"/><title type='text'>Setting ORACLE DB into noarchivelog mode</title><content type='html'>Steps when the database state is down:&lt;br /&gt;
1. Login to sqlplus&lt;br /&gt;
&lt;code&gt;&amp;nbsp; - sqlplus /nolog&lt;br /&gt;
&amp;nbsp; - connect / as sysdba&lt;/code&gt;&lt;br /&gt;
2. The db must be mounted EXCLUSIVE and not open for operation&lt;br /&gt;
&lt;code&gt;&amp;nbsp; - startup mount;&lt;/code&gt;&lt;br /&gt;
3. Check the log mode status of the database&lt;br /&gt;
&lt;code&gt;&amp;nbsp; - select log_mode from v$database;&lt;/code&gt;&lt;br /&gt;
4. Setting it to noarchivelog mode&lt;br /&gt;
&lt;code&gt;&amp;nbsp; - alter database noarchivelog;&lt;/code&gt;&lt;br /&gt;
5. Setting db open for user operation&lt;br /&gt;
&lt;code&gt;&amp;nbsp; - alter database open;&lt;/code&gt;&lt;br /&gt;
6. Reverting back to archivelog mode&lt;br /&gt;
&lt;code&gt;&amp;nbsp; - alter database archivelog;&lt;/code&gt;</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/8003289223090019921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2011/11/setting-oracle-db-into-noarchivelog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/8003289223090019921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/8003289223090019921'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2011/11/setting-oracle-db-into-noarchivelog.html' title='Setting ORACLE DB into noarchivelog mode'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-2202358267021966442</id><published>2011-10-21T16:41:00.002+07:00</published><updated>2011-12-05T18:23:56.556+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Network File System"/><category scheme="http://www.blogger.com/atom/ns#" term="nfs"/><category scheme="http://www.blogger.com/atom/ns#" term="setting up NFS"/><title type='text'>Configuration NFS (Network File System)</title><content type='html'>&lt;b&gt;Server side &lt;/b&gt;10.10.10.10 &lt;br /&gt;
# cat /etc/exports&lt;br /&gt;
/d01/backup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.10.10.20(ro)&lt;br /&gt;
&lt;br /&gt;
# cat /etc/hosts.deny&lt;br /&gt;
#&lt;br /&gt;
# hosts.deny&amp;nbsp;&amp;nbsp;&amp;nbsp; This file describes the names of the hosts which are&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *not* allowed to use the local INET services, as decided&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by the &#39;/usr/sbin/tcpd&#39; server.&lt;br /&gt;
#&lt;br /&gt;
# The portmap line is redundant, but it is left to remind you that&lt;br /&gt;
# the new secure portmap uses hosts.deny and hosts.allow.&amp;nbsp; In particular&lt;br /&gt;
# you should know that NFS uses portmap!&lt;br /&gt;
&lt;br /&gt;
portmap:ALL&lt;br /&gt;
lockd:ALL&lt;br /&gt;
mountd:ALL&lt;br /&gt;
rquotad:ALL&lt;br /&gt;
statd:ALL&lt;br /&gt;
&lt;br /&gt;
# cat /etc/hosts.allow&lt;br /&gt;
#&lt;br /&gt;
# hosts.allow&amp;nbsp;&amp;nbsp; This file describes the names of the hosts which are&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allowed to use the local INET services, as decided&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by the &#39;/usr/sbin/tcpd&#39; server.&lt;br /&gt;
#&lt;br /&gt;
portmap: 10.10.10.20&lt;br /&gt;
lockd: 10.10.10.20&lt;br /&gt;
rquotad: 10.10.10.20&lt;br /&gt;
mountd: 10.10.10.20&lt;br /&gt;
statd: 10.10.10.20&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# cd /sbin/&lt;br /&gt;
# portmap&lt;br /&gt;
&lt;br /&gt;
# cd /usr/sbin/&lt;br /&gt;
# rpc.mountd&lt;br /&gt;
# rpc.nfsd&lt;br /&gt;
# rpc.statd&lt;br /&gt;
# rpc.lockd&lt;br /&gt;
# rpc.rquotad&lt;br /&gt;
# rpcinfo -p&lt;br /&gt;
&amp;nbsp;&amp;nbsp; program vers proto&amp;nbsp;&amp;nbsp; port&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp; portmapper&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp; portmapper&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100005&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp;&amp;nbsp; 657&amp;nbsp; mountd&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100005&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp; 660&amp;nbsp; mountd&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100005&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp;&amp;nbsp; 657&amp;nbsp; mountd&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100005&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp; 660&amp;nbsp; mountd&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100005&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp;&amp;nbsp; 657&amp;nbsp; mountd&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100005&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp; 660&amp;nbsp; mountd&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100003&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp; 2049&amp;nbsp; nfs&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100003&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp; 2049&amp;nbsp; nfs&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100003&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp; 2049&amp;nbsp; nfs&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; udp&amp;nbsp; 35144&amp;nbsp; nlockmgr&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; udp&amp;nbsp; 35144&amp;nbsp; nlockmgr&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp; udp&amp;nbsp; 35144&amp;nbsp; nlockmgr&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100003&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp; 2049&amp;nbsp; nfs&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100003&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp; 2049&amp;nbsp; nfs&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100003&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp; 2049&amp;nbsp; nfs&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; tcp&amp;nbsp; 34377&amp;nbsp; nlockmgr&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; tcp&amp;nbsp; 34377&amp;nbsp; nlockmgr&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp; tcp&amp;nbsp; 34377&amp;nbsp; nlockmgr&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100024&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp;&amp;nbsp; 801&amp;nbsp; status&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100024&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp; 804&amp;nbsp; status&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100011&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp;&amp;nbsp; 804&amp;nbsp; rquotad&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100011&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp;&amp;nbsp; 804&amp;nbsp; rquotad&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100011&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp; 807&amp;nbsp; rquotad&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100011&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp; 807&amp;nbsp; rquotad&lt;br /&gt;
# exportfs -ra&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Client side &lt;/b&gt;10.10.10.20&lt;br /&gt;
# cd /sbin/&lt;br /&gt;
# portmap&lt;br /&gt;
# service portmap status&lt;br /&gt;
# rpcinfo -p&lt;br /&gt;
&amp;nbsp;&amp;nbsp; program vers proto&amp;nbsp;&amp;nbsp; port&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp; portmapper&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp; portmapper&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; udp&amp;nbsp; 61494&amp;nbsp; nlockmgr&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; udp&amp;nbsp; 61494&amp;nbsp; nlockmgr&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp; udp&amp;nbsp; 61494&amp;nbsp; nlockmgr&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; tcp&amp;nbsp; 53241&amp;nbsp; nlockmgr&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; tcp&amp;nbsp; 53241&amp;nbsp; nlockmgr&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100021&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp; tcp&amp;nbsp; 53241&amp;nbsp; nlockmgr&lt;br /&gt;
# mount 10.10.10.10:/d01/backup /d01/backup</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/2202358267021966442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2011/10/configuration-nfs-network-file-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/2202358267021966442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/2202358267021966442'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2011/10/configuration-nfs-network-file-system.html' title='Configuration NFS (Network File System)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6930610543009221558.post-8405370742785489183</id><published>2011-07-18T17:52:00.012+07:00</published><updated>2016-01-20T22:01:31.975+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Chuyển đổi file Excel xls sang file csv vẫn giữ font tiếng Việt"/><category scheme="http://www.blogger.com/atom/ns#" term="Convert xls to csv unicode"/><category scheme="http://www.blogger.com/atom/ns#" term="font Tiếng Việt trong csv file"/><title type='text'>Chuyển đổi file Excel xls sang file csv vẫn giữ font tiếng Việt unicode</title><content type='html'>&lt;b&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div class=&quot;post-header&quot;&gt;
&lt;div id=&quot;hit-counter&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&amp;nbsp;Mấy hôm nay gặp vấn đề về font tiếng Việt với&amp;nbsp; file csv. Vấn đề chi tiết như sau.&lt;br /&gt;
&amp;nbsp;Mình có file dữ liệu là excel *.xls . Vì nhu cầu công việc mình cần phải chuyển nó sang file có định dạng *.csv để import vào một ứng dụng của công ty. Mặc dù trong Excel có chức năng Save As, chọn type là *.csv; nhưng Excel lại không hỗ trợ Unicode. Do đó file *.csv sau khi tạo bằng chức năng Save As của Excel bị mất font tiếng Việt. &lt;br /&gt;
&amp;nbsp;Lên net tìm một một buổi chẳng có chỉ thấy ai làm được. Chỉ có cách của &lt;a href=&quot;http://anhgolden.blogspot.com/2010/11/chuyen-oi-file-excel-xls-sang-csv.html&quot; style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Anhgolden&#39;s Blog!&lt;/span&gt;&lt;/a&gt; . Nhưng cách này thì rườm rà, không hay.&lt;br /&gt;
Thế là mình quyết định viết một macro ngay trên Excel để chuyển font Unicode sang UTF8. Rồi sau đó dùng chức năng Save As của Excel để lưu ra file *.csv. Vì đặc tính của UTF8 là dùng nhiều ký tự 1byte để biểu diễn cho một ký tự Unicode nhiều bytes. Nên file *.csv tạo ra vẫn có tiếng Việt. Và có thể import vào ứng dụng của công ty. Hiện nay, hầu hết các ứng dụng đều hỗ trợ UTF8(nhưng Excel không hiễn thị được tiếng Việt UTF8 nhé).&lt;br /&gt;
Giờ thì chỉ mỗi việc mở file excel có macro (&lt;a href=&quot;http://www.4shared.com/office/J6jRU6QBce/convert_unicode_to_utf8_for_cs.html&quot;&gt;Link download&lt;/a&gt;) run macro để chuyển font Unicode sang UTF8, và Save As là có file *.csv với font Tiếng Việt. Bài viết giúp được bạn comment cảm ơn 1 tiếng nhé.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; Dưới đây là demo:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/mzEejWQKO3U/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;490&quot; src=&quot;https://www.youtube.com/embed/mzEejWQKO3U?feature=player_embedded&quot; width=&quot;570&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://soidamientrung.blogspot.com/feeds/8405370742785489183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soidamientrung.blogspot.com/2011/07/chuyen-oi-file-excel-xls-sang-csv.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/8405370742785489183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6930610543009221558/posts/default/8405370742785489183'/><link rel='alternate' type='text/html' href='http://soidamientrung.blogspot.com/2011/07/chuyen-oi-file-excel-xls-sang-csv.html' title='Chuyển đổi file Excel xls sang file csv vẫn giữ font tiếng Việt unicode'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/mzEejWQKO3U/default.jpg" height="72" width="72"/><thr:total>11</thr:total></entry></feed>