Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> HELP Query never completes

HELP Query never completes

From: Michael Joseph <michaelJ_at_capital-re.com>
Date: 1997/09/26
Message-ID: <342BFB28.30A13243@capital-re.com>#1/1

The following query causes our 1Gb TEMP tablespace to overflow with the 'Unable to extend TEMP tablespace' message and consequently cannot be run to completion.

We have analysed it up and down but to no avail.

Here are some other Stats:

The tables are all under 100,000 rows with the exception of the _AW table which is about 6,000,000 rows.
All the joined columns are indexed in single key indexes. All the _AW indexes are bitmaps
Not all the group by columns are indexed but indexing them seems to make no difference.

Thanks for any help.

MICHAELJ_at_CAPITAL-RE.COM

SELECT "PFM_USER"."PFM_TBL_POLICY"."POLICY_NUM",

"PFM_USER"."PFM_TBL_CLIENT"."CLIENT_D",
"PFM_USER"."PFM_TBL_REV_SR"."REV_SR_D",
"PFM_USER"."PFM_TBL_REV_SR"."MASTER_K",
"PFM_USER"."PFM_TBL_REV_SR"."NAME_REVS1",
"PFM_USER"."PFM_TBL_REV_SR"."STATE",
"PFM_USER"."PFM_TBL_TRNSUM"."ATTACH_DAT",
"PFM_USER"."PFM_TBL_REV_SR"."NAIC_ID",
"PFM_USER"."PFM_TBL_REV_SR"."MOODY_RATING",
"PFM_USER"."PFM_TBL_REV_SR"."SP_RATING",
"PFM_USER"."PFM_TBL_REV_SR"."REVENUE_TYPE",
SUM("PFM_USER"."PFM_TBL_DSASSREF_AW"."PAR") PAR, SUM("PFM_USER"."PFM_TBL_DSASSREF_AW"."INTEREST") INTEREST FROM "PFM_USER"."PFM_TBL_CLIENT",
"PFM_USER"."PFM_TBL_DSASSREF_AW",
"PFM_USER"."PFM_TBL_POLICY",
"PFM_USER"."PFM_TBL_REV_SR",
"PFM_USER"."PFM_TBL_TRNSUM"
WHERE ( "PFM_USER"."PFM_TBL_DSASSREF_AW"."REV_SR_K" = "PFM_USER"."PFM_TBL_REV_SR"."REV_SR_K" ) and ( "PFM_USER"."PFM_TBL_DSASSREF_AW"."SUM_K" = "PFM_USER"."PFM_TBL_TRNSUM"."TRNSUM_K" ) and ( "PFM_USER"."PFM_TBL_TRNSUM"."POLICY_K" = "PFM_USER"."PFM_TBL_POLICY"."POLICY_K" ) and ( "PFM_USER"."PFM_TBL_DSASSREF_AW"."ORIGIN_CO" = "PFM_USER"."PFM_TBL_CLIENT"."CLIENT_COD" ) and ( ( PFM_USER."PFM_TBL_DSASSREF_AW"."DS_DATE" > '30-JUN-97' ) AND ( PFM_USER."PFM_TBL_REV_SR"."REVENUE_TYPE" <> 'NMMORTINS' ) AND ( PFM_USER."PFM_TBL_DSASSREF_AW"."OWNER_CO" = 99 ) AND ( PFM_USER."PFM_TBL_DSASSREF_AW"."ORIGIN_CO" > 100 ) AND ( PFM_USER."PFM_TBL_REV_SR"."MASTER_K" = 10000000 ) ) GROUP BY "PFM_USER"."PFM_TBL_POLICY"."POLICY_NUM",
"PFM_USER"."PFM_TBL_CLIENT"."CLIENT_D",
"PFM_USER"."PFM_TBL_REV_SR"."REV_SR_D",
"PFM_USER"."PFM_TBL_REV_SR"."MASTER_K",
"PFM_USER"."PFM_TBL_REV_SR"."NAME_REVS1",
"PFM_USER"."PFM_TBL_REV_SR"."STATE",
"PFM_USER"."PFM_TBL_TRNSUM"."ATTACH_DAT",
"PFM_USER"."PFM_TBL_REV_SR"."NAIC_ID",
"PFM_USER"."PFM_TBL_REV_SR"."MOODY_RATING",
"PFM_USER"."PFM_TBL_REV_SR"."SP_RATING",
"PFM_USER"."PFM_TBL_REV_SR"."REVENUE_TYPE"
Received on Fri Sep 26 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US