Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move tablespaces to 8k size

Status
Not open for further replies.

loriek

Technical User
Jul 27, 2007
40
US
We've got a number of 2k tablespace we want to move to the 8k size. Actually, it's all of them. Export / Import is an option if it will work quickly, but traditional imports take 12 hours...
 
Loriek,

By far, the fastest method to transform your 2K-block objects to 8K-block objects is to use the Oracle "MOVE" clause for tables and the "REBUILD" clause for indexes:
Code:
alter table <table_name> move tablespace <8K- tablespace name>;
alter index <index_name> rebuild tablespace <8K-tablespace name>;
You will be amazed at how fast this rebuilding occurs...many times faster than export/import.

Warning: If your table contains large objects (e.g. CLOBS or BLOBS) you cannot use the MOVE clause.

Let us know your findings.



[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
“Beware of those that seek to protect you from harm or risk. The cost will be your freedoms and your liberty.”
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top