sybase数据库offline修改
(2009-01-14 11:33:37)
标签:
sybase数据库杂谈 |
分类: 数据库 |
isql连接数据库时,
1> use hkschdb
2> go
出现提示sybase Database 'hkschdb' is currently offline.
解决办法:
isql连接数据库,以sa用户登陆.
1>sp_configure "allow updates",
1
2>go
1>reconfigure with
override
2>go
1>use master
2>go
1>update
master..sysdatabases
2>set status=-32768
3>where name='hkschdb'
4>go
1>shutdown with nowait 2>go
重新启动后,isql连接数据库,以sa用户登录。
1>use master
2>go
1>update master..sysdatabases
2>set status=0
3>where name='hkschdb'
4>go
1>online database hkschdb
2>go
1>sp_configure "allow updates", 1
2>go
1>reconfigure with override
2>go