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 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: UNDO TABLESPACE
 pikun  Posted: Mar 01, 2008 04:51:13 AM

 Total Post: 17
 Joined: Jan, 2008






 I have set my undo-space in auto-extend mode. but in the end when its capturing huge capacity,, than .. I am not able to drop this Undo-tablespace even after restarting database as well as server.

To drop the old undo1 I am creating Undo-2(new Undo tablespace) after restarting database.
then also it is not permitting me to drop the undo-tablespace1. so i restarted my server.. but still no result..
the Procedure i attempted is given below--------

1)CREATE UNDO TABLESPACE UNDOTBS2 DATAFILE '/kol/dbs/dbf/acestkol/undotbs05.dbf' SIZE 50M AUTOEXTEND OFF;

2)ALTER SYSTEM SET undo_tablespace = UNDOTBS2 ;

3)DROP TABLESPACE undotbs1 INCLUDING CONTENTS AND DATAFILES ;

4)CREATE UNDO TABLESPACE UNDOTBS1 DATAFILE '/kol/dbs/dbf/acestkol/undotbs01.dbf' SIZE 1024M AUTOEXTEND ON;

5)ALTER SYSTEM SET undo_tablespace = UNDOTBS1;

6)DROP TABLESPACE undotbs2 INCLUDING CONTENTS AND DATAFILES ;

friends.!!!!! the 3rd query is not working by giving error like--

"the datafile currently in use" ( I repeat even after restarting server, its not working)

need help please give solution.!!!!!!!!

 pikun
Posted: Mar 01, 2008 06:10:18 AM  

 Total Post: 17
 Joined: Jan, 2008






 
making it offling... will it make any difference?

 Mohammed Taj
Posted: Mar 01, 2008 07:34:45 AM  

 Total Post: 746
 Joined: Jul, 2007






 
You have to wait for sometimes becuase some transaction still using "undotbs2". but you said you restart database and server can show us exact sqlplus output.



 pikun
Posted: Mar 02, 2008 01:27:05 AM  

 Total Post: 17
 Joined: Jan, 2008






 
hello Taj,

as I told u tht i was using the above ueries..
So after restarting Server or database whenever i execute those queries then .. after running 3rd query it is giving exactly error like below..

SQL> DROP TABLESPACE undotbs1 INCLUDING CONTENTS AND DATAFILES ;
DROP TABLESPACE undotbs1 INCLUDING CONTENTS AND DATAFILES
*
ERROR at line 1:
ORA-30013: undo tablespace 'UNDOTBS1' is currently in use

 Mohammed Taj
Posted: Mar 02, 2008 01:41:00 AM  

 Total Post: 746
 Joined: Jul, 2007






 
SQL> show parameter undo_tablespace

NAME TYPE VALUE
------------------------------------ ----------- -------------------------undo_tablespace string UNDOTBS1
SQL> drop tablespace undotbs1 including contents and datafiles;
drop tablespace undotbs1 including contents and datafiles
*
ERROR at line 1:
ORA-30013: undo tablespace 'UNDOTBS1' is currently in use


the above something happen with you...

first show us what is your "undo_tablespace" parameter is set ?


 pikun
Posted: Mar 02, 2008 05:00:58 AM  

 Total Post: 17
 Joined: Jan, 2008






 
as per as ur advice following thing is happening.....

SQL> show parameter undo_tablespace;

NAME TYPE VALUE
------------------------------------ ----------- ----------------
undo_tablespace string UNDOTBS1

 pikun
Posted: Mar 02, 2008 05:03:54 AM  

 Total Post: 17
 Joined: Jan, 2008






 
SQL> show parameter undo_tablespace;

NAME TYPE VALUE
------- -------- ---------
undo_tablespace string UNDOTBS1

 pikun
Posted: Mar 02, 2008 05:18:00 AM  

 Total Post: 17
 Joined: Jan, 2008






 
hello taj,

looks like the problem is solved. one of our data process was not completed. thats why this process was holding the current undoplace. i traced the machine running the process followed by completing the process.

Now the database is permitting to drop the tablespace

wat u say??? i think its ok.. reply

 Mohammed Taj
Posted: Mar 02, 2008 07:19:33 AM  

 Total Post: 746
 Joined: Jul, 2007






 
I don't know it is completed or not.
just give me below command output.

show parameter undo_tablespace

if you drop UNDOTBS1 then above command must be show something different name for undo tablespace.


 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