SlideShare une entreprise Scribd logo
1  sur  36
SQL Server
Rijswijk, june 2016
Agenda
 Who am I
 SQL Server vs Oracle
 Backups
 Monitoring
 Performance
 Support
 Future
 Questions?
11-7-2016
SQL Server
2
Who am I
Pierre van der Ven
Working since 1998 in IT
Started as programmer, switched to DBA
Assigned with several big customers
Last years mainly focus on SQL Server
I am a nerd 
11-7-2016
SQL Server
3
Oracle vs SQL Server
Language
 SQL
 T-SQL (Transact SQL)
 PL/SQL
11-7-2016
SQL Server
4
Oracle vs SQL Server
Naming the ‘objects’
11-7-2016
SQL Server
5
Database Instance / Database
Schema Database and database owner (DBO)
Tablespace Filegroup
User User
Role Group/Role
Table Table
Temporary tables Temporary tables
Cluster N/A
Column-level check constraint Column-level check constraint
Column default Column default
Unique key
Unique key or identity property for a
column
Primary key Primary key
Oracle SQL Server
Oracle vs SQL Server
Naming the ‘objects’
11-7-2016
SQL Server
6
Foreign key Foreign key
Indexes Indexes
PL/SQL Procedure
Transact-SQL (T-SQL) stored
procedure
PL/SQL Function T-SQL stored procedure
Packages N/A
AFTER triggers Triggers
BEFORE triggers Complex rules
Triggers for each row N/A
Synonyms N/A
Identity Identity property for a column
Snapshot (table-based) Snapshot (database-based)
View View
Oracle SQL Server
Oracle vs SQL Server
Naming the ‘objects’ (DBA)
11-7-2016
SQL Server
7
TEMP-tablespace tempdb
Undo-tablespace tempdb
RAC Always On
Flashback Snapshots ...
Oracle SQL Server
In Oracle, not in SQL Server
 Packages
 Triggers for each row
 Synonyms
 Snapshots
 Flashback
11-7-2016
SQL Server
8
In SQL Server, noy in Oracle
 Pluggable databases (since 12c in Oracle)
 Auto-increment values (since 12c in Oracle)
11-7-2016
SQL Server
9
Transaction Control
11-7-2016
SQL Server
10
SQL Server
Commits on default after every command. It is complex to
change this behavior.
Oracle
Commits when you commit. More control.
Transactionlog
11-7-2016
SQL Server
11
Oracle
Archivelog / noarchivelog
Oracle is using redo-logs. When a redo-log is full, it makes
a copy to a archivelog and rotates to the next member of
the redo-log.
SQL Server
Full Recovery / simple mode
SQL Server writes transaction-data to the transactionlog.
In full recovery it maintains this data until a backup has
been made. In simple mode it maintains the transaction-
log data during the transaction.
Transactionlog
11-7-2016
SQL Server
12
Oracle
Transactionlog
11-7-2016
SQL Server
13
SQL Server
Backups
11-7-2016
SQL Server
14
Oracle
rman
tool from supplier
SQL Server
Via SSMS (SQL Server Management Studio)
tool from supplier (ie NetBackup SQL client)
Monitoring
Oracle: Oracle Enterprise Manager (OEM) / Grid Control
SQL Server:
- Alerts
- System Centre Operations Manager (SCOM)
In OEM you can modify settings of the database, in SCOM
that is not possible. SCOM is only for monitoring. If you
want to change settings, use SSMS.
11-7-2016
SQL Server
15
What is hammering my instance
11-7-2016
SQL Server
16
What is hammering my instance
Always start with the activity monitor:
11-7-2016
SQL Server
17
What is hammering my instance
Check the task manager:
11-7-2016
SQL Server
18
What is hammering my instance
Ga na of er blocking locks zijn:
11-7-2016
SQL Server
19
Z
What is hammering my instance
Kijk of er blocking locks zijn:
11-7-2016
SQL Server
20
Z
Search for queries with a lot of physical reads:
What is hammering my instance
11-7-2016
SQL Server
21
Perfmon
Microsoft’s definition:
‘A handy tool built into Windows®,
an assist you in diagnosing the problem’
What is hammering my instance
11-7-2016
SQL Server
22
Perfmon
What is hammering my instance
11-7-2016
SQL Server
23
Perfmon
What is hammering my instance
11-7-2016
SQL Server
24
Perfmon
First make a Data Collector Set, save it and
change it afterwards to get the screen below:
What is hammering my instance
11-7-2016
SQL Server
25
Page Life Expectency (PLE)
PLE is the time in seconds how long the page stays in the
bufferpool. This is related to the memory-pressure. If the page
has been flushed from the bufferpool, it needs to be loaded
from disk.
What is hammering my instance
11-7-2016
SQL Server
26
Page Life Expectency (PLE)
What is hammering my instance
11-7-2016
SQL Server
27
Page Life Expectency (PLE)
In the past:
If below 300 seconds, add more memory
Nowadays:
What is hammering my instance
11-7-2016
SQL Server
28
SQL Server Profiler
You only get this option if you install the add-
ons for SSMS.
What is hammering my instance
11-7-2016
SQL Server
29
SQL Server Profiler
What is hammering my instance
11-7-2016
SQL Server
30
SQL Server Profiler
What is hammering my instance
11-7-2016
SQL Server
31
SQL Server Profiler
What is hammering my instance
11-7-2016
SQL Server
32
Indexes
• Missing indexes
• Unused indexes
• Fragmented indexes
What is hammering my instance
11-7-2016
SQL Server
33
Maintenance
Automatic (initial setup needed)
• Reorganize indexes
• Rebuild indexes
• Refresh statistics
• Cleanup logging
Manual
• Create missing indexes
• Drop unused indexes
Ola Hallengren
Support
11-7-2016
SQL Server
34
Bron: http://sqlserverupdates.com/
Future
11-7-2016
SQL Server
35
Questions?

