移動crmdb1故障分析報告_第1頁
移動crmdb1故障分析報告_第2頁
移動crmdb1故障分析報告_第3頁
移動crmdb1故障分析報告_第4頁
移動crmdb1故障分析報告_第5頁
已閱讀5頁,還剩5頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

Oracle工程師李永平于 月日,在移動進行standby,對9月29日11點左右的CPUsys偏高的問題進行分析。故障一:語句性能不佳,導致CPU庫等等待和系統(tǒng)的穩(wěn)定性調整業(yè)務語句5b2k6xuxfvrkt減少對PMAX的掃描全掃描和排序操作,從而達到減少GC等待,最終達到減少系統(tǒng)CPU負載的目的。將統(tǒng)一個表的業(yè)務通過serverGC的根據(jù)反饋(osw數(shù)據(jù)說明)92910:5011點期間,CPUSYS相對ASH報告,信息如下:SampleDataysisBegin29-Sep-16inAWRsnapshotysisEnd29-Sep-16inAWRsnapshotElapsed5.0SampleAverageActiveAvg.ActiveSessionperReportNoneTopUserEvent%AvgActiveCPU+WaitfordbfilesequentialUserlogfilegcbufferbusylatch,我們知道,一般gc相關等待,對CPU影響較大里面有出現(xiàn)gcbufferbusyacquire,我們再提取和gcbufferbusyacquire有關的語句:,SQLSampled#%%Top%SQLgcbufferACCESS-select*from(select由上面看到,gcbufferbusyacquire5b2k6xuxfvrkt導致,其執(zhí)行計劃SQL_IDSQL_ID5b2k6xuxfvrkt,childnumberselect*from(selectreceptionv0_.OIDasOID980_,receptionv0_.INRECOIDasINRECOID980_,receptionv0_.REGIONasREGION980_,receptionv0_.FORMNUMasFORMNUM980_,receptionv0_.CUSTIDasCUSTID980_,receptionv0_.SUBSIDasSUBSID980_,receptionv0_.SERVNUMBERasSERVNUMBER980_,receptionv0_.RECDEFIDasRECDEFID980_,receptionv0_.VERFITYTYPEasVERFITYT8_980_,receptionv0_.RECORGIDasRECORGID980_,receptionv0_.CONTACTTYPEasCONTACT10_980_,receptionv0_.RECOPIDasRECOPID980_,receptionv0_.RECDATEasRECDATE980_,receptionv0_.ISBACKPROCESSasISBACKP13_980_,receptionv0_.ISNOTIFYasISNOTIFY980_,receptionv0_.ISBATCHasISBATCH980_,receptionv0_.ISROLLBACKasISROLLBACK980_,receptionv0_.NOTESasNOTES980_,receptionv0_.RELATERECOIDRELATER19_980_fromCS_REC_RECEPTIONreceptionv0_orderbyreceptionv0_.RECDATEdesc)whererownum<=:1nhash|Id|Operation |Name |Rows|Bytes|TempSpc|Cost(%CPU)|Time Pstart|Pstop||0|SELECT|||||| 1|COUNT||||||| |2 PARTITIONRANGE|||79M|56 1|3 |||(1)|266:15:13 4 SORTORDERBY | |5 TABLEACCESS |CS_REC_RECEPTION|(2)||56 1PredicateInformation(identifiedbyoperation1-4- INSTANCE_NUMBERPARSING_SCHEMA_NAME EXECUTIONS_DELTAAVG_ELAPSED_TIMEAVG_DISK_READSAVG_CPU_TIMEAVG_BUFFER_GETS2016-09-29 1 02016-09-291 02016-09-291 02016-09-29 1 02016-09-102016-09-102016-09-102016-09-102016-09-102016-09-102016-09-102016-09-102016-09-102016-09-102016-09-102016-09-10SegmentsbyGlobalCacheBuffer%ofCaptureshows%ofGCBufferBusyforeachtopsegmentwithGCBufferBusyforallsegmentscapturedbytheObjectObj.GC%NGNG5b2k6xuxfvrkttext:selectselectfrom(select as as as as as as as as as as as as as receptionv0_.ISBACKPROCESSas as as as as receptionv0_.RELATERECOIDas fromCS_REC_RECEPTION orderbyreceptionv0_.RECDATEwhererownum<=recdatedescpartitionPMAX,partitionPMAX1.8GBrownum<:1partitionPMAX,86%GlobalCacheBufferBusy5b2k6xuxfvrkt離(一個業(yè)務表只在一遍做業(yè)務操作),GCDMLinsertintoCS_REC_RECEPTION(REGION,FORMNUM,CUSTID,SUBSID,SERVNUMBER,RECDEFID,VERFITYTYPE,RECORGID,CONTACTTYPE,RECOPID,RECDATE,ISBACKPROCESS,ISNOTIFY,ISBATCH,ISROLLBACK,NOTES,OID)val(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,14,:15,:16,:17selectselectthis.ORDERID,this.OPERID,this.ORGID,this.SERVNUMBER,this.ACCESSTYPE,this.SUBSID,this.FIRSTCLASS,this.SECCLASS,this.THIRDCLASS,this.RULEID,this.ADDPRODID,this.FORMNUM,this.ROLEfrom(selecto.orderid,o.operid,id,o.servnumber,o.accesstype,p.subsid,c.firstclass,c.secclass,c.thirdclass,c.ruleid,c.addprodid,did,o.formnum,c.rolefromCS_REC_ORDER_WAITINGo,cs_rec_productp,SA_DB_CALOPRIDWLRULEcwhereo.orderid=p.orderidandc.status=1andtrunc(c.startdate)<=sysdateandNVL(c.enddate,sysdate+1)>sysdateandc.thirdclass='TC0032'andp.recdatebetweento_date(:1,'yyyy-MM-ddhh24:mi:ss')andto_date(:2,'yyyy-MM-ddhh24:mi:ss')ando.recdatebetweento_date(:3,'yyyy-MM-ddhh24:mi:ss')andto_date(:4,'yyyy-MM-ddhh24:mi:ss')ando.status<>'5'andp.operType='N'andexists(select1fromcm_subs_subscribersubs,im_pr_simsimwheresubs.enum=sim.iccidandsim.simtypein(selectdictidfromsa_db_dictitemdictwheredict.groupid='IM_USIMTYPE')andp.subsid=subs.subsidanddidin(selectdictidfromSA_DB_DICTITEMwhereGROUPID='LHXC4GPROD'))andexists(select1fromcm_subs_productprodwherep.SUBSPRODID=prod.SUBSPRODIDanddidin(selectParamValuefromSA_DB_SysParamwhereparamidlike'LHXC4GPROD%'))andexists(select1fromcs_rec_receptionrwherer.oid=p.orderidandr.recdatebetweento_date(:5,'yyyy-MM-ddhh24:mi:ss')andto_date(:6,'yyyy-MM-ddhh24:mi:ss')andr.recdefidin(selectdictidfromsa_db_dictitemwheregroupid='TC0032')andexists(select1fromcs_rec_receptionrswherers.recopid=r.recopidandrs.recdefid='ChangeEnum'andrs.subsid=p.subsidandto_char(rs.recdate,'yyyymmdd')=to_char(r.recdate,'yyyymmdd')))and(exists(select1fromCH_PW_WAYwwherew.wayid=idandw.waytypein('ET','EC'))oro.accesstype='bsacWidget')unionallselecto.orderid,o.operid,id,did,o.formnum,c.rolefromCS_REC_ORDERo,cs_rec_productp,SA_DB_CALOPRIDWLRULEcwhereo.orderid=did,o.formnum,c.rolefromCS_REC_ORDERo,cs_rec_productp,SA_DB_CALOPRIDWLRULEcwhereo.orderid=p.orderidandc.status=1andtrunc(c.startdate)<=sysdateandNVL(c.enddate,+1)>sysdateandc.thirdclass='TC0032'andp.recdatebetweento_date(:7,'yyyy-MM-ddhh24:mi:ss')andto_date(:8,'yyyy-MM-ddhh24:mi:ss')ando.recdatebetweento_date(:9,'yyyy-MM-ddhh24:mi:ss')andto_date(:10,'yyyy-MM-ddhh24:mi:ss')ando.status<>'5'andp.operType='N'andexists(select1fromcm_subs_subscrbersubs,im_pr_simsimwheresubs.enum=sim.iccidandsim.simtypein(selectdictidfromsa_db_dictitemdictwheredict.groupid='IM_USIMTYPE')andp.subsid=subs.subsidanddidin(selectdictidfromSA_DB_DICTITEMwhereGROUPID='LHXC4GPROD'))andexists(select1fromcm_subs_productprodwherep.SUBSPRODID=prod.SUBSPRODIDanddidin(selectParamValuefromSA_DB_SysParamwhereparamidlike'LHXC4GPROD%'))andexists(select1fromcs_rec_receptionrwherer.oid=p.orderidandr.recdatebetweento_date(:11,'yyyy-MM-ddhh24:mi:ss')andto_date(:12,'yyyy-MM-ddhh24:mi:ss')andr.recdefidin(selectdictidfromsa_db_dictitemwheregroupid='TC0032')andexists(select1fromcs_rec_receptionrswhere=r.recopidandrs.recdefid='ChangeEnum'andrs.subsid=p.subsidandto_char(rs.recdate,=to_char(r.recdate,'yyyymmdd')))and(exists(select1fromCH_PW_WAYwwherew.wayid=idandw.waytypein('ET','EC'))oro.accesstype='bsacWidget'))this9jy929tz0507jinsertintoCS_REC_RECEPTION(INRECOID,REGION,FORMNUM,CUSTID,SUBSID,SERVNUMBER,RECDEFID,VERFITYTYPE,RECORGID,CONTACTTYPE,RECOPID,RECDATE,ISBACKPROCESS,ISNOTIFY,ISBATCH,ISROLLBACK,NOTES,RELATERECOID,OID)(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,14,:15,:16,:17,:18,:19withtab1as(selecta.*,b.recdefidfromNG _SZ.cs_rec_ordera,NG _SZ.cs_rec_receptionbwherea.orderid=b.oidandb.recdefidin('BlankMendCard','YDChangeEnumRW','ChangeEnum','YkshChangeEnum','ChangeEnumByBlkCard')anda.status!='0'anda.recdate>=to_date('20160929000000','yyyymmddhh24miss')anda.recdate<to_date('20160930000000','yyyymmddhh24miss')),tab2as(selecta.*fromNG _SZ.cs_rec_resourcea,NG withtab1as(selecta.*,b.recdefidfromNG _SZ.cs_rec_ordera,NG _SZ.cs_rec_receptionbwherea.orderid=b.oidandb.recdefidin('BlankMendCard','YDChangeEnumRW','ChangeEnum','YkshChangeEnum','ChangeEnumByBlkCard')anda.status!='0'anda.recdate>=to_date('20160929000000','yyyymmddhh24miss')anda.recdate<to_date('20160930000000','yyyymmddhh24miss')),tab2as(selecta.*fromNG _SZ.cs_rec_resourcea,NG b,tab1wherea.resid=b.iccidanda.orderid=tab1.orderidanda.resclass='rsclS'anda.inout='0'andexists(selectdictidfrom m.sa_db_dictitemwheregroupid='IM_USIMTYPE'anddictid=a.restypeid)),tab3as(selecta.*fromNG _SZ.cs_rec_resourcea,NG _SZ.im_pr_simb,tab2wherea.resid=b.iccidanda.orderid=tab2.orderidanda.resclass='rsclS'and

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論