Bài giảng Kiến trúc cài đặt cơ sở dữ liệu - Chương 1 Lập kế hoạch và cài đặt SQL server 2012 và 2008 gồm có những nội dung chính sau: Tổng quan về SQL server, giới thiệu các phiên bản SQL Server 2012, giới thiệu các phiên bản SQL Server 2012, các chiến lược cài đặt SQL Server, Server instance.
GV Phi Loan - Khoa CNTT – HUI N i dung • • • • T ̀ G ̀ G ̀ C ̀ ̀ ̀SQL server ̀ ̀ ̀ n SQL Server 2012 ̀ ̀ ̀ n SQL Server 2012 ̀ ̀ ̀ t SQL Server –C ̀ i –N ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ • Server instance GV Phi Loan - Khoa CNTT – HUI T • • • • • • • • ̀ ̀ ̀SQL server L ̀ ̀ ̀ ̀ ̀C“DL̀ ̀ (Relational DB) Server Product N ̀ ̀“QL̀ -K C ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ n (524,272 TB/DB) ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ng 32,767 CSDL/server ̀ ng/CSDL ̀ ng GV Phi Loan - Khoa CNTT – HUI V̀ ̀C̀DL̀ GV Phi Loan - Khoa CNTT – HUI ̀ L ̀ • • • • • • • • • • 1.0 (OS/2) 4.21 6.0 6.5 7.0 8.0 9.0 10.0 10.50 11.00 SQL Server GV Phi Loan - Khoa CNTT – HUI 1959 1993 1995 1996 1998 2000 2005 2008 2008 SQL Server 2000 SQL Server 2005 SQL Server 2008 SQL Server 2008 R2 2012 SQL Server 2012 SQL Server 2012 • SQL Server 2012 ̀M ̀ ready information platform • M ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ p database: –T ̀ c ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ –H ̀ ̀ c public cloud –C ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ (fully integrated hybrid solution) GV Phi Loan - Khoa CNTT – HUI ̀ GV Phi Loan - Khoa CNTT – HUI SQL Server 2012 Enhancements for DBAs • Availability Enhancements • Scalability and Performance Enhancements • Manageability Enhancements • Security Enhancements • Programmability Enhancements GV Phi Loan - Khoa CNTT – HUI Availability Enhancements • • • • Database mirroring, Log shipping Replication AlwaysOn (new brand of technologies for achieving both high availability and disaster recovery ) GV Phi Loan - Khoa CNTT – HUI AlwaysOn Availability Groups GV Phi Loan - Khoa CNTT – HUI 10 C ̀ ̀ ̀ ̀ • “QL̀ ̀ ̀ ̀ ̀ instance) ̀ ̀ p ̀ ̀ ̀ ̀ ̀ n (cross-version –“ ̀ ̀ ̀ ̀ ̀ ́ ̀“ ̀ ̀‘ instance • T ̀ ̀ ̀̀ ̀ ̀ ̀ ̀ ̀ GV Phi Loan - Khoa CNTT – HUI ̀ ̀ ̀ ̀ ̀ ̀ ̀“ ̀D ̀ ̀ ̀E ̀ ̀ ng ̀ ̀ ̀ ̀“QL̀“ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ p không? 28 C ̀L ̀ ̀ ̀ ̀ p •K ̀ ̀ ̀ ̀ ̀ ̀ ̀ c platform (cross-platform upgrade) –K O“̀ ̀ ̀ ̀ ̀“QL̀“ - ̀ nh OS 64-bit GV Phi Loan - Khoa CNTT – HUI ̀ ̀ ̀ 29 N ̀ • Đ ̀ ̀ ̀ ̀ p ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ i • C ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀DB̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀“QL̀ ̀ • C ̀ ̀̀“QL̀“ ̀ i GV Phi Loan - Khoa CNTT – HUI ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ 30 Side-by-Side Migration •M ̀ ̀ “ ̀ ̀ –K ̀ ̀ ̀ ̀“QL̀“ i GV Phi Loan - Khoa CNTT – HUI ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀DB́̀ ̀ ̀ ̀ ̀ ̀ ̀“QL̀“ ̀“QL̀ ̀ ̀ ̀ ̀DB̀ ̀ 31 GV Phi Loan - Khoa CNTT – HUI 32 ̀ ̀ a migration • D ̀ ̀ • C ̀ • I K ̀ ̀ ̀ ̀“QL̀“ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ GV Phi Loan - Khoa CNTT – HUI ̀ ̀ ̀ ̀ ̀ ̀ p ̀ ̀ ̀ ̀ ̀̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀DB̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀̀ ̀ ̀ ̀ ̀ ̀ 33 K ̀ •Y ̀ ̀ •C ̀ ̀ ̀ ̀ GV Phi Loan - Khoa CNTT – HUI ̀ a migration ̀ ̀ ̀ ̀ ̀ ng ̀DB̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ 34 Upgrade Advisor •T ̀ ̀ ̀ ̀ ̀ ̀ t Upgrade Advisor •H ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ GV Phi Loan - Khoa CNTT – HUI 35 ̀QL̀̀ ̀ ̀ ̀ ? • I ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ a SQL Server 2012 ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ u riêng • V ̀ i service pack ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ c GV Phi Loan - Khoa CNTT – HUI 36 ̀QL̀̀ ̀ ̀ ̀ ? •M ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ́ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ng chung server host GV Phi Loan - Khoa CNTT – HUI 37 C ̀ • N ̀ a SQL Server ̀ ̀ –I –C ̀ ̀ ̀“QL̀“ ̀ ng Server ̀ • “QL̀“ ̀ nh ̀ ̀ ̀ ̀ ̀ ̀ c ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ c nh Enterprise, Standard, or Developer • M ̀ ̀ ̀ ̀ ̀ c server riêng GV Phi Loan - Khoa CNTT – HUI ̀ ̀ ̀ ̀E 38 Default Instance •L ̀ •T ̀ ̀ u tiên ̀ ̀ ̀ ̀MSSQLServer GV Phi Loan - Khoa CNTT – HUI 39 C ̀ • Đ ̀ ̀ ̀ ̀ c ̀ ̀ c sau: –K –K ̀ ̀ ̀ ̀hoa (not case sensitive.) ̀ ̀ ̀ ̀DEF́ULT ̀ ̀ ̀ ̀ a nh ADD, ALL, EXECUTE, ALTER, PRIMARY, or RECONFIGURE –T ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ ng backslash (\), comma (,), colon (:), semicolon (;), single quote ('), ampersand (&), ̀ ng, (@) GV Phi Loan - Khoa CNTT – HUI 40 T ̀ ̀ ̀ t thêm instance M Configuration Tools\SQL Server Installation Center C n Installation\ New SQL Server StandAlone Installation Or Add Features To An Existing Installation Trong trang Setup Support ‘ ̀ ̀ t Show Details ̀ m tra T ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ nh GV Phi Loan - Khoa CNTT – HUI 41 C ̀ ̀̀ ̀ ̀ c instance • Each instance has its own program files, directory, and security configuration •C ̀ ̀ ̀ – M ̀“QL̀“ ̀ ̀ Properties GV Phi Loan - Khoa CNTT – HUI ̀ ̀M ̀ ̀ ng instance ̀ ̀ ̀“ ̀ ̀ ̀ ̀ nh 42 ... 11.00 SQL Server GV Phi Loan - Khoa CNTT – HUI 1959 1993 1995 1996 1998 2000 2005 2008 2008 SQL Server 2000 SQL Server 2005 SQL Server 2008 SQL Server 2008 R2 2012 SQL Server 2012 SQL Server 2012. .. C ̀ ̀ ? ?SQL server ̀ ̀ ̀ n SQL Server 2012 ̀ ̀ ̀ n SQL Server 2012 ̀ ̀ ̀ t SQL Server –C ̀ i –N ̀ ̀ ̀ ̀ ̀ ̀ ̀ ̀ • Server instance GV Phi Loan - Khoa CNTT – HUI T • • • • • • • • ̀ ̀ ? ?SQL server. .. Express GV Phi Loan - Khoa CNTT – HUI 11 SQL Server 2012 HW Requirements GV Phi Loan - Khoa CNTT – HUI 12 SQL Server 2012 SW Requirements GV Phi Loan - Khoa CNTT – HUI 13 SQL Server 2008 R2 •L ̀ •N