Monitoring Tempdb in SQL Server 2005
from: http://www.sqllion.com/2009/05/monitoring-tempdb-in-sql-server-2005/[@more@]As the tempdb database is the common global resource for all the operations going on in SQL Server, so the DBA has to be bit cautious about the use of it. Because any unexpected operations by the applications running under the SQL Server instance or any uneven query by the user can eat all the space available to thetempdb resulting decrease in the performance of all other applications running under the same instanc
sql server系统表与系统视图详细说明
SQL Server系统表系统视图,可分为:目录视图 信息架构视图 兼容性视图 复制视图 动态管理视图和函数 [@more@]系统表:sysaltfiles 主数据库 保存数据库的文件 syscharsets 主数据库字符集与排序顺序sysconfigures 主数据库 配置选项syscurconfigs 主数据库当前配置选项sysdatabases 主数据库服务器中的数据库syslanguages 主数据库语言syslogins 主数据库 登陆帐号信息sysoledbusers 主数据库 链接服务器登陆信息sysprocesses 主数据库进程sysremotelogins主数据库 远程登录帐号syscolumns 每个数据库 列sysconstrains 每个数据库 限制sys
A significant part of sql server process memory has been paged out. This may result in performance d
A good article about "A significant part of sql server process memory has been paged out. This may result in performance degradation. Duration 0 seconds. Working set (KB) 25432, committed (KB) 11296912, memory utilization 0%"[@more@]If you are using SQL Sever Server standard edition 64 bit on a Windows 2003 64bit, you will frequently encounter this problem where SQL Server says:A significant part of sql server process memory has been paged out. This may result in performance degradatio
监控Oracle数据库性能的脚本段整理
监控Oracle数据库性能的脚本段整理[@more@]1. 监控事例的等待 select event,sum(decode(wait_Time,0,0,1)) "Prev", sum(decode(wait_Time,0,1,0)) "Curr",count(*) "Tot" from v$session_Wait group by event order by 4; 2. 回滚段的争用情况 select name, waits, gets, waits/gets "Ratio" from v$rollstat a, v$rollname b where a.usn = b.usn; 3. 监控表空间的 I/O 比例 select df.tablespace_name name,df.file_name "file",f.phyrds p
三种东西永远不要放到数据库里
我已经在很多演讲里说过,改进你的系统的最好的方法是先避免做“蠢事”。我并不是说你或你开发的东西“蠢”,只是有些决定很容易被人们忽略掉其暗含的牵连,认识不到这样做对系统维护尤其是系统升级带来多大的麻烦。作为一个顾问,像这样的事情我到处都能见到,我还从来没有见过做出这样的决定的人有过好的结果的。[@more@]我已经在很多演讲里说过,改进你的系统的最好的方法是先避免做“蠢事”。我并不是说你或你开发的东西“蠢”,只是有些决定很容易被人们忽略掉其暗含 的牵连,认识不到这样做对系统维护尤其是系统升级带来多大的麻烦。
浅析SQL Server datetime数据类型设计与优化误区
今天我们将探讨SQL Server datetime数据类型设计与优化误区,希望这些基础性的知识能对大家有所帮助。原文链接:http://www.cnblogs.com/gaizai/archive/2010/11/26/1888505.html[@more@]一、场景在SQL Server 2005中,有一个表TestDatetime,其中Dates这个字段的数据类型是datetime,如果你看到表的记录如下图所示,你最先想到的是什么呢?(图1:数据列表)你看到这些数据,是不是觉得这样的设计既浪费了存储空间,又使得这个列的索引增大,查询起来更慢,你也想使用一些其它的数据类型来代替这个datetime吧?其实大家都是这么想的,这个
监控SQL Server的运行状况(1)
Microsoft SQL Server 2005 提供了一些工具来监控数据库。方法之一是动态管理视图。动态管理视图 (DMV) 和动态管理函数 (DMF) 返回的服务器状态信息可用于监控服务器实例的运行状况、诊断问题和优化性能。[@more@]Microsoft SQL Server 2005 提供了一些工具来监控数据库。方法之一是动态管理视图。动态管理视图 (DMV) 和动态管理函数 (DMF) 返回的服务器状态信息可用于监控服务器实例的运行状况、诊断问题和优化性能。 常规服务器动态管理对象包括: dm_db_*:数据库和数据库对象 dm_exec_*:执行用户代码和关联的连接 dm_os_*:内存、锁定
生成目录树方法
1, 在自己的电脑上(服务器上此方法不能使用),打开运行,输入"cmd".2, 执行下面这条语句,可以更新目录文本。 tree "ComputerNameh$Path" /f /a > .txtComputerNameh$PathDirectory3, 回车运行,就可以在这个目录下生成最新的目录树文件-- Directory.txt。[@more@]
关系型数据库性能测试参考指标----SQL Server
注:以下指标取自SQL Server自身提供的性能计数器。[@more@]SQL Server指标名称指标描述指标范围指标单位1.SQL Server中访问方法(Access Methods)对象包含的性能计数器全表扫描/秒(Full Scans/sec)指每秒全表扫描的数量。全表扫描可以是基本表扫描或全索引扫描。由于全表扫描需要耗费大量时间,因此全表扫描的频率过高的话,会影响性能。如果该指标的值比1或2高,应该分析设计的查询以确定是否确实需要全表扫描,以及SQL查询是否可以被优化。次数/秒2.SQL Server中缓冲器管理器(Buffer Manager)对象包含的性能计数器缓冲区高速缓存命
Eclipse Data Tools Platform (DTP) 连接SQL Server 2008
Eclipse Data Tools Platform (DTP) 连接SQL Server 2008[@more@]关键配置1. 下载安装sqljdbc_4.0到C:Program FilesMicrosoft JDBC Driver 4.0 for SQL Server.2. 或者在DTP的New Database Connections时Edit Driver Definition的JAR List中Add 安装路径:到C:Program FilesMicrosoft JDBC Driver 4.0 for SQL Serversqljdbc_4.0enusqljdbc4.jar;或者在环境变量中添加CLASSPATH,值:C:Program FilesMicrosoft JDBC Driver 4.0 for SQL Serversqljdbc_4.0enusqljdbc4.jar此时,可以配置sql server 用户名/密码方式连接。3. 把sqljdbc_auth
PHP开发工具、开发环境汇总
http://www.oschina.net/project/lang/22/php[@more@]PHP开发工具PHPEclipse 是一个相当强大的一个Eclipse下开发PHP的插件,包括的功能有:PHP语法分析,调试,代码格式化,大纲视图,代码模板定制等。下载:http://sourceforge.net/projects/phpeclipse/
主流NoSQL数据库Redis专题
http://www.it168.com/redian/redis/index.html[@more@]
The DBA as Detective: Troubleshooting Locking and Blocking
In this article I demonstrated how I go about detecting SQL Server problems in the form of excessive locking, and blocking. While this is a good start for the DBA detective, there is much more ground to cover. I mentioned CPU and I/O in this article only peripherally, as it relates to problem code. In my book, I continue on the path of analyzing performance issues, but extend this topic to explain how to make sure you get notified immediately of performance, and other, issues.After all, if you d
数据类型和JSON格式
JSON 非常易学易用。所以,在短短几年中,它就取代xml,成为了互联网上最受欢迎的数据交换格式。JSON 已经是 JavaScript 标准的一部分。目前,主流的浏览器对 JSON 支持都非常完善。应用 JSON,我们可以从 XML 的解析中摆脱出来,对那些应用 Ajax 的 Web 2.0 网站来说,JSON 确实是目前最灵活的轻量级方案。[@more@]1. 前几天,我才知道有一种简化的数据交换格式,叫做yaml。我翻了一遍它的文档,看懂的地方不多,但是有一句话令我茅塞顿开。它说,从结构上看,所有的数据(data)最终都可以分解成三种类型:第一种类型是标量(scalar),
MySQL表名区分大小写
可以强制以 -O lower_case_table_names=1 参数启动 mysqld(如果使用 --defaults-file=...my.cnf 参数来读取指定的配置文件启动 mysqld 的话,你需要在配置文件的 [mysqld] 区段下增加一行 lower_case_table_names=1)。这样MySQL 将在创建与查找时将所有的表名自动转换为小写字符(这个选项缺省地在 Windows 中为 1 ,在 Unix 中为 0。从 MySQL 4.0.2 开始,这个选项同样适用于数据库名)。 [@more@][mysqld]# Lewis add. Keep table name original caselower_case_table_names=0# The TCP/IP Port the MySQL Server will listen onport=
Checklist: SQL Server Performance
http://msdn.microsoft.com/en-us/library/ff647681.aspx[@more@]SQL: Scale Up vs. Scale Out CheckDescription Optimize the application before scaling up or scaling out. Address historical and reporting data. Scale up for most applications. Scale out when scaling up does not suffice or is cost-prohibitive. Schema CheckDescription Devote the appropriate resources to schema design. Separate online analytical processing (OLAP) and online transaction processing (OLTP) wor
连接字串中Database Mirroring的Failover Partner设置的说明
http://blogs.msdn.com/b/apgcdsd/archive/2011/05/13/database-mirroring-failover-partner.aspx[@more@]
分布式死锁的一个例子
http://blogs.msdn.com/b/apgcdsd/archive/2011/12/01/10243233.aspx[@more@]
简介数据库日志文件的增长
http://blogs.msdn.com/b/apgcdsd/archive/2011/12/30/10251946.aspx[@more@]
有关SQL server connection KeepAlive 的FAQ
http://blogs.msdn.com/b/apgcdsd/archive/2011/05/03/sql-server-connection-keepalive-faq.aspx[@more@]有关SQL server connection KeepAlive 的FAQ