Question : importing the data into table having xml datatype  using db2 import.

Hi when i try to run import command using command editor, iam getting the below error.

import from <pathname> of ixf XML from <xmlpath> insert into <schemaname>.<tablename>.

(import from "H:\tab1.ixf" of ixf XML from "H:\tab1.001.xml" insert into <tablename>;

SQL3235N The utility cannot use the "XML" path
"H:\tab1a.001.xml" parameter as specified. Reason
code: "3".).

The tricky part is ixf file and xml file is created by db2move export utility.I am using the files and importing with db2 import option.

Any help is gretaly apprciated.Thank you.

Answer : importing the data into table having xml datatype  using db2 import.

Hi Partminer,

Depending on the optimizer, joining table2 may help performance.

Try the query below.

Kent
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
SELECT * 
FROM
(
  SELECT REL_ID,A_NBR,A_ID,P_TYPE,A_TITLE,A_TYPE,A_STATUS,S_DATE,
   M_ID,D_FLAG,M_TYPE,I_ID,C_DATE,R_NBR() OVER() as R_NBR
  FROM DB2INST1.TABLE1
  LEFT JOIN DB2INST1.TABLE2
    ON TABLE1.A_NBR = TABLE2.A_NBR
   AND TABLE2.S_ID = 800
  WHERE S_ID = 800 
    AND REL_ID = 7100
    AND A_STATUS NOT = 15 
    AND TABLE2.A_NBR IS NULL
)AS X
WHERE R_NBR BETWEEN 1 AND 15 
FOR READ ONLY WITH UR
Random Solutions  
 
programming4us programming4us