Contenu connexe

Tendances

Asm 11g r1_bestpractices_7_301
Asm 11g r1_bestpractices_7_301Asm 11g r1_bestpractices_7_301
Asm 11g r1_bestpractices_7_301Mohsen B
 
MySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgradeMySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgradeAbel Flórez
 
TSQL in SQL Server 2012
TSQL in SQL Server 2012TSQL in SQL Server 2012
TSQL in SQL Server 2012Eduardo Castro
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c  - New Features for Developers and DBAsOracle Database 12c  - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAsAlex Zaballa
 
New awesome features in MySQL 5.7
New awesome features in MySQL 5.7New awesome features in MySQL 5.7
New awesome features in MySQL 5.7Zhaoyang Wang
 
Database concurrency and transactions - Tal Olier
Database concurrency and transactions - Tal OlierDatabase concurrency and transactions - Tal Olier
Database concurrency and transactions - Tal Oliersqlserver.co.il
 
Database Automation with MySQL Triggers and Event Schedulers
Database Automation with MySQL Triggers and Event SchedulersDatabase Automation with MySQL Triggers and Event Schedulers
Database Automation with MySQL Triggers and Event SchedulersAbdul Rahman Sherzad
 
PGConf.ASIA 2019 Bali - A step towards SQL/MED - DATALINK - Gilles Darold
PGConf.ASIA 2019 Bali - A step towards SQL/MED - DATALINK - Gilles DaroldPGConf.ASIA 2019 Bali - A step towards SQL/MED - DATALINK - Gilles Darold
PGConf.ASIA 2019 Bali - A step towards SQL/MED - DATALINK - Gilles DaroldEqunix Business Solutions
 
Developers’ mDay 2021: Bogdan Kecman, Oracle – MySQL nekad i sad
Developers’ mDay 2021: Bogdan Kecman, Oracle – MySQL nekad i sadDevelopers’ mDay 2021: Bogdan Kecman, Oracle – MySQL nekad i sad
Developers’ mDay 2021: Bogdan Kecman, Oracle – MySQL nekad i sadmCloud
 
Sqlpass The Magic Of Replication
Sqlpass   The Magic Of ReplicationSqlpass   The Magic Of Replication
Sqlpass The Magic Of Replicationsqlserver.co.il
 
MySQL 5.7 in a Nutshell
MySQL 5.7 in a NutshellMySQL 5.7 in a Nutshell
MySQL 5.7 in a NutshellEmily Ikuta
 
SQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type ExplainedSQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type ExplainedConfio Software
 
Crating a Robust Performance Strategy
Crating a Robust Performance StrategyCrating a Robust Performance Strategy
Crating a Robust Performance StrategyGuatemala User Group
 
High Performance Plsql
High Performance PlsqlHigh Performance Plsql
High Performance PlsqlGuy Harrison
 
Liquibase – a time machine for your data
Liquibase – a time machine for your dataLiquibase – a time machine for your data
Liquibase – a time machine for your dataNeev Technologies
 
Upgrading mysql version 5.5.30 to 5.6.10
Upgrading mysql version 5.5.30 to 5.6.10Upgrading mysql version 5.5.30 to 5.6.10
Upgrading mysql version 5.5.30 to 5.6.10Vasudeva Rao
 

Tendances (19)

Asm 11g r1_bestpractices_7_301
Asm 11g r1_bestpractices_7_301Asm 11g r1_bestpractices_7_301
Asm 11g r1_bestpractices_7_301
 
MySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgradeMySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgrade
 
TSQL in SQL Server 2012
TSQL in SQL Server 2012TSQL in SQL Server 2012
TSQL in SQL Server 2012
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c  - New Features for Developers and DBAsOracle Database 12c  - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAs
 
New awesome features in MySQL 5.7
New awesome features in MySQL 5.7New awesome features in MySQL 5.7
New awesome features in MySQL 5.7
 
Database concurrency and transactions - Tal Olier
Database concurrency and transactions - Tal OlierDatabase concurrency and transactions - Tal Olier
Database concurrency and transactions - Tal Olier
 
Database Automation with MySQL Triggers and Event Schedulers
Database Automation with MySQL Triggers and Event SchedulersDatabase Automation with MySQL Triggers and Event Schedulers
Database Automation with MySQL Triggers and Event Schedulers
 
PGConf.ASIA 2019 Bali - A step towards SQL/MED - DATALINK - Gilles Darold
PGConf.ASIA 2019 Bali - A step towards SQL/MED - DATALINK - Gilles DaroldPGConf.ASIA 2019 Bali - A step towards SQL/MED - DATALINK - Gilles Darold
PGConf.ASIA 2019 Bali - A step towards SQL/MED - DATALINK - Gilles Darold
 
Developers’ mDay 2021: Bogdan Kecman, Oracle – MySQL nekad i sad
Developers’ mDay 2021: Bogdan Kecman, Oracle – MySQL nekad i sadDevelopers’ mDay 2021: Bogdan Kecman, Oracle – MySQL nekad i sad
Developers’ mDay 2021: Bogdan Kecman, Oracle – MySQL nekad i sad
 
Sqlpass The Magic Of Replication
Sqlpass   The Magic Of ReplicationSqlpass   The Magic Of Replication
Sqlpass The Magic Of Replication
 
MySQL 5.7 in a Nutshell
MySQL 5.7 in a NutshellMySQL 5.7 in a Nutshell
MySQL 5.7 in a Nutshell
 
SQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type ExplainedSQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type Explained
 
BI for the DBA
BI for the DBABI for the DBA
BI for the DBA
 
Crating a Robust Performance Strategy
Crating a Robust Performance StrategyCrating a Robust Performance Strategy
Crating a Robust Performance Strategy
 
High Performance Plsql
High Performance PlsqlHigh Performance Plsql
High Performance Plsql
 
Liquibase – a time machine for your data
Liquibase – a time machine for your dataLiquibase – a time machine for your data
Liquibase – a time machine for your data
 
Upgrading mysql version 5.5.30 to 5.6.10
Upgrading mysql version 5.5.30 to 5.6.10Upgrading mysql version 5.5.30 to 5.6.10
Upgrading mysql version 5.5.30 to 5.6.10
 
Introduction to Mysql
Introduction to MysqlIntroduction to Mysql
Introduction to Mysql
 
DBCC - Dubi Lebel
DBCC - Dubi LebelDBCC - Dubi Lebel
DBCC - Dubi Lebel
 

En vedette

