Temp grow 1TB [message #649839] |
Fri, 08 April 2016 14:48 |
|
ceciaide
Messages: 8 Registered: April 2016 Location: mexico
|
Junior Member |
|
|
when im execute a query with join
the temp is grown up to much
SELECT PROFILE.DATA.CELLCODE, PROFILE.DATA.CODE1, PROFILE.MATRIX.CUSTOMER_ID, PROFILE.MATRIX.SCORE
FROM (( PROFILE.UAC INNER JOIN PROFILE.DATA ON PROFILE.UAC.CELLCODE= PROFILE.DATA.CELLCODE AND
PROFILE.UAC.CODE1 = PROFILE.DATA.CODE1)
INNER JOIN PROFILE.MATRIX ON (PROFILE.DATA.CODE1= PROFILE.MATRIX.CODE))
ORDER BY PROFILE.DATA.CELLCODE,PROFILE.DATA.CODE1;
How can I resolve this?
its perfomance?
the temp its autoextend off.
but if i recreate Tb temp to small size
error
ORA-1652: Unable to extend temp segment by 128 in tablespace TEMP
|
|
|
|
Re: Temp grow 1TB [message #649849 is a reply to message #649839] |
Sat, 09 April 2016 04:05 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
If you format your code (as BS has asked) it is easier to understand:SELECT PROFILE.data.cellcode,
PROFILE.data.code1,
PROFILE.matrix.customer_id,
PROFILE.matrix.score
FROM (( PROFILE.uac
inner join PROFILE.data
ON PROFILE.uac.cellcode = PROFILE.data.cellcode
AND PROFILE.uac.code1 = PROFILE.data.code1)
inner join PROFILE.matrix
ON ( PROFILE.data.code1 = PROFILE.matrix.code ))
ORDER BY PROFILE.data.cellcode,
PROFILE.data.code1 I do not undertand how people can work with un-formatted code.
Do you really need the join to UAC ? Is it removing any rows? Could you get the same effect with a filter or a constraint?
|
|
|
|
|
|
|
|
|