




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025-2030中国运动器材及配件行业市场发展趋势与前景展望战略研究报告
- 2025-2030中国袋装螺蛳粉行业发展分析及投资风险与战略研究报告
- 2025-2030中国花岗岩板行业市场现状分析及竞争格局与投资发展研究报告
- 高速公路辅助系统技术与法规探讨-洞察及研究
- 儿童画动漫眼睛课件
- 幼儿园班级阅读方案
- 斑秃中医病历书写规范
- 铁路围挡施工安装方案
- 工地车报废处理方案
- 嵌入式可重构计算系统的硬件可编程与架构探索-洞察及研究
- 2025年广东省高考生物真题(解析版)
- New包装结构设计基础知识课件
- 新员工三级安全教育课件(公司级)
- 广西南宁市青秀区总工会招考聘用聘用人员(必考题)模拟卷及答案
- 术中压力性损伤风险评估量表解读
- 预制装配式综合管廊
- 剑桥少儿英语一级下册Unit2PPT课件
- ASMEB16.5标准法兰尺寸表
- GB∕T 21437.2-2021 道路车辆 电气电子部件对传导和耦合引起的电骚扰试验方法 第2部分:沿电源线的电瞬态传导发射和抗扰性
- (新版)传染病防治监督试题库(含答案)
- 浙江省中考英语考纲(共6页)
评论
0/150
提交评论