SQL Server数据库服务器高性能设置

来源:Asp之家 时间:2010-11-25 16:00:00 

数据库服务器主要用于存储、查询、检索企业内部的信息,因此需要搭配专用的数据库系统,对服务器的兼容性、可靠性和稳定性等方面都有很高的要求。

下面是进行笼统的技术点说明,为的是让大家有一个整体的概念,如果想深入可以逐个击破;    

希望大家能一起补充完善。

<!--[if !supportLists]-->一、<!--[endif]-->服务器规划:

<!--[if !supportLists]-->1.      <!--[endif]-->使用64位的操作系统,最好是2008的;(Windows Server 2008 64位)

<!--[if !supportLists]-->2.      <!--[endif]-->使用64位的数据库程序,最好是2008的;(SQL Server 2008 64位)

<!--[if !supportLists]-->3.      <!--[endif]-->使用千兆网卡;

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

<!--[if !supportLists]-->5.      <!--[endif]-->使用64K的簇大小;

<!--[if !supportLists]-->6.      <!--[endif]-->LUN0用作系统盘,LUN1用作程序(主要是数据库程序)安装盘,LUN2用作数据库文件盘,动态盘;

<!--[if !supportLists]-->二、<!--[endif]-->系统设置:

如果服务器使用的配置是:Windows Server 2003 x86 + SQL Server 2005 x86 + 12G内存

<!--[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设置【内存中锁定页】;

<!--[if !supportLists]-->4.      <!--[endif]-->设置虚拟内存到系统盘之外的物理磁盘中,如果是同一块物理磁盘,分到其它逻辑分区也可以;设置大小看情况而定;

<!--[if !supportLists]-->5.      <!--[endif]-->去掉【最大化文件共享数据吞吐量】,选择【最大化网络应用程序数据吞吐量】

<!--[if !supportLists]-->三、<!--[endif]-->数据库设置:

<!--[if !supportLists]-->1.      <!--[endif]-->设置数据库的AWE,如果是16G的内存,一般是分配80%内存给数据库程序使用;

<!--[if !supportLists]-->2.      <!--[endif]-->设置数据库实例的增长为10%,具体需要设置多少需要看你的业务需要,其目的就是尽量减少磁盘空间的分配次数还有较少磁盘碎片的产生;

<!--[if !supportLists]-->3.      <!--[endif]-->设置数据库实例的恢复模式为简单模式,如果在可以的情况下;

<!--[if !supportLists]-->4.      <!--[endif]-->设置TempDB的大小,一般来说可以给到4G以上,看具体需要和环境;

<!--[if !supportLists]-->5.      <!--[endif]-->把除了SQL Server和SQL Server Browser 的其它数据库服务都停止掉,除非你有使用到这些服务的需要;

<!--[if !supportLists]-->四、<!--[endif]-->数据库设计:

<!--[if !supportLists]-->1.      <!--[endif]-->表分区;(单台数据库服务器)

<!--[if !supportLists]-->2.      <!--[endif]-->事件复制读写分离;(两台数据库服务器)

<!--[if !supportLists]-->3.      <!--[endif]-->对等事务复制;(多台数据库服务器)

<!--[if !supportLists]-->五、<!--[endif]-->SQL优化:

<!--[if !supportLists]-->1.      <!--[endif]-->创建合适的索引;

<!--[if !supportLists]-->2.      <!--[endif]-->减少游标的使用;

<!--[if !supportLists]-->3.      <!--[endif]-->可以考虑CLR编程,比如一些频繁查询并且变动很小的表;

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

<!--[if !supportLists]-->5.      <!--[endif]-->这里的调优细节很多,大家可以慢慢深入了解;

版权:本文版权归作者和博客园共有,欢迎转载。 Blog:http://gaizai.i170.com/

标签:SQLServer,数据库服务器,高性能设置
0
投稿

猜你喜欢

  • 使用keras和tensorflow保存为可部署的pb格式

    2022-11-11 16:42:03
  • Fiddler如何抓取手机APP数据包

    2023-12-02 04:18:57
  • CSS编写过程中常见的10个错误

    2008-05-29 12:49:00
  • Python协程的四种实现方式总结

    2022-12-23 04:41:59
  • javascript定时变换图片实例代码

    2024-04-17 10:24:14
  • Docker创建MySQL容器的方法

    2024-01-19 13:42:20
  • PHP+JS实现文件分块上传的示例代码

    2023-06-12 00:04:07
  • mysql 不能插入中文问题

    2024-01-26 01:19:50
  • python基于右递归解决八皇后问题的方法

    2021-01-12 21:02:38
  • MySql中子查询内查询示例详解

    2024-01-27 23:25:12
  • Python实现鸡群算法的示例代码

    2022-03-23 19:02:54
  • Python 标准库 fileinput与文件迭代器

    2023-10-31 22:36:50
  • Python爬虫爬取煎蛋网图片代码实例

    2023-08-17 07:10:38
  • Python Flask实现后台任务轻松构建高效API应用

    2021-09-25 01:37:43
  • MySQL数据库优化技术之索引使用技巧总结

    2024-01-21 16:24:22
  • MySQL 加密/压缩函数

    2024-01-23 23:51:14
  • django框架实现模板中获取request 的各种信息示例

    2023-08-31 05:16:41
  • 经验总结:修改MySQL默认密码的具体步骤

    2009-01-04 13:29:00
  • 窥探mysql存储过程细节

    2024-01-13 07:27:52
  • Python中turtle绘图模块的详细讲解

    2022-12-30 02:38:27
  • asp之家 网络编程 m.aspxhome.com