山東農(nóng)信新核心2014_第1頁
山東農(nóng)信新核心2014_第2頁
山東農(nóng)信新核心2014_第3頁
山東農(nóng)信新核心2014_第4頁
山東農(nóng)信新核心2014_第5頁
已閱讀5頁,還剩25頁未讀, 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

1、InfoSphere Data Replication - CDC1Troubleshooting2Agenda How to approach a problem Collecting diagnostic information Troubleshooting resources Questions3 How to approach a problem4Understanding CDC ArchitectureDatabase LogsSource EngineTarget EngineTCP/IPMonitoring and ConfigurationDatabaseMessage Q

2、ueueWeb ServicesBusiness ProcessOracle, DB2,SQL Server, etcFlat filesInformation Server5Identify Type of ProblemsCommunicationSecurity/PermissionsDatabaseSystem ProblemsApplication ProblemsUser Error6 Collecting diagnostic information7Collecting information to Diagnose the problemEvent logsSystem lo

3、gsProduct TracingCommunications TracingDatabase level TracingSupport AssistantMetadata CollectionSubscription DefinitionManagement Console Debug TraceCDC Statistics81) Check the Event Logs Source and Target sideSubscription Level eventsDatastore level events92) System LogsiSeries job logSQL Server a

4、pplication logsNetezza nzload, nzbad, pg.log and dbos.log103) CDC Engine Tracing (version 6.x)Enabling tracing in V6 has impact on performance. Do not enable tracing when troubleshooting performance issues. Remember to disable tracing after diagnosing issueEnabling Tracing global_trace_until= , e.g:

5、 1/14/08, or 1/14/08 1:34 PM (pay attention to spaces).This action will turn the trace on until January 14, 2008 (12AM in the first case, and 1:34pm in the second case). A restart of the instance is not required. Specify parameter in Management Consoles system parameter window ORVia Command Line uti

6、lity dmset -I = -L Enabling via vmargs filesIf you want to enable tracing before the datastore has been configured via Management Console or Command line utility, you can specify the tracing parameters in the *.vmargs files found in the /conf directoryFor example, in the configuration tool, Add .dat

7、amirror.trace.until= , to the beginning of dmconfigurets.vmargs in the conf directory11CDC Engine Tracing (version 6.x) (contd)Disabling TracingUsing either MC or dmset command-line tool delete global_trace_until property or set it to an expired date. No need to restart ICDCLocation of Trace filesTr

8、ace files for ICDC can be found in /log and /instance/log directories. The files are text files and should be compressed before sending over networks. Increasing Trace File sizesBy default trace files are limited to 1Mb each and 5 Mb of disk space in total. When individual file limit is reached, a n

9、ew file is created. When the total limit is reached, older files are deleted. To change these numbers, modify the following properties: global_trace_files_each_mb and/or global_trace_files_total_mb. No need to restart ICDC.12IIDR Engine Tracing (version 10.2)Significantly faster product tracing with

10、 less impact on system ( 70%)There are 2 types of trace points 1) ASCII readable format 2) Binary formatBinary format is typically used by L3 only and needs to be decoded into translated string dataTo decode your trace file:$CDC_HOME/bin/dmdecodetrace $CDC_HOME/instance/log/on/trace* decodedtrace.lo

11、gTo enable tracing:System parameter global_trace_hours (valid values 0 to 99) determine how many hours to trace data The system parameter will adjust itself as time goes by Minutes are optional (e.g. 1:22) and intended for smooth countdown Longer use requires re-confirmation every 4 days13IIDR Engin

12、e Tracing (version 10.2) contdUnconditional tracing is produced regardless of the trace settingConditional tracing is produced when tracing is enabledWhen trace is enabled, the number of trace points is big and normally the trace files wrap around very quickly. In these scenarios, we might be losing

13、 important information from the unconditional trace stream. Therefore, there are two streams of traces in different directories: $CDC_HOME/instance/log stores unconditional trace $CDC_HOME/instance/log/on stores both unconditional and conditional traces. * Line numbers are shared in between uncondit

14、ional and conditional trace points.14How to utilize Trace informationTrace logs contain valuable information that is often overlooked when troubleshooting issues in the fieldExceptions or error messages may be logged in the traceUseful to grep for keywords such as exception, error, or specific subsc

15、ription or table nameInstall level trace is found in /logSpecific instance level trace is found in/instance/log154) Communications TracingYou need to ensure that there is sufficient disk space to contain a longer run. To enable, edit the comms.ini file by removing the ; at the beginning of the mtrac

16、e.log line to get comms traces. The comms.ini file can be found in ms.ini. Note that for this change to take affect, you are required to restart the CDC instance.Comms file:LOG mtrace.logstdout=no SETTINGKEEP_ALIVE_TIMEOUT=20TCP_KEEP_ALIVE = 60 LINK_CYCLE_TIMEOUT = 30 SESSION_CLOSE_TIMEOUT = 30165)

