I am a novice to Oracle DBMS and I have a task to change an index table space in Oracle e.g. from MYDB_DATA_SPACE to MYDB_INDX_SPACE.
I have tried searching on Google for possible solutions and found such SQL:
ALTER INDEX idx_city_state
REBUILD TABLESPACE sales_us;
Can I please check if this serves the purpose?
Yes, that will rebuild the
idx_city_stateindex in thesales_ustablespace. You can write a bit of dynamic SQL to rebuild all the indexes