<?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>惜分飞 &#187; impdp transform</title>
	<atom:link href="https://www.xifenfei.com/tag/impdp-transform/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Thu, 29 Oct 2026 15:31:46 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>impdp TRANSFORM参数</title>
		<link>https://www.xifenfei.com/2021/12/impdp-transform.html</link>
		<comments>https://www.xifenfei.com/2021/12/impdp-transform.html#comments</comments>
		<pubDate>Thu, 16 Dec 2021 13:18:05 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[逻辑备份/恢复]]></category>
		<category><![CDATA[impdp transform]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=9500</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2021/12/impdp-transform.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2021/12/impdp-transform.html" target="_blank">impdp TRANSFORM参数</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>在impdp的参数中有一个transform参数,用来实现在创建对象的时候对一些存储参数进行修改,官方关于这个参数说明:</p>
<pre class="brush: bash; title: ; notranslate">
TRANSFORM
要应用于适用对象的元数据转换。
有效的关键字为: OID, PCTSPACE, SEGMENT_ATTRIBUTES 和 STORAGE。
</pre>
<p>对主要的SEGMENT_ATTRIBUTES和STORAGE参数进行测试</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; create user xff identified by oracle default tablespace users;

用户已创建。

SQL&gt; grant dba to xff;

授权成功。

SQL&gt; create table xff.t_1 as select * from dba_objects;

表已创建。

SQL&gt; exit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开

C:\Users\XFF&gt;expdp xff/oracle tables=t_1 dumpfile=t_1.dmp

Export: Release 11.2.0.4.0 - Production on 星期四 12月 16 20:56:50 2021

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
启动 &quot;XFF&quot;.&quot;SYS_EXPORT_TABLE_01&quot;:  xff/******** tables=t_1 dumpfile=t_1.dmp
正在使用 BLOCKS 方法进行估计...
处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 11 MB
处理对象类型 TABLE_EXPORT/TABLE/TABLE
. . 导出了 &quot;XFF&quot;.&quot;T_1&quot;                                 8.709 MB   89959 行
已成功加载/卸载了主表 &quot;XFF&quot;.&quot;SYS_EXPORT_TABLE_01&quot;
******************************************************************************
XFF.SYS_EXPORT_TABLE_01 的转储文件集为:
  C:\APP\XFF\ADMIN\ORCL\DPDUMP\T_1.DMP
作业 &quot;XFF&quot;.&quot;SYS_EXPORT_TABLE_01&quot; 已于 星期四 12月 16 20:56:53 2021 elapsed 0 00:00:02 成功完成
</pre>
<p>不使用TRANSFORM参数导入效果</p>
<pre class="brush: bash; title: ; notranslate">
C:\Users\XFF&gt;impdp xff/oracle sqlfile=t_2.sql full=y dumpfile=t_1.dmp

Import: Release 11.2.0.4.0 - Production on 星期四 12月 16 21:00:12 2021

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已成功加载/卸载了主表 &quot;XFF&quot;.&quot;SYS_SQL_FILE_FULL_01&quot;
启动 &quot;XFF&quot;.&quot;SYS_SQL_FILE_FULL_01&quot;:  xff/******** sqlfile=t_2.sql full=y dumpfile=t_1.dmp
处理对象类型 TABLE_EXPORT/TABLE/TABLE
作业 &quot;XFF&quot;.&quot;SYS_SQL_FILE_FULL_01&quot; 已于 星期四 12月 16 21:00:12 2021 elapsed 0 00:00:00 成功完成
</pre>
<p>对应的t_2.sql文件内容<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2021/12/20211216211113.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2021/12/20211216211113.jpg" alt="20211216211113" width="689" height="496" class="alignnone size-full wp-image-9501" /></a><br />
<hr />
transform=storage:n参数导入效果</p>
<pre class="brush: bash; title: ; notranslate">
C:\Users\XFF&gt;impdp xff/oracle sqlfile=t_1.sql full=y dumpfile=t_1.dmp transform=storage:n

Import: Release 11.2.0.4.0 - Production on 星期四 12月 16 20:58:04 2021

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已成功加载/卸载了主表 &quot;XFF&quot;.&quot;SYS_SQL_FILE_FULL_01&quot;
启动 &quot;XFF&quot;.&quot;SYS_SQL_FILE_FULL_01&quot;:  xff/******** sqlfile=t_1.sql full=y dumpfile=t_1.dmp transform=storage:n
处理对象类型 TABLE_EXPORT/TABLE/TABLE
作业 &quot;XFF&quot;.&quot;SYS_SQL_FILE_FULL_01&quot; 已于 星期四 12月 16 20:58:04 2021 elapsed 0 00:00:00 成功完成
</pre>
<p>对应的t_1.sql文件内容<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2021/12/20211216211352.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2021/12/20211216211352.jpg" alt="20211216211352" width="505" height="433" class="alignnone size-full wp-image-9502" /></a><br />
<hr />
transform=segment_attributes:n参数导入效果</p>
<pre class="brush: bash; title: ; notranslate">
C:\Users\XFF&gt;impdp xff/oracle sqlfile=t_3.sql full=y dumpfile=t_1.dmp  transform=segment_attributes:n

Import: Release 11.2.0.4.0 - Production on 星期四 12月 16 21:00:36 2021

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已成功加载/卸载了主表 &quot;XFF&quot;.&quot;SYS_SQL_FILE_FULL_01&quot;
启动 &quot;XFF&quot;.&quot;SYS_SQL_FILE_FULL_01&quot;:  xff/******** sqlfile=t_3.sql full=y dumpfile=t_1.dmp transform=segment_attributes:n 
处理对象类型 TABLE_EXPORT/TABLE/TABLE
作业 &quot;XFF&quot;.&quot;SYS_SQL_FILE_FULL_01&quot; 已于 星期四 12月 16 21:00:36 2021 elapsed 0 00:00:00 成功完成
</pre>
<p>对应的t_3.sql文件内容<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2021/12/20211216211523.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2021/12/20211216211523.jpg" alt="20211216211523" width="475" height="404" class="alignnone size-full wp-image-9503" /></a><br />
<hr />
transform=segment_attributes:n除掉了所有存储相关信息，对象数据直接导入到用户默认表空间中<br />
transform=storage:n导入的时候除掉了STORAGE部分,表空间信息依旧存在(也就是说导入到表原始表空间中)</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/07/oracle-12c-%e5%9c%a8datapump%e6%96%b9%e9%9d%a2%e5%a2%9e%e5%bc%ba%e5%8f%82%e6%95%b0.html" rel="bookmark" class="crp_title">ORACLE 12C 在datapump方面增强参数</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/11/data-pump-%e4%b8%adnetwork_link%e5%8f%82%e6%95%b0%e7%9a%84%e4%bd%bf%e7%94%a8.html" rel="bookmark" class="crp_title">Data pump 中network_link参数的使用</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/09/devos-db-recovery.html" rel="bookmark" class="crp_title">.Devos加密数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/05/ora-39083-ora-14102.html" rel="bookmark" class="crp_title">impdp报ORA-39083 ORA-14102错误处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/11/data-pump-%e4%b8%adnetwork_link%e5%8f%82%e6%95%b0%e7%9a%84%e4%bd%bf%e7%94%a8%e7%bb%ad%e7%99%bb%e5%bd%95%e7%94%a8%e6%88%b7%e5%92%8c%e6%ba%90%e7%ab%af%e7%94%a8%e6%88%b7%e4%b8%8d%e4%b8%80%e8%87%b4.html" rel="bookmark" class="crp_title">Data pump 中network_link参数的使用续(登录用户和源端用户不一致处理)</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2015/02/%e7%bb%99%e4%bd%a0%e7%9a%84dmp%e6%96%87%e4%bb%b6datapump%e5%8a%a0%e4%b8%8a%e5%af%86%e7%a0%81%e9%94%81.html" rel="bookmark" class="crp_title">给你的dmp文件(datapump)加上密码锁</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2015/10/exp-00104-datatype-binary_double-%e9%94%99%e8%af%af.html" rel="bookmark" class="crp_title">EXP-00104: datatype (BINARY_DOUBLE) 错误</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/01/impdp-create-index-ora-00942.html" rel="bookmark" class="crp_title">impdp 创建index提示ORA-00942: table or view does not exist</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/02/expdp-xml-ora-22924.html" rel="bookmark" class="crp_title">expdp导出xml列报ORA-22924故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/oracle-12c%e5%8f%af%e4%bb%a5%e9%80%9a%e8%bf%87expdp%e5%af%bc%e5%87%baview%e6%95%b0%e6%8d%ae.html" rel="bookmark" class="crp_title">ORACLE 12C可以通过expdp导出view数据</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2017/04/impdp-disable_archive_logging.html" rel="bookmark" class="crp_title">impdp中的DISABLE_ARCHIVE_LOGGING参数测试</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/01/impdp-missing-sys-priv.html" rel="bookmark" class="crp_title">impdp导入数据丢失sys授权问题分析</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2021/12/impdp-transform.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
