SQL SERVER 新中大性能调校Word格式文档下载.docx

上传人:b****6 文档编号:21962383 上传时间:2023-02-02 格式:DOCX 页数:8 大小:383.69KB
下载 相关 举报
SQL SERVER 新中大性能调校Word格式文档下载.docx_第1页
第1页 / 共8页
SQL SERVER 新中大性能调校Word格式文档下载.docx_第2页
第2页 / 共8页
SQL SERVER 新中大性能调校Word格式文档下载.docx_第3页
第3页 / 共8页
SQL SERVER 新中大性能调校Word格式文档下载.docx_第4页
第4页 / 共8页
SQL SERVER 新中大性能调校Word格式文档下载.docx_第5页
第5页 / 共8页
点击查看更多>>
下载资源
资源描述

SQL SERVER 新中大性能调校Word格式文档下载.docx

《SQL SERVER 新中大性能调校Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《SQL SERVER 新中大性能调校Word格式文档下载.docx(8页珍藏版)》请在冰豆网上搜索。

SQL SERVER 新中大性能调校Word格式文档下载.docx

这样机器可以充分发挥出性能,SQLSERVER也可以充分利用系统资源。

提高系统的吞吐量。

✧如果实在不能升级到64位,考虑打开SQLSERVER的AWE。

可以按照以下的操作步骤打开AWE

⏹本地组策略修改

【开始】->

【启动】,输入gpedit.msc,打开“本地组策略编辑器”(图2),找到“用户权限分配”节点,找到“锁定内存页”这一项,右键,属性,打开“锁定内存页属性”窗口(如图3),然后添加用户,把启动sqlserver的用户添加进去(图4),保险起见可以也可以同时加入administrator

图:

2

3

4

⏹数据库-右键-属性,打开“服务器属性”窗口(图1),选择“内存”选项,

“使用AWE分配内存”项打勾,【最大服务器内存】设置大一点,如果是16G内存的话,机器又只是作为数据库服务器可以考虑分配13-14G的内存。

1

⏹检查是否成功开启了AWE

【开始】->

【启动】输入perfmon添加计数器,主界面是右键【添加计数器】

在targetpages这个数*8K/1024是不是大概与你设置AWE的大小类似。

如果类似了,就不用重启机器了。

如果还是远远小于你设置AWE的内存值,就说明没有设置成功,请重启机器。

2.设置数据库的快照级别,假设使用的数据库是NG001,则设置的方法是:

Alterdatabaseng0001setread_committed_snapshoton;

注意的是,这个操作要没有其它的SESSION连接到这个NG0001数据库,最好可以停下IIS和重启下数据库进行设置。

否则可能会等待很长时间。

这个修改主要的目的是避免数据库的写阻塞读。

3.解决了数据库的CXPACKET等待

默认情况下,数据库是不进行控制的。

我们要关闭SQLSERVER的并行机制,避免CXPACKET等待。

Sp_configure‘showadvancedoptions’,1

Go

Reconfigurewithoverride

Go;

关闭并行机制

sp_configure'

maxdegreeofparallelism'

1

RECONFIGUREWITHOVERRIDE

GO

4.调整SQL

重点关注sys_log/user_configre等表。

可以参考以下19局优化的SQL,在修改程序的前提下只能添加索引,include索引只针对2005及以上才能使用。

索引会陆续加入

 

createindexidx_mat_p_d_01onmat_p_d(origin_code)

createindexidx_kc_billbody_01onkc_billbody(relbillno)

createindexhr_arc_dispatch_actorobjonhr_arc_dispatch_actorobj(cno)

createindexidx_fg_simple_data_01onfg_simple_data(c_type)include(c_no,c_name)

createindexidx_hr_arc_dispatch_actorobj_01onhr_arc_dispatch_actorobj(cno)include(ccode,ctype,cobj,ocode)

createindexidx_sys_log_01onsys_log(id)

createindexidx_req_col_control_01onreq_col_control(oper_type_code,req_input)

createindexidx_fg_col_page_01onfg_col_page(c_create,c_code)