17、Database level TracingEach database platform may have their own tools, settings used to generate database level tracing. Consult database documentation for more detailsRunning tkprof on the output generated in the Oracle udump directory will display the amount of time performing operations and waiti

18、ng. Ideal to detect slow tables on the targetThe product allows you to enable tracing for the Oracle platform for the following connections:Target Applymirror_apply_db_trace = true (to enable, false by default)Source Scrapemirror_scrape_db_trace = true (to enable, false by default)176) Support Assis

19、tant (Management Console)Management Console and the CDC 6.3 SP3 and higher Java engines provide support for collecting diagnostic information that assists support and development in identifying the cause of problemsSimplifies the process of turning on the rightlevel of tracingEnhances the Support As

20、sistant dialogEngine supports collecting trace information fromthe command-lineIt is important to specify a range to collect detailed information including performance stats, traces, etc18Support Assistant (Command line)Command Line Usage:dmsupportinfo -I -L -t-I -L locale if different from user loc

21、ale (e.g. en_ca)-t collect only in this time range yyyy-mm-dd hh:mm:ss to yyyy-mm-dd hh:mm:ss. Note that the quotes are required, along with all date-time elements. Use of a time range is optional, but will reduce the size of the output file considerably, especially in 6.5 where statistics are conti

22、nually collected by default.197) Metadata CollectionIf Pointbase issues are encountered or Metadata analysis is required, use the following command to make a backup of the metadata and collect for analysisdmbackupmd -I -L Metadata can also be accessed directly in conf directory if backup is not requ

23、iredThe current metadata will be collected by dmsupportinfo using detailed modeBacked up metadata can be found here: /instance/conf/backup/208) Subscription DefinitionsCollecting the XML output of all subscription definitions is very useful to visualize the whole CDC configurationUseful information

24、can be deduced the include:Number of subscriptionsNumber of table mappingsUse of journal control fields, user exits, apply types, parked tables, etc219) Performance Statistics (LUW engines)The CDC Java Engine provides real-time statistics enabled by the stats_collect system parameter.Enabled by defa

25、ult in 6.5 and aboveCollected on a per subscription basisIndependent collection on both the source and target systemsLow impact on customer system to collect the dataAlways collected in ICDC 6.5+Collected by dmsupportinfo22Performance Statistics (z/OS)To enable SMF data:Configure SMFINTERVAL=. For e

26、xample, 1, may as well collect every minute which is the most frequent currently available. The overhead is negligible.SMFTYPE needs to be in the range 128-255. This is a z/OS requirement for applications. Values less than 128 are reserved for z/OS.You can confirm the actual settings by looking at C

27、HCAUDIT in the products spooled output. 013/05/16 11:53:15 OSC CHC9105I SMF Record Type . . . . 200013/05/16 11:53:15 OSC CHC9105I SMF Record Interval . . 1 min.There are 4 types of CDC SMF records (SYSTEM, LOG CACHE, SOURCE, TARGET)CDC will always write SYSTEM records and LOG CACHE (if enabled)SOUR

28、CE and TARGET records are logged only when subscriptions are running23 Additional Diagnostic information24Network RequirementsA fully inclusive TCP/IP network path with adequate network bandwidth that connects the source and target installations of CDCFirewalls or network tools that do not interfere

29、 with or close CDC communication portsCDC user exits or notifications require reliable connections to the database or other applications such as e-mail serversReliable network connections between the source or target deployments of CDC and Access Server. Lost connections may result in metadata corru

30、ption during active configuration in MCSufficient network bandwidth when the product is configured to read remote database logs with a networked file system25How to verify if there is a network problemCheck if target is reachable from source with ping Check the next level of connection, from the sou

31、rce issue telnet Get output of netstat na from both source and targetCDC comms trace can be enabled remove the “;” at the beginning of “ mtrace.log”Run a test again with tcpdump or iptrace set up and send IBM support the tcp dump for investigation26What resource constraints to look forMemory Ensure

32、that an appropriate amount of resident memory is available to CDC. You can use top (topas on AIX) command and look at the RES columnCPUCan be an issue if the CPU on the system is maxed out and CDC is not getting reasonable time slices. On Unix, use the nice command and set the priority higher. To mo

33、dify the priority for a running process you would use reniceDiskCDC stages data to disk if there is not enough memory to hold large transactions and is dependent on the disk speed that the source and target database are running on. Useful to have a periodic monitoring of system resources over a period of time. You can use tools such as vmstat, iostat, sar or glance (on HP-UX)27What to check forPermissionsVerify that the Or

溫馨提示

  • 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

提交評論