![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Oracle 10.2.0.4 enterprise windows 2003 standard temp space is 3 * 64gig v$tempfiles in ts LOCALTEMP Got the following errors yesterday Mon Feb 07 14:00:26 2011 ORA-1652: unable to extend temp segment by 64 in tablespace * * * * * * * * LOCALTEMP Mon Feb 07 14:00:53 2011 Errors in file d:\oracle\product\10.2.0\admin\lvyesmi\bdump \lvyesmi_j000_568.trc: ORA-00600: internal error code, arguments: [kglhdgn_1], [0x7FF84871250], [18446744071639766840], [4], [], [], [], [] What I know temp resource filling up caused database to be unavailable Known unknowns Is there a way I can get details of users/query/temp useage at time of crash so that I can say eg Mr x *ran a select from tab which used 1.5gig & was trying to grab more space I am hoping AWR may hold key to who was using temp at time of the crash..thus giving a more meaningful explanation to the customer of the cause and potential solutions regards Chris B |
#3
| |||
| |||
|
|
Oracle 10.2.0.4 enterprise windows 2003 standard temp space is 3 * 64gig v$tempfiles in ts LOCALTEMP Got the following errors yesterday Mon Feb 07 14:00:26 2011 ORA-1652: unable to extend temp segment by 64 in tablespace * * * * * * * * LOCALTEMP Mon Feb 07 14:00:53 2011 Errors in file d:\oracle\product\10.2.0\admin\lvyesmi\bdump \lvyesmi_j000_568.trc: ORA-00600: internal error code, arguments: [kglhdgn_1], [0x7FF84871250], [18446744071639766840], [4], [], [], [], [] What I know temp resource filling up caused database to be unavailable Known unknowns Is there a way I can get details of users/query/temp useage at time of crash so that I can say eg Mr x *ran a select from tab which used 1.5gig & was trying to grab more space I am hoping AWR may hold key to who was using temp at time of the crash..thus giving a more meaningful explanation to the customer of the cause and potential solutions regards Chris B |
#4
| |||
| |||
|
|
Is there a way I can get details of users/query/temp useage at time of crash so that I can say eg Mr x ran a select from tab which used 1.5gig & was trying to grab more space |
#5
| |||
| |||
|
|
On Tue, 08 Feb 2011 06:16:32 -0800, dba cjb wrote: Is there a way I can get details of users/query/temp useage at time of crash so that I can say eg Mr x *ran a select from tab which used 1.5gig & was trying to grab more space select s.username, * * * *ss.sid, * * * *s.tablespace, * * * *round(sum(s.blocks*t.block_size)/1048576,2) MB from v$sort_usage s,dba_tablespaces t,v$session ss where s.tablespace=t.tablespace_name * and s.session_addr=ss.saddr group by s.username,ss.sid, s.tablespace order by 4 desc --http://mgogala.byethost5.com |
#6
| |||
| |||
|
|
He's using 10.2.0.x so V$TEMPSEG_USAGE is a better view to query: select u.username, s.sql_fulltext, u.segtype, u.extents, u.blocks from v$tempseg_usage u, v$sql s where s.sql_id = u.sql_id; |
#7
| |||
| |||
|
|
On Tue, 08 Feb 2011 08:00:20 -0800, ddf wrote: He's using 10.2.0.x so V$TEMPSEG_USAGE is a better view to query: select u.username, s.sql_fulltext, u.segtype, u.extents, u.blocks from v$tempseg_usage u, v$sql s where s.sql_id = u.sql_id; This is a better view, because it shows the SQL that allocated the space, but I still have to join it with V$SESSION to get the SID and with the DBA_TABLESPACES to get the block size. Without block size, I can't deduce the usage in bytes. Basically, I don't think that the improvement is significant enough to change my script. --http://mgogala.byethost5.com |
#8
| |||
| |||
|
|
And V$SORT_USAGE is not the same definition given to V_$SORT_USAGE; describe both views (as I did) and you will see differences. |
![]() |
| Thread Tools | |
| Display Modes | |
| |