58
BASLE BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH Tools, not only for RAC databases .. OraCHK, CHM, OSWatcher and TFA Markus Flechtner Principal Consultant

Tools, nicht nur für den RAC

Embed Size (px)

Citation preview

Page 1: Tools, nicht nur für den RAC

BASLE BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH

Tools, not only for RAC databases .. OraCHK, CHM, OSWatcher and TFA

Markus Flechtner Principal Consultant

Page 2: Tools, nicht nur für den RAC

Our company.

Tools, not only for RAC databases 2 10.05.16

Trivadis is a market leader in IT consulting, system integration, solution engineering and the provision of IT services focusing on and technologies in Switzerland, Germany, Austria and Denmark. We offer our services in the following strategic business fields: Trivadis Services takes over the interactive operation of your IT systems.

O P E R A T I O N

Page 3: Tools, nicht nur für den RAC

COPENHAGEN

MUNICH

LAUSANNE BERN

ZURICH BRUGG

GENEVA

HAMBURG

DÜSSELDORF

FRANKFURT

STUTTGART

FREIBURG

BASLE

VIENNA

With over 600 specialists and IT experts in your region.

Tools, not only for RAC databases 3 10.05.16

14 Trivadis branches and more than 600 employees

200 Service Level Agreements

Over 4,000 training participants

Research and development budget: CHF 5.0 / EUR 4 million

Financially self-supporting and sustainably profitable

Experience from more than 1,900 projects per year at over 800 customers

Page 4: Tools, nicht nur für den RAC

About Markus Flechtner

  Principal Consultant, Trivadis, Duesseldorf/Germany, since April 2008

  Discipline Manager Infrastructure Database @Trivadis

  Working with Oracle since the 1990’s –  Development (Forms, Reports, PL/SQL) –  Support –  Database Administration

  Focus –  Oracle Real Application Clusters –  Database Migration Projects

  Teacher –  O-RAC – Oracle Real Application Clusters –  O-NF12CDBA – Oracle 12c New Features for the DBA

Blog: http://markusdba.de/ @markusdba

Tools, not only for RAC databases 4 10.05.16

Page 5: Tools, nicht nur für den RAC

Our database doctors ..

  Dr. ORAchk –  Regular screening examination

  Dr. CHM & OSWatcher –  Electrocardiogram (ECG)

  Dr. TFA –  In case of emergency

Tools, not only for RAC databases 5 10.05.16

Page 6: Tools, nicht nur für den RAC

Oracle Support Tools Bundle

  Collection of database and RAC support tools

  Includes –  ORAchk –  ExaChk (*) – like OraChk, but for Engineered Systems –  OSWatcher –  ProcWatcher (*) – tool to examine and monitor Oracle database and/or clusterware

processes –  ORATOP (*) - near real-time monitoring of databases –  SQLT (*) – helps in tuning SQL statements –  DARDA (*) - Diagnostic Assistant - interface for other diagnostic tools –  .. And many more

  Integrated in TFA collector since release 12.1.2.3.0

(*) not covered by this talk

Tools, not only for RAC databases 6 10.05.16

Page 7: Tools, nicht nur für den RAC

Running other tools from TFA collector

oracle@walhall:~/ [rdbms12102] tfactl toolstatus .--------------------------------------. | External Support Tools | +---------+--------------+-------------+ | Host | Tool | Status | +---------+--------------+-------------+ | walhall | alertsummary | DEPLOYED | | walhall | exachk | DEPLOYED | | walhall | ls | DEPLOYED | | walhall | pstack | DEPLOYED | | walhall | orachk | DEPLOYED | [..] | walhall | events | DEPLOYED | | walhall | ps | DEPLOYED | | walhall | srdc | DEPLOYED | '---------+--------------+-------------' oracle> /u00/app/oracle/tools/tfa/bin/tfactl run alertsummary

Tools, not only for RAC databases 7 10.05.16

Page 8: Tools, nicht nur für den RAC

Agenda

Tools, not only for RAC databases 8 10.05.16

1.  ORAchk

2.  Cluster Health Monitor (CHM) (RAC only)

3.  OSWatcher

