MSSQL-AzureSQL DBA PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Next Generation

Microsoft Azure SQL Server Database Administration


Course Overview:
This is 100% hands-on course: students will learn Azure SQL Server database administration.
Helps to prepare Microsoft exams
Exam DP-300: Administering Relational Databases on Microsoft Azure
This course will cover best practices for Migrating SQL Server on-premises to Azure (IaaS/PaaS)

MS - SQL Server DBA


Azure SQL + Managed Instance
LEVEL - 1
M QL-DBA

Topic 1: Starting with SQL Server 2014/2016/2017/2019

• History of SQL Server - versions


• What's New in SQL Server 2005& 2008/ R2, 2012, 2014, 2016, 2017, 2019 forAdministrators?
• SQL Server 2017& 2019 Service Packs
• Editions of SQL Server
• Tools of SQL Server
• Differences between Enterprise and Standard editions
• Requirements
• Hardware
• Software
• Instances
• Advantages of Instances
• Types
• Default Instance
• Named Instances
• SQL Server Services
• Installing SQL Server 2014/2016/2017/2019
• Pre installation steps
• Installations 2014/2016/2017/2019. New changes in 2016/2017/2019 installation.
• Viewing installation process with LOG files.
• Adding or removing components.
• Installing service packs.
• Exercises

Topic 2: Installing and configuring

Configuration
• Configuring various Services.
• Startup Parameters.
• Configuring data file and log file paths.
• Configuring default backup folder and
• Configuring services
• Remote connections
• Exercise
• Configuring network protocols, ports.
• Memory configuration
Case Study
• Troubleshooting SQL Server installation common issues
• Roll backing Service Packs.
• Best Practices
• Exercise
Topic 3: Working with Databases

Working with databases.


• System Defined databases
• Moving system databases
• Handling TempDB database.

Database Architecture.
• Data Files
• Log Files
• Filegroups
• Extents
• Pages� types
• Page architecture
• Tracking free space
• Creating Databases.
• Adding files, filegroups.
Case Study
• Recovering suspect database
• Moving system databases
• Troubleshooting TempDB issues
• Log file full � how to solve the problem.
Topic 4: Implementing Security

• Security in SQL Server 2008 R2/ 2012/2014/2016/2017 & 2019


• Security Enhancements
Types of Authentications.
• Windows Authentication
• Creating logins from windows users and groups
• Orphan logins.
• SQL Server Authentication
• Creating SQL logins and testing logins
• Setting authentication Mode
• Security Auditing.
• Understanding server roles.
• Working with users.
• Resolving orphan users.
• Understanding database roles, custom and application roles.
• Understanding permissions.
• Encryption and decryption.
• Working with certificates and schemas.
• Case Study
o Connecting to instance without login credentials Resolving orphan users
Topic 5: Backup and Restoration

• Understanding Transaction Log file.


• Understanding checkpoints& Lazy writer.
• Truncating log file.
Recovery Models
• Full
• Bulk Logged
• Simple
• Setting recovery model.
Database Backups
• Why we need to backups
Backup Types.
• Full
• Differential
• Transaction Log
• File or Filegroup
• Copy-only, Mirrored and tail log backups.
• Backup Devices.
• Performing Restoration
• Backup system databases.
• Viewing complete details of backup process.
• Case Study
• Recovering a crashed database
• Point-in-time recovery

Topic 6: Automating Administrative Tasks

Working with Database Mail.


• Mail architecture.
• Configuring Profiles and Accounts
• Sending Mail
• Configuring linked servers.
Implementing Automation
• Configuring SQL Server Agent.
• Creating Operators, Alerts, Jobs
• Managing jobs and resolving errors.
• Monitoring jobs.
• Auto alert when jobs are enabled, disabled or failed.
• Database Snapshots.
• Reverting from Snapshot.
• Maintenance Plans
LEVEL - 2
HA & DR

