59
#JSS2015 es journées SQL Server 2015 n événement organisé par GUSS @GUSS_FRANCE

SQL azure database for DBA

Embed Size (px)

Citation preview

Page 1: SQL azure database for DBA

#JSS2015

Les journéesSQL Server 2015

Un événement organisé par GUSS

@GUSS_FRANCE

Page 2: SQL azure database for DBA

#JSS2015

Les journéesSQL Server 2015

Un événement organisé par GUSS

AZURE: SQL DatabasesIsabelle Van Campenhoudt

Page 3: SQL azure database for DBA

#JSS2015

Merci à nos sponsors

Page 4: SQL azure database for DBA

#JSS2015

Isabelle Van Campenhoudt

Isabelle Van Campenhoudt

SQL Server MVP, BrusselsConsultant, speaker, trainer, PASS V-Chapter LeaderManaging partner www.ShareQL.comSQL Server since 1999Blog: http://thesqlgrrrl.wordpress.com/

[email protected]@thesqlgrrrl

Isabelle Van Campenhoudt

4

globalfrench.sqlpass.org

Page 5: SQL azure database for DBA

#JSS2015

Introduction

Démarrage

Elasticity

Monitoring et tuning

Securité

Backups & Migration

HA & DRConclusion

Agenda

Page 6: SQL azure database for DBA

#JSS2015

Bienvenue a bord d’air Azure

Page 7: SQL azure database for DBA

#JSS2015

SQL Database • Managed Relational SQL

Database-as-a-service

DocumentDB • Managed NoSQL document

database-as-a-service

Redis Cache • High throughput, low

latency data access to build fast and scalable applications

Storage:• Blobs, Tables, Queues, Files

and Disks • Durable, highly available

and massively scalable cloud storage

Azur Data LakeStoreAnalytics

SQL Data Warehouse • Elastic data warehouse-as-

a-service with enterprise-class features

Data & Storage on Azure

Page 8: SQL azure database for DBA

#JSS2015

SQL Database (PaaS) vs SQL Server on VMs (IaaS)

Page 9: SQL azure database for DBA

#JSS2015

SQL AZURE VM AZURE

Idéal pour • Nouvelles applications et development rapide dans le cloudHaute disponibilitécentaines ou des milliers de bases de données,. • Applications utilisant des motifs scale-out. • Bases de données ou jusqu'à 1 To de taille. • Construction Software-as-a-Service applications.

Migration d’application anciennes, contrainte de tempsScenario HybrideDroits admin completsPoc et test rapides•La reprise après sinistre pour les applications sur site SQL Server en utilisant sauvegarde sur Azure Storage ou répliques AlwaysOn dans Azure VM.• Grandes bases de données qui sont plus grands que 1 To de taille.

Ressources concentrée sur la couche d'application.

Ressource et support pour l’infrastructure

Coût total de possession

Élimine les coûts de matériel. Réduit les coûts d’aministration

Élimine les coûts de matériel.

Continuité des activités

Point in Time Restore, Geo-restauration, et Geo-Replication

Mise en place de groupe de disponibilité, reste la responsabilité de l’admin

Page 10: SQL azure database for DBA

#JSS2015

Service tiersDe

baseIdéal pour une petite base

de données prenant en général en charge une

seule opération active à la fois.

Exemple : bases de données utilisées pour le développement ou le test ou pour des applications à petite échelle rarement

utilisées.

Standard

L'option idéale pour la plupart des applications cloud, prenant en charge

plusieurs requêtes simultanées.

Exemple : applications Web ou de groupe de

travail.

Premium

Conçu pour un volume transactionnel élevé, prenant en charge un

grand nombre d'utilisateurs simultanés

et nécessitant le plus haut niveau de continuité

d'activité possible.

Exemple : bases de données prenant en

charge des applications critiques.

Page 11: SQL azure database for DBA

#JSS2015

Basic• Size Limit: 2GB.• Point-in-time Restore: 7 days.• DR: Geo-Restore to another Azure

region.• Auditing allowed.• Performance: 5 DTU.

Page 12: SQL azure database for DBA

#JSS2015

Standard• Size Limit: 250GB.• Point-in-time Restore: 14

days.• DR: Geo-Restore, Standard

