免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234下一页
最近访问板块 发新帖
查看: 10902 | 回复: 36
打印 上一主题 下一主题

误删除日志文件的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-17 15:44 |只看该作者 |倒序浏览
sybase数据库中的帐套正在运行,但是我误删除了日志文件,现在该帐套正常运行,但是不能进行数据备份,我该如何解决?会不会还带来其他的问题?多谢!!急!!!

[ 本帖最后由 wf8801 于 2006-2-17 16:00 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-02-17 15:45 |只看该作者
什么日志文件,是错误日志还是数据库日志

论坛徽章:
0
3 [报告]
发表于 2006-02-17 15:49 |只看该作者
log.dat,是数据库日志,有办法解决问题吗?

论坛徽章:
4
2015年亚洲杯之阿联酋
日期:2015-03-10 10:32:022015年亚洲杯之阿曼
日期:2015-03-10 14:53:222015亚冠之水原三星
日期:2015-07-18 15:40:262015亚冠之塔什干棉农
日期:2015-07-27 20:52:05
4 [报告]
发表于 2006-02-17 16:08 |只看该作者
sp_helpdb xxx
go
select @@version
go

论坛徽章:
0
5 [报告]
发表于 2006-02-17 16:11 |只看该作者
1> sp_helpdb cwbase3
2> go
name                     db_size       owner                    dbid  
         created      
         status                                                                                                
------------------------ ------------- ------------------------ ------
         --------------
         ------------------------------------------------------------------------------------------------------
cwbase3                     34000.0 MB sa                            7
         Nov 30, 2005  
         select into/bulkcopy/pllsort, trunc log on chkpt                                                      

(1 row affected)
device_fragments               size          usage               
         created             free kbytes                    
------------------------------ ------------- --------------------
         ------------------- ------------------------------
cwdata3                        15000.0 MB    data only           
         Nov 30 2005 11:30AM          5419312               
cwdata3                        3000.0 MB     log only            
         Nov 30 2005 11:30AM not applicable                 
cwlog3                         6000.0 MB     log only            
         Nov 30 2005 11:30AM not applicable                 
cwlog3a1                       2000.0 MB     log only            
         Nov 30 2005 11:30AM not applicable                 
cwlog3a2                       8000.0 MB     log only            
         Feb 17 2006  3:21PM not applicable                 
                                                               
--------------------------------------------------------------
log only free kbytes = 19379996                                
(return status = 0)
1> select @@version
2> go
                                                                                                                                                                                                                                                                 
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Adaptive Server Enterprise/12.5.0.3/EBF 11442 ESD#4/P/Sun_svr4/OS 5.8/rel12503/1
         939/64-bit/FBO/Sun Sep 21 05:21:37 2003                                                                                                                                         

(1 row affected)

论坛徽章:
4
2015年亚洲杯之阿联酋
日期:2015-03-10 10:32:022015年亚洲杯之阿曼
日期:2015-03-10 14:53:222015亚冠之水原三星
日期:2015-07-18 15:40:262015亚冠之塔什干棉农
日期:2015-07-27 20:52:05
6 [报告]
发表于 2006-02-17 16:25 |只看该作者
sp_helpdevice  cwlog3
go
sp_helpdevice cwlog3a1
go
sp_helpdevice cwlog3a1
go
you have to point out which device file you deleted.
btw:you should stop all transactions dependent on the database at once.

[ 本帖最后由 1017of 于 2006-2-17 16:27 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2006-02-17 16:32 |只看该作者
cwlog3 is deleted!

论坛徽章:
4
2015年亚洲杯之阿联酋
日期:2015-03-10 10:32:022015年亚洲杯之阿曼
日期:2015-03-10 14:53:222015亚冠之水原三星
日期:2015-07-18 15:40:262015亚冠之塔什干棉农
日期:2015-07-27 20:52:05
8 [报告]
发表于 2006-02-17 17:02 |只看该作者
sp_helpdevice  cwlog3
go
sp_helpdevice cwlog3a1
go
sp_helpdevice cwlog3a1
go
select * from sysuages where id=db_id("cwbase3")
go

论坛徽章:
0
9 [报告]
发表于 2006-02-17 17:16 |只看该作者
sysuages not found.其中,cwlog3a2是我在删除了cwlog3.dat后,新建立的。
1> sp_helpdevice cwlog3
2> go
device_name                    physical_name                                 
         description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
         status cntrltype device_number
         low                                                                             
         high                                                                             
------------------------------ ----------------------------------------------
         --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         ------ --------- -------------
         --------------------------------------------------------------------------------
         --------------------------------------------------------------------------------
cwlog3                         /data/cwdata/cwlog3.dat                       
         special, dsync off, physical disk, 6000.00 MB                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
              2         0             9
                                                                                150994944
                                                                                154066943

(1 row affected)
(return status = 0)
1> sp_helpdevice cwlog3a1
2> go
device_name                    physical_name                                 
         description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
         status cntrltype device_number
         low                                                                             
         high                                                                             
------------------------------ ----------------------------------------------
         --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         ------ --------- -------------
         --------------------------------------------------------------------------------
         --------------------------------------------------------------------------------
cwlog3a1                       /data/cwdata/cwlog3a1.dat                     
         special, dsync off, physical disk, 2000.00 MB                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
              2         0            12
                                                                                201326592
                                                                                202350591

(1 row affected)
(return status = 0)
1> sp_helpdevice cwlog3a2
2> go
device_name                    physical_name                                 
         description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
         status cntrltype device_number
         low                                                                             
         high                                                                             
------------------------------ ----------------------------------------------
         --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
         ------ --------- -------------
         --------------------------------------------------------------------------------
         --------------------------------------------------------------------------------
cwlog3a2                       /data/cwdata/cwlog3a2.dat                     
         special, dsync off, physical disk, 8000.00 MB                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
              2         0             6
                                                                                100663296
                                                                                104759295

(1 row affected)
(return status = 0)
1> select * from sysuages where id=cwbase3
2> go
Msg 208, Level 16, State 1:
Server 'sybase1', Line 1:
sysuages not found. Specify owner.objectname or use sp_help to check whether the
object exists (sp_help may produce lots of output).

[ 本帖最后由 wf8801 于 2006-2-17 17:18 编辑 ]

论坛徽章:
4
2015年亚洲杯之阿联酋
日期:2015-03-10 10:32:022015年亚洲杯之阿曼
日期:2015-03-10 14:53:222015亚冠之水原三星
日期:2015-07-18 15:40:262015亚冠之塔什干棉农
日期:2015-07-27 20:52:05
10 [报告]
发表于 2006-02-17 17:19 |只看该作者
select * from master..sysuages where id=db_id("cwbase3")
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP