SQL Server® 2012 Database Administration: Hands-On
Khóa cho các Developer
Cách sử dụng các tool
- Tại sao cần các tool
- Tool hỗ trợ Developer
- Tool hỗ trợ đọc Execution Plan
Lập trình T-SQL
- Sử dụng CTE
- Sử dụng Windows Function
- Sử dụng Windows Function
- Ranking function và Aggregate function
- WF trong SQL 2008
- WF cải tiến trong SQL2012 ( hỗ trợ order trong aggregate)
- Output
- Khi insert , update, delete
- Dùng trong Stored
- Cross apply
Advanced SQL Server Developer
- Partition table
Khóa cho các Administrator
Cài đặt SQL Server 2012
- Tổng quan về các phiên bản SQL Server 2012
- Nhận biết các feature cho từng SQL Server Edition
- SQL Server Instance là gì
- Cài đặt một SQL Server named instance
- Các thành phần dùng chung khi cài đặt nhiều Instance trên cùng một Server
Sử dụng những công cụ căn bản trong SQL Server
- Công cụ SQL Server Management Studio
- Import, Export data từ file với SSMS
- Sử dụng Object Explorer Details
- Generate Script
- Tìm kiếm object, đi đến vị trí của object
- Xem thông tin database
- Sử dụng Log File Viewer
- Export, Import log File
- Công cụ Configuration Manager
- Ngôn ngữ Transact-SQL
- Công cụ sqlcmd
- Công cụ PowerShell
- Dedicated Administrator Connection
Xây dựng và quản lý Databases
- Phân biệt điểm khác nhau về hoạt động I/O giữa database file và log file
Database Snapshot
- Khái niệm, đặc điểm công nghệ
Inspecting storage structures
- Relating servers, databases and files
- Tạo databases và transaction logs
Tạo file groups
- Maximizing storage utilization
- Đặt table vào file groups
Upgrading and moving databases
- Xác định upgrade và migrate
- Detaching và attaching databases
Kiểm soát database space
- Permitting automatic database growth
- Khái niệm instant file initialization, khi database growth
- Thêm database files để mở rộng databases
Sử dụng Policy Management
- Khái niệm PM, facet
- Cách xem facet của một database object
- Cách tạo PM, demo PM khi tạo table
- Import các Policy xây dựng sẵn bởi Microsoft
Handling Server and Database Security
Implementing server security
- Comparing authentication modes
- Defining logins
- Creating user-defined server roles
- Enforcing password policy
Granting database access
- Contrasting users and logins
- Adding users
- Defining new roles
- Delegating privileges with predefined roles
- Repairing mismapped logins
Granting and Revoking Permissions
Managing database-scoped privileges
- Permitting object creation
- Giving blanket permissions
Defining object-level permissions
- Limiting object access
- Meeting complex permission requirements with roles
Backup and Recovery
Backing up databases
- Khái quát các recovery model
- Khái niệm Point in time recovery
- Tìm hiểu transaction log
- VLF file và khái niệm log fragmentation
- Size log file hợp lý
- Checkpoint
- Các nguyên nhân làm log phình to
- Rebuild index
- Log Space không được tái sử dụng
- Active, long running transaction
- Transaction log hoạt động như thế nào ứng với mỗi Recovery Model
- Phân biệt truncate và shrink
- Backup và truncate log
- Thực hiện full, log and differential backups
- Backup Compression
- Chuyện gì xảy ra nếu chỉ thực hiện Full Backup
- Backup ảnh hưởng đến Performance như thế nào
Restoring databases
- Performing a post-crash log backup
- Rebuilding the master database
- Recovering user and system databases
Database Maintenance and Monitoring
Performance Tuning
- Nắm bắt workload của hệ thống
- Workload là gì? Tại sao cần nắm bắt workload?
- Các cách để capture Workload
- Dùng Profiler
- Dùng DMV
- Bảo trì Index (Index maintenance)
- Nhận dạng Index Fragmentation
- Xử lý phân mảnh Index (Index fragmentation)
- Dùng SSMS Maintenance Plans Wizard, hạn chế của tool này
- Dùng Ola Hallengren's free maintenance scripts
- Khái niệm Missing index, công cụ để nhận biết Missing Index, Demo tìm Missing Index và tìm câu truy vấn bị Missing Index
- Nhận dạng và xử lý Implicit Convertion
- Bảo trì Statistics
- Mối liên quan giữa Statistics và Index, Optimizer
- Các thuộc tính trong SQL Server về Statistic
- Nhận biết những câu truy vấn đang chạy trong SQL Server
- Dùng sp_Who2, Activity Monitor
- Dùng sp_WhoIsActive thay thế 2 tool trên, chỉ ra điểm hạn chế của sp_Who2, Activity Monitor
- Những cấu hình SQL Server ảnh hưởng đến Performance
- Enable Auto_close và Auto_shrink
- Cycle the SQL Error Log File
- Remember SQL Server Performance CheckList:
Handling fragmentation and database corruption
- Repairing database corruption
- Setup database mail
- Test database mail
- Xem Database mail log
- Set up Operator
- Set up Alert
- Các loại Alert (3 loại)
- WMI là gì?
- Set up Job trong SQL Server Agent
- Tạo Job có nhiều Step
- Xem Job History
- Tạo Alert cho Job
- Sử dụng SQL Server Maintenance Plan Wizards tạo các Maintenance Plan.
- Hạn chê của Maintenance Plan Wizards
- Đặt lịch thực thi các Maintenance Plan.
- Phân biệt lock, block, deadlock
- Blocked processes là gì
- Nguyên nhân xảy ra Blocking
- Enable Auto_shrink
- Nhận dạng các blocked processes
- Xử lý các blockers
- Tạo Alert cảnh báo khi có blocking
- Deadlocking là gì
- Nguyên nhân xảy ra Deadlocking
- SQL Server xử lý Deadlocking như thế nào?
- Demo, xử lý Deadlocking
- Tạo Alert cảnh báo khi có Deadlocking
- Dùng mã lỗi 1205
- Dùng WMI
- Refer: http://www.learningtree.com/courses/2108/sql-server-2012-database-administration/
Sử dụng các Tool cho Performance
- Điểm khác nhau giữa Standards Report, Activity Monitor, Management DataWarehouse and SQLDiag/SQLNexus link
http://sqlandsiva.blogspot.com/search/label/SQL%20Server%20Interview%20Questions%20and%20Checklist
http://pragmaticworks.com/LearningCenter/VirtualTraining/SystemOptimization/9-16-2013_PragmaticSQLServerPerformanceTuningOnline
http://pragmaticworks.com/LearningCenter/VirtualTraining/SystemOptimization/9-16-2013_PragmaticSQLServerPerformanceTuningOnline