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 >> undo tablespaces

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: undo tablespaces
 raj  Posted: Aug 15, 2007 08:12:16 AM

 Total Post: 15
 Joined: Aug, 2007






 hi,
i have created two undo tablespace raj6 and raj7
if give sho paramtere undo_ then it will sho like this

NAME TYPE VALUE
------------------------------------ ----------- ----------
undo_management string AUTO
undo_retention integer 900
undo_suppress_errors boolean FALSE
undo_tablespace string RAJ6



now i want change raj6 to raj7 how can i change

 Punit
Posted: Aug 15, 2007 08:56:19 AM  

 Total Post: 1
 Joined: Feb, 2006






 
Hi ,

Its very simple to switch 1 tablespace to another
Currently your undo tablespace name is Raj6 now you want to switch to Raj7

follow these steps

1) ////Create seperate undo tablespace ////
create a tablespace with the name RAJ7.

2) ///////// Dynamic switching ////////////

alter system set undo_tablespace=RAJ7;

3) //// CHECK OUT WHERE ACTIVE TRANSACTION EXSIST OR NOT ////

select a.name,b.status from v$rollname a,v$rollstat b
where a.name IN(select segment_name from dba_segments
where tablespace_name='RAJ7') and a.usn=b.usn;

If the result shows all online then follow the step 4 otherwise
wait until all the transaction completed

4) ///////// Drop 1st tablespace//////

drop tablespace raj6 including contents and datafiles;


Thanks and Regards

Punit Chitra
(DBA,OCP)

 Mohammed Taj
Posted: Aug 18, 2007 02:45:21 AM  

 Total Post: 746
 Joined: Jul, 2007






 
http://dbataj.blogspot.com/search/label/Undo%20Tablespace

 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