Имя: Пароль:
1C
1C 7.7
v7: MS SQL 2005 NameBase(suspect) HELP!
0 Trotter
 
07.07.14
15:36
Вырубили свет и вуаля.
Could not redo log record (10334:8451:96), for transaction ID (0:5205140), on page (3:98433), database 'NameBase' (database ID 11). Page: LSN = (10334:8077:395), type = 1. Log: OpCode = 4, context 2, PrevPageLSN: (10334:8317:36). Restore from a backup of the database, or repair the database.

During upgrade, database raised exception 926, severity 14, state 3, address 0156C33B. Use the exception number to determine the cause.

During redoing of a logged operation in database 'NameBase', an error occurred at log record ID (10334:8451:96). Typically, the specific failure is previously logged as an error in the Windows Event Log service. Restore the database from a full backup, or repair the database.

Собственно вопрос как сделать "or repair the database" ?)
Бэкапы есть, но бухи уже кучу наработали...
1 МихаилМ
 
07.07.14
15:39
dbcc checkdb
2 Trotter
 
07.07.14
15:39
и ещё постоянно пишет NameBase(in Recovery)
3 Trotter
 
07.07.14
15:39
(1) а поподробнее ?
4 Trotter
 
07.07.14
15:39
где этот запрос прописать ?
5 МихаилМ
 
07.07.14
15:40
6 DeiMos
 
07.07.14
15:45
Откуда в наименовании темы появилось слово suspect?
Если таки действительно суспект - то детач-аттач поможет.
7 Господин ПЖ
 
07.07.14
15:46
>Бэкапы есть, но бухи уже кучу наработали...

и эти люди говорят "зачем фул"
8 Trotter
 
07.07.14
15:50
(7) В смысле ?
(5) Чёта смотрю в книгу и вижу фигу )
В свойства базы зайти не даёт.
(6) А как это делается в 2005 том ?
9 Ёпрст
 
07.07.14
15:52
(8) мышой в менеджмент студио..
10 Trotter
 
07.07.14
15:57
(9) а где именно ? чёт найти не как не могу
11 Ёпрст
 
07.07.14
15:58
пкм на базе - задачи - отсоединить (дезатач)
12 Ёпрст
 
07.07.14
16:02
а так,
http://infostart.ru/public/59520/

ну и в FAQ на sql.ru есть решения, если че.
13 Trotter
 
07.07.14
16:09
(12) Отсоединил, теперь не присоединить не как )
А по поводу куда писать эти запросы, в статье то не указано (
14 Trotter
 
07.07.14
16:10
точнее присоединяется, но как то долго...
А куда запросы то писать ?
15 Trotter
 
07.07.14
16:12
Вот дождался
An error occurred when attaching the database(s).  Click the hyperlink in the Message column for details.
16 Trotter
 
07.07.14
16:13
по ссылке
Could not redo log record (10334:8451:96), for transaction ID (0:5205140), on page (3:98433), database 'BuhORS' (database ID 11). Page: LSN = (10334:8077:395), type = 1. Log: OpCode = 4, context 2, PrevPageLSN: (10334:8317:36). Restore from a backup of the database, or repair the database.
During redoing of a logged operation in database 'BuhORS', an error occurred at log record ID (10334:8451:96). Typically, the specific failure is previously logged as an error in the Windows Event Log service. Restore the database from a full backup, or repair the database.
Could not open new database 'BuhORS'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 3456)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=3456&LinkId=20476
17 ОчкарикСлава
 
07.07.14
16:14
(14) запросы писать в иконку "database engine query" что в ентерпрайз менеджер
18 Trotter
 
07.07.14
16:16
(17) Базу отсоединил, теперь подсоединить не как не получается ( Запросы пока, что не получится написать.
19 ОчкарикСлава
 
07.07.14
16:19
20 Trotter
 
07.07.14
16:25
(19) Ок, гляньте пожалуйста (15)и продолжение (16)
21 ОчкарикСлава
 
07.07.14
16:29
(20) не приаттачилась?
22 Trotter
 
07.07.14
16:29
(21) нет
23 Сергиус
 
07.07.14
16:31
(16) по ходу лог полетел..
24 МихаилМ
 
07.07.14
16:31
загрузите без файла транзакций.
25 Trotter
 
07.07.14
16:34
(23) Похоже что да
(24) Это как ? пробовал лог убрать, в общем без лога не хочет атачится )
26 Сергиус
 
07.07.14
16:44
(25)Тогда остается:

1. Создаем новую базу с таким же именем и такими же по именам и расположению .mdf и .ldf файлами

2. Останавливаем сервер, подменяем файл .mdf

3. Стартуем сервер, не обращаем внимания на статус базы

4. Из QA выполняем скрипт

Use master
go
sp_configure 'allow updates', 1
reconfigure with override
go

alter database <db_name> set EMERGENCY, SINGLE_USER

dbcc checkdb('<db_name>', REPAIR_ALLOW_DATA_LOSS )

alter database <db_name> set ONLINE, MULTI_USER

10. Если все в порядке, то

Use master
go
sp_configure 'allow updates', 0
go
27 Сергиус
 
