Created
September 26, 2014 09:09
-
-
Save sadikovi/aa092e9d6ca5f56ba8b6 to your computer and use it in GitHub Desktop.
OBIEE writeback xml files (one with PL/SQL merge, another with execute, therefore it is available to call those statements for OBI WB)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1"> | |
<WebMessageTable lang="en-us" system="WriteBack" table="Messages"> | |
<WebMessage name="testExecute"> | |
<XML> | |
<writeBack connectionPool="cp_logistics_write_back"> | |
<insert> </insert> | |
<update> call execute_test() </update> | |
</writeBack> | |
</XML> | |
</WebMessage> | |
</WebMessageTable> | |
</WebMessageTables> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1"> | |
<WebMessageTable lang="en-us" system="WriteBack" table="Messages"> | |
<WebMessage name="testWriteBack"> | |
<XML> | |
<writeBack connectionPool="cp_test_writeback"> | |
<insert> </insert> | |
<update> MERGE INTO LOGISTICS.SRC_TABLE USING ( | |
SELECT | |
@{idrref} AS IDRREF, | |
'@{name}' AS NAME | |
FROM | |
DUAL | |
) T | |
ON (SRC_TABLE.IDRREF = T.IDRREF) | |
WHEN MATCHED THEN | |
UPDATE | |
SET | |
SRC_TABLE.NAME = T.NAME | |
WHEN NOT MATCHED THEN | |
INSERT ( | |
SRC_TABLE.ID, | |
SRC_TABLE.IDRREF, | |
SRC_TABLE.NAME | |
) | |
VALUES ( | |
LOGISTICS.SEQ_QA_ISSUE_LOG.NEXTVAL, | |
T.IDRREF, | |
T.NAME | |
); | |
</update> | |
</writeBack> | |
</XML> | |
</WebMessage> | |
</WebMessageTable> | |
</WebMessageTables> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment