powered by simpleCommunicator - 2.0.59     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / IBM DB2, WebSphere, IMS, U2 [игнор отключен] [закрыт для гостей] / SQL0180N, как с ней бороться?
2 сообщений из 2, страница 1 из 1
SQL0180N, как с ней бороться?
    #37756017
Фотография Абсолют
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Добрый день, господа!

Код: plsql
1.
2.
3.
4.
5.
EXPORT TO '%DATA_PATH%\ALL_TYPE_QUEST_1987290390.ixf'
	OF IXF
	LOBS TO '%DATA_PATH%\'
	XML TO '%DATA_PATH%\'
	SELECT "COL1", "COL2", "COL3" FROM "QUEST"."ALL_TYPE";



Потом делаю insert в такую же таблицу, но перед этим дропаю её и создаю заново:

Код: plsql
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
-- Step 4. Import of data for preserve
IMPORT FROM '%DATA_PATH%\ALL_TYPE_QUEST_1987290390.ixf'
	OF IXF
	LOBS FROM '%DATA_PATH%'
	XML FROM '%DATA_PATH%'
	MODIFIED BY 
	NOCHECKLENGTHS
	COMMITCOUNT 1000
  REPLACE INTO "QUEST"."ALL_TYPE"
	("COL1",
	"COL2",
	"COL3");

COMMIT;



На одной машине - все ок. На второй - куча варнингов, типа:


Код: sql
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
Warning:16.04.2012 15:51:21 0:00:00.000: Lookup Error - SQL3150N  The H record in the PC/IXF file has product "DB2    02.00", date 
"20120416", and time "155121".

SQL3153N  The T record in the PC/IXF file has name "C:\DATATEMP", qualifier "", and source "           
".

SQL3109N  The utility is beginning to load data from file 
"ALL_TYPE_QUEST_27507745.ixf".

SQL3148W  A row from the input file was not inserted into the table.  SQLCODE 
"-180" was returned.

SQL0180N  The syntax of the string representation of a datetime value is 
incorrect.  SQLSTATE=22007

SQL3185W  The previous error occurred while processing data from row "1" of 
the input file.

SQL3148W  A row from the input file was not inserted into the table.  SQLCODE 
"-180" was returned.

SQL0180N  The syntax of the string representation of a datetime value is 
incorrect.  SQLSTATE=22007

SQL3185W  The previous error occurred while processing data from row "3" of 
the input file.

SQL3148W  A row from the input file was not inserted into the table.  SQLCODE 
"-180" was returned.

SQL0180N  The syntax of the string representation of a datetime value is 
incorrect.  SQLSTATE=22007

SQL3185W  The previous error occurred while processing data from row "4" of 
the input file.

SQL3148W  A row from the input file was not inserted into the table.  SQLCODE 
"-180" was returned.

SQL0180N  The syntax of the string representation of a datetime value is 
incorrect.  SQLSTATE=22007

SQL3185W  The previous error occurred while processing data from row "5" of 
the input file.

SQL3148W  A row from the input file was not inserted into the table.  SQLCODE 
"-180" was returned.

SQL0180N  The syntax of the string representation of a datetime value is 
incorrect.  SQLSTATE=22007

SQL3185W  The previous error occurred while processing data from row "6" of 
the input file.

SQL3148W  A row from the input file was not inserted into the table.  SQLCODE 
"-180" was returned.

SQL0180N  The syntax of the string representation of a datetime value is 
incorrect.  SQLSTATE=22007

SQL3185W  The previous error occurred while processing data from row "7" of 
the input file.

SQL3148W  A row from the input file was not inserted into the table.  SQLCODE 
"-180" was returned.

SQL0180N  The syntax of the string representation of a datetime value is 
incorrect.  SQLSTATE=22007

SQL3185W  The previous error occurred while processing data from row "8" of 
the input file.

SQL3148W  A row from the input file was not inserted into the table.  SQLCODE 
"-180" was returned.

SQL0180N  The syntax of the string representation of a datetime value is 
incorrect.  SQLSTATE=22007

SQL3185W  The previous error occurred while processing data from row "9" of 
the input file.

SQL3110N  The utility has completed processing.  "10" rows were read from the 
input file.

SQL3221W  ...Begin COMMIT WORK. Input Record Count = "10".

SQL3222W  ...COMMIT of any database changes was successful.

SQL3149N  "10" rows were processed from the input file.  "2" rows were 
successfully inserted into the table.  "8" rows were rejected.


Number of rows read         = 10
Number of rows skipped      = 0
Number of rows inserted     = 2
Number of rows updated      = 0
Number of rows rejected     = 8
Number of rows committed    = 10




Как с этим бороться? Локаль менять? Дата записана в US стиле т.е mm/dd/yyyy
...
Рейтинг: 0 / 0
SQL0180N, как с ней бороться?
    #37756103
Mark Barinstein
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Добрый день.
АбсолютКак с этим бороться? Локаль менять? Дата записана в US стиле т.е mm/dd/yyyy Если поле типа даты, и вы работаете с ixf, то не очень понятно, как может дата быть записана в текстовом виде в каком-то формате.
Вы ничего не путаете - в обеих таблицах соответствующие поля точно типа date, или где-то date, где-то (var)char, или при export делается преобразование date -> (var)char?
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / IBM DB2, WebSphere, IMS, U2 [игнор отключен] [закрыт для гостей] / SQL0180N, как с ней бороться?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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