<?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: How to move a table to another schema?</title>
	<atom:link href="http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/</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: sherlin</title>
		<link>http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/#comment-504191</link>
		<dc:creator>sherlin</dc:creator>
		<pubDate>Wed, 02 Feb 2011 11:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/218/oracle-how-to-move-a-table-to-another-schema#comment-504191</guid>
		<description>Hi Christo,
I tried your appraoch and successfully executed first step, but when i try to do the second step it throws the following error. (Im new to Oracle)

ERROR at line 1:
ORA-01950: no privileges on tablespace &#039;USERS&#039;



Also i wud apprieciate if you could tel me how to use &quot;Set unused()&quot; on sys schema coz it dsnt allow on sys schema.</description>
		<content:encoded><![CDATA[<p>Hi Christo,<br />
I tried your appraoch and successfully executed first step, but when i try to do the second step it throws the following error. (Im new to Oracle)</p>
<p>ERROR at line 1:<br />
ORA-01950: no privileges on tablespace &#8216;USERS&#8217;</p>
<p>Also i wud apprieciate if you could tel me how to use &#8220;Set unused()&#8221; on sys schema coz it dsnt allow on sys schema.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oracle: How to move a table to a different schema? Drija</title>
		<link>http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/#comment-475227</link>
		<dc:creator>Oracle: How to move a table to a different schema? Drija</dc:creator>
		<pubDate>Wed, 17 Nov 2010 16:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/218/oracle-how-to-move-a-table-to-another-schema#comment-475227</guid>
		<description>[...] to do what you want to do &#8211; you&#8217;re going to have to move data. I did come across this interesting method.  November 11, 2009 4:24 am         Justin Cave I would be shocked if there was a faster solution [...]</description>
		<content:encoded><![CDATA[<p>[...] to do what you want to do &#8211; you&#8217;re going to have to move data. I did come across this interesting method.  November 11, 2009 4:24 am         Justin Cave I would be shocked if there was a faster solution [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oracle feature request #94739: CTAS optimizer statistics &#124; The Pythian Blog</title>
		<link>http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/#comment-453903</link>
		<dc:creator>Oracle feature request #94739: CTAS optimizer statistics &#124; The Pythian Blog</dc:creator>
		<pubDate>Thu, 19 Aug 2010 01:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/218/oracle-how-to-move-a-table-to-another-schema#comment-453903</guid>
		<description>[...] why can&#8217;t this happen on a CREATE TABLE AS SELECT command? Most if not all of the statistics gathering steps (high/low value, number of distinct [...]</description>
		<content:encoded><![CDATA[<p>[...] why can&#8217;t this happen on a CREATE TABLE AS SELECT command? Most if not all of the statistics gathering steps (high/low value, number of distinct [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun.D</title>
		<link>http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/#comment-445471</link>
		<dc:creator>Arun.D</dc:creator>
		<pubDate>Wed, 21 Jul 2010 15:58:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/218/oracle-how-to-move-a-table-to-another-schema#comment-445471</guid>
		<description>Very useful article. It is bit frustrating as there is not direct method to copy/rename/move table from one schema to another. Thanks.</description>
		<content:encoded><![CDATA[<p>Very useful article. It is bit frustrating as there is not direct method to copy/rename/move table from one schema to another. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christo Kutrovsky</title>
		<link>http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/#comment-443829</link>
		<dc:creator>Christo Kutrovsky</dc:creator>
		<pubDate>Thu, 15 Jul 2010 18:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/218/oracle-how-to-move-a-table-to-another-schema#comment-443829</guid>
		<description>mandm, the idea of hash partitioning is to split data into somewhat random, but balanced buckets.

You can&#039;t use a simple switch segments to re-distribute/defrag data.</description>
		<content:encoded><![CDATA[<p>mandm, the idea of hash partitioning is to split data into somewhat random, but balanced buckets.</p>
<p>You can&#8217;t use a simple switch segments to re-distribute/defrag data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mandm</title>
		<link>http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/#comment-443827</link>
		<dc:creator>mandm</dc:creator>
		<pubDate>Thu, 15 Jul 2010 18:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/218/oracle-how-to-move-a-table-to-another-schema#comment-443827</guid>
		<description>Can this method be used for creating a hash partiioned table and moving data from a regular table to it?</description>
		<content:encoded><![CDATA[<p>Can this method be used for creating a hash partiioned table and moving data from a regular table to it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tito</title>
		<link>http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/#comment-393539</link>
		<dc:creator>Tito</dc:creator>
		<pubDate>Fri, 18 Dec 2009 20:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/218/oracle-how-to-move-a-table-to-another-schema#comment-393539</guid>
		<description>could anybody tell me how would convert tables,views,triggers from one database name to another in oracle 10g with different schema name and previliges.

1. one dbname prod, another mid
2. one schema/user name prodprod, another midmid.

I want to transfer everything from mid to prod. 

Please can anyone help me with this?</description>
		<content:encoded><![CDATA[<p>could anybody tell me how would convert tables,views,triggers from one database name to another in oracle 10g with different schema name and previliges.</p>
<p>1. one dbname prod, another mid<br />
2. one schema/user name prodprod, another midmid.</p>
<p>I want to transfer everything from mid to prod. </p>
<p>Please can anyone help me with this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Souradeep</title>
		<link>http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/#comment-376112</link>
		<dc:creator>Souradeep</dc:creator>
		<pubDate>Tue, 22 Sep 2009 00:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/218/oracle-how-to-move-a-table-to-another-schema#comment-376112</guid>
		<description>Excellent Tip for partition exchange ! Thanks Christo .</description>
		<content:encoded><![CDATA[<p>Excellent Tip for partition exchange ! Thanks Christo .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kasper</title>
		<link>http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/#comment-376039</link>
		<dc:creator>kasper</dc:creator>
		<pubDate>Mon, 21 Sep 2009 15:55:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/218/oracle-how-to-move-a-table-to-another-schema#comment-376039</guid>
		<description>oops, forgot the PARTITIONS cluase:

CREATE TABLE S_TEMP (
ROLLNO NOT NULL NUMBER(8)
PAYDATE NOT NULL DATE
AMOUNT NOT NULL NUMBER(8,2)
CHEQUENO VARCHAR2(10)
BANKNAME VARCHAR2(30)
REMARKS VARCHAR2(100)
) PARTITION BY HASH(ROLLNO) PARTITIONS 1;</description>
		<content:encoded><![CDATA[<p>oops, forgot the PARTITIONS cluase:</p>
<p>CREATE TABLE S_TEMP (<br />
ROLLNO NOT NULL NUMBER(8)<br />
PAYDATE NOT NULL DATE<br />
AMOUNT NOT NULL NUMBER(8,2)<br />
CHEQUENO VARCHAR2(10)<br />
BANKNAME VARCHAR2(30)<br />
REMARKS VARCHAR2(100)<br />
) PARTITION BY HASH(ROLLNO) PARTITIONS 1;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kasper</title>
		<link>http://www.pythian.com/news/218/oracle-how-to-move-a-table-to-another-schema/#comment-376038</link>
		<dc:creator>kasper</dc:creator>
		<pubDate>Mon, 21 Sep 2009 15:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/218/oracle-how-to-move-a-table-to-another-schema#comment-376038</guid>
		<description>A more general approach would be to create 1 hash partition on any attribute: - as for Satish:

CREATE TABLE S_TEMP (
ROLLNO NOT NULL NUMBER(8)
PAYDATE NOT NULL DATE
AMOUNT NOT NULL NUMBER(8,2)
CHEQUENO VARCHAR2(10)
BANKNAME VARCHAR2(30)
REMARKS VARCHAR2(100)
) PARTITION BY HASH(ROLLNO);

unfortunately we need 1 extra step - to  get the partition name:

SELECT PARTITION_NAME
FROM USER_TAB_PARTITIONS
WHERE TABLE_NAME=&#039;S_TEMP&#039;;

then call ALTER TABLE EXCHANGE PARTITION...

There is also an another interesting fact about partition exchange: 
Assuming that the tables reside on same tablespace the partition exchange will occur even when the tablespace is in READ ONLY mode (tested on 10gR2 v10.2.0.3)! Well, this feature should be reported as a bug, what is your opinion on this?</description>
		<content:encoded><![CDATA[<p>A more general approach would be to create 1 hash partition on any attribute: &#8211; as for Satish:</p>
<p>CREATE TABLE S_TEMP (<br />
ROLLNO NOT NULL NUMBER(8)<br />
PAYDATE NOT NULL DATE<br />
AMOUNT NOT NULL NUMBER(8,2)<br />
CHEQUENO VARCHAR2(10)<br />
BANKNAME VARCHAR2(30)<br />
REMARKS VARCHAR2(100)<br />
) PARTITION BY HASH(ROLLNO);</p>
<p>unfortunately we need 1 extra step &#8211; to  get the partition name:</p>
<p>SELECT PARTITION_NAME<br />
FROM USER_TAB_PARTITIONS<br />
WHERE TABLE_NAME=&#8217;S_TEMP&#8217;;</p>
<p>then call ALTER TABLE EXCHANGE PARTITION&#8230;</p>
<p>There is also an another interesting fact about partition exchange:<br />
Assuming that the tables reside on same tablespace the partition exchange will occur even when the tablespace is in READ ONLY mode (tested on 10gR2 v10.2.0.3)! Well, this feature should be reported as a bug, what is your opinion on this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

