• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1951
  • Last Modified:

Move index to different tablespace in oracle

How can I move index from one tablespace to another in Oracle 11g ?
Sam OZ
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

Sam OZAuthor Commented:
Thanks Alex. The problem is the new tablespace is with a new user. So It doesn't let me move index
Alexander Eßer [Alex140181]Software DeveloperCommented:
the new tablespace is with a new user
What does this mean??!
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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.
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
Alexander Eßer [Alex140181]Software DeveloperCommented:
So you mean the default tablespace of the users?!
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.

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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