utl_i18n.string_to_raw : utl_i18n « System Packages « Oracle PL / SQL






utl_i18n.string_to_raw

 
SQL>
SQL> declare
  2      l_bitxor_val   RAW (2000);
  3      l_val_1        VARCHAR2 (2000) := '12345678';
  4      l_val_2        VARCHAR2 (2000) := '87654321';
  5   BEGIN
  6      l_bitxor_val := UTL_RAW.bit_xor (utl_i18n.string_to_raw (l_val_1, 'AL32UTF8'),
  7                          utl_i18n.string_to_raw (l_val_2, 'AL32UTF8')
  8                         );
  9      DBMS_OUTPUT.put_line ('After bit XOR: ' || RAWTOHEX (l_bitxor_val));
 10   END;
 11  /

PL/SQL procedure successfully completed.

SQL>
SQL>

 








Related examples in the same category