|
|
|
Срочно >> Transaction Log
|
|||
|---|---|---|---|
|
#18+
У нас молния ударила в офис - повреждён файл базы данных (MS SQL 2000), но остался целый Transaction Log. Есть еще субботний Backup. Как вернуть данные за эту неделю? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.07.2002, 17:13:06 |
|
||
|
Срочно >> Transaction Log
|
|||
|---|---|---|---|
|
#18+
А какая Recovery Model у базы ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.07.2002, 17:25:02 |
|
||
|
Срочно >> Transaction Log
|
|||
|---|---|---|---|
|
#18+
Попробуй такой вариант (сам не пробовал, но в умной книжке написано, что может помочь): 1. BACKUP LOG ... WITH NO_TRUNCATE 2. RESTORE DATABASE .... WITH NORECOVERY 3. RESTORE LOG ... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.07.2002, 17:28:26 |
|
||
|
Срочно >> Transaction Log
|
|||
|---|---|---|---|
|
#18+
Модель full backup ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.07.2002, 17:31:56 |
|
||
|
Срочно >> Transaction Log
|
|||
|---|---|---|---|
|
#18+
BOL - How To - Transact-SQL - Administering SQL Server - Backing Up and Restoring Databases - How to restore to the point of failure (Transact-SQL) To restore to the point of failure 1.Execute the BACKUP LOG statement using the NO_TRUNCATE clause to back up the currently active transaction log. 2.Execute the RESTORE DATABASE statement using the NORECOVERY clause to restore the database backup. 3.Execute the RESTORE LOG statement using the NORECOVERY clause to apply each transaction log backup. 4.Execute the RESTORE LOG statement using the RECOVERY clause to apply the transaction log backup created in Step 1. Examples This example backs up the currently active transaction log of the MyNwind database, even though MyNwind is inaccessible, and then restores the database to the point of failure using previously created backups: -- Back up the currently active transaction log. BACKUP LOG MyNwind TO MyNwind_log2 WITH NO_TRUNCATE GO -- Restore the database backup. RESTORE DATABASE MyNwind FROM MyNwind_1 WITH NORECOVERY GO -- Restore the first transaction log backup. RESTORE LOG MyNwind FROM MyNwind_log1 WITH NORECOVERY GO -- Restore the final transaction log backup. RESTORE LOG MyNwind FROM MyNwind_log2 WITH RECOVERY GO ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.07.2002, 17:49:25 |
|
||
|
Срочно >> Transaction Log
|
|||
|---|---|---|---|
|
#18+
Мастер файл погиб, его нельзя приаттачить, а значит нельзя сделать backup для transaction log. Есть _только_ вчерашний transaction log и субботний backup. У нас весь сервер сдох, вместе с операционкой и мы это всё переустановили... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.07.2002, 18:09:20 |
|
||
|
Срочно >> Transaction Log
|
|||
|---|---|---|---|
|
#18+
Т.е. у вас - свежеустановленный сервер - 1 full-backup файла данных от 06.07 - .ldf файл и все ? IMHO реально получить состояние только на момент full-backup-а. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.07.2002, 19:51:10 |
|
||
|
|

start [/forum/topic.php?fid=46&gotonew=1&tid=1821847]: |
0ms |
get settings: |
7ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
44ms |
get topic data: |
8ms |
get first new msg: |
5ms |
get forum data: |
2ms |
get page messages: |
46ms |
get tp. blocked users: |
1ms |
| others: | 200ms |
| total: | 334ms |

| 0 / 0 |
