|
alter table ... activate not logged initially
|
|||
---|---|---|---|
#18+
db2 "alter table qqq activate not logged initially" db2 "delete from qqq" db2 "insert into qqq select * from table(qqq_external()) as t" в qqq изначально 700 метров данных. сначала убиваю их, потом вставляю данные с помощью OLE функции с другого сервера с другой БД. Почему-то на этапе удаления данных журнал транзакций используется. Где собака порылась? С уважением, Миронов Никита http://ok.novgorod.net/nickita p.s. Платформа Windows 2000, DB2 8.1 ... |
|||
:
Нравится:
Не нравится:
|
|||
03.06.2004, 10:26 |
|
alter table ... activate not logged initially
|
|||
---|---|---|---|
#18+
По дефолту у командного процессора включен автокоммит, а после коммита not logged initially выключается. ... |
|||
:
Нравится:
Не нравится:
|
|||
03.06.2004, 11:52 |
|
alter table ... activate not logged initially
|
|||
---|---|---|---|
#18+
как отключить autocommit? С уважением, Миронов Никита http://ok.novgorod.net/nickita p.s. Платформа Windows 2000, DB2 8.1 ... |
|||
:
Нравится:
Не нравится:
|
|||
03.06.2004, 12:03 |
|
alter table ... activate not logged initially
|
|||
---|---|---|---|
#18+
RTFM про Command Line Processor Options. Ладно, на первый раз: Auto-commit Option (-c): This option specifies whether each command or statement is to be treated independently. If set ON (-c), each command or statement is automatically committed or rolled back. If the command or statement is successful, it and all successful commands and statements that were issued before it with autocommit OFF (+c or -c-) are committed. If, however, the command or statement fails, it and all successful commands and statements that were issued before it with autocommit OFF are rolled back. If set OFF (+c or -c-), COMMIT or ROLLBACK must be issued explicitly, or one of these actions will occur when the next command with autocommit ON (-c) is issued. The default setting for this command option is ON. The auto-commit option does not affect any other command line processor option. Example: Consider the following scenario: db2 create database test db2 connect to test db2 +c "create table a (c1 int)" db2 select c2 from a The SQL statement in step 4 fails because there is no column named C2 in table A. Since that statement was issued with auto-commit ON (default), it rolls back not only the statement in step 4, but also the one in step 3, because the latter was issued with auto-commit OFF. The command: db2 list tables then returns an empty lis ... |
|||
:
Нравится:
Не нравится:
|
|||
03.06.2004, 12:27 |
|
alter table ... activate not logged initially
|
|||
---|---|---|---|
#18+
а можно еще убрать check в опциях command center... ... |
|||
:
Нравится:
Не нравится:
|
|||
03.06.2004, 17:43 |
|
alter table ... activate not logged initially
|
|||
---|---|---|---|
#18+
2 Никита Миронов А если попробывать вот так: Код: plaintext
... |
|||
:
Нравится:
Не нравится:
|
|||
03.06.2004, 22:46 |
|
alter table ... activate not logged initially
|
|||
---|---|---|---|
#18+
"db2 +c" действительно помогло очень сильно. про "with empty table" буду смотреть. спасибо огромное! С уважением, Миронов Никита http://ok.novgorod.net/nickita p.s. Платформа Windows 2000, DB2 8.1 ... |
|||
:
Нравится:
Не нравится:
|
|||
04.06.2004, 10:07 |
|
|
start [/forum/topic.php?fid=43&tid=1606251]: |
0ms |
get settings: |
10ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
151ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
49ms |
get tp. blocked users: |
2ms |
others: | 15ms |
total: | 266ms |
0 / 0 |