4.  Trace File Analyzer (TFA) Collector

Page 9: Tools, nicht nur für den RAC

Tools, not only for RAC databases 9 10.05.16

OraChk

Page 10: Tools, nicht nur für den RAC

ORAchk – Purpose & History

  Available since July 2011

  Current version 12.1.0.2.6_20160207

  Formerly known as "RACCheck"

  Supported on Unix, Linux and Windows (Cygwin/Standalone version)

  Checks your installation against more than 1.000 Oracle Best Practices –  Audit_Checks_Report_Orachk.html contains a list of all checks

–  Additional user defined checks are possible

ExaChk is a similar tool for Exadata

Tools, not only for RAC databases 10 10.05.16

Page 11: Tools, nicht nur für den RAC

ORAchk – Not a RAC or database tool only

ORAchk includes checks for

–  Oracle Database (Single Instance + RAC) –  MAA Validation –  Upgrade Readiness –  Golden Gate

–  Enterprise Manager 12c Cloud Control

–  Peoplesoft

–  Siebel

–  Oracle Sun Server

Tools, not only for RAC databases 11 10.05.16

Page 12: Tools, nicht nur für den RAC

ORAchk – Interfaces

  CLI tool

–  Daemon possible

  HTML- and ZIP-output

  Results can be stored in a database

– è "configuration management lite"

  GUI

–  Collection Manager (APEX)

–  Enterprise Manager Plugin

Tools, not only for RAC databases 12 10.05.16

Page 13: Tools, nicht nur für den RAC

ORAchk - Installation

Clusterware 11.2.0.4 and 12.1.0.2

–  Installed with the software (into $ORACLE_HOME/suptools/orachk)

–  So far not updated with the PSUs L

  For older versions

–  Install TFA Collector 12.1.2.3.0 or higher

–  Download ORAchk via MOS 1268927.2

  Recommendation:

–  Use newest standalone version

Tools, not only for RAC databases 13 10.05.16

Page 14: Tools, nicht nur für den RAC

ORAchk – Basic Command Line Options

Option Meaning -a Run all Checks -b Best Practice Check only -p Patch Check Only -u –o pre|post Pre or Post Upgrade Checks

-dbnames run for a subset of databases only -clusternodes run for a subset of nodes only

-h Help on all available parameters (long list)

Tools, not only for RAC databases 14 10.05.16

Page 15: Tools, nicht nur für den RAC

ORAchk – Sample Output (1) – at runtime

ORAchk checks O/S, clusterware and databases on all nodes

  Result: ZIP-File and HTML-Report

Tools, not only for RAC databases 15 10.05.16

Page 16: Tools, nicht nur für den RAC

ORAchk – Sample Output (2) – Header

Tools, not only for RAC databases 16 10.05.16

Page 17: Tools, nicht nur für den RAC

ORAchk – Sample Output (3) – Overview

Tools, not only for RAC databases 17 10.05.16

Page 18: Tools, nicht nur für den RAC

ORAchk – Sample Output (4) – Details

Tools, not only for RAC databases 18 10.05.16

Page 19: Tools, nicht nur für den RAC

ORAchk – Advanced Command Line Options

Option Meaning -diff Compare 2 reports

-d Manage ORAchk daemon

-profile Run for specific components or applications like: •  ASM •  Clusterware •  EBS •  MAA •  Goldengate •  Enterprise Manager 12c .. And more

Tools, not only for RAC databases 19 10.05.16

Page 20: Tools, nicht nur für den RAC

ORAchk – Collection Manager (1)

ORAchk results can be stored in a repository database

  Collection Manager is a GUI for the repository database

  APEX application (4.2.0 or higher)

–  Import.sql is delivered with ORAchk software

  Installation

–  Create database user for ORAchk

–  create 3 tables (see Appendix F of the OraChk Users Guide)

–  Install APEX application

Tools, not only for RAC databases 20 10.05.16

Page 21: Tools, nicht nur für den RAC

ORAchk – Collection Manager (2)

  Set environment

  Run ORAchk

–  If the environment is set, then the data will be inserted into the repository database

