Home » RDBMS Server » Server Administration » Huge archive generation (Oralce 10g (10.2.0.4.0) on AIX 5.3)
Huge archive generation [message #549663] |
Mon, 02 April 2012 23:48 |
raj9999
Messages: 49 Registered: June 2011
|
Member |
|
|
In normal days size of archives generated in a day is 14-15GB. But since yesterday morning, almost 150GB of archives have been generated and are still getting generated(200MB every 1-2 minutes).
There was a sudden reboot of server yesterday morning. At that time there was heavy load of transactions on database. Can it be a reason that smon is still doing recovery? (I am not sure on this). Also, Undo tablespace is increased from 18 GB to 50 GB since yesterday (autoextend on).
Now we are running out of space for archive file system (can't delete them also until they are transferred to DR)
Size of redo log is 200MB.
This database supports around 2500 users.
performance wise I don't see any hit. Also wait events are normal. (only few db file sequential read)
Kindly help in finding the query/session which are causing this much huge amount of archives?
|
|
|
|
|
|
Re: Huge archive generation [message #549690 is a reply to message #549663] |
Tue, 03 April 2012 01:27 |
John Watson
Messages: 8962 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
If the the sessions are still connected, this will give you the session IDs:select sid,value from v$sesstat natural join v$statname where name='redo size' order by 2; then join to v$session and v$sql to see what they are doing.
|
|
|
Re: Huge archive generation [message #549695 is a reply to message #549684] |
Tue, 03 April 2012 02:01 |
raj9999
Messages: 49 Registered: June 2011
|
Member |
|
|
Hi Michel,
When I am not able to understand the problem and the possible solution, then only I have come here for help. You can reply with a possible answer also instead of asking question again.
Anyway, Thanks for your help.
Hi John,
below is the query output (4-5 rows with highest value).
Largest is of SMOM.
SID VALUE
---------- ----------
8693 36847168
8679 37257664
8801 484244248
8802 488521036
8798 1.9716E+11
2569 rows selected.
SQL> @sess
Enter value for sid: 8798
old 1: select sid,serial#,username,status,machine,program,SQL_HASH_VALUE from v$session where sid=&sid
new 1: select sid,serial#,username,status,machine,program,SQL_HASH_VALUE from v$session where sid=8798
SID SERIAL# USERNAME STATUS MACHINE PROGRAM SQL_HASH_VALUE
---------- ---------- ------------------------------ -------- ---------------------------------------------------------------- ------------------------------------------------ --------------
8798 1 ACTIVE sunpath31 oracle@sunpath31 (SMON) 0
SQL> /
Enter value for sid: 8802
old 1: select sid,serial#,username,status,machine,program,SQL_HASH_VALUE from v$session where sid=&sid
new 1: select sid,serial#,username,status,machine,program,SQL_HASH_VALUE from v$session where sid=8802
SID SERIAL# USERNAME STATUS MACHINE PROGRAM SQL_HASH_VALUE
---------- ---------- ------------------------------ -------- ---------------------------------------------------------------- ------------------------------------------------ --------------
8802 3 ACTIVE sunpath31 oracle@sunpath31 (DBW0) 0
SQL> /
Enter value for sid: 8801
old 1: select sid,serial#,username,status,machine,program,SQL_HASH_VALUE from v$session where sid=&sid
new 1: select sid,serial#,username,status,machine,program,SQL_HASH_VALUE from v$session where sid=8801
SID SERIAL# USERNAME STATUS MACHINE PROGRAM SQL_HASH_VALUE
---------- ---------- ------------------------------ -------- ---------------------------------------------------------------- ------------------------------------------------ --------------
8801 3 ACTIVE sunpath31 oracle@sunpath31 (DBW1) 0
SQL> /
Enter value for sid: 8679
old 1: select sid,serial#,username,status,machine,program,SQL_HASH_VALUE from v$session where sid=&sid
new 1: select sid,serial#,username,status,machine,program,SQL_HASH_VALUE from v$session where sid=8679
SID SERIAL# USERNAME STATUS MACHINE PROGRAM SQL_HASH_VALUE
---------- ---------- ------------------------------ -------- ---------------------------------------------------------------- ------------------------------------------------ --------------
8679 1 AGENT1 INACTIVE sunpath21 diskr-mon-all@sunpath81 (TNS V1-V3) 0
SQL> @sess
Enter value for sid: 8693
old 1: select sid,serial#,username,status,machine,program,SQL_HASH_VALUE from v$session where sid=&sid
new 1: select sid,serial#,username,status,machine,program,SQL_HASH_VALUE from v$session where sid=8693
SID SERIAL# USERNAME STATUS MACHINE PROGRAM SQL_HASH_VALUE
---------- ---------- ------------------------------ -------- ---------------------------------------------------------------- ------------------------------------------------ --------------
8693 2 AGENT1 INACTIVE sunpath21 diskr-mon-all@sunpath81 (TNS V1-V3) 0
|
|
|
|
Re: Huge archive generation [message #551669 is a reply to message #549696] |
Fri, 20 April 2012 01:13 |
|
I encountered something like that before, what I did is checked the archive logs using notepad++, and saw some string in it, that string is one of our user, after that i checked all the sql statements that user run/execute and found out that s/he performed a bad sql statement (infinite loop). By the way, i saw her username in all of our archive logs. I fixed her sql statement, then restart the database.
|
|
|
Goto Forum:
Current Time: Tue Jan 07 21:55:43 CST 2025
|