Hi Nabin,
The query should work standalone with no input required. What error message do you get when running this query?
It is made for an Oracle content store. Maybe you have a different version of Cognos or Oracle.
This XMLTABLE statement splits the XML data into rows and project columns on to it. Because some information in the content store is in XML format and this statement is used to retrieve the email addresses.
------------------------------
Thomas van der Meer
------------------------------
Original Message:
Sent: Thu August 08, 2024 03:00 PM
From: Nabin Poudyal
Subject: List of the Scheduled Report with status SQL
Thank you for the information, Thomas. It seems we need to input the XML values to retrieve the data. Could you please provide further details on what needs to be added?
FROM CMOBJPROPS26 t
CROSS JOIN
XMLTABLE (
'/SOAP-ENC/value/item[@xsi:type="bus:addressSMTP"]'
PASSING XMLType (
'<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENC xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">'
|| t.delivoptions
|| '</SOAP-ENC>')
COLUMNS address VARCHAR2 (200) PATH 'text()')
x
------------------------------
Nabin Poudyal
Original Message:
Sent: Fri July 26, 2024 03:33 AM
From: Thomas van der Meer
Subject: List of the Scheduled Report with status SQL
Hi Nabin,
Take a look at this discussion. I think this query has everything you will need.
https://community.ibm.com/community/user/businessanalytics/discussion/create-a-report-from-the-content-store-db-providing-details-of-schedules#bm36d34b4a-1746-4fa1-961d-c47c56be2023
------------------------------
Thomas van der Meer
Original Message:
Sent: Thu July 25, 2024 01:38 PM
From: Nabin Poudyal
Subject: List of the Scheduled Report with status SQL
Hello Cognos Experts,
I'm looking SQL query for the Cognos content store database to extract details about scheduled reports. Specifically, I need a query that will provide:
- Schedule Owner Name
- Schedule Owner Email
- Report Name/View Name
- Report Location
- Status (filtering for "Failed" reports)
- Failure Reason
Your expertise in helping with this query would be greatly appreciated.
Thank you!
------------------------------
Nabin Poudyal
------------------------------