SlideShare une entreprise Scribd logo
1  sur  31
BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENF HAMBURG
KOPENHAGEN LAUSANNE MANNHEIM MÜNCHEN STUTTGART WIEN ZÜRICH
Performance Analysis
on a Standby Database
Daniel Hillinger
@daniel8192 daniel8192.wordpress.com
Daniel Hillinger
Consultant at Trivadis GmbH Munich
Focus:
Oracle (RAC, Grid Infrastructure, Exadata, Dataguard)
Unix/Linux (OEL, RedHat, Solaris)
Azure (Automation, Design and Security)
daniel8192.wordpress.com
9/26/2018 Performance Analysis on a Standby Database2
Agenda
1. Reasons for Performance Analysis
2. Solutions and Limitation
3. Demo
4. Conclusion
9/26/2018 Performance Analysis on a Standby Database3
Reasons for Performance Analysis
Performance Analysis on a Standby Database4 9/26/2018
Primary
Standby
Standby 2
Queries
Redo Transport and Apply
Queries
Standby databases:
High Availability / Desaster Recovery
Scalability
– Reporting
– Move load away from primary
Reasons for Performance Analysis
Performance Analysis on a Standby Database5 9/26/2018
Primary
Standby
Standby 2
Redo Transport and Apply
Performance analysis:
Reader farm  many small queries with relevant runtime
Reporting  high optimization potential due too large queries
Day-1(snapshot)  high optimization potential due too large queries
Apply too slow
Transport too slow
Performance Analysis on a Standby Database6 9/26/2018
Solutions and Limitations
Solutions and Limitations
Performance Analysis on a Standby Database7 9/26/2018
ASH
AWR
Standby Statspack
SQLT
Performance Analysis on a Standby Database8 9/26/2018
ASH and AWR
Available as of 11gR2
Only for active Dataguard and Diagnostic Pack
No configuration necessary
Memory contains data from standby DB
Disk contains data from primary DB
ASH – Active Session History
Performance Analysis on a Standby Database9 9/26/2018
SQl> @?/rdbms/admin/ashrpti.sql
AWR – Automatic Workload Repository
Performance Analysis on a Standby Database10 9/26/2018
Available as of 12cR1
Only for active Dataguard
and Diagnostic Pack
Supports RAC
HTML reports
ADDM (Automatic
Database Diagnostic Monitor)
SQL Tuning Advisor
collecting data
destination source
writing data via db_link
initiating snapshot via db_link
collecting data
AWR – Automatic Workload Repository
Performance Analysis on a Standby Database11 9/26/2018
Initial configuration:
DB links
Link registration
Node registration
Manual reconfiguration necessary
after switchover / failover and add /
remove hosts
User: SYS$UMF
Package: DBMS_UMF
Views: DBA_UMF_TOPOLOGY
DBA_UMF_REGISTRATION
DBA_UMF_LINK
DBA_UMF_SERVICE
Performance Analysis on a Standby Database12 9/26/2018
Standby Statspack
Standby Statspack
Performance Analysis on a Standby Database13 9/26/2018
Availabe as of 11gR1
Read only or read write open
Statspack must be installed (PERFSTAT)
Installed in a separate schema on the primary db called STDBYPERF
Supports RAC, Multitenant
Only text, no HTML
Metalink Note: Installing and Using Standby Statspack (Doc ID 454848.1)
Standby Statspack - Setup
Performance Analysis on a Standby Database14 9/26/2018
Install standby statspack
Configure all db and instances
Prepare tnsnames.ora for each instance
TVDDG1_SITE1=(DESCRIPTION =
(ADDRESS=(PROTOCOL = TCP )(HOST = oeldbdg01 )(PORT = 1521 ))
(CONNECT_DATA =(SERVICE_NAME = TVDDG1_SITE1 ))
)
SQL> @?/rdbms/admin/sbcreate.sql
SQL> @?/rdbms/admin/sbaddins.sql
Standby Statspack - Usage
Performance Analysis on a Standby Database15 9/26/2018
Generate Report
Create Snapshot from your primary DB
SQL> connect STDBYPERF/XYZ
SQL> exec statspack_<db_unique_name>_<instance_name>.snap
SQL> @?/rdbms/admin/sbreport.sql
Standby Statspack - Usage
Performance Analysis on a Standby Database16 9/26/2018
Add manually a automatic run for snapshot creation and purge
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'snap_<TNS_ALIAS>',
job_type => 'STORED_PROCEDURE',
job_action => 'statspack_<db_unique_name>_<instance>.snap',
repeat_interval => 'FREQ=MINUTELY;INTERVAL=30;',
auto_drop => FALSE,
enabled => TRUE,
comments => 'Standby Statspack automated snap for <TNS_ALIAS>');
END;
Standby Statspack – How it works
Performance Analysis on a Standby Database17 9/26/2018
DBMS_SCHEDULER
statspack_<db_unique_name>_<instance>.snap
Primary stdbyperf Standby perfstat
select data via db_link
Standby Statspack – How it works
Performance Analysis on a Standby Database18 9/26/2018
Using DB_Links, one for each standby instance from stdbyperf (primary) to perfstat
(standby)
Important: also for the primary DB
SQL> select OWNER, DB_LINK, USERNAME, HOST from dba_db_links where
username='PERFSTAT';
OWNER DB_LINK USERNAME HOST
--------- ----------------------------------- -------- ------------
STDBYPERF STDBY_LINK_TVDDG1_SITE2.LOCALDOMAIN PERFSTAT TVDDG1_SITE2
STDBYPERF STDBY_LINK_TVDDG1_SITE1.LOCALDOMAIN PERFSTAT TVDDG1_SITE1
Standby Statspack – How it works
Performance Analysis on a Standby Database19 9/26/2018
Do you really need active Dataguard or Snapshot DB?
YES, User PERFSTAT has no special privileges (like sysdba)
 no login to mounted standby db
