|
Помогите удалить индекс в таблице sql | ☑ | ||
---|---|---|---|---|
0
kostya_77
14.03.16
✎
08:55
|
В одной таблице sql не могу удалить индекс - ругается на ошибку ввода-вывода. Что можно сделать? Файл dt не могу выгрузить из-за этой ошибки
|
|||
1
los_hooliganos
14.03.16
✎
08:56
|
Текст ошибки для начала необходимо.
|
|||
2
kostya_77
14.03.16
✎
09:14
|
как выложить скриншот?
|
|||
3
kostya_77
14.03.16
✎
09:21
|
||||
4
Провинциальный 1сник
14.03.16
✎
09:24
|
Бэкап базы, потом dbcc checkdb делай.
|
|||
5
kostya_77
14.03.16
✎
09:32
|
как правильно сделать dbcc checkdb?
|
|||
6
vde69
14.03.16
✎
09:33
|
места на диске D хватает?
|
|||
7
KuAl
14.03.16
✎
09:35
|
https://technet.microsoft.com/en-us/library/aa258278(v=sql.80).aspx
-- Check the current database. DBCC CHECKDB GO |
|||
8
kostya_77
14.03.16
✎
09:37
|
а сколько нужно места на диске D?
|
|||
9
vde69
14.03.16
✎
09:40
|
(8) обычно если места менее чем "размер базы + размер лога" стоит думать...
для твоей задачи точной формулы я не знаю, там могут быть хитрые связи... но вообще придерживайся предыдущего правила... |
|||
10
kostya_77
14.03.16
✎
09:45
|
Всем спасибо. Буду проповать
|
|||
11
kostya_77
14.03.16
✎
11:31
|
Сделал DBCC CHECKDB. Как исправлять ошибки?
|
|||
12
los_hooliganos
14.03.16
✎
11:32
|
(11) Скриншот ошибок покажи
|
|||
13
kostya_77
14.03.16
✎
11:35
|
sg 8928, Level 16, State 1, Line 5
Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data): Page (1:2420494) could not be processed. See other errors for details. The repair level on the DBCC statement caused this repair to be bypassed. Msg 8939, Level 16, State 98, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data), page (1:2420494). Test (IS_OFF (BUF_IOERR, pBUF->bstat)) failed. Values are 2057 and -4. Repairing this error requires other errors to be corrected first. Msg 8976, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). Page (1:2420494) was not seen in the scan although its parent (1:395778) and previous (1:2420493) refer to it. Check any previous errors. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420495) (level 0) is not >= the key value in the parent (1:395778) slot 28. Repairing this error requires other errors to be corrected first. Msg 8978, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). Page (1:2420495) is missing a reference from previous page (1:2420494). Possible chain linkage problem. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420496) (level 0) is not >= the key value in the parent (1:395778) slot 29. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420497) (level 0) is not >= the key value in the parent (1:395778) slot 30. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420498) (level 0) is not >= the key value in the parent (1:395778) slot 31. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420499) (level 0) is not >= the key value in the parent (1:395778) slot 32. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420500) (level 0) is not >= the key value in the parent (1:395778) slot 33. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420501) (level 0) is not >= the key value in the parent (1:395778) slot 34. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420502) (level 0) is not >= the key value in the parent (1:395778) slot 35. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420503) (level 0) is not >= the key value in the parent (1:395778) slot 36. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420504) (level 0) is not >= the key value in the parent (1:395778) slot 37. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420505) (level 0) is not >= the key value in the parent (1:395778) slot 38. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420506) (level 0) is not >= the key value in the parent (1:395778) slot 39. Repairing this error requires other errors to be corrected first. Msg 8933, Level 16, State 1, Line 5 Table error: Object ID 1438016254, index ID 1, partition ID 72057630368268288, alloc unit ID 72057630339104768 (type In-row data). The low key value on page (1:2420507) (level 0) is not >= the key value in the parent (1:395778) slot 40. Repairing this error requires other errors to be corrected first. CHECKDB found 0 allocation errors and 17 consistency errors in table '_AccRgAT11365' (object ID 1438016254). CHECKDB found 0 allocation errors and 17 consistency errors in database 'upp_1'. repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (upp_1, repair_rebuild). |
|||
14
Провинциальный 1сник
14.03.16
✎
11:45
|
Сервер точно в порядке? Дырок в памяти нет? Райд не рассыпался?
|
|||
15
kostya_77
14.03.16
✎
11:57
|
Все в порядке с памятью и рейдом. Перестала делаться выгрузка в dt и я обрати внимание на ошибку
|
|||
16
los_hooliganos
14.03.16
✎
13:40
|
(15) Сделай полный пересчет итогов.
|
|||
17
Провинциальный 1сник
14.03.16
✎
13:40
|
(15) Ну тогда делай полный checkdb, c repair_allow_data_loss
|
|||
18
los_hooliganos
14.03.16
✎
13:42
|
(17) Зачем? У него бух итоги глючат.
Можно вообще дропнуть тейбл и вперед с пересчетом. |
|||
19
vde69
14.03.16
✎
13:43
|
(16) если это поможет я сильно удивлюсь...
(15) сомневаюсь, что все в порядке, посмотри смарт статистику рейда. Кстати не понимаю зачем нужна выгрузка в DT.... |
|||
20
los_hooliganos
14.03.16
✎
13:46
|
(19) Дождемся окончания эксперимента :)
|
|||
21
vde69
14.03.16
✎
13:54
|
(20) я-бы больше понял пересчет индексов средствами скуля (ребулинг)
|
|||
22
los_hooliganos
14.03.16
✎
13:58
|
(21) Индекс не пересчитаешь. Тогда уж удалить, затем создать новый точно такой же.
|
|||
23
Провинциальный 1сник
14.03.16
✎
14:00
|
(22) В семерке была 1sp_dbreindex, может в восьмерке есть что-то подобное тоже?
|
|||
24
vde69
14.03.16
✎
14:12
|
(22) как-то так:
ALTER INDEX [_Documen215_VT5557_IntKeyInd] ON [dbo].[_Document215_VT5557] REORGANIZE WITH ( LOB_COMPACTION = ON ) SORT_IN_TEMPDB = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) GO |
|||
25
los_hooliganos
15.03.16
✎
06:06
|
Хде ТСтартер? Чем все закончилось?
|
|||
26
Повелитель
15.03.16
✎
07:07
|
(25) Где где, в подвале, в стену замуровали )))
|
|||
27
los_hooliganos
15.03.16
✎
08:11
|
(26) Ты черный или нет?
|
|||
28
kostya_77
15.03.16
✎
09:34
|
Помог checkdb, c repair_allow_data_loss. Всем спасибо
|
|||
29
Провинциальный 1сник
15.03.16
✎
09:39
|
(28) Много data lossнулось?)
|
|||
30
kostya_77
15.03.16
✎
09:41
|
Пока не знаю. Буду смотреть
|
Форум | Правила | Описание | Объявления | Секции | Поиск | Книга знаний | Вики-миста |