Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / IBM DB2, WebSphere, IMS, U2 [игнор отключен] [закрыт для гостей] / ошибка CLI0002W / 4 сообщений из 4, страница 1 из 1
16.11.2005, 07:36
    #33380381
crux
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
ошибка CLI0002W
Извините за вопрос из раздела для чайников.
При попытке открытия таблицы в Access возникает следующая ошибка:
"[IBM][CLI Driver]CLI0002W Данные усечены. SQLSTATE=01004(#-99999)[Microsoft][ODBC Driver Manager]Memory Allocation failure(#0)"
Причем проблема возникает при попытке подключения с одного компьютера, с других - все ок. Сравнивал настройки клиентов DB2, все одинаково.В чем все таки проблема?
...
Рейтинг: 0 / 0
16.11.2005, 17:50
    #33382343
ggv
ggv
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
ошибка CLI0002W
gv@mars Wed 16 Nov 17:50 [~] > db2 \? CLI0002W


CLI0002W Data truncated.

Explanation:

An output buffer specified is not large enough to contain the
data.

User Response:

Increase the size of the output buffer.
...
Рейтинг: 0 / 0
17.11.2005, 06:25
    #33382910
crux
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
ошибка CLI0002W
ggvgv@mars Wed 16 Nov 17:50 [~] > db2 \? CLI0002W


CLI0002W Data truncated.

Explanation:

An output buffer specified is not large enough to contain the
data.

User Response:

Increase the size of the output buffer.

Это то я нашел в самом начале.Если я прав, то через центр управления необходимо увеличить размер пула буферов, но у меня не достаточно привилегий для этого. Или подразумевается что-то другое?
Настройки клиентов одинаковы на всех машинах,но на одной возникает такая ерунда. Может ли это быть связано с настройками конкретной среды?
...
Рейтинг: 0 / 0
17.11.2005, 10:59
    #33383423
ggv
ggv
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
ошибка CLI0002W
bufferpool явно ни при чем.
При выполнении запроса было забиндена (http://publib.boulder.ibm.com/infocenter/db2help/topic/com.ibm.db2.udb.doc/ad/r0000558.htm)
переменная, буфер которой, или размер которой, не может вместить возвращаемое значение.
обрати внимание на эти абзацы
The application must ensure enough storage is allocated for the data to be retrieved. If the buffer is to contain variable length data, the application must allocate as much storage as the maximum length of the bound column plus the NULL terminator. Otherwise, the data may be truncated. If the buffer is to contain fixed length data, DB2 CLI assumes the size of the buffer is the length of the C data type. If data conversion is specified, the required size may be affected.

If string truncation does occur, SQL_SUCCESS_WITH_INFO is returned and StrLen_or_IndPtr will be set to the actual size of TargetValuePtr available for return to the application.

Truncation is also affected by the SQL_ATTR_MAX_LENGTH statement attribute (used to limit the amount of data returned to the application). The application can specify not to report truncation by calling SQLSetStmtAttr() with SQL_ATTR_MAX_LENGTH and a value for the maximum length to return for all variable length columns, and by allocating a TargetValuePtr buffer of the same size (plus the null-terminator). If the column data is larger than the set maximum length, SQL_SUCCESS will be returned when the value is fetched and the maximum length, not the actual length, will be returned in StrLen_or_IndPtr.

Но с другой стороны, я понятия не имею, чего надо делать в аксесе, чтобы это устранить.
Да и вообще, может это и не о том все.
...
Рейтинг: 0 / 0
Форумы / IBM DB2, WebSphere, IMS, U2 [игнор отключен] [закрыт для гостей] / ошибка CLI0002W / 4 сообщений из 4, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]