Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 12.04.2006, 04:05   #1
erloko
Архивный участник
 
Join Date: Jul 2005
Posts: 42
Default [HELP] Lin2world (SUSPECT)

Hi ppl i have a problem here.

the server falls every 2 hours with errors of data base and now the server crach and my db is marking like suspect, is some form to solve this problem. :cry:

CacheD Error

Error 08S01:[Microsoft][ODBC SQL Server Driver]Error en el vínculo de comunicación

than for you time ppl.
erloko is offline  
Old 12.04.2006, 06:13   #2
Sire
Архивный участник
 
Join Date: Feb 2006
Posts: 87
Default

There is a post on the microsoft knowledge base about this. There might be a fix for it. I hope you have a backup handy, it's the quickest and most painless way to fix this issue.
Sire is offline  
Old 12.04.2006, 12:57   #3
hr
Архивный участник
 
Join Date: Jun 2005
Posts: 285
Default

use backup or (in QA)
(1)
Code:
Use master 
go 
sp_configure 'allow updates', 1 
reconfigure with override 
go
(2) get and write somewhere status of your db:
Code:
select status from sysdatabases where name = 'lin2world'
(3)
Code:
update sysdatabases set status=-32768 where name = 'lin2world'
(4) restart SQL server

(5) ONLY if lin2world's status doesn't change to Emergency, than detach it, backup ldf and mdf files, make new db with the same name, stop sql server, replace newly created .mdf with old one from that backup, start sql server and begin from (1)

(6) if you changed mdf in (5) than:
Code:
 DBCC REBUILD_LOG('lin2world', '<new transaction log file with full path>')
You'll get: Warning: The log for database 'lin2world' has been rebuilt.
(7)
Code:
Use master 
go 
sp_dboption 'lin2world', 'single_user', 'true' 
go 
USE lin2world 
GO 
DBCC CHECKDB('lin2world', REPAIR_ALLOW_DATA_LOSS) 
go
( 8 )
Code:
sp_dboption 'lin2world', 'single_user', 'false' 
go 
Use master 
go 
sp_configure 'allow updates', 0 
go
hr is offline  
Old 12.04.2006, 18:33   #4
CubAfull
Архивный участник
 
Join Date: Aug 2005
Posts: 119
Default

*sorry*
CubAfull is offline  
Old 12.04.2006, 18:35   #5
erloko
Архивный участник
 
Join Date: Jul 2005
Posts: 42
Default

Thank you very much for try to help me. this data base is very damaged reason why I have decided to do rollback. The problem is the following one.

this is the third occasion that happens the problem in the course of 1 week. the data base that I have (Backup) seems that is also damaged, why I say this, my data base have been checked by these routines and does not show any error to me, but, in the course of 2 days the same problem happens, cached begins to throw errors since it is not possible to be connected with the server and there the data base is again in mode (suspect).

There is some routine for SQL that allows me to identify where is the error in the data base that I have (Backup) ?

Here are the routines that I have parsing to verify if the db have errors.

Quote:
USE lin2world
GO
DBCC CHECKDB
GO
Quote:
-- REPAIR_FAST/REPAIR_REBUILD/REPAIR_ALLOW_DATA_LOSS
USE lin2world
GO

ALTER DATABASE lin2world SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO

DBCC CHECKDB('lin2world', REPAIR_ALLOW_DATA_LOSS)
go

ALTER DATABASE lin2world SET MULTI_USER
GO
thank ppl for your help.
erloko is offline  
Old 14.04.2006, 00:02   #6
erloko
Архивный участник
 
Join Date: Jul 2005
Posts: 42
Default

Somebody that can help me. please
erloko is offline  
Old 14.04.2006, 17:19   #7
hr
Архивный участник
 
Join Date: Jun 2005
Posts: 285
Default

just only "DBCC CHECKDB" to check your db. if your db offen fails to suspect try to rebuild its log (see above) and move data and transaction logs to another (physical) disk

if you want to check backup - restore from it to _another_ db and check it for errors
hr is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:21.