技术开发 频道

如何解决数据库状态 not recovered, offline

    【IT168 SYBASE管理】我的数据库状态是not recovered, offline,
    状态可疑,无法打开。怎么处理???
    Procedure 'sp_helpdb', Line 589:
    Database 'adsl' cannot be opened. An earlier attempt at recovery marked it
    'suspect'. Check the SQL Server errorlog for information as to the cause.
   
   
    另外从日记上摘录的:
   
    00:00000:00001:2006/01/20 08:47:42.42 server Uninitialized logical page '1975264' was read while accessing object '8' in database '5'. Please contact Sybase Technical Support.
   
    这次够呛,ADSL恢复不了拉!
    

    --------------------------------------------------------------------------------
    作者:raddisonlee    时间:06-01-20 12:33
   
    1> select dbid, name, status from sysdatabases
    2> go
    dbid name status
    ------ ------------------------------ ------
    5 adsl 320
   
   
    状态320,请知情人士出手!!!
   
   
    --------------------------------------------------------------------------------
    作者:raddisonlee    时间:06-01-20 17:24
   
    另外,象图中的那些工具我怎么样才能使用啊,它说要检查JAVA环境???
   
   
    --------------------------------------------------------------------------------
    作者:prowess    时间:06-01-23 10:42
   
    ê1ó?ò???2??è?′ê?·??éò?:
    1. sp_configure "allow updates",1
    2. update sysdatabases set status = -32768 where name = 'adsl'
    3.reboot the server
    4.use adsl
    5.select count(*) from syslogs
    6.dump tran with no_log
    7.dump tran with no_log
    8.select count(*) from syslogs
    9.update sysdatabases set status = 0 where name = 'adsl'
    10.sp_configure "allow updates", 0
    11.reboot the server
   
   
    --------------------------------------------------------------------------------
    作者:prowess    时间:06-01-23 10:46
   
    或者可以这样(推荐)
    1. sp_configure "allow updates",1
    2. update sysdatabases set status = -32768 where name = 'adsl'
    3.reboot the server
    4.use adsl
    5. dbcc traceon(3604)
    6.use adsl
    7.dbcc tablealloc(syslogs,full,fix)
    8.dbcc rebuild_log('adsl',1,1)
    9.update sysdatabases set status = 0 where name = 'adsl'
    10.sp_configure "allow updates", 0
    11.reboot the server
    如果使用这个方法不行,则使用上一方法
   
   
    --------------------------------------------------------------------------------
    作者:prowess    时间:06-01-23 10:53
   
    关于java的问题:
    设置环境变量(不同版本的ASE和jdk稍微不同):
    CLASSPATH =c:\sybase\ASEP\3pclass.zip;c:\sybase\ASEP\monclass.zip; c:\jdk1.1.8\lib\classes.zip;
    PATH = %PATH%;c:\jdk1.1.8;c:\jdk1.1.8\bin;
    JAVA_HOME = C:\jdk1.1.8; c:\sybase\Sybase Central 3.2\win32
   
    可能出现的问题:
   
    1) ASE12.0
   
    点击MonitorServer的相关条目查看只有窗口没有图形数据,在MonitorServer窗口底部可看到处于‘init’状态
   
    解决方法:查看CLIENT端$SYBASE/SYSDLL/WindowsNT/WinNT/system32下有没有libunic.dll、mchelp.dll、mclib.dll,如果没有,则需要从ASE SERVER FOR NT的对应目录下拷贝过来;如果该目录下有这三个文件现象仍出现,将这三个文件拷贝至%systemroot%system32目录下。
   
    2) ASE12.5
   
    点击MonitorServer的相关条目查看只有窗口没有图形数据,在MonitorServer窗口底部可看到处于‘init’状态,解决方法同上。
   
    点击MonitorServer的相关条目查看到的文字都是小方格。这是中文引起的问题,解决方法:将CLIENT端 $SYBASE/shared-1_0/jre1.2.2/lib的font.properties.zh.NT4.0改为font.properties.zh.NT5.0
   
   
    --------------------------------------------------------------------------------
   
    所有时间均为 . 现在时间是 01:58.
   
    Powered by: vBulletin Version 2.0.1
    Translated and hacked by:Ztbbs.
    Copyright ? Jelsoft Enterprises Limited 2000, 2001.
    Copyright by itpub.net
0
相关文章