SQL*Loader Assistance Loading HEX Field (Doc ID 2212452.1)

Last updated on JANUARY 16, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Goal

How to insert HEX data into a table?

This document helps to understand how to insert HEX data into a table with conversion directly in the CONTROL file to a VARCHAR/CHAR.

i.e Generally if we load RAW data into an Oracle table the RAW field contents will be in HEX data format and later conversion needs to be done through utl_raw.cast_to_varchar2.

But is there a way to go from the HEX value in the input (flat) file straight to a readable VARCHAR/CHAR field in a table?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms