sql azure database for dba

Post on 21-Apr-2017

75 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

#JSS2015

Les journéesSQL Server 2015

Un événement organisé par GUSS

@GUSS_FRANCE

#JSS2015

Les journéesSQL Server 2015

Un événement organisé par GUSS

AZURE: SQL DatabasesIsabelle Van Campenhoudt

#JSS2015

Merci à nos sponsors

#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/

ivc@ShareQL.com@thesqlgrrrl

Isabelle Van Campenhoudt

4

globalfrench.sqlpass.org

#JSS2015

Introduction

Démarrage

Elasticity

Monitoring et tuning

Securité

Backups & Migration

HA & DRConclusion

Agenda

#JSS2015

Bienvenue a bord d’air Azure

#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

#JSS2015

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

#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

#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.

#JSS2015

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

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

#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

#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

#JSS2015

demoCRÉONS LA PREMIÈRE “SQL DATABASE”

#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.

#JSS2015

In Memory ?

Objects allowed only at Premium

Memory-optimized

tables

Memory-optimized

table types

Natively compiled modules

Crêpes au sucre …..

#JSS2015

demoDTUSPERFS

#JSS2015

#JSS2015

Service tiers résumé

#JSS2015

Tarification

#JSS2015

Elasticité ?

#JSS2015

Elastic POOL SQL databases

#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)

#JSS2015

eDTUs ??

#JSS2015

Elastic Pool Tiers

#JSS2015

Tarification

#JSS2015

demo CREATE AN ELASTIC DATABASE POOL

#JSS2015

Monitoring and Tuning

#JSS2015

Gestion de la databaseSQL Server Data Tools dans Visual

Studio

Management Studio

PwShell

#JSS2015

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

#JSS2015

Alerts and events

Define rule

Specify threshol

d

Threshold

violated

Alert rule

active

Registers an alert

Send E-mail

(optional)

#JSS2015

SQL Database Alert RulesBlocked by

FirewallFailed

ConnectionsSuccessful

Connections

CPU Percentage Deadlocks DTU

Percentage

Log IO Percentage

Data IO Percentage

Total Database

Size

#JSS2015

demoAUDIT,ALERTS & EVENTS

#JSS2015

Index tuning

#JSS2015

Query Performance Insight

#JSS2015

demoMONITORER LES PERFORMANCES ET LA CONSOMMATION

#JSS2015

Securité

#JSS2015

#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'

#JSS2015

Authentication model

#JSS2015

#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.)

#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

#JSS2015

demoAUDITDATA MASKING

#JSS2015

Backup, Migration, Exports

#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

#JSS2015

demoMIGRER UNE DATABASECOPIER UNE DATABASE

#JSS2015

HA & DR

#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

#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.

#JSS2015

demoRECUPERATION APRES INCIDENTRECUPERATION APRES ERREUR

#JSS2015

#JSS2015

#JSS2015

Références

#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/

#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

#JSS2015#JSS2015

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

http://GUSS.Pro/jss

#JSS2015

Merci à nos volontaires…

#JSS2015#JSS2015

top related