Oracle Equivalent of SQL Server Syntax

oracleoracle-11g-r2

I'm looking for the Oracle equivalent of the following SQL Server syntax:

select Cast(0x41424344 as varchar(max))

In SQL Server, it selects 'ABCD'.

0x41424344 is the hex of 'ABCD'

Best Answer

SQL> select utl_raw.cast_to_varchar2('41424344') from dual;

UTL_RAW.CAST_TO_VARCHAR2('41424344')
------------------------------------
ABCD