Geo-replication.• Auditing allowed.• Performance: 10-20-50-100

DTU.

S0 10 DTU

S1 20 DTU

S2 50 DTU

S3 100 DTU

Page 13: SQL azure database for DBA

#JSS2015

Premium• Size Limit: 500GB.• Point-in-time Restore: 35 days.• DR: Geo-Restore, Standard or

Active Geo-replication.• Partitioning.• Columnstores.• Auditing allowed.• Performance: 100-200-1000

DTU.

P1 100 DTU

P2 200 DTU

P3 1000 DTU

Page 14: SQL azure database for DBA

#JSS2015

demoCRÉONS LA PREMIÈRE “SQL DATABASE”

Page 15: SQL azure database for DBA

#JSS2015

DTUs ??• Database

throughput unit.• A comparison

unit of integrated database performance.

• Blend of CPU + Data IO + Log IO + Memory.

• Based on an internal OLTP benchmark from the Azure team.

Page 16: SQL azure database for DBA

#JSS2015

In Memory ?

Objects allowed only at Premium

Memory-optimized

tables

Memory-optimized

table types

Natively compiled modules

Crêpes au sucre …..

Page 17: SQL azure database for DBA

#JSS2015

demoDTUSPERFS

Page 18: SQL azure database for DBA

#JSS2015

Page 19: SQL azure database for DBA

#JSS2015

Service tiers résumé

Page 20: SQL azure database for DBA

#JSS2015

Tarification

Page 21: SQL azure database for DBA

#JSS2015

Elasticité ?

Page 22: SQL azure database for DBA

#JSS2015

Elastic POOL SQL databases

Page 23: SQL azure database for DBA

#JSS2015

Scale out with elastic database toolsElastic Database client library Elastic Database split-merge

Elastic Database pools (preview)

Elastic Database jobs (preview)

Elastic Database query (preview)

Page 24: SQL azure database for DBA

#JSS2015

eDTUs ??

Page 25: SQL azure database for DBA

#JSS2015

Elastic Pool Tiers

Page 26: SQL azure database for DBA

#JSS2015

Tarification

Page 27: SQL azure database for DBA

#JSS2015

demo CREATE AN ELASTIC DATABASE POOL

Page 28: SQL azure database for DBA

#JSS2015

Monitoring and Tuning

Page 29: SQL azure database for DBA

#JSS2015

Gestion de la databaseSQL Server Data Tools dans Visual

Studio

Management Studio

PwShell

Page 30: SQL azure database for DBA

#JSS2015

Monitoring• Extended event en V12• Dmv’s• Pwshell• Portail Azure : alerts et events

Page 31: SQL azure database for DBA

#JSS2015

Alerts and events

Define rule

Specify threshol

d

Threshold

violated

Alert rule

active

Registers an alert

Send E-mail

(optional)

Page 32: SQL azure database for DBA

#JSS2015

SQL Database Alert RulesBlocked by

FirewallFailed

ConnectionsSuccessful

Connections

CPU Percentage Deadlocks DTU

Percentage

Log IO Percentage

Data IO Percentage

Total Database

Size

Page 33: SQL azure database for DBA

#JSS2015

demoAUDIT,ALERTS & EVENTS

Page 34: SQL azure database for DBA

#JSS2015

Index tuning

Page 35: SQL azure database for DBA

#JSS2015

Query Performance Insight

Page 36: SQL azure database for DBA

#JSS2015

demoMONITORER LES PERFORMANCES ET LA CONSOMMATION

Page 37: SQL azure database for DBA

#JSS2015

Securité

Page 38: SQL azure database for DBA

#JSS2015

Page 39: SQL azure database for DBA

#JSS2015

Configure the firewallEXECUTE sp_set_firewall_rule @name = N'ContosoFirewallRule', @start_ip_address = '192.168.1.1', @end_ip_address = '192.168.1.10'

Page 40: SQL azure database for DBA

#JSS2015

Authentication model

Page 41: SQL azure database for DBA

#JSS2015

Page 42: SQL azure database for DBA

#JSS2015

Manage loginsPoint of Difference On-premises SQL Server Azure SQL Database

Where you manage server-level security The Security folder in SQL Server Management Studio's Object Explorer

The master database and through the Azure portal

