Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Move index to different tablespace in oracle

Posted on 2016-07-18
7
Medium Priority
?
1,081 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 14

Expert Comment

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

Open in new window

0
 

Author Comment

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

Expert Comment

by:Alexander Eßer [Alex140181]
ID: 41718258
the new tablespace is with a new user
What does this mean??!
0
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

 
LVL 74

Assisted Solution

by:sdstuber
sdstuber earned 1000 total points
ID: 41719069
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
ID: 41719279
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 14

Expert Comment

by:Alexander Eßer [Alex140181]
ID: 41719294
So you mean the default tablespace of the users?!
0
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 1000 total points
ID: 41719298
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

647 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