默之海 发表于 2007-6-1 19:23:41

紧急求救

求教各位大侠,我单位用2003系统使用12.5版本的sybase数据库,今天数据库崩溃,因为有数据没能及时备份,我重装数据库后,新建了和原数据库相同的设备,并用原数据设备覆盖了新建设备。但数据库不能联接。请教各位会是什么问题?(原11.9版本我曾用相同方法可以正常使用)<br/><br/>

小艾 发表于 2007-6-11 17:30:35

<p>数据设备没问题的话应该是日志设置被挂起了,你可以参考一下这个,我用过管用,呵呵,不知道你行不行</p><p></p><p>&nbsp; use &nbsp; master &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; select &nbsp; dbid &nbsp; <br/>&nbsp; from &nbsp; sysdatabases &nbsp; <br/>&nbsp; where &nbsp; name &nbsp; = &nbsp; "test" &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; select &nbsp; * &nbsp; from &nbsp; sysdatabases &nbsp; <br/>&nbsp; where &nbsp; dbid &nbsp; = &nbsp; 7 &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; sp_configure &nbsp; "allow &nbsp; update", &nbsp; 1 &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; update &nbsp; sysdatabases &nbsp; <br/>&nbsp; set &nbsp; status &nbsp; = &nbsp; -32768 &nbsp; <br/>&nbsp; where &nbsp; dbid &nbsp; = &nbsp; 7 &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; reboot &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; sp_role &nbsp; "grant", &nbsp; "sybase_ts_role", &nbsp; sa &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; dbcc &nbsp; rebuild_log(test, &nbsp; 0, &nbsp; 0) &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; dbcc &nbsp; rebuild_log(test, &nbsp; 1, &nbsp; 1) &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; update &nbsp; sysdatabases &nbsp; <br/>&nbsp; set &nbsp; status &nbsp; = &nbsp; 0 &nbsp; <br/>&nbsp; where &nbsp; dbid &nbsp; = &nbsp; 7 &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; sp_configure &nbsp; "allow &nbsp; update", &nbsp; 0 &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; reboot &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; select &nbsp; * &nbsp; from &nbsp; spt_values &nbsp; <br/>&nbsp; order &nbsp; by &nbsp; type, &nbsp; number &nbsp; <br/>&nbsp; where &nbsp; type &nbsp; = &nbsp; 'Q' &nbsp; <br/>&nbsp; where &nbsp; type &nbsp; = &nbsp; 'D' &nbsp; <br/>&nbsp; where &nbsp; number &nbsp; = &nbsp; -1 &nbsp; <br/>&nbsp; &nbsp; <br/>&nbsp; dump &nbsp; transaction &nbsp; test &nbsp; with &nbsp; truncate_only</p><p></p><p></p>

ehxz 发表于 2007-6-11 17:45:53

<p>换硬件吧~~这样不是解决问题的办法</p>
页: [1]
查看完整版本: 紧急求救

免责声明:
本站所发布的一切破解补丁、注册机和注册信息及软件的解密分析文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:Admin@SybaseBbs.com