Urgent - Probs with Rollack-Segment [message #121634] |
Tue, 31 May 2005 04:42 |
marrec
Messages: 35 Registered: May 2005 Location: Mühlheim, Germany
|
Member |
|
|
Hi there,
i have a prob with one of my rollback-segments.
this is a big segment, which is used for some special transactions.
Yesterday a transaction failed.
We tried to set the rbs offline. After this the database was very slow, and some employees could'nt work.
the alert.log file said:
SMON: about to recover undo segment xy
SMON: mark undo segment xy as available
.
.
.
these two lines were repeated thousand times and more in the alert.log.
the rbs had the state "Partly Available".
After setting the state back to online, the message disappered.
Now we tried to set the rbs offline to drop and recreate it, but the state is now "pending offline".
In v$rollstat i can see that one transaction is active, but i can't see any transactions in v$transaction.
In v$rollstat the column writes is = 0 !!!
we use oracle 8.1.7 on win200 advanced server
i'd really appreciate any helps,
thx so far
marrec
|
|
|
|
Re: Urgent - Probs with Rollack-Segment [message #121639 is a reply to message #121638] |
Tue, 31 May 2005 05:38 |
marrec
Messages: 35 Registered: May 2005 Location: Mühlheim, Germany
|
Member |
|
|
hi,
i'm not getting an error.
oracle just says, that there is one active transaction in this rbs.
nobody used the 'set transaction' command.
and in v$transaction there's no transaction at all.
this one transaction seems to me like a "ghost transaction".
in v$rollstat col writes is 0, so the transaction didn't write anything into the rbs.
thx,
marrec
|
|
|
|
Re: Urgent - Probs with Rollack-Segment [message #121668 is a reply to message #121664] |
Tue, 31 May 2005 07:08 |
marrec
Messages: 35 Registered: May 2005 Location: Mühlheim, Germany
|
Member |
|
|
all in all we've got 23 rbs.
but 15 of them are offline.
remain 7 online (one is system rbs) and 1 (the infamous one) is pending offline.
select usn, rssize / (1024*1024) as "size" --MB
from v$rollstat
USN|size
0 | 0,3828125
2 | 138,078125
3 | 138,078125
4 | 138,078125
5 | 138,078125
6 | 138,078125
7 | 138,078125
22|1315,65625 (pending offline)
usn 0 is system rbs, usn 22 is the big one, which causes the problems.
thx
|
|
|
|
Re: Urgent - Probs with Rollack-Segment [message #121682 is a reply to message #121673] |
Tue, 31 May 2005 08:43 |
marrec
Messages: 35 Registered: May 2005 Location: Mühlheim, Germany
|
Member |
|
|
i don't know which session causes the problem, because v$transaction is empty, so i can't join it.
v$rollstat "writes" is 0 !
(the transaction has been running for hours now and there's no undo generated)
in v$session_longops is no record which has column sofar < totalwork --> so every work should be done
In v$session_wait are a lot of session waiting for something:
SQL*Net message from client has state "WAITED UNKNOWN TIME"
rdbms ipc message,
pmon_timer,
buffer_busy_waits,
db file sequential read,
Wait for stopper event to be increased,
PX Deq: Txn Recovery Start
select st.name,sess.value from v$statname st,v$sesstat sess where st.statistic#=sess.statistic# and st.name = 'redo blocks written' and sess.sid=SID
there are 34 rows with
redo blocks written 0
and the last one has:
redo blocks written 31341470
this session is from a background process.
thx
marrec
|
|
|
Re: Urgent - Probs with Rollack-Segment [message #121690 is a reply to message #121682] |
Tue, 31 May 2005 09:08 |
marrec
Messages: 35 Registered: May 2005 Location: Mühlheim, Germany
|
Member |
|
|
there's one session, which is a system background process, that has:
"Wait for stopper event to be increased"
in v$session_wait - event.
this session has also a TX lock in v$locks. (and some ps locks)
|
|
|
Re: Urgent - Probs with Rollack-Segment [message #121854 is a reply to message #121690] |
Wed, 01 June 2005 08:27 |
marrec
Messages: 35 Registered: May 2005 Location: Mühlheim, Germany
|
Member |
|
|
hi,
finally (when all the others went home) i set the rollback-segment online and did a 'shutdown immediate'. then i started the database again and set the rollback-segment offline again.
After a restart the rbs was offline and the database is working fine again.
thx,
marrec
|
|
|
|