Solved

Move index to different tablespace in oracle

Posted on 2016-07-18
7
57 Views
Last Modified: 2016-08-30
How can I move index from one tablespace to another in Oracle 11g ?
0
Comment
Question by:Sam OZ
7 Comments
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
Comment Utility
alter index <the index name> rebuild tablespace <new tablespace name> online;

Open in new window

0
 

Author Comment

by:Sam OZ
Comment Utility
Thanks Alex. The problem is the new tablespace is with a new user. So It doesn't let me move index
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
Comment Utility
the new tablespace is with a new user
What does this mean??!
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 73

Assisted Solution

by:sdstuber
sdstuber earned 250 total points
Comment Utility
tablespaces don't have users.

do you mean the index owner doesn't have a quota on the new tablespace  or the quota is too small?

if so, talk to your dba to grant sufficient quota.

If it's simply a company policy to not mix schemas within a tablespace, then that's something different.
You'll either need to get an exemption for your policy or have the dba create a new tablespace that you are allowed to use for that schema.
0
 

Author Comment

by:Sam OZ
Comment Utility
Sorry, I mean just the otherway.. The new user is using the new tablespace...

It is somethng like this
     Olduser with OldTS(Tablespace)....    Index is now in OldTS
     New  User with NewTS
      The Index need to move from OldTS to NewTS

   When the  trying the Alter Tablespace ,  It is not letting the move of Index
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
Comment Utility
So you mean the default tablespace of the users?!
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 250 total points
Comment Utility
Why do you want to change the schema owner of an index?  That doesn't make sense.

Just create the index in the new schema.

I'm also not sure why you want a schema owning an index on a table in a different schema.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now