SQL> exec Statspack_TVDDG1_SITE2_tvddg1.snap
BEGIN Statspack_TVDDG1_SITE2_tvddg1.snap; END;
ERROR at line 1:
ORA-03150: end-of-file on communication channel for database link
ORA-02063: preceding line from STDBY_LINK_TVDDG1_SITE2
ORA-06512: at "STDBYPERF.STATSPACK_TVDDG1_SITE2_TVDDG1", line 59
ORA-06512: at "STDBYPERF.STATSPACK_TVDDG1_SITE2_TVDDG1", line 4167
ORA-06512: at "STDBYPERF.STATSPACK_TVDDG1_SITE2_TVDDG1", line 101
ORA-06512: at line 1
Performance Analysis on a Standby Database20 9/26/2018
DEMO
Performance Analysis on a Standby Database21 9/26/2018
Conclusion
All solutions only for active Dataguard or Snapshot Database
ASH  only temporary data
AWR  a lot of effort and additional license, but ADDM and Tuning Advisor
Standby Statspack  easy to configure and use
Conclusion
Performance Analysis on a Standby Database22 9/26/2018
My Favorite
Questions and answers…
Daniel Hillinger
Tel. +49 89 992 759 333
Daniel.Hillinger@Trivadis.com
@daniel8192 daniel8192.wordpress.com
9/26/2018 Performance Analysis on a Standby Database23
Session Feedback – now
TechEvent September 201824 14.09.2018
Please use the Trivadis Events mobile app to give feedback on each session
Use "My schedule" if you have registered for a session
Otherwise use "Agenda" and the search function
If the mobile app does not work (or if you have a Windows smartphone), use your
smartphone browser
– URL: http://trivadis.quickmobileplatform.eu/
– User name: <your_loginname> (such as "svv")
– Password: sent by e-mail...
Performance Analysis on a Standby Database25 9/26/2018
Tuning
Tuning
Performance Analysis on a Standby Database26 9/26/2018
SQL Plan Management
SQL Profiles
Stored Outlines
 Stored in the database, same as primary db
Hints
 Inside the sqltext, could be adapted for the standby db