createindexidx_w3_ba_treedatabase_01onw3_ba_treedatabase(cno,ctype)

createindexidx_ays_act_originbill_01onays_act_originbill(buildcode)

createindexidx_pay_amt_m_01onpay_amt_m(freeze_cause,cause_code)

createindexidx_wf_workflow_feedback_his_01onwf_workflow_feedback_his(workflow_code)

createindexidx_hr_pr_data_01onhr_pr_data(uyear,ap_num,empno,cboo)

createindexidx_hr_pr_insu_main_01onhr_pr_insu_main(uyear,ap_num,cboo)

createindexidx_security_info_01onsecurity_info(application,user_name)include(window,control,status,kind,ocode)

createindexidx_sec_pub_01onsec_pub(ocode)

createindexidx_enterprise_org_01onenterprise_org(compno)

createindexidx_enterprise_01onenterprise(compno,stopflag)include(compname)

createindexidx_wm_inform_main_01onwm_inform_main(cno)

createindexidx_fg_simple_data_02onfg_simple_data(c_no,c_type)

createindexidx_cnt_m_01oncnt_m(bill_no)

createindexidx_userconfig_detail_01onuserconfig_detail(refid)

createindexidx_asr_info_02onasr_info(bill_code)include(table_name)

createindexidx_kc_billbody_02onkc_billbody(billno)

createindexidx_sec_table_default_01onsec_table_default(bill_type,fill)

include(user_name,can_grant,grant_type,ocode)

createindexidx_proj_bal_01onproj_bal(cnt_no)

createindexidx_pay_amt_m_02onpay_amt_m(cnt_code)

createindexidx_combine_allot_m_01oncombine_allot_m(pc)

createindexidx_combine_allot_d_01oncombine_allot_d(ticket_id,is_used)

createindexidx_wm_inform_main_01onwm_inform_main(ctype)

createindexidx_wm_inform_type_01onwm_inform_type(cno)

createindexidx_wm_inform_recv_01onwm_inform_recv(cbcode,reciever)

createindexidx_wf_workflow_node_ele_01onwf_workflow_node_ele(user_code,action,function_type)

include(workflow_code,workflow_node_code,workflow_nodeele_code,comm_relation)

createindexidx_wf_workflow_01onwf_workflow(sys_code)include(bill_code)

createindexidx_fg_orgpop_01onfg_orgpop(ug_code,ocode)include(u_soft)

createindexidx_req_p_m_01onreq_p_m(pc)

createindexidx_req_p_m_02onreq_p_m(ocode)

createindexidx_enterprise_org_02onenterprise_org(ocode,compno)

createindexidx_srm_ass_result_d_01onsrm_ass_result_d(contractor)

createindexidx_ctl_fld_01onctl_fld(fieldname,tname)

createindexidx_hr_epm_main_01onhr_epm_main(dept)

CREATEINDEXidx_mail_m_01ON[mail_m]([to_emp],[bill_type])INCLUDE([view_flg])

createindexidx_hr_arc_dispatch_01onhr_arc_dispatch(cno)

createindexidx_hr_arc_dispatch_obj_01onhr_arc_dispatch_obj(cno)

createindexidx_hr_arc_dispatch_obj_02onhr_arc_dispatch_obj(cobj,cflag,ctype)include(cno)

CREATEINDEXidx_sec_pub_03ON[NG0001].[dbo].[sec_pub]([bill_type],[obj_id1],[ocode])INCLUDE([user_name],[grant_type])

createindexidx_user_configure_01onuser_configure(logid,kind,filename)

CREATENONCLUSTEREDINDEX[IX_ays_cost_d_pcode]ON[dbo].[ays_cost_d]

[p_code]DESC

createindexidx_ba_apply_01onba_apply(sourcetype,sourcebillno)

createindexidx_content_level_01oncontent_level(ocode,item_code)

createindexidx_device_01ondevice(devstate)include(deviceno,devname,devtype,useocode)

createindexidx_fg_ogm_station_01onfg_ogm_station(enableflg)include(cno,cname)

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 医药卫生 > 临床医学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1