Agile Tour Toulouse 2015 - Ekito
Agile Tour Toulouse 2015 - EkitoAgile Tour Toulouse 2015 - Ekito
Agile Tour Toulouse 2015 - EkitoAgile Toulouse
 
Testing Your Sproutcore Presentation
Testing Your Sproutcore PresentationTesting Your Sproutcore Presentation
Testing Your Sproutcore Presentationgmoeck
 
From GNETS to Home School
From GNETS to Home SchoolFrom GNETS to Home School
From GNETS to Home Schooleeniarrol
 
La perdurabilidad en las empresas familiares maria perez
La perdurabilidad en las empresas familiares maria perezLa perdurabilidad en las empresas familiares maria perez
La perdurabilidad en las empresas familiares maria perezmariaperezgamboa
 
JSConf.it 2011: A Wondrous Experience of Sound, Light, and Code
JSConf.it 2011: A Wondrous Experience of Sound, Light, and CodeJSConf.it 2011: A Wondrous Experience of Sound, Light, and Code
JSConf.it 2011: A Wondrous Experience of Sound, Light, and CodeJohannes Fahrenkrug
 
Derechos de autor entrega
Derechos de autor entregaDerechos de autor entrega
Derechos de autor entregaCamilo Diaz
 
Rails 3: Dashing to the Finish
Rails 3: Dashing to the FinishRails 3: Dashing to the Finish
Rails 3: Dashing to the FinishYehuda Katz
 
jQuery For Developers Stack Overflow Dev Days Toronto
jQuery For Developers Stack Overflow Dev Days TorontojQuery For Developers Stack Overflow Dev Days Toronto
jQuery For Developers Stack Overflow Dev Days TorontoRalph Whitbeck
 
Mekanisme Evolusi 1 A ( Ch 22)
Mekanisme  Evolusi 1 A ( Ch 22)Mekanisme  Evolusi 1 A ( Ch 22)
Mekanisme Evolusi 1 A ( Ch 22)Biodas Unsoed
 
The Sorting Machine Web Quest Rubric
The Sorting Machine Web Quest RubricThe Sorting Machine Web Quest Rubric
The Sorting Machine Web Quest Rubricu1032565
 
Presentation islam
Presentation islamPresentation islam
Presentation islamZinat Tamami
 
Promoting your business flyer
Promoting your business flyerPromoting your business flyer
Promoting your business flyerdgamache
 
Google chrome chromebooks
Google chrome   chromebooksGoogle chrome   chromebooks
Google chrome chromebooksBrandon Raymo
 
2.1.2 contoh pendekatan scientific pai pb sd
2.1.2 contoh pendekatan scientific pai pb sd2.1.2 contoh pendekatan scientific pai pb sd
2.1.2 contoh pendekatan scientific pai pb sdJulak Laraw
 
Ke arah kesatuan gerakan islam fathi yakan
Ke arah kesatuan gerakan islam   fathi yakanKe arah kesatuan gerakan islam   fathi yakan
Ke arah kesatuan gerakan islam fathi yakanKammi Daerah Serang
 

En vedette (20)

Agile Tour Toulouse 2015 - Ekito
Agile Tour Toulouse 2015 - EkitoAgile Tour Toulouse 2015 - Ekito
Agile Tour Toulouse 2015 - Ekito
 
Testing Your Sproutcore Presentation
Testing Your Sproutcore PresentationTesting Your Sproutcore Presentation
Testing Your Sproutcore Presentation
 
From GNETS to Home School
From GNETS to Home SchoolFrom GNETS to Home School
From GNETS to Home School
 
La perdurabilidad en las empresas familiares maria perez
La perdurabilidad en las empresas familiares maria perezLa perdurabilidad en las empresas familiares maria perez
La perdurabilidad en las empresas familiares maria perez
 
JSConf.it 2011: A Wondrous Experience of Sound, Light, and Code
JSConf.it 2011: A Wondrous Experience of Sound, Light, and CodeJSConf.it 2011: A Wondrous Experience of Sound, Light, and Code
JSConf.it 2011: A Wondrous Experience of Sound, Light, and Code
 
Sistemas visuais do cotidiano - Etec
Sistemas visuais do cotidiano - EtecSistemas visuais do cotidiano - Etec
Sistemas visuais do cotidiano - Etec
 