Working with Log Shipping.


• Features
• Jobs
• Requirements to implement Log Shipping.
• Configuring Log Shipping.
• Monitoring Log Shipping.
• Manually performing Fail Over.
• Transferring logins.
• Log shipping tables and stored procedures.
Handling out of sync issues

Working with Database Mirroring.


• Advantages
• Architecture
• Operating Modes
• Servers involved in Mirroring
• Requirements for Mirroring
• Configuring
Using System views and SPs.
Mirroring Fail Over
Mirroring system tables and stored procedures.
Case Study
• Handling suspect issues
• How to patch mirrored instances
• How to move mirrored database files
• Threads created for mirroring
Replication

• Replication and advantages


• New features 2008 R2/ 2012
• Replication Entities
• Replication Architecture.
• Replication Agents.
• Types of Replications
Configuring Replication
• Snapshot Replication
• Transactional Replication
• Merge Replication
• Peer to peer replication.
• Configuring Oracle publication
• Replication Topologies
• Managing replication.
• Monitoring and Tuning Replication.

Case Study
• Troubleshooting Primary Key violation error in Transactional Replication
• Troubleshooting T.Log file growth issues.
• Troubleshooting out of sync/ latency issues

Clustering (WFC) on Azure VM

• Introduction to cluster environment & features.


• Overview of Windows Clustering.
• How SQL Server supports clustering.
• Requirements
• Installing and configuring SQL Server clustering
• Applying service packs and hot fixes.
• Moving groups.
• Adding node on a SQL Server Failover cluster.
• Troubleshooting cluster issues.
• Patching clustered instances
• Configure Quorum
• Configure MSDTC Service
Always-ON SQL Server on AZURE VM

• Introduction to AlwaysON environment & features.


• Overview of AlwaysON.
• How SQL Server supports AlwaysON.
• Requirements
• Installing and configuring SQL Server AlwaysON
• Applying service packs and hot fixes.
• Moving Replicas.
• Adding Replicas on Availability Groups.
• Troubleshooting AlwaysON issues.
• Patching AlwaysON instances
• Enhancement AlwaysON on 2012 and 2014.
• Configure Listener
Case Study

• Quorum issue
• Nodes not in SYNC
• Availability groups are in resolving status
• Replicas out of SYNC
Advanced Administration Concepts

• Maintenance plans
Monitoring and Tuning SQL Server
• Performance counters setup
• Measuring performance of server.
• Tuning queries.
• Tuning databases.
• Tuning physical architecture of databases.
• Using DTA.
Monitoring Tools
• System Monitor
• SQL Server Profiler
• Database Engine Tuning Advisor.
• Dynamic Management Views.
• SQL Server and Windows Error Logs.
Troubleshooting
• Physical server performance.
• Connectivity to SQL Server
• Database Performance.
Managing Concurrency
• Locks
• Deadlocks
• Transaction Isolation Levels.
• Understanding Blocking.
• Terminating Processes.
Managing Databases • Using the DAC.
• Case Study
• Troubleshooting slowly running queries
• Using DTA

• Manage Index Fragmentation


• Manage Statistics
• Shrink Files
• Performing database integrity checks by using DBCC CHECKDB
• Index Rebuilding and Reorganizing.
• SQL Server Up gradation.
• Using DBCC commands.
• Resource Governor

LEVEL - 3
AZURE QL
Topic 1: Cloud Computing Introduction

• How IT Infrastructure worked before Cloud Computing


• History and Evolution of Data Centers
• Impact of Virtualization
• Types of Cloud Computing
• Private
• Public
• Hybrid
• Types of Public Clouds: IaaS, PaaS & SaaS Models
• Services offered by Microsoft Azure (as Introduction)
• Azure Free trail account creation & subscription
• Resource Group and Resource intro
Topic 2: Microsoft Azure SQL Database

