use the UTL_RAW functions to interact with raw files, for example:
SQL> create table test (a raw(16)); Table created SQL> insert into test values ('FF00FF00FF'); 1 row inserted SQL> select * from test where utl_raw.substr(a, 3, 1) = 'FF'; A -------------------------------- FF00FF00FF
Vincent malgrat
source share