|
|
|
bcp & transaction log
|
|||
|---|---|---|---|
|
#18+
Была у меня база, лог которой разросся до 2Гб при размере данных в два раза меньше. Убил я лог, приаттачил данные заново и ограничил рост лога 10 Мб, благо данные предполагается использовать только для чтения. Затем решил заново загрузить данные с помощью bcp, которая, как сказано, не оставляет следов в логе. По окончании работы, загрузив полтора миллиона записей, она сообщила мне, что лог переполнен. Ну и почему, скажите, нежурналируемая операция все равно пытается писать в лог столько данных ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.09.2002, 14:22:57 |
|
||
|
bcp & transaction log
|
|||
|---|---|---|---|
|
#18+
И все равно мне непонятно. Как может информация о выделении новых страниц не поместиться в 50МБ ???!!! Symptoms The Microsoft SQL Server "System Administrator's Guide" and Books Online state that when using the fast version of BCP (no indexes on the table and the sp_dboption SELECT INTO/BULKCOPY set to true), the data inserts are not logged in the transaction log. However, when running large bulk loads, you may still run out of log space. Cause When SQL Server performs a nonlogged operation, such as using the fast version of BCP or performing a SELECT INTO on a permanent table, the actual data insertions are not written to the transaction log. However, as new data pages and extents are allocated, they are recorded in the log. This information is necessary in that it allows the server to track used data structures. More Information Generally, the amount of overhead written to the transaction log during a nonlogged operation is nominal. However, if your transaction log is almost full, issuing a nonlogged operation could cause the log to run out of space. To complete the operation, you must either truncate the transaction log or increase its size. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.09.2002, 14:57:21 |
|
||
|
bcp & transaction log
|
|||
|---|---|---|---|
|
#18+
BOL - Administering SQL Server - Importing and Exporting Data - Using bcp and BULK INSERT - Bulk Copy Performance Considerations - Logged and Minimally Logged Bulk Copy Operations "When using the full recovery model, all row-insert operations performed by bcp are logged in the transaction log. " ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.09.2002, 15:06:02 |
|
||
|
bcp & transaction log
|
|||
|---|---|---|---|
|
#18+
мне эта тема очень интересна, а можно попросить всех поподробнее? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.09.2002, 15:55:54 |
|
||
|
bcp & transaction log
|
|||
|---|---|---|---|
|
#18+
Была тут у меня на днях история с этим full recovery model... Небольшая база около 350М с которой последние 4 дня стали активно работать (практически непрерывное изменение/добавление данных). Так вот в конце концов база встала с ошибкой "Нет свободного места в логе транзакций". Глянул я на этот лог, а он 33 Гига!!! Так что вот вам и full recovery ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.09.2002, 16:29:03 |
|
||
|
|

start [/forum/topic.php?fid=46&gotonew=1&tid=1820077]: |
0ms |
get settings: |
6ms |
get forum list: |
9ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
30ms |
get topic data: |
7ms |
get first new msg: |
4ms |
get forum data: |
2ms |
get page messages: |
33ms |
get tp. blocked users: |
1ms |
| others: | 199ms |
| total: | 297ms |

| 0 / 0 |
