我试图使用sqlloader将json文件插入表中。问题是,如果我启用了约束-检查有效的json格式-我收到一条错误消息:
ORA-02290: check constraint (RMS01_USER1.JSON_CHECK) violated
如果我删除约束并尝试,则出现以下错误:
ORA-40499: no format defined for binary data type
这是一种僵局,我无法加载数据。
我的ctl脚本如下:
LOAD DATA
infile "${HOME}/log/${fileName}.data"
APPEND
INTO TABLE MY_TABLE
fields terminated by "," optionally enclosed by '"'
TRAILING NULLCOLS
( file_id,
CONTENT_JSON LOBFILE(file_path) TERMINATED BY EOF)
EOF