- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How do you move a partitionned index from one ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 01:04 AM
тАО03-16-2004 01:04 AM
How do you move a partitionned index from one TS to another ?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 01:15 AM
тАО03-16-2004 01:15 AM
Re: How do you move a partitionned index from one TS to another ?
alter index
Regards,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 01:18 AM
тАО03-16-2004 01:18 AM
Re: How do you move a partitionned index from one TS to another ?
Move the index partition to a new tablespace with the following command:
alter index index_name rebuild partition part_name tablespace tsname;
(hope you're talking about Oracle ;-)
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 01:26 AM
тАО03-16-2004 01:26 AM
Re: How do you move a partitionned index from one TS to another ?
As you can see Jean-Luc, Oracle refused to move the whole index at once.
14:55:43 RSTX01> alter index ISLDRST_CPTEXT_RST_SAVE rebuild tablespace RST;
alter index ISLDRST_CPTEXT_RST_SAVE rebuild tablespace RST
*
ERROR at line 1:
ORA-14086: a partitioned index may not be rebuilt as a whole
Do I really need to specify every partition_name ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 01:45 AM
тАО03-16-2004 01:45 AM
Solutionyep, normally every partition resides in a different tablespace.
But you can combine them into one "alter index" statement:
alter index I1
rebuild partition P1 tablespace T1 storage (...)
rebuild partition P2 tablespace T2 storage (...);
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 02:00 AM
тАО03-16-2004 02:00 AM
Re: How do you move a partitionned index from one TS to another ?
not using partioning.
from the documentation :
Using Alter Index to Rebuild a Partition
The ALTER INDEX...REBUILD PARTITION statement rebuilds one partition of an index. It cannot be used on a composite-partitioned table. At the same time as you recreate the index, you can move the partition to a new tablespace or change attributes.
For composite-partitioned tables, use ALTER INDEX...REBUILD SUBPARTITION to rebuild a subpartition of an index. You can move the subpartition to another tablespace or specify a parallel clause. The following statement rebuilds a subpartition of a local index on a table and moves the index subpartition is another tablespace.
ALTER INDEX scuba
REBUILD SUBPARTITION bcd_types
TABLESPACE tbs23 PARALLEL (DEGREE 2);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Also there was a bug on 8i where the statistics were lost. Bug 3018073
Don't know your version.
Regards,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 02:12 AM
тАО03-16-2004 02:12 AM
Re: How do you move a partitionned index from one TS to another ?
J'ai utilis├Г┬й le script suivant pour reconstruire / d├Г┬йplacer mon index :
select 'ALTER INDEX '||INDEX_NAME||' REBUILD PARTITION '||PARTITION_NAME||' TABLESPACE RST'
from USER_IND_PARTITIONS
where INDEX_NAME in (SELECT index_name FROM user_indexes WHERE table_name='TSLDRST_SAV