Load text files as clob to database

后端 未结 1 1859
梦如初夏
梦如初夏 2021-01-13 06:41

Having problem loading text files into database as clob.

  • Oracle version: Oracle Database 11g EE Release 11.2.0.2.0
  • NLS_LANG: RUSSIAN_RUSSIA.CL8MSW
相关标签:
1条回答
  • 2021-01-13 07:01

    Try LOADCLOBFROMFILE instead of LOADFROMFILE.

    From the manual:

    Note: If the character set is varying width, UTF-8 for example, the LOB value is stored in the fixed-width UCS2 format. Therefore, if you are using DBMS_LOB.LOADFROMFILE, the data in the BFILE should be in the UCS2 character set instead of the UTF-8 character set. However, you should use sql*loader instead of LOADFROMFILE to load data into a CLOB or NCLOB because sql*loader provides the necessary character set conversions.

    0 讨论(0)
提交回复
热议问题