<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Punya Dwi Budhiana Euy</title>
	<atom:link href="http://dwibudiana.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dwibudiana.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 23 Nov 2007 04:27:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dwibudiana.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Punya Dwi Budhiana Euy</title>
		<link>http://dwibudiana.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dwibudiana.wordpress.com/osd.xml" title="Punya Dwi Budhiana Euy" />
	<atom:link rel='hub' href='http://dwibudiana.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Oracle Import/ Export FAQ</title>
		<link>http://dwibudiana.wordpress.com/2007/11/23/oracle-import-export-faq/</link>
		<comments>http://dwibudiana.wordpress.com/2007/11/23/oracle-import-export-faq/#comments</comments>
		<pubDate>Fri, 23 Nov 2007 03:18:40 +0000</pubDate>
		<dc:creator>dwibudiana</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dwibudiana.wordpress.com/2007/11/23/oracle-import-export-faq/</guid>
		<description><![CDATA[Topics·  What is import/export and why does one need it? ·  How does one use the import/export utilities? ·  Can one export only a subset of a table? ·  Can one monitor how fast a table is imported? ·  Can one import tables to a different tablespace? ·  Does one need to drop/ truncate objects [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dwibudiana.wordpress.com&amp;blog=2134828&amp;post=9&amp;subd=dwibudiana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="font-size:18pt;color:black;font-family:Arial;">Topics</span></strong><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#WHATIS#WHATIS"><span>What is import/export and why does one need it?</span></a> </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#USE#USE"><span>How does one use the import/export utilities?</span></a> </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#SUBSET#SUBSET"><span>Can one export only a subset of a table?</span></a> </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#MON#MON"><span>Can one monitor how fast a table is imported?</span></a> </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TS#TS"><span>Can one import tables to a different tablespace?</span></a> </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#DROP#DROP"><span>Does one need to drop/ truncate objects before importing?</span></a> </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#VER#VER"><span>Can one import/export between different versions of Oracle?</span></a> </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#SIZE#SIZE"><span>Can one export to multiple files?/ Can one beat the Unix 2 Gig limit?</span></a> </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#SPEED#SPEED"><span>How can one improve Import/ Export performance?</span></a> </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#ERRS#ERRS"><span>What are the common Import/ Export problems?</span></a> </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#INFO#INFO"><span>Where can one get more info about the Import/ Export utilities?</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><span style="font-size:10pt;color:black;font-family:Arial;"><a href="http://www.orafaq.com/faq"><span>Back to Oracle FAQ Index</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><a name="WHATIS"></a><strong><span style="font-size:13.5pt;color:black;font-family:Arial;">What is import/export and why does one need it?</span></strong><span></span><span style="font-size:10pt;color:black;font-family:Arial;">The Oracle export (EXP) and import (IMP) utilities are used to perform logical database backup and recovery. They are also used to move Oracle data from one machine, database or schema to another. </span><span style="font-size:10pt;color:black;font-family:Arial;">The imp/exp utilities use an Oracle proprietary binary file format and can thus only be used between Oracle databases. One cannot export data and expect to import it into a non-Oracle database. For more information on how to load and unload data from files, read the <a href="http://www.orafaq.com/faq/sql_loader"><span>SQL*Loader</span></a> FAQ. </span><span style="font-size:10pt;color:black;font-family:Arial;">The export/import utilities are also commonly used to perform the following tasks: </span></p>
<ul>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Backup and recovery (small databases only) </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Reorganization of data/ Eliminate database fragmentation </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Detect database corruption. Ensure that all the data can be read. </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Transporting tablespaces between databases </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Etc. </span></li>
</ul>
<p><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TopOfFile#TopOfFile"><span>Back to top of file</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><a name="USE"></a><strong><span style="font-size:13.5pt;color:black;font-family:Arial;">How does one use the import/export utilities?</span></strong><span></span><span style="font-size:10pt;color:black;font-family:Arial;">Look for the &#8220;imp&#8221; and &#8220;exp&#8221; executables in your $ORACLE_HOME/bin directory. One can run them interactively, using command line parameters, or using parameter files. Look at the imp/exp parameters before starting. These parameters can be listed by executing the following commands: &#8220;<em>exp help=yes</em>&#8221; or &#8220;<em>imp help=yes</em>&#8220;. </span><span style="font-size:10pt;color:black;font-family:Arial;">The following examples demonstrate how the imp/exp utilities can be used: </span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>         </span>exp scott/tiger file=emp.dmp log=emp.log tables=emp rows=yes indexes=no</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>         </span>exp scott/tiger file=emp.dmp tables=(emp,dept)</span><span style="font-size:10pt;color:black;font-family:'Courier New';"> </span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>         </span>imp scott/tiger file=emp.dmp full=yes</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>         </span>imp scott/tiger file=emp.dmp fromuser=scott touser=scott tables=dept</span><span style="font-size:10pt;color:black;font-family:'Courier New';"> </span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>         </span>exp userid=scott/tiger@orcl parfile=export.txt</span><span style="font-size:10pt;color:black;font-family:'Courier New';"> </span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>         </span>&#8230; where export.txt contains:</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>               </span><span> </span><span>       </span><span> </span>BUFFER=100000</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>                       </span><span> </span>FILE=account.dmp</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>                       </span><span> </span>FULL=n</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>                       </span><span> </span>OWNER=scott</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>                       </span><span> </span>GRANTS=y</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>                       </span><span> </span>COMPRESS=y</span><span style="font-size:10pt;color:black;font-family:Arial;">NOTE: If you do not like command line utilities, you can import and export data with the &#8220;Schema Manager&#8221; GUI that ships with Oracle Enterprise Manager (OEM). </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TopOfFile#TopOfFile"><span>Back to top of file</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><a name="SUBSET"></a><strong><span style="font-size:13.5pt;color:black;font-family:Arial;">Can one export a subset of a table?</span></strong><span></span><span style="font-size:10pt;color:black;font-family:Arial;">From Oracle8i one can use the QUERY= export parameter to selectively unload a subset of the data from a table. Look at this example: </span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>         </span>exp scott/tiger tables=emp query=\&#8221;where deptno=10\&#8221;</span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TopOfFile#TopOfFile"><span>Back to top of file</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><a name="MON"></a><strong><span style="font-size:13.5pt;color:black;font-family:Arial;">Can one monitor how fast a table is imported?</span></strong><span></span><span style="font-size:10pt;color:black;font-family:Arial;">If you need to monitor how fast rows are imported from a running import job, try one of the following methods: </span><strong><span style="font-size:10pt;color:black;font-family:Arial;">Method 1:</span></strong><span style="font-size:10pt;color:black;font-family:Arial;"> </span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>  </span>select substr(sql_text,instr(sql_text,&#8217;INTO &#8220;&#8216;),30) table_name,</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>         </span>rows_processed,</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>         </span>round((sysdate-to_date(first_load_time,&#8217;yyyy-mm-dd hh24:mi:ss&#8217;))*24*60,1) minutes,</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>         </span>trunc(rows_processed/((sysdate-to_date(first_load_time,&#8217;yyyy-mm-dd hh24:mi:ss&#8217;))*24*60)) rows_per_min</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>  </span>from<span>   </span>sys.v_$sqlarea</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>  </span>where<span>  </span>sql_text like &#8216;INSERT %INTO &#8220;%&#8217;</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>    </span>and<span>  </span>command_type = 2</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>    </span>and<span>  </span>open_versions &gt; 0;</span><span style="font-size:10pt;color:black;font-family:Arial;">For this to work one needs to be on Oracle 7.3 or higher (7.2 might also be OK). If the import has more than one table, this statement will only show information about the current table being imported. </span><span style="font-size:10pt;color:black;font-family:Arial;">Contributed by <a href="mailto:oancarola@sif.com.ar"><span>Osvaldo Ancarola</span></a>, Bs. As. Argentina. </span><strong><span style="font-size:10pt;color:black;font-family:Arial;">Method 2:</span></strong><span style="font-size:10pt;color:black;font-family:Arial;"> </span><span style="font-size:10pt;color:black;font-family:Arial;">Use the FEEDBACK=n import parameter. This command will tell IMP to display a dot for every N rows imported. </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TopOfFile#TopOfFile"><span>Back to top of file</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><a name="TS"></a><strong><span style="font-size:13.5pt;color:black;font-family:Arial;">Can one import tables to a different tablespace?</span></strong><span></span><span style="font-size:10pt;color:black;font-family:Arial;">Oracle offers no parameter to specify a different tablespace to import data into. Objects will be re-created in the tablespace they were originally exported from. One can alter this behaviour by following one of these procedures: </span><strong><span style="font-size:10pt;color:black;font-family:Arial;">Pre-create the table(s) in the correct tablespace:</span></strong><span style="font-size:10pt;color:black;font-family:Arial;"></span></p>
<ul>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Import the dump file using the INDEXFILE= option </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Edit the indexfile. Remove remarks and specify the correct tablespaces. </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Run this indexfile against your database, this will create the required tables in the appropriate tablespaces </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Import the table(s) with the IGNORE=Y option. </span></li>
</ul>
<p><strong><span style="font-size:10pt;color:black;font-family:Arial;">Change the default tablespace for the user:</span></strong><span style="font-size:10pt;color:black;font-family:Arial;"></span></p>
<ul>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Revoke the &#8220;UNLIMITED TABLESPACE&#8221; privilege from the user </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Revoke the user&#8217;s quota from the tablespace from where the object was exported. This forces the import utility to create tables in the user&#8217;s default tablespace. </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Make the tablespace to which you want to import the default tablespace for the user </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Import the table </span></li>
</ul>
<p><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TopOfFile#TopOfFile"><span>Back to top of file</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><a name="DROP"></a><strong><span style="font-size:13.5pt;color:black;font-family:Arial;">Does one need to drop/ truncate objects before importing?</span></strong><span></span><span style="font-size:10pt;color:black;font-family:Arial;">Before one import rows into already populated tables, one needs to truncate or drop these tables to get rid of the old data. If not, the new data will be appended to the existing tables. One must always DROP existing Sequences before re-importing. If the sequences are not dropped, they will generate numbers inconsistent with the rest of the database. </span><strong><span style="font-size:10pt;color:black;font-family:Arial;">Note:</span></strong><span style="font-size:10pt;color:black;font-family:Arial;"> It is also advisable to drop indexes before importing to speed up the import process. Indexes can easily be recreated after the data was successfully imported. </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TopOfFile#TopOfFile"><span>Back to top of file</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><a name="VER"></a><strong><span style="font-size:13.5pt;color:black;font-family:Arial;">Can one import/export between different versions of Oracle?</span></strong><span></span><span style="font-size:10pt;color:black;font-family:Arial;">Different versions of the import utility is upwards compatible. This means that one can take an export file created from an old export version, and import it using a later version of the import utility. This is quite an effective way of upgrading a database from one release of Oracle to the next. </span><span style="font-size:10pt;color:black;font-family:Arial;">Oracle also ships some previous catexpX.sql scripts that can be executed as user SYS enabling older imp/exp versions to work (for backwards compatibility). For example, one can run $ORACLE_HOME/rdbms/admin/catexp7.sql on an Oracle 8 database to allow the Oracle 7.3 exp/imp utilities to run against an Oracle 8 database. </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TopOfFile#TopOfFile"><span>Back to top of file</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><a name="SIZE"></a><strong><span style="font-size:13.5pt;color:black;font-family:Arial;">Can one export to multiple files?/ Can one beat the Unix 2 Gig limit?</span></strong><span></span><span style="font-size:10pt;color:black;font-family:Arial;">From Oracle8i, the export utility supports multiple output files. This feature enables large exports to be divided into files whose sizes will not exceed any operating system limits (FILESIZE= parameter). When importing from multi-file export you must provide the same filenames in the same sequence in the FILE= parameter. Look at this example: </span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>         </span>exp SCOTT/TIGER FILE=D:\F1.dmp,E:\F2.dmp FILESIZE=10m LOG=scott.log</span><strong><span style="font-size:10pt;color:black;font-family:Arial;">Use the following technique if you use an Oracle version prior to 8i:</span></strong><span style="font-size:10pt;color:black;font-family:Arial;"> </span><span style="font-size:10pt;color:black;font-family:Arial;">Create a compressed export on the fly. Depending on the type of data, you probably can export up to 10 gigabytes to a single file. This example uses gzip. It offers the best compression I know of, but you can also substitute it with zip, compress or whatever. </span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>        </span># create a named pipe</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>        </span>mknod exp.pipe p</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>        </span># read the pipe &#8211; output to zip file in the background</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>        </span>gzip &lt; exp.pipe &gt; scott.exp.gz &amp;</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>        </span># feed the pipe</span><span style="font-size:10pt;color:black;font-family:'Courier New';"><span>        </span>exp userid=scott/tiger file=exp.pipe &#8230;</span><span style="font-size:10pt;color:black;font-family:Arial;">Contributed by <a href="mailto:jkstill@bcbso.com"><span>Jared K Still</span></a> </span><span style="font-size:10pt;color:black;font-family:Arial;">Read the <a href="http://www.orafaq.com/faq/unix"><span>Oracle/Unix FAQ</span></a> for more examples on using Unix pipes. </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TopOfFile#TopOfFile"><span>Back to top of file</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><a name="SPEED"></a><strong><span style="font-size:13.5pt;color:black;font-family:Arial;">How can one improve Import/ Export performance?</span></strong><span></span><strong><span style="font-size:10pt;color:black;font-family:Arial;">EXPORT:</span></strong><span style="font-size:10pt;color:black;font-family:Arial;"> </span></p>
<ul>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Set the BUFFER parameter to a high value (e.g. 2M) </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Set the RECORDLENGTH parameter to a high value (e.g. 64K) </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Stop unnecessary applications to free-up resources for your job. </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">If you run multiple export sessions, ensure they write to different physical disks. </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">DO NOT export to an NFS mounted filesystem. It will take forever. </span></li>
</ul>
<p><strong><span style="font-size:10pt;color:black;font-family:Arial;">IMPORT:</span></strong><span style="font-size:10pt;color:black;font-family:Arial;"> </span></p>
<ul>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Create an indexfile so that you can create indexes AFTER you have imported data. Do this by setting INDEXFILE to a filename and then import. No data will be imported but a file containing index definitions will be created. You must edit this file afterwards and supply the passwords for the schemas on all CONNECT statements. </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Place the file to be imported on a separate physical disk from the oracle data files </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Increase DB_CACHE_SIZE (DB_BLOCK_BUFFERS prior to 9i) considerably in the init$SID.ora file </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Set the LOG_BUFFER to a big value and restart oracle. </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Stop redo log archiving if it is running (ALTER DATABASE NOARCHIVELOG;) </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Create a BIG tablespace with a BIG rollback segment inside. Set all other rollback segments offline (except the SYSTEM rollback segment of course). The rollback segment must be as big as your biggest table (I think?) </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Use COMMIT=N in the import parameter file if you can afford it </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Use ANALYZE=N in the import parameter file to avoid time consuming ANALYZE statements </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Remember to run the indexfile previously created </span></li>
</ul>
<p><span style="font-size:10pt;color:black;font-family:Arial;">Contributed by <a href="mailto:petter.henrik.hansen@fellesdata.no"><span>Petter Henrik Hansen</span></a>. </span><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TopOfFile#TopOfFile"><span>Back to top of file</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><a name="ERRS"></a><strong><span style="font-size:13.5pt;color:black;font-family:Arial;">What are the common Import/ Export problems?</span></strong><span></span></p>
<ul>
<li class="MsoNormal"><strong><span style="font-size:10pt;font-family:Arial;">ORA-00001: Unique constraint (&#8230;) violated</span></strong><span style="font-size:10pt;font-family:Arial;"> &#8211; You are importing duplicate rows. Use IGNORE=NO to skip tables that already exist (imp will give an error if the object is re-created). </span></li>
<li class="MsoNormal"><strong><span style="font-size:10pt;font-family:Arial;">ORA-01555: Snapshot too old</span></strong><span style="font-size:10pt;font-family:Arial;"> &#8211; Ask your users to STOP working while you are exporting or use parameter CONSISTENT=NO </span></li>
<li class="MsoNormal"><strong><span style="font-size:10pt;font-family:Arial;">ORA-01562: Failed to extend rollback segment</span></strong><span style="font-size:10pt;font-family:Arial;"> &#8211; Create bigger rollback segments or set parameter COMMIT=Y while importing </span></li>
<li class="MsoNormal"><strong><span style="font-size:10pt;font-family:Arial;">IMP-00015: Statement failed &#8230; object already exists&#8230;</span></strong><span style="font-size:10pt;font-family:Arial;"> &#8211; Use the IGNORE=Y import parameter to ignore these errors, but be careful as you might end up with duplicate rows. </span></li>
</ul>
<p><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TopOfFile#TopOfFile"><span>Back to top of file</span></a> </span></p>
<p align="center" style="text-align:center;margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial;"><br />
<hr SIZE="2" width="100%" align="center" /></span></p>
<p><a name="INFO"></a><strong><span style="font-size:13.5pt;color:black;font-family:Arial;">Where can one get more info about the Import/ Export utilities?</span></strong><span></span></p>
<ul>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;"><a href="http://www.indiana.edu/~dss/Services/DataWarehouse/Oracle/expimp.html"><span>White Paper: Oracle 8i Export/Import</span></a> </span></li>
</ul>
<p style="margin:0;" class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Symbol;">·</span><span style="font-size:10pt;color:black;font-family:Arial;"><span>  </span><a href="http://www.orafaq.com/faqiexp.htm#TopOfFile#TopOfFile"><span>Back to top of file</span></a></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dwibudiana.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dwibudiana.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dwibudiana.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dwibudiana.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dwibudiana.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dwibudiana.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dwibudiana.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dwibudiana.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dwibudiana.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dwibudiana.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dwibudiana.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dwibudiana.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dwibudiana.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dwibudiana.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dwibudiana.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dwibudiana.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dwibudiana.wordpress.com&amp;blog=2134828&amp;post=9&amp;subd=dwibudiana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dwibudiana.wordpress.com/2007/11/23/oracle-import-export-faq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa09c930505b14e13f14fa99cd55bcdd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dwibudiana</media:title>
		</media:content>
	</item>
		<item>
		<title>Wilujeng Sumping</title>
		<link>http://dwibudiana.wordpress.com/2007/11/16/hello-world/</link>
		<comments>http://dwibudiana.wordpress.com/2007/11/16/hello-world/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 02:47:03 +0000</pubDate>
		<dc:creator>dwibudiana</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[test blog pertamaku<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dwibudiana.wordpress.com&amp;blog=2134828&amp;post=1&amp;subd=dwibudiana&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dwibudiana.files.wordpress.com/2007/11/api-lapindo-dalam3.jpg" title="testtt"><img src="http://dwibudiana.files.wordpress.com/2007/11/api-lapindo-dalam3.thumbnail.jpg?w=468" alt="testtt" /></a><a href="http://dwibudiana.files.wordpress.com/2007/11/api-lapindo-dalam3.jpg" title="testtt"></a>test blog pertamaku</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dwibudiana.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dwibudiana.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dwibudiana.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dwibudiana.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dwibudiana.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dwibudiana.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dwibudiana.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dwibudiana.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dwibudiana.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dwibudiana.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dwibudiana.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dwibudiana.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dwibudiana.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dwibudiana.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dwibudiana.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dwibudiana.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dwibudiana.wordpress.com&amp;blog=2134828&amp;post=1&amp;subd=dwibudiana&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dwibudiana.wordpress.com/2007/11/16/hello-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa09c930505b14e13f14fa99cd55bcdd?s=96&#38;d=identicon" medium="image">
			<media:title type="html">dwibudiana</media:title>
		</media:content>

		<media:content url="http://dwibudiana.files.wordpress.com/2007/11/api-lapindo-dalam3.thumbnail.jpg" medium="image">
			<media:title type="html">testtt</media:title>
		</media:content>
	</item>
	</channel>
</rss>
