Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Performance Problems Solaris Vs Windows
Do you have anything set in the
configuration that would (hints, multiblock read count...) that would favor a
different execution path?
<FONT
face=Tahoma>-----Original Message-----From: Ishwar Tewari
[mailto:[EMAIL PROTECTED]Sent: Wednesday, June 11, 2003 3:00
PMTo: Multiple recipients of list ORACLE-LSubject: RE:
Performance Problems Solaris Vs Windows
Do u analyze both sets of tables on the
different platforms at the same regular intervals?
<FONT
face=Tahoma>-----Original Message-----From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]On Behalf Of Munish
BajajSent: Wednesday, June 11, 2003 12:35 PMTo:
Multiple recipients of list ORACLE-LSubject: Performance Problems
Solaris Vs Windows
Hi Gurus,
I'm facing a weird problem. I'm running a
same query on windows as well as on Solaris both having Oracle 8.0.5
database using CBO optimizer. The Query runs fine on Windows (takes 20-30
Secs) while the same hangs on Solaris and takes 4-6 hrs to return the
results. Both the databases have approx same number of rows and
indexes.
The Query is :
SELECT COUNT(*) FROM
mam_assets a, mam_asset_attr_domain_values dmv65549
WHERE a."ID" = dmv65549.asset_id AND
a."ID" IN (SELECT
dmv3.asset_idFROM mam_asset_attr_domain_values
dmv3
71
3
dmv3.asset_idFROM mam_asset_attr_domain_values
dmv3
71
3
<TABLE cellSpacing=0 cols=3 cellPadding=0 width=634 bgColor=#f7f7e7 border=0>
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step16">16
<IMG height=16 alt=border=0
src="" width=16 align=top> SELECT STATEMENT
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step15">15
<IMG height=16 alt=""
src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> SORT (AGGREGATE)
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step14">14
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> NESTED
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step12">12
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> NESTED
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step10">10
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> MERGE JOIN (CARTESIAN)
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step4">4
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top>
<FONT
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step3">3
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> SORT (UNIQUE)
name=planStep1>
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step2">2
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> TABLE ACCESS (BY INDEX ROWID), MAM_ASSET_ATTR_DOMAIN_VALUES (GMASTER) <A
name=planStep9>
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step1">1
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> INDEX (RANGE SCAN), ATRVALDOM_DOMVAL_FK_I (GMASTER) <A
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step9">9
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> SORT
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step8">8
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top>
<FONT
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step7">7
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> SORT (UNIQUE)
name=planStep5>
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step6">6
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> TABLE ACCESS (BY INDEX ROWID), MAM_ASSET_ATTR_DOMAIN_VALUES (GMASTER) <A
name=planStep11>
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step5">5
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> INDEX (RANGE SCAN), ATRVALDOM_DOMVAL_FK_I (GMASTER) <A
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step11">11
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> INDEX (UNIQUE SCAN), AST_PK (GMASTER)
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Solaris%20Plan.html#step13">13
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> INDEX (RANGE SCAN), ATRVALDOM_AST_FK_I (GMASTER)
<TABLE cellSpacing=0 cols=3 cellPadding=0 width=634 bgColor=#f7f7e7 border=0>
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step15">15
<IMG height=16 alt=border=0
src="" width=16 align=top> SELECT STATEMENT
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step14">14
<IMG height=16 alt=""
src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> SORT (AGGREGATE)
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step13">13
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> NESTED
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step11">11
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> HASH
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step4">4
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top>
<FONT
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step3">3
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> SORT (UNIQUE)
name=planStep1>
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step2">2
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> TABLE ACCESS (BY INDEX ROWID), MAM_ASSET_ATTR_DOMAIN_VALUES (QUARKDMS) <A
name=planStep10>
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step1">1
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> INDEX (RANGE SCAN), ATRVALDOM_DOMVAL_FK_I (QUARKDMS) <A
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step10">10
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> NESTED
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step8">8
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top>
<FONT
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step7">7
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> SORT (UNIQUE)
name=planStep5>
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step6">6
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> TABLE ACCESS (BY INDEX ROWID), MAM_ASSET_ATTR_DOMAIN_VALUES (QUARKDMS) <A
name=planStep9>
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step5">5
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> INDEX (RANGE SCAN), ATRVALDOM_DOMVAL_FK_I (QUARKDMS) <A
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step9">9
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> INDEX (UNIQUE SCAN), AST_PK (QUARKDMS)
As u can clearly see that on Solaris the Oracle does a Merge Join (Cartesian) which is very expensive and hence takes a lot of time.
<A
href="file:///C:/Documents%20and%20Settings/mbajaj/My%20Documents/Windows%20Plan.html#step12">12
<IMG height="100%" alt=""
src="" width=16 border=0><IMG height="100%" alt="" src="" width=16 border=0><IMG height=16 alt="" src="" width=16 align=top border=0><IMG height=16 alt=border=0 src="" width=16 align=top> INDEX (RANGE SCAN), ATRVALDOM_AST_FK_I (QUARKDMS)