HEXTORAW
HEXTORAW(string)

Converts hexadecimal digits contained in a character string to a RAW value composed of bytes corresponding to those digits.

Example

SQL> SELECT DUMP(HEXTORAW('C28540D5898385'))
  2  FROM dual;

DUMP(HEXTORAW('C28540D5898385'))
----------------------------------------
Typ=23 Len=7: 194,133,64,213,137,131,133

Get Oracle SQL: the Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.