垃圾Sybase 活该倒闭
时间:2009-11-24
来源:互联网
作者: Hangxiao 发布时间: 2009-11-24
作者: jarjar 发布时间: 2009-11-25
新客户选Sybase的可能比较少,但存在的客户是好资源喽
作者: luckyrandom 发布时间: 2009-11-25
作者: 5个周 发布时间: 2009-11-25
好在不是所有的IT人都象你这么浮躁,否则IT真的就是夕阳产业了
看LZ的注册时间也是个老人了,说话实在是太浮躁。
作者: jarjar 发布时间: 2009-11-25
作者: qzwsf 发布时间: 2009-11-26
dbcc monitor的用法竟然连标准文档也不提供。你还指望卖给谁?以后升级时候都改到Oracle 上。看你还祸害谁?
可惜你说得不算~
作者: zq5143 发布时间: 2009-11-30
现在好多公司都开始用Sybase的数据库了,比如中国移动,人家Sybase便宜,而且跨平台,短期不会倒闭的,呵呵
作者: shenfeifei 发布时间: 2009-12-11
作者: nirvanv 发布时间: 2009-12-15
兄弟,不要这么说哦,可以去官方网站http://infocenter.sybase.com/help/index.jsp上找找有没英文的文档。
现在好多公司都开始用Sybase的数据库了,比如中国移动,人家Sybase便宜,而且跨平台,短期不会倒闭的,呵呵
中国移动因为平台比较大 各个省公司用的产品也不一样的,就是同一个省 不同业务也许用的也不一样
作者: harryhan1983 发布时间: 2009-12-25
作者: Hangxiao 发布时间: 2010-01-21
dbcc monitor ( task, group, option )
Allows a more detailed monitoring of the SQL Server. [Hint: Run dbcctraceon(8399) first, to enable descriptive names for groups.]
Task
"clear" clear earlier gathered statistics
"sample" gather fresh statistics
"select" enable statistics to be displayed
group "all" all groups' statistics are gathered/displayed
group_name name of the group for which statistics are to be gathered/displayed
option
"on" enable monitoring
"off" discontinue monitoring
dbcc traceon( tracenum [, tracenum ] ... )
Turn on specified trace flags.
tracenum number of the trace flag to turn on
Trace Flags
NumberDescription
200 "Before" image of query tree
201 "After" image of query tree
260 To prevent "done_in_proc" messages
302 Information in index selection
310 Information in join selection
317 Complete information in join selection (voluminous)
320 Turn off join order heuristic
1204 Print out deadlock chains and victim
1205 Print out stack traces of deadlocked pids. Use in conjuction with
1204
2512 Bypass syslogs when doing checkalloc
1603 Use only standard unix calls for disk I/O
1610 Disable packet batching
3300 Display each log record as it is processed by recovery (voluminous)
3402 Do a alloc upgrade during loaddb recovery
3604 Send dbcc output to screen
3605 Send dbcc output to errorlog
3607 Do not recover any database, clear tempdb, or startup checkpoint
3608 Recover master only. Do not clear tempdb, or startup checkpoint
3609 Recover all databases. Do not clear tempdb, or startup checkpoint
3620 Do not kill infected processes
3701 Allows dropping and creating of system indexes (DANGEROUS!)
4000 Crash server at next loop for recovery testing
4012 Boot without starting up checkpoint process
4013 Place a record into errorlog each time someone logs in to the server
5101 Engine 0 will perform all disk and network I/O.
5102 Prevents engine 0 from running any non-affinitied tasks
8399 Enable descriptive names for groups (dbcc monitor)
A sample to use DBCC Monitor
use master
go
dbcc traceon(3604)
dbcc monitor ("clear", "all", "on")
waitfor delay "00:01:00"
dbcc monitor ("sample", "all", "on")
dbcc monitor ("select", "all", "on")
dbcc traceon(8399)
//so the monitor data is populated in the master.sysmonitors tables.
select field_name, group_name, value
from sysmonitors
dbcc traceoff(8399)
go
dbcc traceoff(3604)
go
作者: Hangxiao 发布时间: 2010-01-21
A Sample To Watch How The Data Value Is Changed
/*Scenario 1 common usage in Sybase Agent*/
dbcc monitor("sample","all","on")
dbcc monitor("select","all","on")
dbcc monitor("clear","all","on")
dbcc traceon(8399)
/*wait for interval*/
select GROUPNAME = group_name,
FLDNAME = field_name,
FLDVALUE = value
from master..sysmonitors
/*clear the value for next time*/
dbcc monitor("clear","all","on");
/*****************************************************************************/
/*Scenario 2 for manually watching the metric change */
dbcc monitor("clear", "all", "on")
[wait]
dbcc monitor("sample", "all", "on")
dbcc monitor("select", "all", "on")
dbcc traceon(8399) -- to populate sysmonitors with the monitor counters, may not be needed in most recent versions
select * from sysmonitors
dbcc traceoff(8399)
/*Scenario 2 repeat the following the number in buffer_0 will be changed */
select GROUPNAME = group_name,
FLDNAME = field_name,
FLDVALUE = value
from master..sysmonitors
where group_name = 'buffer_0'
order by 1, 3 desc, 2
dbcc monitor("sample","all","off")
dbcc monitor("select","all","off")
dbcc monitor("clear","all","off")
/*Scenario 2 the following statement returns nothing, since it has been turned off*/
select GROUPNAME = group_name,
FLDNAME = field_name,
FLDVALUE = value
from master..sysmonitors
where group_name = 'buffer_0'
order by 1, 3 desc, 2
select count(*) from sysmonitors
No data return
dbcc monitor("sample","all","on")
No data return
dbcc monitor("select","all","on")
The data return
dbcc monitor("clear","all","on")
The data is return
dbcc monitor("select","all","off")
No data return
Use the following you get an clear result
dbcc monitor("sample","all","on")
dbcc monitor("select","all","on")
dbcc monitor("clear","all","on")
select GROUPNAME = group_name,
FLDNAME = field_name,
FLDVALUE = value
from master..sysmonitors holdlock
where group_name = 'buffer_0'
order by 1, 3 desc, 2
Use the following, you get an un-clear result.
dbcc monitor("sample","all","on")
dbcc monitor("select","all","on")
//dbcc monitor("clear","all","on")
select GROUPNAME = group_name,
FLDNAME = field_name,
FLDVALUE = value
from master..sysmonitors holdlock
where group_name = 'buffer_0'
order by 1, 3 desc, 2
When there is a dbcc monitor("clear","all","on") statement, the counter number is clear.
and this will affect the number in sysmonitors.
作者: Hangxiao 发布时间: 2010-01-21
作者: 〇〇 发布时间: 2010-01-21
http://www.google.com/finance?ch ... =NYSE:SY&ntsp=0
作者: donethat_cu 发布时间: 2010-02-16
作者: hjb719 发布时间: 2010-03-18
作者: 5个周 发布时间: 2010-03-19
作者: andkylee 发布时间: 2010-03-19
作者: zxp209 发布时间: 2010-03-19
别啊,刚接触sybase,还不太深入,别打击新手信心啊!
不是打击,是事实。看你自己的抵抗力和毅力了~
作者: andkylee 发布时间: 2010-03-19
作者: linxun2004 发布时间: 2010-09-21
作者: Williamzhao1979 发布时间: 2010-09-21
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28