自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

SQL Server數(shù)據(jù)庫服務(wù)器高性能設(shè)置

數(shù)據(jù)庫 SQL Server
SQL Server數(shù)據(jù)庫是關(guān)系數(shù)據(jù)庫管理系統(tǒng),功能性很強(qiáng)大,那么如何實(shí)現(xiàn)SQL Server數(shù)據(jù)庫服務(wù)器高性能設(shè)置?

導(dǎo)讀:數(shù)據(jù)庫服務(wù)器主要用于存儲(chǔ)、查詢、檢索企業(yè)內(nèi)部的信息,因此需要搭配專用的數(shù)據(jù)庫系統(tǒng),對服務(wù)器的兼容性、可靠性和穩(wěn)定性等方面都有很高的要求。SQL Server數(shù)據(jù)庫就是一款很好用的數(shù)據(jù)庫管理系統(tǒng),要想實(shí)現(xiàn)SQL Server數(shù)據(jù)庫更強(qiáng)大的功能,就得提高服務(wù)器的性能。下文將為大家介紹實(shí)現(xiàn)SQL Server數(shù)據(jù)庫服務(wù)器高性能的設(shè)置。

下面是進(jìn)行籠統(tǒng)的技術(shù)點(diǎn)說明,為的是讓大家有一個(gè)整體的概念,如果想深入可以逐個(gè)擊破;

 <!--[if !supportLists]-->一、<!--[endif]-->服務(wù)器規(guī)劃:

<!--[if !supportLists]-->1. <!--[endif]-->使用64位的操作系統(tǒng),***是2008的;(Windows Server 2008 64位)

<!--[if !supportLists]-->2. <!--[endif]-->使用64位的數(shù)據(jù)庫程序,***是2008的;(SQL Server 2008 64位)

<!--[if !supportLists]-->3. <!--[endif]-->使用千兆網(wǎng)卡;

<!--[if !supportLists]-->4. <!--[endif]-->使用硬RAID5;

<!--[if !supportLists]-->5. <!--[endif]-->使用64K的簇大?。?/p>

<!--[if !supportLists]-->6. <!--[endif]-->LUN0用作系統(tǒng)盤,LUN1用作程序(主要是數(shù)據(jù)庫程序)安裝盤,LUN2用作數(shù)據(jù)庫文件盤,動(dòng)態(tài)盤;

<!--[if !supportLists]-->二、<!--[endif]-->系統(tǒng)設(shè)置:

如果服務(wù)器使用的配置是:Windows Server 2003 x86 + SQL Server 2005 x86 + 12G內(nèi)存

<!--[if !supportLists]-->1. <!--[endif]-->使用Windows Server 2003 Enterprise Edition,如果有可能的話也可以使用Windows 2003 Datacenter Edition;

<!--[if !supportLists]-->2. <!--[endif]-->在boot.ini中啟用pae;

<!--[if !supportLists]-->3. <!--[endif]-->使用gpedit.msc設(shè)置【內(nèi)存中鎖定頁】;

<!--[if !supportLists]-->4. <!--[endif]-->設(shè)置虛擬內(nèi)存到系統(tǒng)盤之外的物理磁盤中,如果是同一塊物理磁盤,分到其它邏輯分區(qū)也可以;設(shè)置大小看情況而定;

<!--[if !supportLists]-->5. <!--[endif]-->去掉【***化文件共享數(shù)據(jù)吞吐量】,選擇【***化網(wǎng)絡(luò)應(yīng)用程序數(shù)據(jù)吞吐量】

<!--[if !supportLists]-->三、<!--[endif]-->數(shù)據(jù)庫設(shè)置:

<!--[if !supportLists]-->1. <!--[endif]-->設(shè)置數(shù)據(jù)庫的AWE,如果是16G的內(nèi)存,一般是分配80%內(nèi)存給數(shù)據(jù)庫程序使用;

<!--[if !supportLists]-->2. <!--[endif]-->設(shè)置數(shù)據(jù)庫實(shí)例的增長為10%,具體需要設(shè)置多少需要看你的業(yè)務(wù)需要,其目的就是盡量減少磁盤空間的分配次數(shù)還有較少磁盤碎片的產(chǎn)生;