Additional TEMPFILES can be created
In-Memory Parameter
Performance Analysis on a Standby Database27 9/26/2018
Standby Statspack
Example Report
STATSPACK Statistics Report for Physical Standby
Load Profile Total Per Second
~~~~~~~~~~~~ ------------------ -----------------
...
Redo MB applied: 2.1 0.5
...
Standby Statspack - Example Report
Performance Analysis on a Standby Database28 9/26/2018
Recovery Progress Stats DB/Inst: TVDDG1_SITE2/tvddg1 End Snap: 13
-> End Snapshot Time: 25-Aug-18 13:59:40
-> ordered by Recovery Start Time desc, Units, Item asc
Recovery Start Time Item Sofar Units Redo Timestamp
------------------- ----------------- -------------- ------- ------------------
23-Aug-18 15:49:57 Log Files 9 Files
23-Aug-18 15:49:57 Active Apply Rate 788 KB/sec
23-Aug-18 15:49:57 Average Apply Rat 5 KB/sec
23-Aug-18 15:49:57 Maximum Apply Rat 4,106 KB/sec
23-Aug-18 15:49:57 Redo Applied 917 Megabyt
23-Aug-18 15:49:57 Recovery ID 0 RCVID
...
Standby Statspack - Example Report
Performance Analysis on a Standby Database29 9/26/2018
Instance Recovery Stats DB/Inst: TVDDG1_SITE2/tvddg1 Snaps: 12-13
-> B: Begin snapshot, E: End snapshot
Targt Estd Log File Log Ckpt Log Ckpt
MTTR MTTR Recovery Actual Target Size Timeout Interval
(s) (s) Estd IOs Redo Blks Redo Blks Redo Blks Redo Blks Redo Blks
- ----- ----- ---------- --------- --------- ---------- --------- ------------
B 0 0 0 0
E 0 0 0 0
-------------------------------------------------------------
Standby Statspack - Example Report
Performance Analysis on a Standby Database30 9/26/2018
Managed Standby Stats DB/Inst: TVDDG1_SITE2/tvddg1 End Snap: 13
-> End Snapshot Time: 25-Aug-18 13:59:40
-> ordered by Process
Process pid Status Resetlog Id Thread Seq Block Num
----------- ---------- ------------ ----------- ------ ------- -----------
Client Proc Client pid Blocks Delay(mins) Active Agents
----------- ---------- -------------- -------------- --------------
ARCH 631 CLOSING 984865153 1 71 366592
ARCH 631 1,165 0 0
ARCH 649 CONNECTED 0 0 0 0
ARCH 649 0 0 0
ARCH 647 CLOSING 984865153 1 72 344064
...
Standby Statspack - Example Report
Performance Analysis on a Standby Database31 9/26/2018

Contenu connexe

Tendances

Tendances (20)

Best practices for azure governance
Best practices for azure governanceBest practices for azure governance
Best practices for azure governance
 
Building a Real-Time IoT monitoring application with Azure
Building a Real-Time IoT monitoring application with AzureBuilding a Real-Time IoT monitoring application with Azure
Building a Real-Time IoT monitoring application with Azure
 
Securing an Azure full-PaaS architecture - Data saturday #0001 Pordenone
Securing an Azure full-PaaS architecture - Data saturday #0001 PordenoneSecuring an Azure full-PaaS architecture - Data saturday #0001 Pordenone
Securing an Azure full-PaaS architecture - Data saturday #0001 Pordenone
 
