亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区
Chinaunix
標題:
請教:數(shù)據(jù)庫的狀態(tài)各表示什么意思?
[打印本頁]
作者:
trytodoit
時間:
2007-06-19 08:48
標題:
請教:數(shù)據(jù)庫的狀態(tài)各表示什么意思?
用select * from sysdatabases 看見有一列為staut,也曾看見以前文章介紹用改更此值可以解決一些問題(比如:狀態(tài)可疑),請問當為0 ,12, -32768 等值時分別表示什么意義?
作者:
chuxu
時間:
2007-06-19 17:14
十進制十六進制狀態(tài)
1 0x01 在此數(shù)據(jù)庫上啟動了升級
2 0x02 升級已成功
4 0x04 · select into/bulkcopy· 可由用戶設(shè)置
8 0x08 · trunc log on chkpt· 可由用戶設(shè)置
16 0x10 · no chkpt on recovery· 可由用戶設(shè)置
32 0x20 用 for load 選項創(chuàng)建數(shù)據(jù)庫(否則在裝載數(shù)據(jù)庫時崩潰),用于指示不進行恢復(fù)
64 0x04 為要恢復(fù)的所有數(shù)據(jù)庫啟動恢復(fù)
256 0x100 · 可疑數(shù)據(jù)庫· 未恢復(fù)· 無法打開或使用· 只能用 dbcc dbrepair 刪除
512 0x200 · ddl in tran· 可由用戶設(shè)置
1024 0x400 · read only· 可由用戶設(shè)置
2048 0x800 · dbo use only· 可由用戶設(shè)置
4096 0x1000 · single user· 可由用戶設(shè)置
8192 0x2000 · allow nulls by default· 可由用戶設(shè)置
作者:
black_chr
時間:
2007-06-20 08:46
好貼。收藏一下。順便再問一下,如果出現(xiàn)狀態(tài)是320的情況下,該如何處理呢?
作者:
trytodoit
時間:
2007-06-21 09:06
謝謝版主的指點,那-32768 (十六進制的8000)又代表什么意思呢?
作者:
小無賴
時間:
2007-06-26 11:43
我遇到320的時候都是把satats設(shè)為-32768啟動數(shù)據(jù)庫后用dump tran ... with no_log清一遍日志,然后把stats改為0重啟數(shù)據(jù)庫,重設(shè)數(shù)據(jù)庫選項后做個全庫的DBCC,看看有沒有表壞了.
作者:
小無賴
時間:
2007-06-26 11:45
原帖由
trytodoit
于 2007-6-21 09:06 發(fā)表
謝謝版主的指點,那-32768 (十六進制的8000)又代表什么意思呢?
-32768表示不在啟動時恢復(fù)此數(shù)據(jù)庫.
作者:
Sybase技術(shù)專家
時間:
2007-06-27 16:25
狀態(tài)320表示:
320= 256 + 64
256和64的解釋:
64 0x04 為要恢復(fù)的所有數(shù)據(jù)庫啟動恢復(fù)
256 0x100 · 可疑數(shù)據(jù)庫· 未恢復(fù)· 無法打開或使用· 只能用 dbcc dbrepair 刪除
作者:
beginner-bj
時間:
2007-06-27 23:01
Table 12-5 lists the bit representations for the status column.
Table 12-5: status control bits in the sysdatabases table Decimal
Hex
Status
4
0x04
select into/bulkcopy
Can be set by user
8
0x08
trunc log on chkpt
Can be set by user
16
0x10
no chkpt on recovery
Can be set by user
32
0x20
Database created with for load option, or crashed while loading database, instructs recovery not to proceed
256
0x100
Database suspect
Not recovered
Cannot be opened or used
Can be dropped only with dbcc dbrepair
512
0x200
ddl in tran
Can be set by user
1024
0x400
read only
Can be set by user
2048
0x800
dbo use only
Can be set by user
4096
0x1000
single user
Can be set by user
8192
0x2000
allow nulls by default
Can be set by user
Table 12-6 lists the bit representations for the status2 column.
Table 12-6: status2 control bits in the sysdatabases table Decimal
Hex
Status
1
0x0001
abort tran on log full; can be set by user
2
0x0002
no free space acctg; can be set by user
4
0x0004
auto identity; can be set by user
8
0x0008
identity in nonunique index; can be set by user
16
0x0010
Database is offline
32
0x0020
Database is offline until recovery completes
64
0x0040
Internal use – Database is being recovered
128
0x0080
Database has suspect pages
256†
0x0100
Table structure written to disk
512
0x0200
Database is in the process of being upgraded
1024
0x0400
Database brought online for standby access
-32768
0xFFFF8000
Database has some portion of the log which is not on a log-only device
作者:
Linuxcn.com
時間:
2007-06-28 10:40
收場了
歡迎光臨 Chinaunix (http://72891.cn/)
Powered by Discuz! X3.2