return resultset from function

If you need a result set and a ref cursor won’t do with a datatype called sys.anydataset. i.e what you seem to want is a pipelined function, but of course with a regular pipelined function you need to define the output structure, which in your case isn’t static. Enter anydataset. this type allows us to … Read more

No more data to read from socket

Generic advice for troubleshooting “No more data to read from socket” errors. These errors are usually caused by another serious error, such as an ORA-600 error. A problem so serious that the server process crashed and could not even send a proper error message to the client. (Another common reason for these errors is a … Read more

Oracle RAC and sequences

Exactly what do you mean by “ordered” in this context? By default, each node in the cluster has a separate cache of sequence numbers. So node 1 may be handing out values 1-100 while node 2 is handing out values 101-200. The values returned from a single node are sequential, but session A on node … Read more

How to call Oracle MD5 hash function?

In Oracle 12c you can use the function STANDARD_HASH. It does not require any additional privileges. select standard_hash(‘foo’, ‘MD5’) from dual; The dbms_obfuscation_toolkit is deprecated (see Note here). You can use DBMS_CRYPTO directly: select rawtohex( DBMS_CRYPTO.Hash ( UTL_I18N.STRING_TO_RAW (‘foo’, ‘AL32UTF8’), 2) ) from dual; Output: ACBD18DB4CC2F85CEDEF654FCCC4A4D8 Add a lower function call if needed. More on … Read more