Windows Authentication Active Directory identities Azure Active Directory identities

Server-level security role for creating logins securityadmin fixed server role loginmanager database role in the master database

Commands for managing logins CREATE LOGIN, ALTER LOGIN, DROP LOGINCREATE LOGIN, ALTER LOGIN, DROP LOGIN (There are some parameter limitations and you must be connected to the master database.)

View that shows all logins sys.server_principals sys.sql_logins (You must be connected to the master database.)

Server-level role for creating databases dbcreator fixed database role dbmanager database role in the master database

Command for creating a database CREATE DATABASECREATE DATABASE (There are some parameter limitations and you must be connected to the master database.)

View that lists all databases sys.databases sys.databases (You must be connected to the master database.)

Page 43: SQL azure database for DBA

#JSS2015

Audit de la database

accès aux données ;

modifications de schéma

(DDL) ;

modifications de données

(DML) ;

comptes, rôles et autorisations

(DCL) ;

Procédure stockée,

connexion et Gestion des

transactions.

PowerBi & rapport excel

Page 44: SQL azure database for DBA

#JSS2015

demoAUDITDATA MASKING

Page 45: SQL azure database for DBA

#JSS2015

Backup, Migration, Exports

Page 46: SQL azure database for DBA

#JSS2015

Move data in and out Migrate an

existing SQL Server

database

Copy SQL database

Export a BACPAC of a

SQL database

Import a BACPAC to a

SQL database

Page 47: SQL azure database for DBA

#JSS2015

demoMIGRER UNE DATABASECOPIER UNE DATABASE

Page 48: SQL azure database for DBA

#JSS2015

HA & DR

Page 49: SQL azure database for DBA

#JSS2015

Understand availability and disaster recoveryCapability Basic tier Standard tier Premium tierPoint In Time Restore

Any restore point within 7 days

Any restore point within 14 days

Any restore point within 35 days

Geo-Restore ERT < 12h, RPO < 1h

ERT < 12h, RPO < 1h

ERT < 12h, RPO < 1h

Standard Geo-Replication not included ERT < 30s, RPO

< 5sERT < 30s, RPO < 5s

Active Geo-Replication not included not included ERT < 30s, RPO

< 5s

Page 50: SQL azure database for DBA

#JSS2015

Standard vs Active Geo-ReplicationStandard• RTO < 2h• RPO < 30m

Active• RTO < 1h• RPO < 5m

Active provides failover control.

Active provides up to 4 read-

only replicas.

Page 51: SQL azure database for DBA

#JSS2015

demoRECUPERATION APRES INCIDENTRECUPERATION APRES ERREUR

Page 52: SQL azure database for DBA

#JSS2015

Page 53: SQL azure database for DBA

#JSS2015

Page 54: SQL azure database for DBA

#JSS2015

Références

Page 55: SQL azure database for DBA

#JSS2015

Transact-SQL• Features that are partially

supported in SQL Database V12• Features that are not supported

in SQL Databasehttps://azure.microsoft.com/en-us/documentation/articles/sql-

database-transact-sql-information/

Page 56: SQL azure database for DBA

#JSS2015

PowerShell referenceAzure PowerShell Modules• Azure Active Directory Cmdlets • Azure PowerShell 1.0

Azure PowerShell 0.9.8 • Azure Service Fabric Cmdlets • Azure Service Fabric Testability Cmdlets • Azure Elastic Database Jobs Cmdlets • Azure Rights Management Cmdlets • RMS Protection Cmdlets

Azure PowerShell modules are not included in the Windows operating

system. Before you can use the cmdlets in the modules, download the modules you want to use and

set up your environment so you can connect to Azure by using the Azure PowerShell console. For instructions,

see the page for each module.

Azure modules are updated frequently. If you notice that the

online cmdlet help includes cmdlets or parameters that are not in your module, download and install the

latest version of the module. To find the version of your module, type:

(Get-Module <ModuleName>).Version

Page 57: SQL azure database for DBA

#JSS2015#JSS2015

Les évaluations des sessions,c’est important !!

http://GUSS.Pro/jss

Page 58: SQL azure database for DBA

#JSS2015

Merci à nos volontaires…

Page 59: SQL azure database for DBA

#JSS2015#JSS2015