Derechos de autor entrega
Derechos de autor entregaDerechos de autor entrega
Derechos de autor entrega
 
Platyhelmithes
PlatyhelmithesPlatyhelmithes
Platyhelmithes
 
Wc no
Wc noWc no
Wc no
 
Rails 3: Dashing to the Finish
Rails 3: Dashing to the FinishRails 3: Dashing to the Finish
Rails 3: Dashing to the Finish
 
jQuery For Developers Stack Overflow Dev Days Toronto
jQuery For Developers Stack Overflow Dev Days TorontojQuery For Developers Stack Overflow Dev Days Toronto
jQuery For Developers Stack Overflow Dev Days Toronto
 
Mekanisme Evolusi 1 A ( Ch 22)
Mekanisme  Evolusi 1 A ( Ch 22)Mekanisme  Evolusi 1 A ( Ch 22)
Mekanisme Evolusi 1 A ( Ch 22)
 
The Sorting Machine Web Quest Rubric
The Sorting Machine Web Quest RubricThe Sorting Machine Web Quest Rubric
The Sorting Machine Web Quest Rubric
 
Presentation islam
Presentation islamPresentation islam
Presentation islam
 
Promoting your business flyer
Promoting your business flyerPromoting your business flyer
Promoting your business flyer
 
Google chrome chromebooks
Google chrome   chromebooksGoogle chrome   chromebooks
Google chrome chromebooks
 
Social networks
Social networksSocial networks
Social networks
 
Presentation kaka
Presentation kakaPresentation kaka
Presentation kaka
 
2.1.2 contoh pendekatan scientific pai pb sd
2.1.2 contoh pendekatan scientific pai pb sd2.1.2 contoh pendekatan scientific pai pb sd
2.1.2 contoh pendekatan scientific pai pb sd
 
Ke arah kesatuan gerakan islam fathi yakan
Ke arah kesatuan gerakan islam   fathi yakanKe arah kesatuan gerakan islam   fathi yakan
Ke arah kesatuan gerakan islam fathi yakan
 

Similaire à SQL Server knowledge-session (SQL Server vs Oracle, and performance)

Whatsnew in-my sql-primary
Whatsnew in-my sql-primaryWhatsnew in-my sql-primary
Whatsnew in-my sql-primaryKaizenlogcom
 
Remote DBA Experts 11g Features
Remote DBA Experts 11g FeaturesRemote DBA Experts 11g Features
Remote DBA Experts 11g FeaturesRemote DBA Experts
 
SQL Server It Just Runs Faster
SQL Server It Just Runs FasterSQL Server It Just Runs Faster
SQL Server It Just Runs FasterBob Ward
 
Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016Antonios Chatzipavlis
 
SQL Saturday - Twelve Trace Flags In Twelve Minutes
SQL Saturday - Twelve Trace Flags In Twelve MinutesSQL Saturday - Twelve Trace Flags In Twelve Minutes
SQL Saturday - Twelve Trace Flags In Twelve MinutesMatt Slocum
 
SQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginners
SQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginnersSQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginners
SQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginnersTobias Koprowski
 
Oracle olap-installation
Oracle olap-installationOracle olap-installation
Oracle olap-installationAmit Sharma
 
Enhancements that will make your sql database roar sp1 edition sql bits 2017
Enhancements that will make your sql database roar sp1 edition sql bits 2017Enhancements that will make your sql database roar sp1 edition sql bits 2017
Enhancements that will make your sql database roar sp1 edition sql bits 2017Bob Ward
 
Comparison between rdbms and nosql
Comparison between rdbms and nosqlComparison between rdbms and nosql
Comparison between rdbms and nosqlbharati k
 
KoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginners
KoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginnersKoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginners
KoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginnersTobias Koprowski
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesTarique Saleem
 
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL SupportMysql User Camp
 
abhi_apps_middleware_CV
abhi_apps_middleware_CVabhi_apps_middleware_CV
abhi_apps_middleware_CVAbhishek singh
 
PostgreSQL Replication High Availability Methods
PostgreSQL Replication High Availability MethodsPostgreSQL Replication High Availability Methods
PostgreSQL Replication High Availability MethodsMydbops
 
