SlideShare a Scribd company logo
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?

More Related Content

What's hot

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 upgrade
Abel Flórez
 
TSQL in SQL Server 2012
TSQL in SQL Server 2012TSQL in SQL Server 2012
TSQL in SQL Server 2012
Eduardo 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 DBAs
Alex 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.7
Zhaoyang 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 Schedulers
Abdul 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 Darold
Equnix 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 sad
mCloud
 
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 Nutshell
Emily 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 Explained
Confio Software
 
Crating a Robust Performance Strategy
Crating a Robust Performance StrategyCrating a Robust Performance Strategy
Crating a Robust Performance Strategy
Guatemala User Group
 
High Performance Plsql
High Performance PlsqlHigh Performance Plsql
High Performance Plsql
Guy 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 data
Neev 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.10
Vasudeva Rao
 
Introduction to Mysql
Introduction to MysqlIntroduction to Mysql
Introduction to Mysql
Tushar Chauhan
 

What's hot (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
 

Viewers also liked

Agile Tour Toulouse 2015 - Ekito
Agile Tour Toulouse 2015 - EkitoAgile Tour Toulouse 2015 - Ekito
Agile Tour Toulouse 2015 - Ekito
Agile Toulouse
 
Testing Your Sproutcore Presentation
Testing Your Sproutcore PresentationTesting Your Sproutcore Presentation
Testing Your Sproutcore Presentation
gmoeck
 
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 perez
mariaperezgamboa
 
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
Johannes Fahrenkrug
 
Sistemas visuais do cotidiano - Etec
Sistemas visuais do cotidiano - EtecSistemas visuais do cotidiano - Etec
Sistemas visuais do cotidiano - Etec
Benedict-BrandCrafters
 
Derechos de autor entrega
Derechos de autor entregaDerechos de autor entrega
Derechos de autor entregaCamilo Diaz
 
Platyhelmithes
PlatyhelmithesPlatyhelmithes
Platyhelmithes
Dhea Pangestu
 
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 Toronto
Ralph 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 Rubric
u1032565
 
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 yakan
Kammi Daerah Serang
 

Viewers also liked (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
 

Similar to 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-primary
Kaizenlogcom
 
Remote DBA Experts 11g Features
Remote DBA Experts 11g FeaturesRemote DBA Experts 11g Features
Remote DBA Experts 11g Features
Remote DBA Experts
 
SQL Server It Just Runs Faster
SQL Server It Just Runs FasterSQL Server It Just Runs Faster
SQL Server It Just Runs Faster
Bob 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 2016
Antonios 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 Minutes
Matt Slocum
 
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
Guatemala User Group
 
SQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginners
SQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginnersSQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginners
SQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginners
Tobias 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 2017
Bob Ward
 
Comparison between rdbms and nosql
Comparison between rdbms and nosqlComparison between rdbms and nosql
Comparison between rdbms and nosql
bharati k
 
KoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginners
KoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginnersKoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginners
KoprowskiT_SQLRelay2014#2_Southampton_MaintenancePlansForBeginners
Tobias 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 Support
Mysql 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 Methods
Mydbops
 
Sql training
Sql trainingSql training
Sql training
premrings
 
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.5
Gianluca 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 2014
Antonios Chatzipavlis
 

Similar to 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
 

Recently uploaded

一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
ewymefz
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 

Recently uploaded (20)

一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 

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

Editor's Notes

  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.