What should be the control file to load below 2 formats of XML . If there is any data then i will receive first format with open and close tag
<NAME>OTC</NAME>
if there is no data then i will receive second format .
<NAME/>
CTL FIle :
LOAD DATA infile 'XML_out.xml' "str '</ROWSET>'"
APPEND INTO TABLE SHM.REF_NAME TRAILING NULLCOLS
(
dummy filler char(1000) terminated by "<ROWSET>",
NAME char(1000) enclosed by "<NAME>" and "</NAME>"
)
However i am getting error:
Initial enclosure character not found which is for second format.