Sql training
Sql trainingSql training
Sql trainingpremrings
 
Andrewfraserdba.com training sql_training
Andrewfraserdba.com training sql_trainingAndrewfraserdba.com training sql_training
Andrewfraserdba.com training sql_trainingmark jerald Canal
 
SQL Server 2019 CTP 2.5
SQL Server 2019 CTP 2.5SQL Server 2019 CTP 2.5
SQL Server 2019 CTP 2.5Gianluca Hotz
 
Configuring sql server - SQL Saturday, Athens Oct 2014
Configuring sql server - SQL Saturday, Athens Oct 2014Configuring sql server - SQL Saturday, Athens Oct 2014
Configuring sql server - SQL Saturday, Athens Oct 2014Antonios Chatzipavlis
 

Similaire à SQL Server knowledge-session (SQL Server vs Oracle, and performance) (20)

Whatsnew in-my sql-primary
Whatsnew in-my sql-primaryWhatsnew in-my sql-primary
Whatsnew in-my sql-primary
 
Remote DBA Experts 11g Features
Remote DBA Experts 11g FeaturesRemote DBA Experts 11g Features
Remote DBA Experts 11g Features
 
SQL Server It Just Runs Faster
SQL Server It Just Runs FasterSQL Server It Just Runs Faster
SQL Server It Just Runs Faster
 
Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016
 
SQL Saturday - Twelve Trace Flags In Twelve Minutes
SQL Saturday - Twelve Trace Flags In Twelve MinutesSQL Saturday - Twelve Trace Flags In Twelve Minutes
SQL Saturday - Twelve Trace Flags In Twelve Minutes
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
 
Using AWR for SQL Analysis
Using AWR for SQL AnalysisUsing AWR for SQL Analysis
Using AWR for SQL Analysis
 
SQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginners
SQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginnersSQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginners
SQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginners
 
Oracle olap-installation
Oracle olap-installationOracle olap-installation
Oracle olap-installation
 
Enhancements that will make your sql database roar sp1 edition sql bits 2017
Enhancements that will make your sql database roar sp1 edition sql bits 2017Enhancements that will make your sql database roar sp1 edition sql bits 2017
Enhancements that will make your sql database roar sp1 edition sql bits 2017
 
Comparison between rdbms and nosql
Comparison between rdbms and nosqlComparison between rdbms and nosql
Comparison between rdbms and nosql
 
KoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginners
KoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginnersKoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginners
KoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginners
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New Features
 
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 
abhi_apps_middleware_CV
abhi_apps_middleware_CVabhi_apps_middleware_CV
abhi_apps_middleware_CV
 
PostgreSQL Replication High Availability Methods
PostgreSQL Replication High Availability MethodsPostgreSQL Replication High Availability Methods
PostgreSQL Replication High Availability Methods
 
Sql training
Sql trainingSql training
Sql training
 
Andrewfraserdba.com training sql_training
Andrewfraserdba.com training sql_trainingAndrewfraserdba.com training sql_training
Andrewfraserdba.com training sql_training
 
SQL Server 2019 CTP 2.5
SQL Server 2019 CTP 2.5SQL Server 2019 CTP 2.5
SQL Server 2019 CTP 2.5
 
Configuring sql server - SQL Saturday, Athens Oct 2014
Configuring sql server - SQL Saturday, Athens Oct 2014Configuring sql server - SQL Saturday, Athens Oct 2014
Configuring sql server - SQL Saturday, Athens Oct 2014
 

Dernier

Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Cathrine Wilhelmsen
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectBoston Institute of Analytics
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Thomas Poetter
 
Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Seán Kennedy
 
Vision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptxVision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptxellehsormae
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxaleedritatuxx
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...GQ Research
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryJeremy Anderson
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queensdataanalyticsqueen03
 
April 2024 - NLIT Cloudera Real-Time LLM Streaming 2024
April 2024 - NLIT Cloudera Real-Time LLM Streaming 2024April 2024 - NLIT Cloudera Real-Time LLM Streaming 2024
April 2024 - NLIT Cloudera Real-Time LLM Streaming 2024Timothy Spann
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
detection and classification of knee osteoarthritis.pptx
detection and classification of knee osteoarthritis.pptxdetection and classification of knee osteoarthritis.pptx
detection and classification of knee osteoarthritis.pptxAleenaJamil4
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理e4aez8ss
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 

