Requires Free Membership to View
Here's an example:
SQL> desc students Name Null? Type ----------------------------------------- -------- ---------------- ID NOT NULL NUMBER(5) FIRST_NAME VARCHAR2(20) LAST_NAME VARCHAR2(20) MAJOR VARCHAR2(30) CURRENT_CREDITS NUMBER(3) SQL> create index test_stud_idx on students (major) ; Index created. SQL> select tablespace_name from user_indexes where index_name = 'TEST_STUD_IDX' ; TABLESPACE_NAME ------------------------------ USERS SQL> alter index test_stud_idx rebuild tablespace indx online ; Index altered. SQL> select tablespace_name from user_indexes where index_name = 'TEST_STUD_IDX'; TABLESPACE_NAME ------------------------------ INDXIf you have a Metalink ID, you can also find a very detailed procedural way to do this on Metalink.
For More Information
- Dozens more answers to tough Oracle questions from Karen Morton are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
This was first published in March 2003

Join the conversationComment
Share
Comments
Results
Contribute to the conversation