<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Oracle Data Pump Schema Export and Public Synonyms</title>
	<atom:link href="http://www.pythian.com/news/272/oracle-data-pump-schema-export-and-public-synonyms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/272/oracle-data-pump-schema-export-and-public-synonyms/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Kirill Loifman</title>
		<link>http://www.pythian.com/news/272/oracle-data-pump-schema-export-and-public-synonyms/#comment-717935</link>
		<dc:creator>Kirill Loifman</dc:creator>
		<pubDate>Fri, 20 Jan 2012 14:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/272/oracle-data-pump-schema-export-and-public-synonyms#comment-717935</guid>
		<description>Unfortunately Bradd&#039; solution did not work for me also. The export session is simply hanging with it. However after some tests I found a fix.
See here: http://www.dadbm.com/2012/01/how-to-export-public-database-objects-with-oracle-data-pump/

-- Kirill Loifman, dadbm.com</description>
		<content:encoded><![CDATA[<p>Unfortunately Bradd&#8217; solution did not work for me also. The export session is simply hanging with it. However after some tests I found a fix.<br />
See here: <a href="http://www.dadbm.com/2012/01/how-to-export-public-database-objects-with-oracle-data-pump/" rel="nofollow">http://www.dadbm.com/2012/01/how-to-export-public-database-objects-with-oracle-data-pump/</a></p>
<p>&#8211; Kirill Loifman, dadbm.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.pythian.com/news/272/oracle-data-pump-schema-export-and-public-synonyms/#comment-623661</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Thu, 27 Oct 2011 17:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/272/oracle-data-pump-schema-export-and-public-synonyms#comment-623661</guid>
		<description>I was wrestling with Bradd&#039;s INCLUDE line for impdp and it wasn&#039;t working wasn&#039;t working and then I realized that OF COURSE it wasn&#039;t going to work because the select is empty because there aren&#039;t any public synonyms yet.

I&#039;d like to just import the public synonyms for the schema(s) that I&#039;m importing.  Darn - maybe next version.

(yes, I know that I can use a script to generate the create public synonym statements, but I&#039;d like to just get it out of the datapump.dmp file)</description>
		<content:encoded><![CDATA[<p>I was wrestling with Bradd&#8217;s INCLUDE line for impdp and it wasn&#8217;t working wasn&#8217;t working and then I realized that OF COURSE it wasn&#8217;t going to work because the select is empty because there aren&#8217;t any public synonyms yet.</p>
<p>I&#8217;d like to just import the public synonyms for the schema(s) that I&#8217;m importing.  Darn &#8211; maybe next version.</p>
<p>(yes, I know that I can use a script to generate the create public synonym statements, but I&#8217;d like to just get it out of the datapump.dmp file)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirill Loifman</title>
		<link>http://www.pythian.com/news/272/oracle-data-pump-schema-export-and-public-synonyms/#comment-612573</link>
		<dc:creator>Kirill Loifman</dc:creator>
		<pubDate>Fri, 14 Oct 2011 12:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/272/oracle-data-pump-schema-export-and-public-synonyms#comment-612573</guid>
		<description>Do not expect exp or expdp extract public objects during schema export by default.
You have to transfer them all BEFORE the import to avoid errors. These are, other referenced users, roles, public synonyms, db links, user_profiles, etc.

-- Kirill Loifman, dadbm.com</description>
		<content:encoded><![CDATA[<p>Do not expect exp or expdp extract public objects during schema export by default.<br />
You have to transfer them all BEFORE the import to avoid errors. These are, other referenced users, roles, public synonyms, db links, user_profiles, etc.</p>
<p>&#8211; Kirill Loifman, dadbm.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bradd Piontek</title>
		<link>http://www.pythian.com/news/272/oracle-data-pump-schema-export-and-public-synonyms/#comment-469359</link>
		<dc:creator>Bradd Piontek</dc:creator>
		<pubDate>Wed, 27 Oct 2010 17:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/272/oracle-data-pump-schema-export-and-public-synonyms#comment-469359</guid>
		<description>yes, an old thread, but I&#039;m working on a lot of datapump moves these days.

Related to PUBLIC SYNONYMS but only for the schema you are moving

Try this:

INCLUDE=SYNONYM:&quot;IN(SELECT synonym_name FROM dba_synonyms WHERE owner = &#039;PUBLIC&#039; and table_owner=&#039;TEST&#039;)&quot;

That worked for me.</description>
		<content:encoded><![CDATA[<p>yes, an old thread, but I&#8217;m working on a lot of datapump moves these days.</p>
<p>Related to PUBLIC SYNONYMS but only for the schema you are moving</p>
<p>Try this:</p>
<p>INCLUDE=SYNONYM:&#8221;IN(SELECT synonym_name FROM dba_synonyms WHERE owner = &#8216;PUBLIC&#8217; and table_owner=&#8217;TEST&#8217;)&#8221;</p>
<p>That worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Gorbachev</title>
		<link>http://www.pythian.com/news/272/oracle-data-pump-schema-export-and-public-synonyms/#comment-5600</link>
		<dc:creator>Alex Gorbachev</dc:creator>
		<pubDate>Thu, 02 Nov 2006 02:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/272/oracle-data-pump-schema-export-and-public-synonyms#comment-5600</guid>
		<description>Updated the original post with that.</description>
		<content:encoded><![CDATA[<p>Updated the original post with that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Gorbachev</title>
		<link>http://www.pythian.com/news/272/oracle-data-pump-schema-export-and-public-synonyms/#comment-5587</link>
		<dc:creator>Alex Gorbachev</dc:creator>
		<pubDate>Thu, 02 Nov 2006 00:59:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/272/oracle-data-pump-schema-export-and-public-synonyms#comment-5587</guid>
		<description>Thanks andrew,
Good catch about DB links. Isn&#039;t this a beauty of sharing your experience?
The more you share about what you do and come up with, the stronger your procedures and knowedge are. Amazing paradox. Huh?

Paul,
I guess there is no difference to Data Pump then! :-) Both, old Export and Data Pump, do not process public synonyms on schema export.
Hurray! I just tested it again becuase I did a small test earlier prior this post to make sure I didn&#039;t miss something and you know what? I did miss one thing. I gazed quickly on &quot;. exporting PUBLIC type synonyms&quot; line and mistakenly took it for confirmation that public synonyms are handled by old Export. On the second look only I noticed that it&#039;s talking about public types.</description>
		<content:encoded><![CDATA[<p>Thanks andrew,<br />
Good catch about DB links. Isn&#8217;t this a beauty of sharing your experience?<br />
The more you share about what you do and come up with, the stronger your procedures and knowedge are. Amazing paradox. Huh?</p>
<p>Paul,<br />
I guess there is no difference to Data Pump then! :-) Both, old Export and Data Pump, do not process public synonyms on schema export.<br />
Hurray! I just tested it again becuase I did a small test earlier prior this post to make sure I didn&#8217;t miss something and you know what? I did miss one thing. I gazed quickly on &#8220;. exporting PUBLIC type synonyms&#8221; line and mistakenly took it for confirmation that public synonyms are handled by old Export. On the second look only I noticed that it&#8217;s talking about public types.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew</title>
		<link>http://www.pythian.com/news/272/oracle-data-pump-schema-export-and-public-synonyms/#comment-5567</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Wed, 01 Nov 2006 20:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/272/oracle-data-pump-schema-export-and-public-synonyms#comment-5567</guid>
		<description>Don&#039;t forget about DB links...

select &#039;CREATE &#039;&#124;&#124; decode(owner,&#039;PUBLIC&#039;,&#039;PUBLIC &#039;,null) &#124;&#124;  
       &#039;SYNONYM &#039; &#124;&#124; decode(owner,&#039;PUBLIC&#039;,null, owner &#124;&#124; &#039;.&#039;) &#124;&#124;  
        lower(synonym_name) &#124;&#124; &#039; FOR &#039; &#124;&#124; lower(table_owner) &#124;&#124; 
        &#039;.&#039; &#124;&#124; lower(table_name) &#124;&#124;  
        decode(db_link,null,null,&#039;@&#039;&#124;&#124;db_link) &#124;&#124; &#039;;&#039; 
  from sys.dba_synonyms 
  where table_owner != &#039;SYS&#039; 
  order by owner 
/</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget about DB links&#8230;</p>
<p>select &#8216;CREATE &#8216;|| decode(owner,&#8217;PUBLIC&#8217;,'PUBLIC &#8216;,null) ||<br />
       &#8216;SYNONYM &#8216; || decode(owner,&#8217;PUBLIC&#8217;,null, owner || &#8216;.&#8217;) ||<br />
        lower(synonym_name) || &#8216; FOR &#8216; || lower(table_owner) ||<br />
        &#8216;.&#8217; || lower(table_name) ||<br />
        decode(db_link,null,null,&#8217;@'||db_link) || &#8216;;&#8217;<br />
  from sys.dba_synonyms<br />
  where table_owner != &#8216;SYS&#8217;<br />
  order by owner<br />
/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Muller</title>
		<link>http://www.pythian.com/news/272/oracle-data-pump-schema-export-and-public-synonyms/#comment-5558</link>
		<dc:creator>Paul Muller</dc:creator>
		<pubDate>Wed, 01 Nov 2006 17:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/272/oracle-data-pump-schema-export-and-public-synonyms#comment-5558</guid>
		<description>Good point!
However, just to clarify, EXP only captures public synonyms in full export mode (full=y), not schema-level, or table level mode.</description>
		<content:encoded><![CDATA[<p>Good point!<br />
However, just to clarify, EXP only captures public synonyms in full export mode (full=y), not schema-level, or table level mode.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