export RAT_UPLOAD_CONNECT_STRING="(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbserver)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=EMREP)))" export RAT_UPLOAD_TABLE=auditcheck_result export RAT_PATCH_UPLOAD_TABLE=auditcheck_patch_result export RAT_ZIP_UPLOAD_TABLE=RCA13_DOCS export RAT_UPLOAD_USER=orachk export RAT_UPLOAD_PASSWORD=orachk export RAT_UPLOAD_ORACLE_HOME=/u00/app/oracle/product/11.2.0.4

Tools, not only for RAC databases 21 10.05.16

Page 22: Tools, nicht nur für den RAC

ORAchk – Collection Manager (3) – some screenshots

Tools, not only for RAC databases 22 10.05.16

Page 23: Tools, nicht nur für den RAC

ORAchk – Collection Manager (4) – some screenshots

Tools, not only for RAC databases 23 10.05.16

Page 24: Tools, nicht nur für den RAC

ORAchk – Collection Manager (5) – some screenshots

Tools, not only for RAC databases 24 10.05.16

Page 25: Tools, nicht nur für den RAC

ORAchk – Collection Manager (6) – some screenshots

Tools, not only for RAC databases 25 10.05.16

Page 26: Tools, nicht nur für den RAC

Tools, not only for RAC databases 26 10.05.16

Cluster Health Monitor

Page 27: Tools, nicht nur für den RAC

Cluster Health Monitor (CHM)

  Available since Oracle Grid Infrastructure 11.2.0.2

  Collects OS information of the cluster nodes –  CPU load –  Memory –  Top Processes –  File Systems –  System information

  Components –  sysmond (on every cluster node) –  loggerd

  Cluster Resource crf

Tools, not only for RAC databases 27 10.05.16

Page 28: Tools, nicht nur für den RAC

Cluster Health Monitor (CHM) – CLI oclumon

grid@rac1node1:~/ oclumon –h For help in interactive mode : <verb> -h Currently supported verbs are : dumpnodeview, manage, version, debug, analyze, quit, exit, and help