• Introduction
• The Azure SQLDatabase Architecture
• Provisioning an Azure SQL Database
• Connecting to and Querying the SQL Database from Server Management Studio
• Creating Resources
• Differences between Azure SQL Database and SQL Server
• Selecting a Service Tier
• Selecting a Migration Tool
• DTU and vCore Pricing Models
• Scaling up the Azure SQL Database Service Tier
• Choosing Between a vCore Pricing Model and DTU based
Topic 3: Backing Up an Azure SQL Database

• Introduction
• Automatic Backups
• Backup Storage
• Backup Retention Period
• Configuring Long-Term Backup Retention for Azure SQL Database
Topic 4: Restoring an Azure SQL Database

• Introduction
• Restore Types
• Point-In-Time Restore
• Long-Term Database Restore
• Restoring Deleted Databases
• Importing a Database

Topic 5: Securing an Azure SQL Database

• Introduction
• Firewall Rules
• Managing Server-Level Firewall Rules Using the Azure Portal Authentication
• SQL Authentication Azure Active Directory Authentication
• Server-Level and DB level Roles
• Azure Key Vault
• TDE
• Dynamic Data Masking
• Azure Sentinel

Topic 6: Azure Elastic Pools, Elastic Queries & Elastic Jobs

• Intro Elastic Pool


• When Should You Consider Elastic Pools?
• EDTU’s
• Elastic Jobs & Deployment

Topic 7: High Availability and Disaster Recovery


Geo-Replication

Failover Groups

Command line failover and configuration
Topic 8: Migration from ON-PREM to Cloud

Migration using Lift/Shift Methods


• Import & Export
• DACPAC & BACPAC
• Fixing Orphan Users
• MDB database Migration
• Database Migration Assistant (DMA)
• Database Migration Service (DMS)
Offline & Online ( https://datamigration.microsoft.com/ )
Topic 9: Monitoring and Tuning

• Monitoring an Azure SQL Database Using the Azure Portal


• Monitoring an Azure SQL Database Using DMVs
• Monitoring Database Metrics
• Intelligent query processing
• Automatic Tuning
• Clear procedure cache
• Set the query optimizer cardinality estimation model
• Enable or disable query optimization hotfixes
• Enable or disable parameter sniffing
• Enable or disable the identity cache
• Enable or disable a compiled plan stub to be stored in cache when a batch is compiled for
the first time.
• Enable or disable collection of execution statistics for natively compiled T-SQL modules.
• Enable or disable the auto-drop functionality of global temporary tables
• Changing cost threshold for parallelism
• Changing instance-level max degree of parallelism

Advance Performance Optimization

Troubleshooting and Common Issues


CPU Issues
• SQLOS
• Scheduler
• Pre-emptive Scheduler & Cooperative Scheduler
• Quantum
• Scheduling of threads and scheduler
• Scheduling Algorithm
• Thread Life Cycle

Memory Issues
• 32-bit vs 64-bit difference
• NUMA configuration
• Buffer Pool Usage
• SQL Reservation Clerk
• PLE, Memory Grands Pending
IO Issues
• IO stall
• Disk latency
• SQL IO latency
Connection Timeout
• 18456 error
• SSL vs TLS
• NTLM vs Kerberos
Query Performance Impact
• SET STATISTICS IO
• SET STATISTICS TIME
• Parameter sniffing
• Implicit & Explicit conversion
• Lookup’s
• Search Arguments Ability

Experienced:
* SQL Azure (PAAS & IAAS)
* Performance Tuning and implementing best practices / standards
* Microsoft Business Intelligence, Data Warehousing and Data Migrations
* Migrate on premise databases to Azure/Cloud location using(DMS).
* Database Administration and Maintenance.
* Database design, model, development and code reviews.
* Database requirement gathering and architect
* Process Automation, Documentation and Knowledge Sharing

☺Haveany queries reply to this WhatsApp or Contact meon +91 9686854898☺

-Subbu CN

You might also like