AWS Study Group - Chapter 08 - Disaster Recovery Strategies [Solution Archite...
AWS Study Group - Chapter 08 - Disaster Recovery Strategies [Solution Archite...AWS Study Group - Chapter 08 - Disaster Recovery Strategies [Solution Archite...
AWS Study Group - Chapter 08 - Disaster Recovery Strategies [Solution Archite...
 
Azure realtime-interview questions - part 7
Azure realtime-interview questions - part 7Azure realtime-interview questions - part 7
Azure realtime-interview questions - part 7
 
Virtual Global Azure 2020 - Azure Monitor
Virtual Global Azure 2020 - Azure MonitorVirtual Global Azure 2020 - Azure Monitor
Virtual Global Azure 2020 - Azure Monitor
 
Infrastructure as Code for Azure: ARM or Terraform?
Infrastructure as Code for Azure: ARM or Terraform?Infrastructure as Code for Azure: ARM or Terraform?
Infrastructure as Code for Azure: ARM or Terraform?
 
Innovation anywhere with microsoft azure arc
Innovation anywhere with microsoft azure arcInnovation anywhere with microsoft azure arc
Innovation anywhere with microsoft azure arc
 
Azure governance v4.0
Azure governance v4.0Azure governance v4.0
Azure governance v4.0
 
Alluxio 2 Community Update
Alluxio 2 Community UpdateAlluxio 2 Community Update
Alluxio 2 Community Update
 
Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...
Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...
Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...
 
스타트업 나홀로 데이터 엔지니어: 데이터 분석 환경 구축기 - 천지은 (Tappytoon) :: AWS Community Day Onlin...
스타트업 나홀로 데이터 엔지니어: 데이터 분석 환경 구축기 - 천지은 (Tappytoon) :: AWS Community Day Onlin...스타트업 나홀로 데이터 엔지니어: 데이터 분석 환경 구축기 - 천지은 (Tappytoon) :: AWS Community Day Onlin...
스타트업 나홀로 데이터 엔지니어: 데이터 분석 환경 구축기 - 천지은 (Tappytoon) :: AWS Community Day Onlin...
 
Microsoft TechSummit - Deploy your Solution to IaaS and PaaS with VSTS and Az...
Microsoft TechSummit - Deploy your Solution to IaaS and PaaS with VSTS and Az...Microsoft TechSummit - Deploy your Solution to IaaS and PaaS with VSTS and Az...
Microsoft TechSummit - Deploy your Solution to IaaS and PaaS with VSTS and Az...
 
Real time Object Detection and Analytics using RedisEdge and Docker
Real time Object Detection and Analytics using RedisEdge and DockerReal time Object Detection and Analytics using RedisEdge and Docker
Real time Object Detection and Analytics using RedisEdge and Docker
 
Azuresatpn19 - An Introduction To Azure Data Factory
Azuresatpn19 - An Introduction To Azure Data FactoryAzuresatpn19 - An Introduction To Azure Data Factory
Azuresatpn19 - An Introduction To Azure Data Factory
 
Azure IAAS architecture with High Availability for beginners and developers -...
Azure IAAS architecture with High Availability for beginners and developers -...Azure IAAS architecture with High Availability for beginners and developers -...
Azure IAAS architecture with High Availability for beginners and developers -...
 
Three Stage of AWS Cost Optimisation with ActOnCloud Trusted Fixer
Three Stage of AWS Cost Optimisation with ActOnCloud Trusted FixerThree Stage of AWS Cost Optimisation with ActOnCloud Trusted Fixer
Three Stage of AWS Cost Optimisation with ActOnCloud Trusted Fixer
 
Innovations of .NET and Azure (Recaps of Build 2017 selected sessions)
Innovations of .NET and Azure (Recaps of Build 2017 selected sessions)Innovations of .NET and Azure (Recaps of Build 2017 selected sessions)
Innovations of .NET and Azure (Recaps of Build 2017 selected sessions)
 
One Hadoop, Multiple Clouds - NYC Big Data Meetup
One Hadoop, Multiple Clouds - NYC Big Data MeetupOne Hadoop, Multiple Clouds - NYC Big Data Meetup
One Hadoop, Multiple Clouds - NYC Big Data Meetup
 
Google App Engine - Simple Introduction
Google App Engine - Simple IntroductionGoogle App Engine - Simple Introduction
Google App Engine - Simple Introduction
 

Similaire à TechEvent Performance Analyses on Standby Database

NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_DatabaseNoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
Paresh Patel
 
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
Monowar Mukul
 
Colvin RMAN New Features
Colvin RMAN New FeaturesColvin RMAN New Features
Colvin RMAN New Features
Enkitec
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
uzzal basak
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
Jason Arneil
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
Karam Abuataya
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
Sidney Chen
 

Similaire à TechEvent Performance Analyses on Standby Database (20)

Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
 
The Data Center and Hadoop
The Data Center and HadoopThe Data Center and Hadoop
The Data Center and Hadoop
 
Trivadis TechEvent 2017 How modern DBAs can use our efficient Toolbox by Rola...
Trivadis TechEvent 2017 How modern DBAs can use our efficient Toolbox by Rola...Trivadis TechEvent 2017 How modern DBAs can use our efficient Toolbox by Rola...
Trivadis TechEvent 2017 How modern DBAs can use our efficient Toolbox by Rola...
 
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_DatabaseNoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
 
PGConf APAC 2018 - Managing replication clusters with repmgr, Barman and PgBo...
PGConf APAC 2018 - Managing replication clusters with repmgr, Barman and PgBo...PGConf APAC 2018 - Managing replication clusters with repmgr, Barman and PgBo...
PGConf APAC 2018 - Managing replication clusters with repmgr, Barman and PgBo...
 
Presentation upgrade, migrate &amp; consolidate to oracle database 12c &amp...
Presentation   upgrade, migrate &amp; consolidate to oracle database 12c &amp...Presentation   upgrade, migrate &amp; consolidate to oracle database 12c &amp...
Presentation upgrade, migrate &amp; consolidate to oracle database 12c &amp...
 
OracleDatabase12cPXNewFeatures_ITOUG_2018.pdf
OracleDatabase12cPXNewFeatures_ITOUG_2018.pdfOracleDatabase12cPXNewFeatures_ITOUG_2018.pdf
OracleDatabase12cPXNewFeatures_ITOUG_2018.pdf
 
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
 
Colvin RMAN New Features
Colvin RMAN New FeaturesColvin RMAN New Features
Colvin RMAN New Features
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
 
Dataguard broker and observerst
Dataguard broker and observerstDataguard broker and observerst
Dataguard broker and observerst
 
Automate DG Best Practices
Automate DG  Best PracticesAutomate DG  Best Practices
Automate DG Best Practices
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
 
Postgre sql best_practices
Postgre sql best_practicesPostgre sql best_practices
Postgre sql best_practices
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
 
Postgre sql best_practices
Postgre sql best_practicesPostgre sql best_practices
Postgre sql best_practices
 

Plus de Trivadis

Plus de Trivadis (20)

Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
 
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
 
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
 
Azure Days 2019: Master the Move to Azure (Konrad Brunner)
Azure Days 2019: Master the Move to Azure (Konrad Brunner)Azure Days 2019: Master the Move to Azure (Konrad Brunner)
Azure Days 2019: Master the Move to Azure (Konrad Brunner)
 
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
 
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
 
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
 
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
 
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
 
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
 
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
 
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - TrivadisTechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
 
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
 
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
 
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
 
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
 
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
 
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
 
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - TrivadisTechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis
 
TechEvent 2019: Tales from a Scrum Master; Ernst Jakob - Trivadis
TechEvent 2019: Tales from a Scrum Master; Ernst Jakob - TrivadisTechEvent 2019: Tales from a Scrum Master; Ernst Jakob - Trivadis
TechEvent 2019: Tales from a Scrum Master; Ernst Jakob - Trivadis
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Dernier (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

TechEvent Performance Analyses on Standby Database

  • 1. BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENF HAMBURG KOPENHAGEN LAUSANNE MANNHEIM MÜNCHEN STUTTGART WIEN ZÜRICH Performance Analysis on a Standby Database Daniel Hillinger @daniel8192 daniel8192.wordpress.com
  • 2. Daniel Hillinger Consultant at Trivadis GmbH Munich Focus: Oracle (RAC, Grid Infrastructure, Exadata, Dataguard) Unix/Linux (OEL, RedHat, Solaris) Azure (Automation, Design and Security) daniel8192.wordpress.com 9/26/2018 Performance Analysis on a Standby Database2
  • 3. Agenda 1. Reasons for Performance Analysis 2. Solutions and Limitation 3. Demo 4. Conclusion 9/26/2018 Performance Analysis on a Standby Database3
  • 4. Reasons for Performance Analysis Performance Analysis on a Standby Database4 9/26/2018 Primary Standby Standby 2 Queries Redo Transport and Apply Queries Standby databases: High Availability / Desaster Recovery Scalability – Reporting – Move load away from primary
  • 5. Reasons for Performance Analysis Performance Analysis on a Standby Database5 9/26/2018 Primary Standby Standby 2 Redo Transport and Apply Performance analysis: Reader farm  many small queries with relevant runtime Reporting  high optimization potential due too large queries Day-1(snapshot)  high optimization potential due too large queries Apply too slow Transport too slow
  • 6. Performance Analysis on a Standby Database6 9/26/2018 Solutions and Limitations
  • 7. Solutions and Limitations Performance Analysis on a Standby Database7 9/26/2018 ASH AWR Standby Statspack SQLT
  • 8. Performance Analysis on a Standby Database8 9/26/2018 ASH and AWR
  • 9. Available as of 11gR2 Only for active Dataguard and Diagnostic Pack No configuration necessary Memory contains data from standby DB Disk contains data from primary DB ASH – Active Session History Performance Analysis on a Standby Database9 9/26/2018 SQl> @?/rdbms/admin/ashrpti.sql
  • 10. AWR – Automatic Workload Repository Performance Analysis on a Standby Database10 9/26/2018 Available as of 12cR1 Only for active Dataguard and Diagnostic Pack Supports RAC HTML reports ADDM (Automatic Database Diagnostic Monitor) SQL Tuning Advisor collecting data destination source writing data via db_link initiating snapshot via db_link collecting data
  • 11. AWR – Automatic Workload Repository Performance Analysis on a Standby Database11 9/26/2018 Initial configuration: DB links Link registration Node registration Manual reconfiguration necessary after switchover / failover and add / remove hosts User: SYS$UMF Package: DBMS_UMF Views: DBA_UMF_TOPOLOGY DBA_UMF_REGISTRATION DBA_UMF_LINK DBA_UMF_SERVICE
  • 12. Performance Analysis on a Standby Database12 9/26/2018 Standby Statspack
  • 13. Standby Statspack Performance Analysis on a Standby Database13 9/26/2018 Availabe as of 11gR1 Read only or read write open Statspack must be installed (PERFSTAT) Installed in a separate schema on the primary db called STDBYPERF Supports RAC, Multitenant Only text, no HTML Metalink Note: Installing and Using Standby Statspack (Doc ID 454848.1)
  • 14. Standby Statspack - Setup Performance Analysis on a Standby Database14 9/26/2018 Install standby statspack Configure all db and instances Prepare tnsnames.ora for each instance TVDDG1_SITE1=(DESCRIPTION = (ADDRESS=(PROTOCOL = TCP )(HOST = oeldbdg01 )(PORT = 1521 )) (CONNECT_DATA =(SERVICE_NAME = TVDDG1_SITE1 )) ) SQL> @?/rdbms/admin/sbcreate.sql SQL> @?/rdbms/admin/sbaddins.sql
  • 15. Standby Statspack - Usage Performance Analysis on a Standby Database15 9/26/2018 Generate Report Create Snapshot from your primary DB SQL> connect STDBYPERF/XYZ SQL> exec statspack_<db_unique_name>_<instance_name>.snap SQL> @?/rdbms/admin/sbreport.sql
  • 16. Standby Statspack - Usage Performance Analysis on a Standby Database16 9/26/2018 Add manually a automatic run for snapshot creation and purge BEGIN DBMS_SCHEDULER.CREATE_JOB ( job_name => 'snap_<TNS_ALIAS>', job_type => 'STORED_PROCEDURE', job_action => 'statspack_<db_unique_name>_<instance>.snap', repeat_interval => 'FREQ=MINUTELY;INTERVAL=30;', auto_drop => FALSE, enabled => TRUE, comments => 'Standby Statspack automated snap for <TNS_ALIAS>'); END;
  • 17. Standby Statspack – How it works Performance Analysis on a Standby Database17 9/26/2018 DBMS_SCHEDULER statspack_<db_unique_name>_<instance>.snap Primary stdbyperf Standby perfstat select data via db_link
  • 18. Standby Statspack – How it works Performance Analysis on a Standby Database18 9/26/2018 Using DB_Links, one for each standby instance from stdbyperf (primary) to perfstat (standby) Important: also for the primary DB SQL> select OWNER, DB_LINK, USERNAME, HOST from dba_db_links where username='PERFSTAT'; OWNER DB_LINK USERNAME HOST --------- ----------------------------------- -------- ------------ STDBYPERF STDBY_LINK_TVDDG1_SITE2.LOCALDOMAIN PERFSTAT TVDDG1_SITE2 STDBYPERF STDBY_LINK_TVDDG1_SITE1.LOCALDOMAIN PERFSTAT TVDDG1_SITE1
  • 19. Standby Statspack – How it works Performance Analysis on a Standby Database19 9/26/2018 Do you really need active Dataguard or Snapshot DB? YES, User PERFSTAT has no special privileges (like sysdba)  no login to mounted standby db SQL> exec Statspack_TVDDG1_SITE2_tvddg1.snap BEGIN Statspack_TVDDG1_SITE2_tvddg1.snap; END; ERROR at line 1: ORA-03150: end-of-file on communication channel for database link ORA-02063: preceding line from STDBY_LINK_TVDDG1_SITE2 ORA-06512: at "STDBYPERF.STATSPACK_TVDDG1_SITE2_TVDDG1", line 59 ORA-06512: at "STDBYPERF.STATSPACK_TVDDG1_SITE2_TVDDG1", line 4167 ORA-06512: at "STDBYPERF.STATSPACK_TVDDG1_SITE2_TVDDG1", line 101 ORA-06512: at line 1
  • 20. Performance Analysis on a Standby Database20 9/26/2018 DEMO
  • 21. Performance Analysis on a Standby Database21 9/26/2018 Conclusion
  • 22. All solutions only for active Dataguard or Snapshot Database ASH  only temporary data AWR  a lot of effort and additional license, but ADDM and Tuning Advisor Standby Statspack  easy to configure and use Conclusion Performance Analysis on a Standby Database22 9/26/2018 My Favorite
  • 23. Questions and answers… Daniel Hillinger Tel. +49 89 992 759 333 Daniel.Hillinger@Trivadis.com @daniel8192 daniel8192.wordpress.com 9/26/2018 Performance Analysis on a Standby Database23
  • 24. Session Feedback – now TechEvent September 201824 14.09.2018 Please use the Trivadis Events mobile app to give feedback on each session Use "My schedule" if you have registered for a session Otherwise use "Agenda" and the search function If the mobile app does not work (or if you have a Windows smartphone), use your smartphone browser – URL: http://trivadis.quickmobileplatform.eu/ – User name: <your_loginname> (such as "svv") – Password: sent by e-mail...
  • 25. Performance Analysis on a Standby Database25 9/26/2018 Tuning
  • 26. Tuning Performance Analysis on a Standby Database26 9/26/2018 SQL Plan Management SQL Profiles Stored Outlines  Stored in the database, same as primary db Hints  Inside the sqltext, could be adapted for the standby db Additional TEMPFILES can be created In-Memory Parameter
  • 27. Performance Analysis on a Standby Database27 9/26/2018 Standby Statspack Example Report
  • 28. STATSPACK Statistics Report for Physical Standby Load Profile Total Per Second ~~~~~~~~~~~~ ------------------ ----------------- ... Redo MB applied: 2.1 0.5 ... Standby Statspack - Example Report Performance Analysis on a Standby Database28 9/26/2018
  • 29. Recovery Progress Stats DB/Inst: TVDDG1_SITE2/tvddg1 End Snap: 13 -> End Snapshot Time: 25-Aug-18 13:59:40 -> ordered by Recovery Start Time desc, Units, Item asc Recovery Start Time Item Sofar Units Redo Timestamp ------------------- ----------------- -------------- ------- ------------------ 23-Aug-18 15:49:57 Log Files 9 Files 23-Aug-18 15:49:57 Active Apply Rate 788 KB/sec 23-Aug-18 15:49:57 Average Apply Rat 5 KB/sec 23-Aug-18 15:49:57 Maximum Apply Rat 4,106 KB/sec 23-Aug-18 15:49:57 Redo Applied 917 Megabyt 23-Aug-18 15:49:57 Recovery ID 0 RCVID ... Standby Statspack - Example Report Performance Analysis on a Standby Database29 9/26/2018
  • 30. Instance Recovery Stats DB/Inst: TVDDG1_SITE2/tvddg1 Snaps: 12-13 -> B: Begin snapshot, E: End snapshot Targt Estd Log File Log Ckpt Log Ckpt MTTR MTTR Recovery Actual Target Size Timeout Interval (s) (s) Estd IOs Redo Blks Redo Blks Redo Blks Redo Blks Redo Blks - ----- ----- ---------- --------- --------- ---------- --------- ------------ B 0 0 0 0 E 0 0 0 0 ------------------------------------------------------------- Standby Statspack - Example Report Performance Analysis on a Standby Database30 9/26/2018
  • 31. Managed Standby Stats DB/Inst: TVDDG1_SITE2/tvddg1 End Snap: 13 -> End Snapshot Time: 25-Aug-18 13:59:40 -> ordered by Process Process pid Status Resetlog Id Thread Seq Block Num ----------- ---------- ------------ ----------- ------ ------- ----------- Client Proc Client pid Blocks Delay(mins) Active Agents ----------- ---------- -------------- -------------- -------------- ARCH 631 CLOSING 984865153 1 71 366592 ARCH 631 1,165 0 0 ARCH 649 CONNECTED 0 0 0 0 ARCH 649 0 0 0 ARCH 647 CLOSING 984865153 1 72 344064 ... Standby Statspack - Example Report Performance Analysis on a Standby Database31 9/26/2018