How to use SUBSTR on Clob in BI Publisher which is not an XML
I am trying to get the Report delivery information of the reports executed with Bursting from the AuditViewDB in Fusion SaaS. The delivery details are in a CLOB column which is not XML.
Query:
SELECT
repstart.requestid requestid
, repstart.iau_resource report_path
, TO_CHAR(repstart.iau_tstzoriginating, 'IW') Week_Number
, TO_CHAR(repstart.iau_tstzoriginating, 'Day', 'NLS_DATE_LANGUAGE = AMERICAN') Week_Day
, TO_CHAR(repstart.iau_tstzoriginating, 'DD/MM/YYYY HH24:MI:SS') start_time
, TO_CHAR(repend.iau_tstzoriginating, 'DD/MM/YYYY HH24:MI:SS') end_time
, repdelivery.deliveryproperties deliveryproperties
, repstart.iau_initiator submitted_by
, INSTR(repdelivery.deliveryproperties,'cc=',1,1) ccpos