mark_h
13th November 2008, 23:19
In this case I am talking about a custom session. We recently upgraded to a new SP and Oracle 10g. This had horrible performance - an Oracle profile was added and the session runs fine. Well, because of other issues we set all recommended parameters, bounce the database. When it comes backup - we test this session just fine. The next day the users hit the session and we are back to horrible performance. The DBA's remove the profile and then the session works fine. Now two weeks later(yesterday) the session starts performing bad again - DBA's add the Oracle profile and the session is back to normal. So far none of the other session problems have come back since we set the suggest parameters - again,so far just this one session cropped back up as a problem. Any suggestions on what might cause something like this?
I included one of the main queries on the session ---please note that I did not write either of these queries --- I want to rework the query and break it up, but so far we have agreed to wait and see if the problem comes back again. Is there something in 1 of these queries which might cause problems - maybe something like UNREF CLEAR or refers to???? The two queries are called based on input parameters - query 1 is below:
select tipgc520.*,
tppdm065.desc, | Project Group description
tccom020.clan, | Supplier Language
tccom020.nama, | Supplier Name
tcmcs002.crnd, | Currency rounding factor
tcmcs046.lang, | Language
tbuyr.nama:buyr.nama, | Buyers name
tcplb.nama:cplb.nama, | Planners name
tiitm001.citg, | Item Group
tiitm001.cuni | Conversion
,tiitm001.dsca, | Descritpion |#40b2a&d2.n
tiitm001.csig | Signal Code
from tipgc520, tppdm065, tccom020,
tcmcs002, tccom001 tbuyr, tccom001 tcplb,
tiitm001
where tipgc520._index1 inrange {:ccot.f, :orno.f}
and {:ccot.t, :orno.t}
and tipgc520.item between :item.f and :item.t
and tipgc520.suno between :suno.f and :suno.t
and tipgc520.podt between :podt.f and :podt.t
and tipgc520.osta between :osta.f and :osta.t
and tipgc520.buyr between :buyr.f and :buyr.t
and tipgc520.cplb between :cplb.f and :cplb.t
and tiitm001.citg between :citg.f and :citg.t
and tipgc520.osta <> tcorsa.actualized | Transfered
and tipgc520.item refers to tiitm001
and tipgc520.ccot refers to tppdm065
and tipgc520.suno refers to tccom020 UNREF CLEAR
and tccom020.clan refers to tcmcs046 UNREF CLEAR
and tipgc520.ccur refers to tcmcs002
and tipgc520.buyr refers to tbuyr UNREF CLEAR
and tipgc520.cplb refers to tcplb UNREF CLEAR
order by tipgc520._index1
selectdo
Query 2 is run when the user includes the project and CCN
domain tcamnt discount.amount | to calculate discount |552.sn
domain tcamnt net.amount | ,, ,, ,, |552.en
select tipgc820.cprj, tipgc820.cspa, tppdm600.cprj, tppdm600.ccot,
tipgc521.*, tipgc520.*, tppdm065.desc, tccom020.clan,
tccom020.nama, tcmcs002.crnd, tcmcs046.lang, tiitm001.citg,
tiitm001.cuni, tiitm001.dsca, tiitm001.csig,
tbuyr.nama:buyr.nama, tcplb.nama:cplb.nama
from tipgc820, tppdm600, tipgc521, tipgc520, tppdm065, tccom020,
tcmcs002, tcmcs046, tiitm001, tccom001 tbuyr, tccom001 tcplb
where tipgc820._index2 inrange {:cprj.f, :cspa.f} and
{:cprj.t, :cspa.t} and
tipgc820.cprj refers to tppdm600 and
tppdm600.ccot inrange :ccot.f and :ccot.t and
tipgc521.cprj = tipgc820.cprj and
tipgc521.butm = tipgc820.butm and
tipgc521.sbtm = tipgc820.sbtm and
tipgc521.eser = tipgc820.eser and
tipgc521.eseq inrange tipgc820.unfr and tipgc820.unto and
tipgc520._index5 = {tipgc521.orno} and
tipgc520.item inrange :item.f and :item.t and
tipgc520.suno inrange :suno.f and :suno.t and
tipgc520.podt inrange :podt.f and :podt.t and
tipgc520.osta inrange :osta.f and :osta.t and
tipgc520.buyr inrange :buyr.f and :buyr.t and
tipgc520.cplb inrange :cplb.f and :cplb.t and
tiitm001.citg inrange :citg.f and :citg.t and
tipgc520.osta <> tcorsa.actualized and
tipgc520.item refers to tiitm001 and
tipgc520.ccot refers to tppdm065 and
tipgc520.suno refers to tccom020 UNREF CLEAR and
tccom020.clan refers to tcmcs046 UNREF CLEAR and
tipgc520.ccur refers to tcmcs002 and
tipgc520.buyr refers to tbuyr UNREF CLEAR and
tipgc520.cplb refers to tcplb UNREF CLEAR
order by tipgc520.ccot, tipgc521._index1
selectdo
I included one of the main queries on the session ---please note that I did not write either of these queries --- I want to rework the query and break it up, but so far we have agreed to wait and see if the problem comes back again. Is there something in 1 of these queries which might cause problems - maybe something like UNREF CLEAR or refers to???? The two queries are called based on input parameters - query 1 is below:
select tipgc520.*,
tppdm065.desc, | Project Group description
tccom020.clan, | Supplier Language
tccom020.nama, | Supplier Name
tcmcs002.crnd, | Currency rounding factor
tcmcs046.lang, | Language
tbuyr.nama:buyr.nama, | Buyers name
tcplb.nama:cplb.nama, | Planners name
tiitm001.citg, | Item Group
tiitm001.cuni | Conversion
,tiitm001.dsca, | Descritpion |#40b2a&d2.n
tiitm001.csig | Signal Code
from tipgc520, tppdm065, tccom020,
tcmcs002, tccom001 tbuyr, tccom001 tcplb,
tiitm001
where tipgc520._index1 inrange {:ccot.f, :orno.f}
and {:ccot.t, :orno.t}
and tipgc520.item between :item.f and :item.t
and tipgc520.suno between :suno.f and :suno.t
and tipgc520.podt between :podt.f and :podt.t
and tipgc520.osta between :osta.f and :osta.t
and tipgc520.buyr between :buyr.f and :buyr.t
and tipgc520.cplb between :cplb.f and :cplb.t
and tiitm001.citg between :citg.f and :citg.t
and tipgc520.osta <> tcorsa.actualized | Transfered
and tipgc520.item refers to tiitm001
and tipgc520.ccot refers to tppdm065
and tipgc520.suno refers to tccom020 UNREF CLEAR
and tccom020.clan refers to tcmcs046 UNREF CLEAR
and tipgc520.ccur refers to tcmcs002
and tipgc520.buyr refers to tbuyr UNREF CLEAR
and tipgc520.cplb refers to tcplb UNREF CLEAR
order by tipgc520._index1
selectdo
Query 2 is run when the user includes the project and CCN
domain tcamnt discount.amount | to calculate discount |552.sn
domain tcamnt net.amount | ,, ,, ,, |552.en
select tipgc820.cprj, tipgc820.cspa, tppdm600.cprj, tppdm600.ccot,
tipgc521.*, tipgc520.*, tppdm065.desc, tccom020.clan,
tccom020.nama, tcmcs002.crnd, tcmcs046.lang, tiitm001.citg,
tiitm001.cuni, tiitm001.dsca, tiitm001.csig,
tbuyr.nama:buyr.nama, tcplb.nama:cplb.nama
from tipgc820, tppdm600, tipgc521, tipgc520, tppdm065, tccom020,
tcmcs002, tcmcs046, tiitm001, tccom001 tbuyr, tccom001 tcplb
where tipgc820._index2 inrange {:cprj.f, :cspa.f} and
{:cprj.t, :cspa.t} and
tipgc820.cprj refers to tppdm600 and
tppdm600.ccot inrange :ccot.f and :ccot.t and
tipgc521.cprj = tipgc820.cprj and
tipgc521.butm = tipgc820.butm and
tipgc521.sbtm = tipgc820.sbtm and
tipgc521.eser = tipgc820.eser and
tipgc521.eseq inrange tipgc820.unfr and tipgc820.unto and
tipgc520._index5 = {tipgc521.orno} and
tipgc520.item inrange :item.f and :item.t and
tipgc520.suno inrange :suno.f and :suno.t and
tipgc520.podt inrange :podt.f and :podt.t and
tipgc520.osta inrange :osta.f and :osta.t and
tipgc520.buyr inrange :buyr.f and :buyr.t and
tipgc520.cplb inrange :cplb.f and :cplb.t and
tiitm001.citg inrange :citg.f and :citg.t and
tipgc520.osta <> tcorsa.actualized and
tipgc520.item refers to tiitm001 and
tipgc520.ccot refers to tppdm065 and
tipgc520.suno refers to tccom020 UNREF CLEAR and
tccom020.clan refers to tcmcs046 UNREF CLEAR and
tipgc520.ccur refers to tcmcs002 and
tipgc520.buyr refers to tbuyr UNREF CLEAR and
tipgc520.cplb refers to tcplb UNREF CLEAR
order by tipgc520.ccot, tipgc521._index1
selectdo