<!--[if !supportLists]-->3. <!--[endif]-->設(shè)置數(shù)據(jù)庫實(shí)例的恢復(fù)模式為簡單模式,如果在可以的情況下;

<!--[if !supportLists]-->4. <!--[endif]-->設(shè)置TempDB的大小,一般來說可以給到4G以上,看具體需要和環(huán)境;

<!--[if !supportLists]-->5. <!--[endif]-->把除了SQL Server和SQL Server Browser 的其它數(shù)據(jù)庫服務(wù)都停止掉,除非你有使用到這些服務(wù)的需要;

<!--[if !supportLists]-->四、<!--[endif]-->數(shù)據(jù)庫設(shè)計(jì):

<!--[if !supportLists]-->1. <!--[endif]-->表分區(qū);(單臺(tái)數(shù)據(jù)庫服務(wù)器)

<!--[if !supportLists]-->2. <!--[endif]-->事件復(fù)制讀寫分離;(兩臺(tái)數(shù)據(jù)庫服務(wù)器)

<!--[if !supportLists]-->3. <!--[endif]-->對等事務(wù)復(fù)制;(多臺(tái)數(shù)據(jù)庫服務(wù)器)

<!--[if !supportLists]-->五、<!--[endif]-->SQL優(yōu)化:

<!--[if !supportLists]-->1. <!--[endif]-->創(chuàng)建合適的索引;

<!--[if !supportLists]-->2. <!--[endif]-->減少游標(biāo)的使用;

<!--[if !supportLists]-->3. <!--[endif]-->可以考慮CLR編程,比如一些頻繁查詢并且變動(dòng)很小的表;

<!--[if !supportLists]-->4. <!--[endif]-->使用批量操作,減少頻繁而小的操作;

<!--[if !supportLists]-->5. <!--[endif]-->這里的調(diào)優(yōu)細(xì)節(jié)很多,大家可以慢慢深入了解;

這里就為大家總結(jié)到這些,更多的經(jīng)驗(yàn)還需要大家在平時(shí)的工作中,細(xì)心的去總結(jié)發(fā)現(xiàn),如果大家有更多更好的方法經(jīng)驗(yàn),要拿出來曬曬哦,要與大家分享哦。

【編輯推薦】

  1. 優(yōu)化sql server數(shù)據(jù)庫的經(jīng)驗(yàn)總結(jié)
  2. SQL Server服務(wù)器內(nèi)存升級(jí)后的煩惱
  3. 如何緊急恢復(fù)SQL Server數(shù)據(jù)庫文件
責(zé)任編輯:迎迎 來源: 博客網(wǎng)
相關(guān)推薦

2010-07-06 13:22:13

SQL Server

2011-04-01 16:00:35

SQL Server 數(shù)據(jù)庫服務(wù)器

2010-10-28 16:12:01

Oracle數(shù)據(jù)庫配置

2019-01-15 10:54:03

高性能ServerReactor

2011-08-03 14:25:16

SQL Server注冊遠(yuǎn)程服務(wù)器數(shù)據(jù)庫

2011-09-15 13:24:15

SQL Server性能監(jiān)視

2011-08-25 09:46:02

SQL Server數(shù)負(fù)載均衡集群

2011-04-02 13:21:34

SQL Server數(shù)據(jù)庫全文索引

2019-07-31 14:36:46

Linux服務(wù)器框架

2010-07-15 17:28:50

SQL Server

2010-08-17 09:22:34

2009-11-17 14:05:57

微軟高性能計(jì)算服務(wù)器

2010-07-22 14:46:41

SQL Server

2021-09-22 16:25:17

服務(wù)器戴爾科技集團(tuán)

2010-07-15 15:50:58

安裝SQL Serve

2009-07-31 09:22:34

SQL Server

2015-03-13 19:34:41

2019-07-23 11:41:45

數(shù)據(jù)庫SQLDocker

2011-04-07 13:39:24

WebHTTP

2014-04-09 10:50:01

Squid架構(gòu)緩存服務(wù)器
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)