Dernier (20)

Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis Project
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
 
Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...
 
Vision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptxVision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptx
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data Story
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queens
 
April 2024 - NLIT Cloudera Real-Time LLM Streaming 2024
April 2024 - NLIT Cloudera Real-Time LLM Streaming 2024April 2024 - NLIT Cloudera Real-Time LLM Streaming 2024
April 2024 - NLIT Cloudera Real-Time LLM Streaming 2024
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
detection and classification of knee osteoarthritis.pptx
detection and classification of knee osteoarthritis.pptxdetection and classification of knee osteoarthritis.pptx
detection and classification of knee osteoarthritis.pptx
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 

SQL Server knowledge-session (SQL Server vs Oracle, and performance)

  • 2. Agenda  Who am I  SQL Server vs Oracle  Backups  Monitoring  Performance  Support  Future  Questions? 11-7-2016 SQL Server 2
  • 3. Who am I Pierre van der Ven Working since 1998 in IT Started as programmer, switched to DBA Assigned with several big customers Last years mainly focus on SQL Server I am a nerd  11-7-2016 SQL Server 3
  • 4. Oracle vs SQL Server Language  SQL  T-SQL (Transact SQL)  PL/SQL 11-7-2016 SQL Server 4
  • 5. Oracle vs SQL Server Naming the ‘objects’ 11-7-2016 SQL Server 5 Database Instance / Database Schema Database and database owner (DBO) Tablespace Filegroup User User Role Group/Role Table Table Temporary tables Temporary tables Cluster N/A Column-level check constraint Column-level check constraint Column default Column default Unique key Unique key or identity property for a column Primary key Primary key Oracle SQL Server
  • 6. Oracle vs SQL Server Naming the ‘objects’ 11-7-2016 SQL Server 6 Foreign key Foreign key Indexes Indexes PL/SQL Procedure Transact-SQL (T-SQL) stored procedure PL/SQL Function T-SQL stored procedure Packages N/A AFTER triggers Triggers BEFORE triggers Complex rules Triggers for each row N/A Synonyms N/A Identity Identity property for a column Snapshot (table-based) Snapshot (database-based) View View Oracle SQL Server
  • 7. Oracle vs SQL Server Naming the ‘objects’ (DBA) 11-7-2016 SQL Server 7 TEMP-tablespace tempdb Undo-tablespace tempdb RAC Always On Flashback Snapshots ... Oracle SQL Server
  • 8. In Oracle, not in SQL Server  Packages  Triggers for each row  Synonyms  Snapshots  Flashback 11-7-2016 SQL Server 8
  • 9. In SQL Server, noy in Oracle  Pluggable databases (since 12c in Oracle)  Auto-increment values (since 12c in Oracle) 11-7-2016 SQL Server 9
  • 10. Transaction Control 11-7-2016 SQL Server 10 SQL Server Commits on default after every command. It is complex to change this behavior. Oracle Commits when you commit. More control.
  • 11. Transactionlog 11-7-2016 SQL Server 11 Oracle Archivelog / noarchivelog Oracle is using redo-logs. When a redo-log is full, it makes a copy to a archivelog and rotates to the next member of the redo-log. SQL Server Full Recovery / simple mode SQL Server writes transaction-data to the transactionlog. In full recovery it maintains this data until a backup has been made. In simple mode it maintains the transaction- log data during the transaction.
  • 14. Backups 11-7-2016 SQL Server 14 Oracle rman tool from supplier SQL Server Via SSMS (SQL Server Management Studio) tool from supplier (ie NetBackup SQL client)
  • 15. Monitoring Oracle: Oracle Enterprise Manager (OEM) / Grid Control SQL Server: - Alerts - System Centre Operations Manager (SCOM) In OEM you can modify settings of the database, in SCOM that is not possible. SCOM is only for monitoring. If you want to change settings, use SSMS. 11-7-2016 SQL Server 15
  • 16. What is hammering my instance 11-7-2016 SQL Server 16
  • 17. What is hammering my instance Always start with the activity monitor: 11-7-2016 SQL Server 17
  • 18. What is hammering my instance Check the task manager: 11-7-2016 SQL Server 18
  • 19. What is hammering my instance Ga na of er blocking locks zijn: 11-7-2016 SQL Server 19 Z
  • 20. What is hammering my instance Kijk of er blocking locks zijn: 11-7-2016 SQL Server 20 Z Search for queries with a lot of physical reads:
  • 21. What is hammering my instance 11-7-2016 SQL Server 21 Perfmon Microsoft’s definition: ‘A handy tool built into Windows®, an assist you in diagnosing the problem’
  • 22. What is hammering my instance 11-7-2016 SQL Server 22 Perfmon
  • 23. What is hammering my instance 11-7-2016 SQL Server 23 Perfmon
  • 24. What is hammering my instance 11-7-2016 SQL Server 24 Perfmon First make a Data Collector Set, save it and change it afterwards to get the screen below:
  • 25. What is hammering my instance 11-7-2016 SQL Server 25 Page Life Expectency (PLE) PLE is the time in seconds how long the page stays in the bufferpool. This is related to the memory-pressure. If the page has been flushed from the bufferpool, it needs to be loaded from disk.
  • 26. What is hammering my instance 11-7-2016 SQL Server 26 Page Life Expectency (PLE)
  • 27. What is hammering my instance 11-7-2016 SQL Server 27 Page Life Expectency (PLE) In the past: If below 300 seconds, add more memory Nowadays:
  • 28. What is hammering my instance 11-7-2016 SQL Server 28 SQL Server Profiler You only get this option if you install the add- ons for SSMS.
  • 29. What is hammering my instance 11-7-2016 SQL Server 29 SQL Server Profiler
  • 30. What is hammering my instance 11-7-2016 SQL Server 30 SQL Server Profiler
  • 31. What is hammering my instance 11-7-2016 SQL Server 31 SQL Server Profiler
  • 32. What is hammering my instance 11-7-2016 SQL Server 32 Indexes • Missing indexes • Unused indexes • Fragmented indexes
  • 33. What is hammering my instance 11-7-2016 SQL Server 33 Maintenance Automatic (initial setup needed) • Reorganize indexes • Rebuild indexes • Refresh statistics • Cleanup logging Manual • Create missing indexes • Drop unused indexes Ola Hallengren

