Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Как записать XLS файл (именно файл!) в базу DB2
|
|||
|---|---|---|---|
|
#18+
Добрый день коллеги! Подскажите пожалуйста как это сделать, если это вообще можно сделать. Доку перерыл, погуглил, не помогло. База DB2 9.7, файлик /tmp/color.xls Версия ОС Linux version 2.6.18-238.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) Спасибо за помощь! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.07.2012, 08:28 |
|
||
|
Как записать XLS файл (именно файл!) в базу DB2
|
|||
|---|---|---|---|
|
#18+
есть тип данных BLOB, если xls сохраняется в xml формате, то можно записываеть его в xml тип поле. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.07.2012, 10:14 |
|
||
|
Как записать XLS файл (именно файл!) в базу DB2
|
|||
|---|---|---|---|
|
#18+
vadipok, Здравствуйте. Создайте файл /tmp/color.csv с 1-й строкой: "color.xls" Если у вас есть таблица my_table с полем b типа blob, то при соединении с базой выполните: Код: plaintext ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.07.2012, 10:30 |
|
||
|
Как записать XLS файл (именно файл!) в базу DB2
|
|||
|---|---|---|---|
|
#18+
Mark Barinstein, Спасибо огромное коллеги. Выбирал метод Mark Barinstein. Очень помогли. ) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.07.2012, 10:50 |
|
||
|
Как записать XLS файл (именно файл!) в базу DB2
|
|||
|---|---|---|---|
|
#18+
Mark Barinsteinvadipok, Здравствуйте. Создайте файл /tmp/color.csv с 1-й строкой: "color.xls" Если у вас есть таблица my_table с полем b типа blob, то при соединении с базой выполните: Код: plaintext Добрый день! Для поля типа Clob эта команда хорошо работает, но как только меняю тип поля на Blob выводит вот такую ошибку: $ db2 "import from /tmp/color of del lobs from /tmp insert into portal_kich_fpk.clob_test3 (my_blob)" SQL3109N The utility is beginning to load data from file "/tmp/color". SQL3148W A row from the input file was not inserted into the table. SQLCODE "-668" was returned. SQL0668N Operation not allowed for reason code "7" on table "PORTAL_KICH_FPK.CLOB_TEST3". SQLSTATE=57016 SQL3185W The previous error occurred while processing data from row "1" of the input file. SQL3110N The utility has completed processing. "1" rows were read from the input file. SQL3221W ...Begin COMMIT WORK. Input Record Count = "1". SQL3222W ...COMMIT of any database changes was successful. SQL3149N "1" rows were processed from the input file. "0" rows were successfully inserted into the table. "1" rows were rejected. Number of rows read = 1 Number of rows skipped = 0 Number of rows inserted = 0 Number of rows updated = 0 Number of rows rejected = 1 Number of rows committed = 1 Почему так? Объясните пожалуйста. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.07.2012, 13:52 |
|
||
|
Как записать XLS файл (именно файл!) в базу DB2
|
|||
|---|---|---|---|
|
#18+
vadipok... SQL3148W A row from the input file was not inserted into the table. SQLCODE "-668" was returned. SQL0668N Operation not allowed for reason code "7" on table "PORTAL_KICH_FPK.CLOB_TEST3". SQLSTATE=57016 ... db2 "? SQL0668N" SQL0668N Operation not allowed for reason code "<reason-code>" on table "<table-name>". Explanation: Access to table "<table-name>" is restricted. The cause is based on the following reason codes "<reason-code>": ... 7 The table is in the reorg pending state. This can occur after an ALTER TABLE statement containing a REORG-recommended operation. ... User response: ... 7 Reorganize the table using the REORG TABLE command. ... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.07.2012, 14:16 |
|
||
|
Как записать XLS файл (именно файл!) в базу DB2
|
|||
|---|---|---|---|
|
#18+
Mark Barinsteinvadipok... SQL3148W A row from the input file was not inserted into the table. SQLCODE "-668" was returned. SQL0668N Operation not allowed for reason code "7" on table "PORTAL_KICH_FPK.CLOB_TEST3". SQLSTATE=57016 ... + db2 "? SQL0668N" SQL0668N Operation not allowed for reason code "<reason-code>" on table "<table-name>". Explanation: Access to table "<table-name>" is restricted. The cause is based on the following reason codes "<reason-code>": ... 7 The table is in the reorg pending state. This can occur after an ALTER TABLE statement containing a REORG-recommended operation. ... User response: ... 7 Reorganize the table using the REORG TABLE command. ... Все отлично! Спасибо большое! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.07.2012, 14:25 |
|
||
|
|

start [/forum/topic.php?fid=43&tid=1601777]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
82ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
1ms |
| others: | 14ms |
| total: | 179ms |

| 0 / 0 |
