<?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/"
	>

<channel>
	<title>Sys-Admin Information&#039;s &#187; Export-Import</title>
	<atom:link href="http://sysinfo.bascomp.org/category/oracle/export-import/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Export Script (Oracle)</title>
		<link>http://sysinfo.bascomp.org/2007/09/export-script-oracle/</link>
		<comments>http://sysinfo.bascomp.org/2007/09/export-script-oracle/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 09:06:16 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Export-Import]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/09/12/export-script-oracle/</guid>
		<description><![CDATA[Yesterday, I was export the database for backup mode, Coz the database not in archived log mode, so export was the solved. I used this in HP-UX
Note:
1. Change 'TABLE' with your table and 'SEPT' with your partition table name.
2. Change 'SCHEMA' with your shema where table place.
3. Change 'compress' with your 'compress' tool, like (g)un(zip), [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, I was export the database for backup mode, Coz the database not in archived log mode, so export was the solved. I used this in HP-UX<br />
Note:<br />
1. Change 'TABLE' with your table and 'SEPT' with your partition table name.<br />
2. Change 'SCHEMA' with your shema where table place.<br />
3. Change 'compress' with your 'compress' tool, like (g)un(zip), etc.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;">DECLARE
   vname LONG :<span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">NULL</span>;
   vtable_name VARCHAR2 <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#41;</span> :<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'TABLE'</span>;
BEGIN
   <span style="color: #993333; font-weight: bold;">FOR</span> i <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span> table_name<span style="color: #66cc66;">,</span> partition_name
               <span style="color: #993333; font-weight: bold;">FROM</span> dba_tab_partitions
              <span style="color: #993333; font-weight: bold;">WHERE</span> table_owner <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'SYS'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'SYSTEM'</span><span style="color: #66cc66;">&#41;</span>
                <span style="color: #993333; font-weight: bold;">AND</span> table_name <span style="color: #66cc66;">=</span> vtable_name
                <span style="color: #993333; font-weight: bold;">AND</span> partition_name <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'%06%'</span>
		<span style="color: #993333; font-weight: bold;">AND</span> partition_name <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'%SEPT%'</span><span style="color: #66cc66;">&#41;</span>
   LOOP
      vname :<span style="color: #66cc66;">=</span>
            <span style="color: #ff0000;">'exp &quot;'</span><span style="color: #ff0000;">'/ as sysdba'</span><span style="color: #ff0000;">'&quot; buffer=50000000 file='</span>
         <span style="color: #66cc66;">||</span> vtable_name
         <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">'-'</span>
         <span style="color: #66cc66;">||</span> i<span style="color: #66cc66;">.</span>partition_name
         <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">' tables=SCHEMA.'</span>
         <span style="color: #66cc66;">||</span> vtable_name
         <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">':'</span>
         <span style="color: #66cc66;">||</span> i<span style="color: #66cc66;">.</span>partition_name
         <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">' statistics=none log='</span>
         <span style="color: #66cc66;">||</span> vtable_name
         <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">'-'</span>
         <span style="color: #66cc66;">||</span> i<span style="color: #66cc66;">.</span>partition_name
         <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">'.log
compress -v '</span>
         <span style="color: #66cc66;">||</span> vtable_name
         <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">'-'</span>
         <span style="color: #66cc66;">||</span> i<span style="color: #66cc66;">.</span>partition_name
         <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">'.dmp'</span>;
      DBMS_OUTPUT<span style="color: #66cc66;">.</span>PUT_LINE <span style="color: #66cc66;">&#40;</span>vname<span style="color: #66cc66;">&#41;</span>;
   END LOOP;
END;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/09/export-script-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
