Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> Creating Index in Another Tablespace

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Creating Index in Another Tablespace
 sm_ahmeds  Posted: Apr 29, 2007 01:56:41 PM

 Total Post: 53
 Joined: Apr, 2007






 hi.......i want to know how to create an index for an existing table (payroll) which is in USERS tablespace in another tablespace TB_INDEX.

And also please help me in creating the table in USERS tablespace with its index in TB_PAYROLL tablespace.


THANKS

 Ratnaker
Posted: Apr 30, 2007 02:42:54 AM  

 Total Post: 138
 Joined: Apr, 2007






 
hi,

you can user given below the statement:

CREATE INDEX emp_ename ON emp(ename)
TABLESPACE users
STORAGE (INITIAL 20K
NEXT 20k
PCTINCREASE 75)
PCTFREE 0;

Ratnaker

 sm_ahmeds
Posted: Apr 30, 2007 05:37:46 AM  

 Total Post: 53
 Joined: Apr, 2007






 
Thanks Ratnakar......can u please tell me how to move an existing index to another tablespace without moving the table


Thanks Again

 Ratnaker
Posted: Apr 30, 2007 06:46:35 AM  

 Total Post: 138
 Joined: Apr, 2007






 
Hi
drop index and recreate again in different tablespace.

Ratnaker

 Vigyan
Posted: Apr 30, 2007 07:07:20 AM  

 Total Post: 386
 Joined: May, 2001






 
You can move index without dropping it using alter command.

ALTER INDEX INDEX_NAME TABLESPACE NEW_TABLESPACE REBUILD ONLINE;

Thanks,
Vigyan

 sm_ahmeds
Posted: Apr 30, 2007 10:44:01 AM  

 Total Post: 53
 Joined: Apr, 2007






 
Thanks all for helping me.

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar816
  Mohammed Taj746
  Jayanta Sur479
  positive fanatic418
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi250
  Ramesh Jois245
  neeraj sharma243
  Bishal Khetan207






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software