[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1446
  • Last Modified:

Move index to different tablespace in oracle

How can I move index from one tablespace to another in Oracle 11g ?
0
Sam OZ
Asked:
Sam OZ
2 Solutions
 
Alexander Eßer [Alex140181]Software DeveloperCommented:
alter index <the index name> rebuild tablespace <new tablespace name> online;

Open in new window

0
 
Sam OZAuthor Commented:
Thanks Alex. The problem is the new tablespace is with a new user. So It doesn't let me move index
0
 
Alexander Eßer [Alex140181]Software DeveloperCommented:
the new tablespace is with a new user
What does this mean??!
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
sdstuberCommented:
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
 
Sam OZAuthor Commented:
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
 
Alexander Eßer [Alex140181]Software DeveloperCommented:
So you mean the default tablespace of the users?!
0
 
slightwv (䄆 Netminder) Commented:
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Tackle projects and never again get stuck behind a technical roadblock.
Join Now