升級 sql server 2000/2005 至 sql server 2008

Download 升級 SQL Server 2000/2005 至  SQL Server 2008

If you can't read please download the document

Upload: beau-mckay

Post on 15-Mar-2016

661 views

Category:

Documents


16 download

DESCRIPTION

升級 SQL Server 2000/2005 至 SQL Server 2008. 升級資料庫. 胡百敬 http://byronhu.spaces.live.com/ 資深講師 恆逸教育訓練中心 ( 精誠資訊 ). 議程. 升級到 SQL Server 2008 > 升級計畫 升級方式 升級時停機時間考量 資料庫相容層級 相容性測試. 升級計劃 --Best Practice. 執行 Upgrade Advisor 確認必須事先處理的事項 完成備份作業 減少升級變數 Server Level -- 版本,語言 - PowerPoint PPT Presentation

TRANSCRIPT

  • SQL Server 2000/2005 SQL Server 2008 http://byronhu.spaces.live.com/()

  • SQL Server 2008

  • --Best Practice Upgrade Advisor Server Level --Database Level --32 bit 64 bitSQL Server 2008 \\

  • Upgrade in-place upgradeMigration side-by-side migration

  • SQL Server 2008Instance: MyInstanceSQL Server 2000/2005Instance: MyInstance

  • Instance Point of no returnInstanceInstance SQL Server 2008 single-user scripts

  • SQL Server 2000/2005Instance: MyInstanceSQL Server 2008Instance: MyNEWInstance

  • in-place upgrade DB 2008 AS DBA DB DBA 32 bit 64 bitDTSRollback DB

  • side-by-side migration 200820052000 DBA DBA DBA

  • Master SSAS CubeAgent SSIS

  • .NET Framework 3.5 SP1 SQL Server Native Client loginspasswords permissions offline upgrade advisor SQL 2008 Primary Filegroup Filegroup SQL 2000/2005 DB SQL 2008 with norecovery 2000/2005 Restore 2008 with Recovery

  • -- SQL Server 2008 : Pentium 3+1 GHz+ 2 GHz + : 512 MB+ 2 GB :Windows Server 2003 + SP2Windows Server 2008 SSMSBIDS IE 6 SP1+(Enterprise Enterprise )(English )(Windows 2000Windows 2003/Windows 2008)(JDBC for SQL Server 2005 Microsoft SQL Server 2008 Feature Pack http://www.microsoft.com/downloads/details.aspx?displaylang=zh-tw&FamilyID=c6c3e9ef-ba29-4a43-8d69-a2bed18fe73c) SQL Server SQL Server 2000 Service Pack 4SQL Server 2005 Service Pack 2 Upgrade Advisor

  • Upgrade Advisor SQL Server 2008

    SQL Server 2008 SSIS

  • SQL Server / SQL Server 2000/2005 sp_detach_dbSQL Server 2008 FOR ATTACH/ SQL Server 2008 SQL Server 7.0 2000/2005Integration ServicesSSIS BCP.exe

  • SQL Server 2008 SQL Server 2008 SQL Server 2000/2005 SQL Server 2000/2005 SQL Server 2008

  • /SQL Server 2000/2005 mastermodel msdb sp_detach_db UPDATE STATISTICS @skipchecks='truesp_attach_db CREATE DATABASE FOR ATTACHTFORATTACH_REBUILD_LOG

  • /SQL Server 2000/2005 mastermodel msdb SQL Server 2008 MOVE

  • Upgrade Advisor

  • Upgrade Advisor Upgrade Advisor CubeSSIS(10.0)(log shipping)

  • DBCC UPDATEUSAGEEx. DBCC UPDATEUSATE(Northwind) sp_updatestatsEx. Exec sp_updatestats SQL Server Policy100 2000 APPLYPIVOTTABLESAMPLE UNPIVOT

  • 60 = SQL Server 6.0 65 = SQL Server 6.5 70 = SQL Server 7.0 80 = SQL Server 2000 90 = SQL Server 2005 100 = SQL Server 2008 100SQL 2008 ALTER DATABASE database_name SET COMPATIBILITY_LEVEL = { 80 | 90 | 100 }ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.zh-CHT/s10de_6tsql/html/ca5fd220-d5ea-4182-8950-55d4101a86f6.htm

  • Database EngineAnalysis ServicesReporting ServicesSSIS(DTS)Replication

  • 2 SQL Server Upgrade AssistantSSUACapture PlaybackCompare Trace Fileshttp://www.scalabilityexperts.com/

  • DBCC CHECKDB Full Database Backups SQLProfiler Test case script

  • SQL

  • Playback Report ViewerRun Trace ReplaySQL Server 2000/2005 2008

  • Playback Setup Restore/Attach?/

  • test suitesad-hoc tests log logs

  • Backup /Restore SAN

  • SQL SQL Server 2008 Upgrade Technical Reference Guidehttp://www.microsoft.com/downloads/details.aspx?FamilyID=66d3e6f5-6902-4fdd-af75-9975aea5bea7&displaylang=enSQL Server 2008 Books Online()http://www.microsoft.com/downloads/details.aspx?FamilyID=19db0b42-a5b2-456f-9c5c-f295cdd58d7a&DisplayLang=enSQL Server Home Pagehttp://www.microsoft.com/sql/ http://www.microsoft.com/taiwan/sqlApplication and Compatibility Content & ToolsApplication Compatibility Blog http://blog.scalabilityexperts.comScalability Experts - Upgrade Assistance http://www.scalabilityexperts.comSQL Server 2008 Upgrade Advisor http://www.microsoft.com/sql

    ***FYI Speakers:Note the many moving parts involved just at the physical level. They are not difficult to navigate, just takes a little bit of time.

    Key takeaways:Make sure you know exactly what components you will deploy and whether they have changed from the last version. E.g. Reporting Services no longer uses IIS so what is the impact of using http.sys?Notification Services is deprecated in 2008 so bits are not shipped but NS 2005 can still be used and is still supported.Note the additional language and collation support introduced in 2008All are documented in detail on microsoft.com/sql/

    Notes:VersionsSQL Server 2000 SP4 or laterSQL Server 2005 SP2 or laterComponentsDatabase EngineIncludes sub-components like SQL Agent, Full-text, Tools, etc.Reporting ServicesIIS to http.sys?Notification Services 2005 only (deprecated in 2008)Analysis Services (it is recommended that cubes are migrated)Data Transformation ServicesIntegration ServicesEditionsDesktop, Workgroup, Personal, Standard, Developer, Enterprise2000 Personal 2005 SQL CE2000 Desktop 2005 SQL ExpressPlatforms32-bit & 64-bit (IA64 and x64)LanguagesAll SQL Server 2000 and SQL Server 2005 released languages

    *Mar-2008Microsoft Developer & Platform Evangelism**FYI Speakers:High level view of upgrade processDo not drill down on specific steps as they may change when the product ships or with updated releases

    Key takeaways:Most of the in-place upgrade process does not interfere with current production database minimize downtimeNew directory and registry structure (changed from 2005) is more intuitive and allows for more flexible deployment/upgrade optionsProcess is non-reversible

    Notes:

    Mar-2008Microsoft Developer & Platform Evangelism******** BCP.exe SQL Server 6.0/6.5 SQL Server 2005

    *FOR ATTACH_REBUILD_LOG /

    Database Engine

    FOR ATTACH_REBUILD_LOG

    (MDF NDF)

    BACKUP (Transact-SQL)

    / FOR ATTACH_REBUILD_LOG

    FOR ATTACH_REBUILD_LOG

    ****sp_updatestats UPDATE STATISTICS

    USE AdventureWorks;GOEXEC sp_updatestats

    *************