Notes de l'éditeur

  1. This presentation covers two major topics: SQL Server vs Oracle, and ‘what is hammering my instance’.
  2. SQL is a ANSI/ISO-standard for a rdbms. In both environments the standard SQL-commands work T-SQL (Transact SQL) quite easy to use, but less powerful PL/SQL is complex in use, but also powerful
  3. Triggers for each row is possible in SQL Server, but it is quite complex to program
  4. https://www.brentozar.com/archive/2014/07/oracle-terminology-sql-server-dba/
  5. http://www.seguetech.com/blog/2014/03/13/Microsoft-SQL-Server-versus-oracle
  6. https://docs.oracle.com/cd/B19306_01/server.102/b14231/archredo.htm
  7. LSN = Log Sequence Number https://technet.microsoft.com/en-us/library/ms179355(v=sql.105).aspx
  8. In SSMS you create the backup-commands, you can also use SSMS to execute those backup-commands.
  9. Check if there are remarkable sessions, ie high waittime
  10. To be sure that not something else then SQL Server is hammering the machine, check the taskmanager
  11. If you find a the root-session that caused it, try to kill it (off course first ask around if this is acceptable)
  12. Just a first view of perfmon, details will be shown later
  13. There are a lot of counters you can select. First select the category, and then select the counters you want to see. There are also specific SQL Server categories.
  14. Use perfmon to have a look at the PLE. While looking at the black line, it is clear that something is not ok there. Investigate it further.
  15. In the past: a simple definition was sufficient, nowadays it is quite complex to have one definition that is good enough for everybody.
  16. When live, this screen is scrolling, and scrolling, and scrolling ...
  17. Zoom in to a specific query
  18. It is quite easy to find the missing indexes, unused indexes or fragmented indexes.