I am using an ORACLE database and I need to get the BLOB (or another LOB format) of a huge recordset (few thousands of rows), which I retrieve from a query. I need to populate the output format as a LOB to then provide it, as input to the DBMS_CRYPTO.Hash function, which generate the hash key I need.
Is it possible to populate the LOB directly with the data of the query parsed to a JSON type? Or do you advise me to use other format to populate the (B)LOB format in an efficient way?
Thanks
The immediate answer is you can serialize to your huge recordset to XML
Output:
SELECT DBMS_XMLGEN.getxmltype ('select * from EMPLOYEE') FROM DUAL
Output:
After that you can use to_clob or_to_blob function
output :(HUGECLOB)