![Oracle英文版培訓(xùn)課件之Implement Streams:les21_第1頁](http://file4.renrendoc.com/view/d6a8c71715790774413e20a0984fe4ca/d6a8c71715790774413e20a0984fe4ca1.gif)
![Oracle英文版培訓(xùn)課件之Implement Streams:les21_第2頁](http://file4.renrendoc.com/view/d6a8c71715790774413e20a0984fe4ca/d6a8c71715790774413e20a0984fe4ca2.gif)
![Oracle英文版培訓(xùn)課件之Implement Streams:les21_第3頁](http://file4.renrendoc.com/view/d6a8c71715790774413e20a0984fe4ca/d6a8c71715790774413e20a0984fe4ca3.gif)
![Oracle英文版培訓(xùn)課件之Implement Streams:les21_第4頁](http://file4.renrendoc.com/view/d6a8c71715790774413e20a0984fe4ca/d6a8c71715790774413e20a0984fe4ca4.gif)
![Oracle英文版培訓(xùn)課件之Implement Streams:les21_第5頁](http://file4.renrendoc.com/view/d6a8c71715790774413e20a0984fe4ca/d6a8c71715790774413e20a0984fe4ca5.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
TroubleshootingOracleStreamsObjectivesAftercompletingthislesson,youshouldbeabletodothefollowing:DescribeandresolvecommonconfigurationproblemsforaStreamsdatabaseDescribeandresolvethetypicalproblemsthatoccurduring:CapturePropagationApplyTroubleshootsecurequeueaccessTroubleshootingCaptureChecklist:Whatisthestateofthecaptureprocess?Isthedatabaseconfigurationcorrect?Aretherulesconfiguredcorrectly?Istransformationbeingused?Arethereanyerrormessages?CaptureProcessStatusCheckthestateofthecaptureprocess:Abortedordisabled?Checktheappropriatetracefileformessages.Enabled?Isthecaptureprocesscapturingcurrentchanges?Whenwasthelastchangemadeavailableforcapture?Whatisthecaptureprocessdoing?SELECTCAPTURE_NAME,((SYSDATE-CAPTURE_MESSAGE_CREATE_TIME)*86400)
"Redoscanninglatency",CAPTURE_MESSAGE_CREATE_TIMEFROMV$STREAMS_CAPTURE;***CaptureprocessstatNotesDeterminingEventEnqueuingLatencyALTERSESSIONSETnls_date_format='HH24:MI:SSMM/DD/YY';COLUMNLAST_POSTHEADING'Secssince|lastpost'SELECTcapture_name,total_messages_capturedSCANNED,total_messages_enqueuedENQUEUED,(SYSDATE-capture_time)*86400LAST_POST,(enqueue_time-enqueue_message_create_time)*86400"Latency(secs)",enqueue_message_create_time"LastQueuedMsgTime",enqueue_timeFROMV$STREAMS_CAPTURE;***EventEnqueueLatencyNotesCaptureDatabaseConfigurationIsCOMPATIBLEsettotheappropriateversion?IsthedatabaseinARCHIVELOGmode?Hasthearchiveprocessstarted?IstheStreamspoolorthesharedpoolsizedlargeenough?NotesSupplementalLoggingTablelevelloggingforprimaryanduniquekeys?SELECTowner,table_name,log_group_typeFROMDBA_LOG_GROUPS;SELECTtable_name,scn,timestamp,SUPPLEMENTAL_LOG_DATA_PK,SUPPLEMENTAL_LOG_DATA_UI,SUPPLEMENTAL_LOG_DATA_FK,SUPPLEMENTAL_LOG_DATA_ALLFROMDBA_CAPTURE_PREPARED_TABLES;SELECTtable_name,column_name,log_group_name,
positionFROMDBA_LOG_GROUP_COLUMNS;Enabledatsourcedatabaselevelloggingforprimaryanduniquekeys?Checkthecolumnsinsupplementalloggroups:ChecktheCaptureProcessRulesCheckDBA_STREAMS_RULESorasimilarview.Queryfornegativerulesets.Checkforemptyrulesets.Determineifthesystem-createdruleconditionhasbeenmodifiedwithDBMS_RULE_ADM.SELECTstreams_name,rule_owner,rule_name,
rule_condition,rule_set_type"TYPE",
streams_rule_type"LEVEL",
schema_name,object_name,subsetting_operation,
dml_condition,same_rule_condition"Orig?"FROMDBA_STREAMS_RULESWHEREstreams_type='CAPTURE';CheckforTransformationsChecktoseeifthereisatransformationspecifiedforarule.Arule-basedtransformationcanmodifyaneventwhenaruleinapositiverulesetevaluatestoTRUEforthatevent.SELECTrule_owner,rule_name,user_function_nameFROMDBA_STREAMS_TRANSFORMATIONS;ViewforMonitoringTransactions
SELECTstreams_name,streams_type,cumulative_message_count,first_message_time,XIDUSN,XIDSLT,XIDSQN,last_message_time,total_message_countFROMv$streams_transaction;UseV$STREAMS_TRANSACTIONtomonitortransactionsprocessedbyapplyorcaptureprocess:NotesCommonCaptureErrorsORA-00258ORA-00902ORA-01291andORA-01323ORA-1280ORA-01291andORA-01323ORA-01291:"missinglogfile"ORA-01323:"invalidstate" IndicatesthatanarchivedlogfilecannotbeopenedbythecaptureprocessFirst
SCNStart
SCNRequired
checkpoint
SCNApplied
SCN92489095799210258681053CheckforTraceFilesOnmostsystems,thefilenameformatissid_xxxx_iiiii.trc,where:sidistheSystemIdentifierofthedatabasexxxxisoneofthefollowing:Captureprocess=c001,c002,…JobQueueCoordinatorprocess=cjq0JobQueueprocess=j000,j001,...Applyprocess=a001,a002,…Parallelexecutionserverprocessusedbycaptureorapply=p000,p001,p002…iiiiiistheoperatingsystemprocessnumberTroubleshootingPropagationChecklist:Hasthepropagationbeenspecifiedbetweenthecorrectsitesandqueues?Isqueue_to_queuepropagationparametersettoTRUEorFALSEinDBA_PROPAGATIONview?Doesthedatabaselinkexist?Isitworking?Isthepropagationenabledandscheduledproperly?IstheparameterJOB_QUEUE_PROCESSES>0?Arethereanytracefilesoralertlogmessages?Dorulesexistforthepropagation?Arethereanytransformationsspecifiedforthepropagationrules?Isthepropagationgettingerrormessages?CheckPropagationConfigurationCheckthepropagationname,source,anddestinationqueuenames.SELECTpropagation_name,source_queue_owner||'.'||source_queue_nameSRC,destination_queue_owner||'.'||
destination_queue_nameDEST,
destination_dblinkDBLINK,QUEUE_TO_QUEUEFROMDBA_PROPAGATION;CheckPropagationScheduleCheckthatthepropagationisenabledandassociatedwithajobqueueprocess.Determineifthereareanyfailuresorerrorsreceived.Querythedateandtimewhenthepropagationschedulewillbestarted.Determinethenumberofmessagessentorreceivedandthenumberofmessagesthathavebeenacknowledged.**PropagationScheduleNotesCheckthePropagationRulesCheckDBA_STREAMS_RULESorasimilarview.Checkforrule-basedtransformations.SELECTstreams_name,rule_owner,rule_name,
rule_condition,rule_set_type"TypeofRule",
streams_rule_type"RuleLevel",
schema_name,object_name,subsetting_operation,
dml_condition,same_rule_condition"Orig?"FROMdba_streams_rulesWHEREstreams_type='PROPAGATION';SELECTs.rule_name,t.transform_function_nameFROMDBA_STREAMS_RULESs,
DBA_STREAMS_TRANSFORM_FUNCTIONtWHEREs.rule_name=t.rule_nameANDs.rule_owner=t.rule_ownerANDs.streams_type='PROPAGATION';CommonPropagationErrorsORA-12154:TNS:couldnotresolveservicename.ORA-12505:TNS:listenerdoesnotcurrentlyknowofservicerequestedinconnectdescriptor.ORA-12514:TNS:listenerdoesnotcurrentlyknowofservicerequestedinconnectdescriptor.ORA-12541:TNS-12541TNS:nolistenerORA-02082:Aloopbackdatabaselinkmusthaveaconnectionqualifier.ORA-25307:Enqueueratetoohigh.Enableflowcontrol.ORA-25315unsupportedconfigurationforpropagationofbufferedmessages.TroubleshootingApplyChecklist:Whatisthestateoftheapplyprocess?Istheapplyprocesscurrent?Istheapplyprocessconfiguredcorrectly?RulesSourcedatabaseTransformationsApplyhandlersApplyofcapturedeventsoruser-enqueuedeventsArethereanyerrorsintheerrorqueueorapplyprocesserrors?CheckApplyProcessStateandConfigurationConfirmthattheapplyprocessisENABLEDandconfiguredtoapplycapturedeventscorrectly:SELECTa.apply_name,a.apply_captured,p.source_databaseSOURCE_DB,a.status,a.rule_set_name,a.negative_rule_set_name,a.error_number,a.error_messageFROMDBA_APPLYa,DBA_APPLY_PROGRESSpWHEREa.apply_name=p.apply_name;APPLY_NAMEAPPLY_CAPTSOURCE_DBSTATUS-------------------------------------RULE_SET_NAMENEGATIVE_RULE_SET_NAME------------------------------------ERROR_NUMBERERROR_MESSAGE--------------------------------APPLY_SITE1_LCRSYESSITE1.NETENABLEDRULESET$_19***ApplyProcessStatesNotesIstheApplyProcessCurrent?Ifanapplyprocessappliescapturedevents,youcanquerydictionaryviewstodeterminelatencyandactivity:V$STREAMS_APPLY_COORDINATORDBA_APPLY_PROGRESSSELECTapply_nameNAME,hwm_time"ApplyTime",
hwm_message_create_time"EventCreation",(hwm_time-hwm_message_create_time)*86400
"LatencyinSeconds",hwm_message_number"AppliedMessage#"FROMV$STREAMS_APPLY_COORDINATOR;**ApplyLatencyDeterminingtheScopeoftheProblemEvent
isnotapplied
atallsites?YesNoChecktheeventsource:1. Capturerulesatsourcesite.2. Propagationrulesat:SourcesiteAllintermediatesites1. Checktheeventdestination:ApplyprocessesandrulesInstantiationSCNsMissingdictionaryerrors2. Checkeventsourceandallintermediatesites.CheckforApplyProcessRulesCheckDBA_STREAMS_RULESorasimilarview.Checkforrule-basedtransformations.SELECTstreams_name,rule_owner,rule_name,
rule_condition,rule_set_type"TYPE",
streams_rule_type"LEVEL",
schema_name,object_name,subsetting_operation,
dml_condition,same_rule_condition"Orig?"FROMdba_streams_rulesWHEREstreams_type='APPLY';SELECTs.rule_name,t.user_function_nameFROMDBA_STREAMS_RULESs,
DBA_STREAMS_TRANSFORMATIONStWHEREs.rule_name=t.rule_nameANDs.rule_owner=t.rule_ownerANDs.streams_type='APPLY';CheckforCustomApplyorErrorHandlersCheckwhetherthereisacustomapplyprocedureoranerrorhandlerspecifiedfortheobject.DMLorerrorhandlersDDL,message,orprecommithandlersSELECTobject_owner,object_name,
operation_name,user_procedure,
apply_name,error_handlerFROMDBA_APPLY_DML_HANDLERS;SELECTapply_name,ddl_handler,
precommit_handler,message_handlerFROMDBA_APPLY;ChecktheErrorQueueQueryDBA_APPLY_ERRORtodetermineifthereareerrorsintheerrorqueue.SELECTapply_name,source_database,local_transaction_id,message_numbererror_messageFROMDBA_APPLY_ERROR;APPLY_NAMESOURCE_DATABASE--------------------------.LOCAL_TRANSACTION_ID.MESSAGE_NUMBERERROR_MESSAGE------------------------------------------------.
.APPLY_SITE1_LCRSSITE1.NET1.7.22031ORA-00001:uniqueconstraint(HR.COUNTRY_C_ID_PK_NOIOT)violated
NotesCommonApplyErrorsORA-01031:insufficientprivilegesORA-01403:nodatafoundORA-06550:linex,columny:ORA-23416:tabledoesnotcontainaprimarykeyconstraintORA-23607:invalidcolumnORA-26687:noinstantiationSCNprovidedORA-26688:missingkeyinLCRORA-26688:metadatamismatchORA-26689:columndatatypemismatchinLCRORA-01031:InsufficientPrivilegesThedesignatedapplyusermusthavetheprivilegestoperformSQLonthereplicatedobjects.
GrantprivilegesexplicitlytotheapplyuserusingtheGRANTcommand.AdditionalprivilegesforDDLcommandsmaybeneeded.Toresolvetheerror:1. Determinethemissingprivilege.2. Granttheprivilegesdirectlytotheapplyuser.3. Reexecutethetransactionfromtheerrorqueue.***ORA-01013NotesORA-06550ErroronApplyAnORA-06550error:Indicatesanerrorwithinanapplyhandlerortransformationfunction.Typicallycausestheapplyprocesstoabortwithnoerrorsintheerrorqueue.Thetracefilefortheapplycoordinatorwillreportthefullerrorstack.ORA-12801inSTREAMSprocessORA-12801:errorsignaledinparallelqueryserverP000ORA-06550:line1,column15:PLS-00201:identifier'HR.HR_TO_DEMO'mustbedeclared…***Ora-6550notes***ORA-23416:
Table
Does
Not
Include
aPrimary
Key
ConstraintConfirmthatthetablehasanexplicitprimarykeyconstraint:P=primarykeyC=checkconstraintU=uniquekeyR=referentialintegritySELECTconstraint_name,constraint_typeFROMDBA_CONSTRAINTSWHEREtable_name='JOBS'ANDowner='HR';CONSTRAINT_NAMEC-------------------JOB_ID_PKPJOB_TITLE_NNCORA-23607:InvalidColumnThiserrorisgeneratedwhenaninvalidcolumnisspecifiedinafunctionthataccessesthecolumnlistcontainedintheLCR.Checkthecolumnsintheobjectandspecifythecorrectcolumnname.lcr.delete_column('DETPNO','*');ORA-26688:
missingkeyinlcrIndicatesthatoneormoreofthekeycolumnsrequiredfortheapplyprocessaremissingCanbecausedby:Notsupplementallyloggingoneormoreindexedcolumnsofthetargettablewhenapply_parallelism>1Supplementallyloggingallcolumnsofamaterializedviewwhenapply_parallelism>1Supplementallyloggingtheprimarykeycolumnsofamaterializedviewwhenapply_parallelism=1ORA-26688:metadatamismatchSignaledwhenthechangedataintheLCRcannotbeappliedtoatableatthedestinationsite.Canbecausedby:MissingtableatthedestinationsiteNoprimarykeyenabledforthetargettableIfnoprimarykeyhasbeenspecified:UseDBMS_APPLY_ADM.SET_KEY_COLUMNStosetthekeycolumnsatthedestinationsite.Ensurethatkeycolumnsarebeingloggedatthesourcesite.SELECTowner,table_name,log_group_typeFROMDBA_LOG_GROUPSWHEREtable_name='DEPARTMENTS'ANDowner='HR';***ORA-26688NotesORA-26689:
Column
Type
MismatchRaisedwhenthedatatypesofcolumnsintheLCRarenotthesameasthedatatypesinthedatabaseobjectPossiblecauses:Columnnameisvalidbutthedatatypesdonotmatch.TheLCRcontainsextracolumns.TroubleshootingSecureQueueAccessStreamsqueuesaresecurequeues.Securitymustbeconfiguredproperlyforuserstobeabletoperformoperationsonthem.CommonsecurityerrorsforaStreamsqueue:ORA-24093:AQagent<name>notgrantedprivilegesofdatabaseuser<user>ORA-24033:norecipientsformessageORA-25224:sendernamemustbespecifiedforenqueueintosecurequeuesORA-24093:
AQ
Agent
Not
GrantedPrivile
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 修路砍樹補(bǔ)償合同范本
- 會(huì)計(jì)報(bào)賬服務(wù)合同范本
- 2025年太陽能光伏發(fā)電系統(tǒng)安裝與后期維護(hù)服務(wù)合同
- 人身保險(xiǎn)合同范本
- 二零二五年度北京市勞動(dòng)合同銷售經(jīng)理崗位合同
- 單位與家政合同范例
- x銷售合同范本
- 公戶賬務(wù)往來合同范例
- 單位牌匾加工合同范例
- 2025年中國非道路發(fā)動(dòng)機(jī)行業(yè)發(fā)展運(yùn)行現(xiàn)狀及投資戰(zhàn)略規(guī)劃報(bào)告
- 2024新版《藥品管理法》培訓(xùn)課件
- 浙江省杭州市2024年中考英語真題(含答案)
- 《陸上風(fēng)電場工程設(shè)計(jì)概算編制規(guī)定及費(fèi)用標(biāo)準(zhǔn)》(NB-T 31011-2019)
- 蘇教版六年級(jí)數(shù)學(xué)下冊(cè)《解決問題的策略2》優(yōu)質(zhì)教案
- 《靜脈治療護(hù)理技術(shù)操作規(guī)范》考核試題及答案(共140題)
- 英國文學(xué)8.2講解Sonnet18
- 人事測(cè)評(píng)理論與方法-課件
- 最新卷宗的整理、裝訂(全)課件
- 人教版部編道德與法治三年級(jí)下冊(cè)全冊(cè)全套課件
- 信訪事項(xiàng)受理、辦理、復(fù)查、復(fù)核、聽證程序課件
- 【北京】施工現(xiàn)場安全生產(chǎn)標(biāo)準(zhǔn)化管理圖集
評(píng)論
0/150
提交評(píng)論