我可以在 Oracle BI Publisher 中的其他查询之前调用数据模型中的存储过程吗?

Can I call stored procedure in Data model before other queries in Oracle BI Publisher?

我有 2 个 SQL 查询需要在数据模型中调用,但在调用它们之前我需要执行带参数的存储过程。

这在 BI Publisher 中可行吗?

是的,可以使用事件触发器。此功能从版本 11.1.1.6 开始提供。您可以在此处参考文档 https://docs.oracle.com/cd/E23943_01/bi.1111/e22258/add_event_trig.htm#BIPDM331

更新: 根据文档,仅允许使用函数。 "The BI Publisher data model supports before data and after data triggers that execute a PL/SQL function stored in a PL/SQL package in your Oracle Database. The return data type for a PL/SQL function inside the package must be a Boolean type and the function must explicitly return TRUE or FALSE."