waiting for ORACLE GURUs reply
Hi
Started With : SMON was taking 98% of cpu time. all the other query timing out.
Observation : tempdb grown to 25G single file
Suggestion from oracle support :
1. start oracle with event
event = "10061 trace name context forever, level 10"
which bypass the SMON cleaning. so cpu usage down to normal. but still becoz of big tempdb all other query taking long time.
2. asked support if we can simply drop TEMP tablespace. they said yes. and i started DROP TABLESPACE TEMP WITH content
and it is running for past 24 hours and still no luck. And oracle svrmgrl sucks :( i can't put it in background. so if somehow i loose connection ...:(
now i checked DBA_SEGMENT table if count(*) is dropping. it looks like this
SQL> SELECT COUNT(*) FROM DBA_EXTENTS WHERE SEGMENT_TYPE like 'TEMP%';
COUNT(*)
----------
288318
SQL> /
COUNT(*)
----------
287718
SQL>
3. i created another tablespace by TEMP_NEW and assigned that as TEMP for all users. while this DROP ..running nobody is connected to DB.
Questions : 1. is dropping count(*) sign is good. that it is doing something :)
2. is there is any quick way to drop the TEMP tablespace which is 25G :(
Any other suggestions are WELCOME.
I am modufying actual posting to say it is RUNNING FOR PAST 3 DAYS .
i need this DB up by tomorrow afternoon. i can't think of anything else
thanks and regards
DBKID.
[Edited by dbkid on 12-02-2001 at 09:07 PM]
down from 370000 to 98000...BUT
Hi vette86 and all friends
so DROP TABLESPACE was running for past 3 days. and still hasn't finished completly.
vette86 you said , you had similar problem. do you remember what kind of machine you had. mine is sun c cpu 333 MHz machine.
i had to kill the drop tablespace and let people use the machine.
i am not sure whether i should start drop tablespace thing again or not becoz it chews up 98% of 1 cpu time. but i have to do it at some time.
any advices / ideas are welcome. can somebody also explores the locally managed temp files idea given by oracle support. though i am reading the documentation for it. but your experience will make great difference.
thanks and regards
DBKID
thanks for wonderful tip , BUT...
Hi vette86
thanks for wonderful tip regarding the sort area. i changed that to 3 MB.
Can you please tell me about the locally managed temp file. advantages and disadavantaged related to it.
btw , i had to kill the drop tablespace temp command becoz we needed DB for some other urgent work. so i started again the DROP TABLESPACE TEMP last night, it is still running. what i see now is :-
SQL> select count(*) from DBA_EXTENTS where segment_type like 'TEMP%' and
tablespace_name = 'TEMP';
COUNT(*)
----------
34200
which is going DOWN.
&
this one is going UP
SQL> select count(*) from dba_free_space where tablespace_name = 'TEMP';
COUNT(*)
----------
372110
but i think at the end it will clear off the dba_free_space table also.
correct me if i am wrong
thanks and regards
- DBKID
so finally.it finished after....( GOOD Lesson)
Hi Friends,
so finally my drop tablespace finished after 8 days and 3 hours. sometime oracle sucks :( ( please do not mind )
so i have question for you guys again :
1. as per my knowledege SMON awakes every 3 min and cleans the free extents from dba_extents and puts in dba_free_space.
there is nobody connected to database and still i see this quesry returning same rows
select count(*) from dba_extents where segment_type = 'TEMPORARY'
don't you think it should clear it.
i am running oracle 8.1.7 db.
FYI : Stats on my DROP TABLESPACE
- initial count on dba_extents for TEMP segment 378,560
- machine sun U2
- how long it took to drop temp tablespace - 8days + 3 hours
- it initially cleared everything from dba_extents and put it in dba_free_space and then it cleared dba_free_space
Now i am using locally managed temp file which is cool :)
thanks and regards
DBKID