﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-［裸睡无罪］&lt;bgsound src="com/bbs/UploadFile/music/where.mp3" loop="1"&gt;-随笔分类-SYBASE</title><link>http://www.cnitblog.com/shuixing143/category/8508.html</link><description>&lt;FONT color=cccc66&gt;&lt;EM&gt;&lt;STRONG&gt;个人平台&lt;/STRONG&gt;&lt;/EM&gt;</description><language>zh-cn</language><lastBuildDate>Wed, 28 Sep 2011 12:59:13 GMT</lastBuildDate><pubDate>Wed, 28 Sep 2011 12:59:13 GMT</pubDate><ttl>60</ttl><item><title>转贴：master数据库状态被置为-32768后的处理方法</title><link>http://www.cnitblog.com/shuixing143/archive/2009/11/05/62423.html</link><dc:creator>代廷辉</dc:creator><author>代廷辉</author><pubDate>Thu, 05 Nov 2009 01:31:00 GMT</pubDate><guid>http://www.cnitblog.com/shuixing143/archive/2009/11/05/62423.html</guid><wfw:comment>http://www.cnitblog.com/shuixing143/comments/62423.html</wfw:comment><comments>http://www.cnitblog.com/shuixing143/archive/2009/11/05/62423.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/shuixing143/comments/commentRss/62423.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/shuixing143/services/trackbacks/62423.html</trackback:ping><description><![CDATA[<div class=t_msgfontfix>本贴摘至<a href="http://www.sybasecn.com=============================================================================/">http://www.sybasecn.com<br><br>=============================================================================</a>
<table style="WIDTH: 700px; HEIGHT: 595px" cellSpacing=0 cellPadding=0>
    <tbody>
        <tr>
            <td class=t_msgfont id=postmessage_19742>
            <p>master数据库状态有时候在不经意之间被修改为-32768，并重新启动了数据库。如果没有重新启动数据库，我们当然可以用命令重新修改回来。重新启动之后，master库就进入了bypass模式，这样从系统功能方面已经无法对master数据库进行增删改操作，也就无法让master库恢复正常。<br><br>解决方法：</p>
            <p>1、确定你的数据库版本<br><br>2、确定你的数据库页的大小<br><br>3、下载16进制编辑工具（ultraedit,winhex)<br><br>4、备份好目前的master设备，如果是裸设备，可以使用dd命令导出变成文件形式。<br><br>5、用16进制工具打开，本人使用ultraedit。<br><br>6、接下来使用笨办法，也就是搜索ascii码&#8221;master&#8221;，根据经验判断在这个master附近出现model，tempdb，sybsystemprocs值的，基本上可以判定这个就是sysdatabases中的master记录信息。<br><br>7、接下来我们从master这个位置开始，往前找，在第31字节处，我们可以发现其中有80 01 16进制值。<br><br>8、找到这个值之后，在此修改，将80 01修改为00 00<br><br>9、保存<br><br>10、替换原来的master设备，并启动数据库，ok，你的master库已经不再是bypass了。<br><br>是挺简单的吧<br><br>FROM:<a href="http://www.sybedit.com/?p=58" target=_blank><u><font color=#0000ff>http://www.sybedit.com/?p=58</font></u></a><br></p>
            </td>
        </tr>
    </tbody>
</table>
<br></div><img src ="http://www.cnitblog.com/shuixing143/aggbug/62423.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/shuixing143/" target="_blank">代廷辉</a> 2009-11-05 09:31 <a href="http://www.cnitblog.com/shuixing143/archive/2009/11/05/62423.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>