Cloning tablespace [message #302547] |
Tue, 26 February 2008 02:17 |
shahnazurs
Messages: 240 Registered: June 2005 Location: India
|
Senior Member |
|
|
Hi,
How can I clone a tablespace?
I have serached forum and search engines but I don't find the reuqired information
Thanks.
|
|
|
|
Re: Cloning tablespace [message #302559 is a reply to message #302555] |
Tue, 26 February 2008 02:49 |
shahnazurs
Messages: 240 Registered: June 2005 Location: India
|
Senior Member |
|
|
Hi Michel,
I am having a tablespace ts1 in a database db1 and I am creating another tablespace ts2 in the same database. Now I need to store objects which is existing in tablespace ts1 to ts2.
Thanks.
|
|
|
|
|
|
Re: Cloning tablespace [message #302569 is a reply to message #302559] |
Tue, 26 February 2008 03:07 |
NandKumar
Messages: 92 Registered: June 2007 Location: v$hyderabad
|
Member |
|
|
First identify the segments that are in the tablespace, then you can use:
alter table <table_name> move tablespace <new_tablespace>
and
alter index <index_name> rebuild tablespace <new_tablespace>
You can write a script to simplify the task.
[Updated on: Tue, 26 February 2008 03:09] Report message to a moderator
|
|
|
|
Re: Cloning tablespace [message #302578 is a reply to message #302573] |
Tue, 26 February 2008 03:41 |
shahnazurs
Messages: 240 Registered: June 2005 Location: India
|
Senior Member |
|
|
Please clarify my doubt.
If I go for transport tablespace then I have to have datapump utily installed along with oracle s/w.
Hope data pump is one part of oracle s/w
Thanks.
|
|
|
|