07.07.14
16:45
+(26) мне пару раз помогало..
28 Сергиус
 
07.07.14
16:46
+(27) Но при этом, все что было в старом логе, будет потеряно..так что проще восстановить бэкап)
29 Trotter
 
07.07.14
17:16
Пробую скритик:
DBCC CHECKDB
[
    [ ( BuhORS
        [ , NOINDEX
        | , { REPAIR_ALLOW_DATA_LOSS | REPAIR_FAST | REPAIR_REBUILD } ]
    ) ]
    [ WITH
        {
            [ ALL_ERRORMSGS ]
            [ , EXTENDED_LOGICAL_CHECKS ]
            [ , NO_INFOMSGS ]
            [ , TABLOCK ]
            [ , ESTIMATEONLY ]
            [ , { PHYSICAL_ONLY | DATA_PURITY } ]
        }
    ]
]

не работает пишет
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '
    [ ( BuhORS
        [ , NOINDEX
        | , { REPAIR_ALLOW_DATA_LOSS | REPAIR_FAST | REPAIR_REBUILD } '.
30 Trotter
 
07.07.14
17:34
Так же попробовал
EXEC sp_resetstatus 'BuhORS';
ALTER DATABASE BuhORS SET EMERGENCY
пишет:
база перевелась в EMERGENCY
пробую
DBCC checkdb('yourDBname')
ALTER DATABASE yourDBname SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB ('BuhORS', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE BuhORS SET MULTI_USER
пишет
DBCC results for 'BuhORS'.
CHECKDB found 0 allocation errors and 0 consistency errors in database 'BuhORS'.
Msg 5180, Level 22, State 1, Line 1
Could not open File Control Bank (FCB) for invalid file ID 3 in database 'BuhORS'. Verify the file location. Execute DBCC CHECKDB.

Базу удалось подключить создание новой пустой базы, подменой файлов. Проблема судя по всему в этом, как поправить ?
31 mikecool
 
07.07.14
17:36
пути к файлам данных и лога правильные?
32 Ёпрст
 
07.07.14
17:36
прям так и пишешь ?
DBCC checkdb('yourDBname')  ??!
:))
33 Ёпрст
 
07.07.14
17:37
(29) да уж..
34 Trotter
 
07.07.14
17:37
(33) ну не так )) поменял же конечно всё как нужно )
35 Trotter
 
07.07.14
17:38
(31) а вот этого я не знаю, меня в свойства базы не пускает ((
36 Trotter
 
07.07.14
17:41
как запросом узнать путь к файлам базы ? и как им же в случае чего прописать ?
37 Trotter
 
07.07.14
17:47
use <database_name>
go
sp_helpfile
go
Опять пишет про путь к файлам почему то.
попробуйте, это вообще рабочие ?
38 Trotter
 
07.07.14
19:13
DBCC CHECKDB (BuhORS, REPAIR_ALLOW_DATA_LOSS)
DBCC results for 'BuhORS'.
CHECKDB found 0 allocation errors and 0 consistency errors in database 'BuhORS'.
Msg 5180, Level 22, State 1, Line 1
Could not open File Control Bank (FCB) for invalid file ID 3 in database 'BuhORS'. Verify the file location. Execute DBCC CHECKDB.
Msg 5180, Level 22, State 1, Line 1
Could not open File Control Bank (FCB) for invalid file ID 3 in database 'BuhORS'. Verify the file location. Execute DBCC CHECKDB.
Msg 5180, Level 22, State 1, Line 1
Could not open File Control Bank (FCB) for invalid file ID 3 in database 'BuhORS'. Verify the file location. Execute DBCC CHECKDB.
Msg 7909, Level 20, State 1, Line 1
The emergency-mode repair failed.You must restore from backup.
39 Trotter
 
07.07.14
19:17
ALTER DATABASE BuhORS SET ONLINE

Msg 926, Level 14, State 1, Line 1
Database 'BuhORS' cannot be opened. It has been marked SUSPECT by recovery. See the SQL Server errorlog for more information.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.
Msg 3456, Level 21, State 1, Line 1
Could not redo log record (10334:8451:96), for transaction ID (0:5205140), on page (3:98433), database 'BuhORS' (database ID 11). Page: LSN = (10334:8077:395), type = 1. Log: OpCode = 4, context 2, PrevPageLSN: (10334:8317:36). Restore from a backup of the database, or repair the database.
Msg 3313, Level 21, State 2, Line 1
During redoing of a logged operation in database 'BuhORS', an error occurred at log record ID (10334:8451:96). Typically, the specific failure is previously logged as an error in the Windows Event Log service. Restore the database from a full backup, or repair the database.
Msg 3414, Level 21, State 1, Line 1
An error occurred during recovery, preventing the database 'BuhORS' (database ID 11) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected, contact Technical Support.
40 КонецЦикла
 
07.07.14
20:27
Копия есть?
REPAIR_ALLOW_DATA_LOSS - погоди такое делать
Давай дуй на скл.ру ищи... не поможет - зови кого
2 + 2 = 3.9999999999999999999999999999999...