Option Dumpnodeview Shows collected data (for specific nodes and/or a specific timewindow

Manage Manages the CHM repository and show Version Shows version information Debug Debugs CHM components Analyze Deprecated, will be ignored

Tools, not only for RAC databases 28 10.05.16

Page 29: Tools, nicht nur für den RAC

Cluster Health Monitor (CHM) – CLI show data

grid@rac1node1:~/ [grid12102] oclumon dumpnodeview dumpnodeview: Node name not given. Querying for the local host ---------------------------------------- Node: rac1node1 Clock: '15-02-22 18.05.43 ' SerialNo:1440 ---------------------------------------- SYSTEM: #pcpus: 1 #vcpus: 2 cpuht: N chipname: Intel(R) cpu: 20.59 cpuq: 0 physmemfree: 393676 physmemtotal: 4958228 mcache: 2506540 swapfree: 3956548 swaptotal: 3964924 hugepagetotal: 0 hugepagefree: 0 hugepagesize: 2048 ior: 156 iow: 78 ios: 32 swpin: 0 swpout: 0 pgin: 155 pgout: 59 netr: 102.554 netw: 75.683 procs: 323 procsoncpu: 2 rtprocs: 13 rtprocsoncpu: N/A #fds: 20704 #sysfdlimit: 6815744 #disks: 9 #nics: 4 nicErrors: 0 TOP CONSUMERS: topcpu: 'mdb_vktm_-mgmtd(5402) 4.39' topprivmem: 'java(2046) 171088' topshm: 'ora_mman_raccdb(5479) 300808' topfd: 'oraagent.bin(4891) 251' topthread: 'console-kit-dae(3254) 64' [..]

Tools, not only for RAC databases 29 10.05.16

Page 30: Tools, nicht nur für den RAC

Cluster Health Monitor (CHM) – -MGMTDB (1)

  In Oracle 12c CHM data is stored in the Grid Infrastructure Management Repository (GIMR), SID=-MGMTDB

–  Mandatory with 12.1.0.2

–  Single instance database, CDB database with 12.1.0.2 (PDB-name = clustername)

–  No additional license required

–  Basic installation needs about 5 GB in the diskgroup with OCR and voting files

–  Additional listener MGMTLSNR

  Required size depends on number of nodes and retention time

–  About 1,3 GB + 500 MB/node

–  Check and configure with "oclumon"

Tools, not only for RAC databases 30 10.05.16

Page 31: Tools, nicht nur für den RAC

Cluster Health Monitor (CHM) – -MGMTDB (2) - Tools

mgmtca (for initial configuration only) Srvctl oclumon

–  Oracle recommends a retention time of 72 h ( = 259200 seconds)

grid@rac1node2:~/ oclumon manage -h Manage verb usage ================= manage -repos {checkretentiontime <time> | changerepossize <memsize>} | -get {<key1> [<key2> ...] | alllogger [-details] | mylogger [-details]} .. grid@rac1node2:~/ oclumon manage -repos checkretentiontime 259200 The Cluster Health Monitor repository is too small for the desired retention. Please first resize the repository to 5844 MB

Tools, not only for RAC databases 31 10.05.16

Page 32: Tools, nicht nur für den RAC

Cluster Health Monitor (CHM) – EM 12c Cloud Control

  CHM data can be displayed in EM 12c Cloud Control

Tools, not only for RAC databases 32 10.05.16

Page 33: Tools, nicht nur für den RAC

Cluster Health Monitor (CHM) – Memory Guard

  Evaluates the memory usage on the cluster nodes based on data collected by Cluster Health Monitor (CHM)

  Automatically stops database services (transactional) in case of memory pressure on a cluster node

–  .. or even kills database sessions

  .. and automatically reactivates the services when enough memory is available

  Starting with Oracle12.1.0.2 Memory Guard is automatically activated

Tools, not only for RAC databases 33 10.05.16

Page 34: Tools, nicht nur für den RAC

Tools, not only for RAC databases 34 10.05.16

OSWatcher

Page 35: Tools, nicht nur für den RAC

OSWatcher (1)

  Collects OS statistics in the background (hourly) using OS commands

–  CPU

–  Memory

–  Disk I/O

  Installed and activated with TFA collector

  Can generate graphics

OSWatcher vs. CHM

–  CHM CPU overhead lower

–  OSWatcher runs with user priority (CHM: Realtime)

–  OSWatcher collects more information

Tools, not only for RAC databases 35 10.05.16

Page 36: Tools, nicht nur für den RAC

OSWatcher (2) – Generate graphics

oracle> /u00/app/oracle/tools/tfa/bin/tfactl run oswbb Starting OSW Analyzer V7.3.1 OSWatcher Analyzer Written by Oracle Center of Expertise Copyright (c) 2014 by Oracle Corporation Parsing Data. Please Wait... Scanning file headers for version and platform info... Parsing file dbserver.markusflechtner.vm_iostat_15.02.22.0800.dat ... Parsing file dbserver.markusflechtner.vm_iostat_15.02.22.0900.dat ... [..] Parsing Completed. Enter 1 to Display CPU Process Queue Graphs Enter 2 to Display CPU Utilization Graphs Enter 3 to Display CPU Other Graphs Enter 4 to Display Memory Graphs Enter 5 to Display Disk IO Graphs [..] Enter Q to Quit Program Please Select an Option:

Tools, not only for RAC databases 36 10.05.16

Page 37: Tools, nicht nur für den RAC

OSWatcher (3) - Examples

Tools, not only for RAC databases 37 10.05.16

Page 38: Tools, nicht nur für den RAC

OSWatcher (4) - Housekeeping

  Files are written to $TFA_HOME/repository/suptools/walhall/oswbb/oracle/archive/

  No automatic housekeeping L

  Create a cronjob

–  Replace $TFA_HOME with your directory

Tools, not only for RAC databases 38 10.05.16

find $TFA_HOME/repository/suptools/walhall/oswbb/oracle/archive -name "*.*" -mtime +10 -exec rm -f {} \;

Page 39: Tools, nicht nur für den RAC

Tools, not only for RAC databases 39 10.05.16

Trace File Analyzer (TFA) Collector

Page 40: Tools, nicht nur für den RAC

Real life experience ..

  26 node cluster

–  5 databases

  Strange ASM issue

  Oracle Support requested

–  Clusterware logs

–  ASM alert.logs

–  Database alert.logs

For each of the 26 servers!!

Tools, not only for RAC databases 40 10.05.16

Page 41: Tools, nicht nur für den RAC

Trace File Analyzer Collector

  Initial release in January 2013, current version 12.1.2.7.0 (March 2016)

  Collects trace and log files and system information from all nodes into a cluster with a single command initiated on one cluster node

  Integrates a lot of other tools with one single CLI

  Centralized output

  Real-time scanning for specific error messages possible è Automatic Collection

  Included in Clusterware 11.2.0.4 and 12.1.0.2

  For other versions (10.2 or higher): –  Download from MOS: 1513912.1 –  RAC and DB Support Tools Bundle is included in current TFA package

Tools, not only for RAC databases 41 10.05.16

Page 42: Tools, nicht nur für den RAC

TFA Collector – Installation

  For Clusterware 11.2.0.4 and 12.1.0.2: No additional installation required

  For older versions: [root@rac1node1 tmp]# ./installTFALite.sh Starting TFA installation Enter a location for installing TFA [/tmp]: /u00/app/oracle Checking for available space in /u00/app/oracle Enter a Java Home that contains Java 1.6 or later : /usr/java/jre1.7.0_13 Running Auto Setup for TFA as user root… Would you like to do a [L]ocal only or [C]lusterwide installation ? [L|l|C|c] [C] : C The following installation requires temporary use of SSH. If SSH is not configured already then we will remove SSH when complete. Do you wish to Continue ? [Y|y|N|n] [N] y Installing TFA at /u00/app/oracle in all hosts Discovering Nodes and Oracle resources Checking whether CRS is up and running ..

Tools, not only for RAC databases 42 10.05.16

Page 43: Tools, nicht nur für den RAC

TFA Collector – Update

  TFA updates are not part of the PSUs

–  è TFA installed with Oracle Clusterware is not updated automatically

  Manual updates

–  Running TFA is detected automatically

–  TFA is updated in the correct directory

  Recommendation:

–  Disable the version delivered with Oracle Clusterware

–  Install the newest standalone version

Tools, not only for RAC databases 43 10.05.16

Page 44: Tools, nicht nur für den RAC

TFA Collector – Architecture

  JAVA-based tool

  TFA-daemon “TFAMain” running on all cluster nodes

  Data Storage

–  File-Repository for Diagnostic Information

–  Berkeley Database for metadata, file inventory, event history, etc.

  Command Line Interface

–  tfactl (perl)

–  Communication with daemon using secure sockets

oracle@rac1node1:~/ [rdbms12102] ps -ef |grep tfa |grep –v grep root 2325 1 0 10:14 ? 00:00:03 /bin/sh /etc/init.d/init.tfa run root 3631 1 0 10:16 ? 00:05:10 /u00/app/grid/product/12.1.0.2/jdk/jre/bin/java – [..] oracle.rat.tfa.TFAMain /u00/app/grid/product/12.1.0.2/tfa/rac1node1/tfa_home

Tools, not only for RAC databases 44 10.05.16

Page 45: Tools, nicht nur für den RAC

TFA Collector – Commands (1) – Command Overview

oracle@rac1node1:/home/grid/ tfactl Usage : /u00/app/grid/product/12.1.0.2/bin/tfactl <command> [options] <command> = print Print requested details analyze List events summary and search strings in alert logs. diagcollect Collect logs from across nodes in cluster collection Manage TFA collections directory Add or Remove or Modify directory in TFA toolstatus Prints the status of TFA Support Tools run <tool> Run the desired support tool start <tool> Starts the desired support tool stop <tool> Stops the desired support tool restart <tool> Restarts the desired support tool For help with a command: /oracle/u00/app/oracle/tools/tfa/bin/tfactl <command> -help

Tools, not only for RAC databases 45 10.05.16

Page 46: Tools, nicht nur für den RAC

TFA Collector – Commands (2) – commands for root

  Configuration tasks must be done by root

  The following additional commands are available: <command> = start Starts TFA stop Stops TFA enable Enable TFA Auto restart disable Disable TFA Auto restart access Add or Remove or List TFA Users and Groups purge Delete collections from TFA repository directory Add or Remove or Modify directory in TFA host Add or Remove host in TFA set Turn ON/OFF or Modify various TFA features uninstall Uninstall TFA from this node diagnosetfa Collect TFA Diagnostics ..

Tools, not only for RAC databases 46 10.05.16

Page 47: Tools, nicht nur für den RAC

TFA Collector – Commands (3) – print config

root@rac1node1:/home/grid/ tfactl print config +--------------------------------------------+------------+ | Configuration Parameter | Value | +---------------------------------------------+------------+ | TFA version | 12.1.2.3.1 | | Automatic diagnostic collection | OFF | | Trimming of files during diagcollection | ON | | Repository current size (MB) | 7 | | Repository maximum size (MB) | 10240 | | Inventory Trace level | 1 | | Collection Trace level | 1 | | Scan Trace level | 1 | | Other Trace level | 1 | | Max Size of TFA Log (MB) | 50 | | Max Number of TFA Logs | 10 | | Max Size of Core File (MB) | 20 | | Max Collection Size of Core Files (MB) | 200 | | Automatic Purging | ON | | Minimum Age of Collections to Purge (Hours) | 12 | '---------------------------------------------+------------'

Tools, not only for RAC databases 47 10.05.16

Page 48: Tools, nicht nur für den RAC

TFA Collector – Commands (4) – diagcollect (1)

  Collects trace and log files from the cluster nodes oracle@green:/tmp/ [grid12102] tfactl diagcollect Collecting data for the last 4 hours for all components... Collecting data for all nodes Collection Id : 20160503103456green Repository Location in green : /u00/app/oracle/tfa/repository Collection monitor will wait up to 30 seconds for collections to start 2016/05/03 10:35:01 CEST : Collection Name : tfa_Tue_May_3_10_34_56_CEST_2016.zip 2016/05/03 10:35:01 CEST : Sending diagcollect request to host : red 2016/05/03 10:35:01 CEST : Sending diagcollect request to host : white 2016/05/03 10:35:01 CEST : Scanning of files for Collection in progress... [..] Logs are being collected to: /u00/app/oracle/tfa/repository/collection_Tue_May_3_10_34_56_CEST_2016_node_all /u00/app/oracle/tfa/repository/collection_Tue_May_3_10_34_56_CEST_2016_node_all/green.tfa_Tue_May_3_10_34_56_CEST_2016.zip /u00/app/oracle/tfa/repository/collection_Tue_May_3_10_34_56_CEST_2016_node_all/white.tfa_Tue_May_3_10_34_56_CEST_2016.zip /u00/app/oracle/tfa/repository/collection_Tue_May_3_10_34_56_CEST_2016_node_all/red.tfa_Tue_May_3_10_34_56_CEST_2016.zip

Tools, not only for RAC databases 48 10.05.16

Page 49: Tools, nicht nur für den RAC

TFA Collector – Commands (5) – diagcollect (2)

  Which data is collected by default? –  alert.log from all databases - Patch Information –  ASM log files - CHM information –  listener.log files - Clusterware logs

  Components, node list and time window can be specified

  Data is "trimmed" to the relevant time window 2016/05/03 10:36:56 CEST : Total Size of all Files Checked : 3GB 2016/05/03 10:36:56 CEST : Number of files containing required range : 271 2016/05/03 10:36:56 CEST : Total Size of Files containing required range : 175MB 2016/05/03 10:36:56 CEST : Number of files trimmed : 18 2016/05/03 10:36:56 CEST : Total Size of data prior to zip : 93MB 2016/05/03 10:36:56 CEST : Saved 112MB by trimming files 2016/05/03 10:36:56 CEST : Zip file size : 7MB

Tools, not only for RAC databases 49 10.05.16

Page 50: Tools, nicht nur für den RAC

TFA Collector – Commands (6) – autodiagcollect

  Automatic diagnostic collection

–  Tfa scans the alert.log files and runs "diagcollect" automatically

–  Collection triggered by ORA-600, ORA-7445, ORA-4031, ..

–  Trimming interval +/- 600 seconds

root@rac1node1:~/ tfactl set autodiagcollect=<ON|OFF> [-c]

Tools, not only for RAC databases 50 10.05.16

Page 51: Tools, nicht nur für den RAC

TFA Collector – Commands (7) - analyze

  Checks system log files and Oracle log files on all nodes root@rac1node1:~/ [grid12102] tfactl analyze INFO: analyzing all (Alert and Unix System Logs) logs for the last 60 minutes... Please wait... INFO: analyzing host: rac1node1 Report title: Analysis of Alert,System Logs Report date range: last ~1 hour(s) Report (default) time zone: CET - Central European Time Analysis started at: 21-Feb-2015 09:02:34 PM CET [..] Message types for last ~1 hour(s) Occurrences percent server name type ----------- ------- -------------------- ----- 2 66.7% rac1node1 WARNING 1 33.3% rac1node1 generic [..]

Tools, not only for RAC databases 51 10.05.16

Page 52: Tools, nicht nur für den RAC

TFA Collector – other tools (1)

Tools, not only for RAC databases 52 10.05.16

Command in TFACTL Explanation

Alertsummary Event summary from all alert.log files

Changes Lists changes of OS and instance configuration

Oratop "top" for Oracle Databases, Linux client required

Events List important events

Pstack Stack trace for a process (across the cluster)

Darda Diagnostic assistant, , common interface for various tools

Prw (ProcWatcher) Capture diagnostic output for perfomance issues and session hangs

(partial) list of the tools which are integrated in TFA (incl. "Support Tools Bundle"):

Please see TFA documentation for a complete list incl. documentation for each tool

Page 53: Tools, nicht nur für den RAC

TFA collector – other tools (2) – example output: events

Tools, not only for RAC databases 53 10.05.16

tfactl> events Output from host : walhall ------------------------------ May/02/2016 14:29:28 : [db.emrep.EMREP] : Starting ORACLE instance (normal) (OS id: 9557) May/02/2016 14:31:17 : [db.emrep.EMREP] : TNS-12537: TNS:connection closed [db.emrep.EMREP] : opiodr aborting process unknown ospid (15621) as a result of ORA-609 May/02/2016 14:29:28 : [db.tvd12_site1.TVD12] : Starting ORACLE instance (normal) (OS id: 9527) May/02/2016 14:29:28 : [db.tvd12cdb.TVD12CDB] : Starting ORACLE instance (normal) (OS id: 9537)

Page 54: Tools, nicht nur für den RAC

TFA collector – other tools (3) – example output: oratop

Tools, not only for RAC databases 54 10.05.16

Page 55: Tools, nicht nur für den RAC

Tools, not only for RAC databases 55 10.05.16

Summary

Page 56: Tools, nicht nur für den RAC

Summary

  Oracle provides a lot of tools to keep a database in a healthy state

  There are multiple ways to install the same tool

  The toolset is not complete integrated in the PSU lifecycle so far

  Overlapping functionality

–  Healthchecks: OraChk vs. cluvfy

–  System performance data: CHM vs. OSWatcher

Σ

Tools, not only for RAC databases 56 10.05.16

Page 57: Tools, nicht nur für den RAC

Tools, not only for RAC databases 57 10.05.16

Further Information

•  Some MOS-Notes: •  TFA Collector - Tool for Enhanced Diagnostic Gathering (Doc ID 1513912.1) •  ORAchk - Health Checks for the Oracle Stack (Doc ID 1268927.2) •  oratop - Utility for Near Real-time Monitoring of Databases (Doc ID 1500864.1) •  SQLT Diagnostic Tool (Doc ID 215187.1) •  Procwatcher: Script to Monitor and Examine Oracle DB and Clusterware (Doc ID 459694.1)

Page 58: Tools, nicht nur für den RAC

Questions and Answers Markus Flechtner Principal Consultant

Phone +49 211 5866 64725 [email protected] @markusdba http://markusdba.de Download the slides from http://www.slideshare.net/markusdba Please don‘t forget the session evaluation – Thank you!

10.05.16 Tools, not only for RAC databases 58