DBACockpit for Oracle Dr. Ralf Hackmann SAP AG - CoE EMEA Tech Appl. Platf. DOAG St. Leon-Rot 02. July 2013
General remarks
Introduction The DBACockpit is a common monitoring framework for all Database platforms DBACockpit provides infrastructure for monitoring local and remote DBs: monitoring of SAP-R/3-remote databases monitoring of non-sap-r/3 remote databases (e.g. Java-based DBs) Available since SAP Basis 7.00 SP12 (see SAP-note 1028624) All monitoring and planning calendar functions for one system can be accessed via a navigation tree with four main areas: Performance (~ TA ST04) Space (~ TA DB02) Jobs (~ TA DB13, DB12, DB14, DB13C) Diagnostics 2013 SAP AG. All rights reserved. 3
Prerequisites DBACockpit requirements Synonyms GRANTS Run the new version of installation script (see SAP-note 706927) Space part needs proper configuration Check tables DB02_COLL_PLAN, DB02_COLL_LOG All modules need to be active! 2013 SAP AG. All rights reserved. 4
Database connection to remote systems Monitor a remote database via database connect E.g. Solution Manager as central monitor platform E.g. monitor system without ABAP stack Prerequiste (SAP-notes 1256322,1261329) Oracle client library Configuration in DBACockpit Check with ABAP report ADBC_TEST_CONNECTION Check of database connection settings Certain monitors require an additional RFC-connection Display of ABAP source code ABAP DDIC information DEMO 2013 SAP AG. All rights reserved. 5
Database connection Example I Maintain database connection details: EZCONNECT: tnsnames.ora not required (SAP Netweaver 7.02 SP4) Database Host Service Name Port No EZCONNECT but tnsnames.ora only TNS Name 2013 SAP AG. All rights reserved. 6
Database connection Example II Successful database connect Tab-strip: System Data Check with report ADBC_TEST_CONNECTION 2013 SAP AG. All rights reserved. 7
History collection With Oracle Rel. 10 the Active Workload Repository has been introduced History collection with reports RSORAHCL/RSORAHST not longer supported high system load big tables GVD_* De-schedule the report RSORAHCL (Table TCOLL) Clear the tables GVD_* but keep the table definitions SAP-note 1411834 2013 SAP AG. All rights reserved. 8
Monitors New monitors and improvements
Main Monitor Entry Screen Button showing bundle patches (SAP-note 1871181) Create a manual snapshot in AWR Output of buffer quality even for wrong values 2013 SAP AG. All rights reserved. 10
Enhancement: Special Statistics for CBO SAP-note 1755971 Additional tab-strips: 1. Extended Statistics 2. Special Statistics Example shows extended statistics for a table. This table has two highly correlated columns The tab Special Statistics shows details about each table, like analysis method, sample size, histogram information,.. 2013 SAP AG. All rights reserved. 11
Segments with activated parallelism Command to remove parallel degree Parallel degree on segment level: ALTER TABLE <TABLE> PARALLEL <DEGREE> ALTER INDEX <INDEX> PARALLEL <DEGREE> After parallel DDL operation (e.g. ALTER INDEX <INDEX> REBUILD PARALLEL) the parallel degree is kept after finishing the operation this monitor helps to quickly check for segments with parallel degree. Ex.: alter index "T100~LV1" rebuild parallel 4 nologging; SAP-notes and 651060, 1704439, 1717420 2013 SAP AG. All rights reserved. 12
SQL Command Editor I Tool to allow execution of SQL Statements Quick adaption of analysis capabilities Only SELECT statements allowed no data changing SQL No DDL statements allowed SAP-note 1556453 2013 SAP AG. All rights reserved. 13
SQL Command Editor II The SQL Command Editor is a tool NO replacement of sqlplus! 3 versions of SQL Command Editor: 1. CL_ORA_ACTION_JSEL SAP Basis 7.00 and 7.10 2. CL_ORA_ACTION_SQLC SAP Basis 7.X >= EHP1 3. CL_ORA_ACTION_SQL_EDITOR / CL_ORA_SQL_EXECUTOR SAP Basis 7.02 and >= 7.30 (Oracle >= 11) 2013 SAP AG. All rights reserved. 14
SQL Command Editor III Execute the SQL statement Toggle to full screen Refresh the execution of statement Explain the SQL statement Batch execution of SQL statement History of SQL statements DESC <TABLE> is supported 2013 SAP AG. All rights reserved. 15
SQL Command Editor IV The new SQL Command Editor uses authority object S_TABU_SQL ACTVT : Aktivity DBSID : Name of database connection TABLE: Table name TABOWNER: Table owner (on database level) Example: Show only tables with owner SYS (e.g. V$-views) on local system Role: ACTVT = 33 DBSID = LOCAL TABLE = * TABOWNER = SYS SAP-note 1568173 DEMO 2013 SAP AG. All rights reserved. 16
Timed Events Choose event name and show time distribution Show the distribution of the selected event Drill down using AWR data and check distribution for specific AWR time interval 2013 SAP AG. All rights reserved. 17
Redo Log Switches per Hour Set time interval Check of log switch frequency high number of log switches increased checkpoint load (because each log switch triggers a checkpoint) DBWR has to write down dirty blocks from the buffer pool to disk. SAP-note 1704439 2013 SAP AG. All rights reserved. 18
SGA-monitor SAP-note 1808247 Resource memory overview Layout optimization Include new columns Double-click on SQL-ID shows associated SQL text 2013 SAP AG. All rights reserved. 19
Top Segment Statistics SAP-note 1813266 Check segments on different criteria For a specific time window Logical reads, Physical reads, Show SQL Stmts which have been executed on the selected segment 2013 SAP AG. All rights reserved. 20
Change of Layout: Space-part Per SAP-note 1847054: Screen layout has slightly changed more room to show data (header section has been removed) 2013 SAP AG. All rights reserved. 21
Additional Changes SAP-note 1799717: Enhance Lock-monitor with timestamp and tab for DML Lock SAP-note 1731514: Parallel Execution Sessions (Explain Plan, DDIC Info) SAP-note 1799903: Redesign of Monitors Display GV$-,DBA-,USER-Monitors SAP-note 1770858: Enable Table Access-monitor to display long statement texts SAP-note 1721012: Main monitor CPU time taken from GV$SYS_TIME_MODEL SAP-note 1727180: Bundle Patches SAP-note 1747170: I/O Activities SAP-note 1815538: System metrics SAP-note 1806750: Fragmentation and chained row analysis 2013 SAP AG. All rights reserved. 22
Thank you Contact information: Dr. Ralf Hackmann CoE EMEA Tech Appl. Platf. SAP AG Dietmar-Hopp-Allee 16 69190 Walldorf, Germany T +49 6227 7-44382 F +49 6227 78-21680 M +49 151-16810442 E ralf.hackmann@sap.com