Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

22
http://summit.solidq.com Agenda – SQL Server 2012 Alta Disponibilidad y Always On Seguridad Troubleshooting con XE Almacenamiento Columnar

description

This presentation is divided in the following sections: HA and Always On, Security features, Troubleshooting with Extended Events, and Columnar storage in SQL Server 2012. This talk does not cover all the SQL Server 2012 features for ITPros, it was designed for 75 minutes presentation.

Transcript of Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

Page 1: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Agenda – SQL Server 2012

Alta Disponibilidad y Always On

Seguridad

Troubleshooting con XE

Almacenamiento Columnar

Page 2: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Alta Disponibilidad en SQL Server 2012

+Procesos Tecnología

Page 3: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Alta Disponibilidad en SQL Server 2008 R2

Muchas Referencias de Clientes

Topologías Completas

Maximizar Recursos Existentes

Page 4: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Database Mirroring

Logical RecoveryStandby

Log Shipping

Log Shipping with Restore Delay

ProductionDatabase

Replicación

Clustering

WarmStandby

HotStandby

DatabaseScale OutFor Queries

Backup

¿Qué puedes utilizar hace tiempo?

Page 5: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

… sin olvidarse de Resource Governor

Min Memory 10%Max Memory 20%

Max CPU 20%

Admin Workload

Backup

Admin Tasks

OLTP Workload

OLTP Activity

Report Workload

Ad-hocReports

ExecutiveReports

High

Max CPU 90%

Application PoolAdmin Pool

SQL Server

Page 6: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

SQL Server 2012 AlwaysOnProtección a nivel de grupos de bases de datos

• Punto único para administrar todas las tecnologías

Mejora la Productividad

• Múltiples secundarios activos

• Multi-database failover• Recuperación mas

rápidas – DBM• Scale Out para distribuir

la carga entre los secundarios , Reportings y backups

Mejor Disponibilidad

• Listener que direcciona

Sin dependencia de aplicaciones

Page 7: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Microsoft Corporation: Infraestructura SAP

Page 8: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

AA

AA

A Application A Primary Replica

Application A Secondary Replica

Synch. Data Movement

Asynch. Data Movement

A

Terminología AlwaysON

• Grupo de bases de datos que gestionamos conjuntamente

• Definimos la replicación conjuntamente

Availability Group (AG)

• Copia física del conjunto de bases de datos definidas en el AG

Availability Replica (AR)

• Permite escritura y lectura

Nodo Primario

• Permite conexiones solo lectura• Es la copia de backup de los datos

Nodo Secundario

Page 9: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

Rendimiento Carga MixtaDuración de las consultas (ms)

Page 10: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Source: ITIC 2011: SQL ServerDelivers Industry-Leading Security

OracleDB2

MySQLSQL Server

0

50

100

150

200

250

300

350 321

121

98

49

NIST CVEs

NIST Reported Common Vulnerabilities and ExposuresJan 2002 – Jun 2010

“Most secure of any of the major database platforms.”

Vulnerabilidades desde Enero 2002

Page 11: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Más Seguros en SQL Server 2012

Bases de Datos “contenidas”

Auditoría y Certificación

Roles de Servidor ajustables

Page 12: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

DEMO

Page 13: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Troubleshooting con XE: Juntar las Dos Verdades

Unificado, Granular, Alto Rendimiento

Recursos del Sistema

Recursos de SQL Server

Page 14: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Ciclo de Vida de Eventos Extendidos

“interest” code to cach

Keep working

Event Enabled?

Apply Predicate?

Collect Data and issue the actions

Send Data to Targets

No

No

Yes

Yes

Page 15: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

DEMO

Page 16: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Análisis de Trazas de SQL Server – Servicios GratuitosSQL Nexus

http://sqlnexus.codeplex.com/RML Tools by Microsoft http://

blogs.msdn.com/b/psssql/archive/2007/12/18/rml-utilities-for-microsoft-sql-server-released.aspx

Clear Trace by Bill Graziano http://www.scalesql.com/cleartrace/download.aspx

TSQL CSI from SolidQ http://

www.solidq.com/gl-en/services/sqlserver-relational/Pages/SolidQ-TSQL-CSI-Service.aspx

Page 17: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

SolidQ TSQL CSI Traces Aggregation

Page 18: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

SolidQ TSQL CSI Traces Aggregation

Page 19: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Estructura del Almacenamiento Columnar

VertiPaq

C1 C2

C3 C5 C6C4

Páginas

AlmacenamientoTradicional (row store)

Almacenamiento

Columnar

Page 20: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Almacenamiento Columnar – Menos E/S

Se recupera sólo las columnas necesarias

Datos comprimidos Menos E/S Mejor ratio de acierto en cachéC1

C2

C4 C5 C6

C3

SELECT C2, sum (C3) VentasFROM tablaGROUP BY c2

Page 21: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

DEMO

Page 22: Some Features on SQL Server 2012 from the Accidental DBA and the ITPro perspective

http://summit.solidq.com

Pinceladas – SQL Server 2012

Alta Disponibilidad y Always On

Seguridad

Troubleshooting con XE

Almacenamiento Columnar