Search notes:

Oracle: UTL_RAW

Functions

bit_and Compare with the SQL function bitand.
bit_complement
bit_or
bit_xor
cast_from_<datatype> <datatype> is one of binary_double binary_float, binary_integer or number
cast_to_<datatype> <datatype> is one of binary_double, binary_float, binary_integer, number, nvarchar2, raw or varchar2
compare
concat
convert Interprets a raw as a string encoded in a given character set and converts this string to a raw encoded in a different character set. Compare with utl_i18n.string_to_raw.
copies
length
overlay
reverse
substr
translate
transliterate
xrange

Access bytes in a raw

declare
   bytes raw(10);

begin

   bytes := utl_i18n.string_to_raw('AZ' || chr(0) || chr(7), 'we8mswin1252'); 

   for b in 1 .. utl_raw.length(bytes) loop
       dbms_output.put_line(
          b || ': ' ||
          utl_raw.cast_to_binary_integer( 
            utl_raw.substr(bytes, b, 1)
         )
       );
   end loop;

end;
/

See also

The RAW data type.
Oracle UTL packages

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758199432, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/installed/packages/utl/raw/index(82): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78