✅Chapter 15. SQL in BI Publisher and OTBI: Querying Oracle Fusion HCM Data Sources
SQL in BI Publisher & OTBI for Oracle Fusion HCM Reporting
Learn how to use SQL in Oracle BI Publisher and OTBI to extract, report, and analyze Oracle Fusion HCM data. Real-time examples included.
🔹 Introduction
Oracle Fusion HCM offers robust reporting tools such as BI Publisher (BIP) and Oracle Transactional Business Intelligence (OTBI). Both tools allow users to run SQL queries to fetch real-time data, though each has specific use cases and capabilities.
In this chapter, you’ll learn:
-
The role of SQL in BI Publisher vs OTBI
-
How to create SQL queries for BIP reports
-
How to work with subject areas in OTBI
-
Real-time Fusion HCM use cases
-
Tips for writing and optimizing SQL in both platforms
🔹 1. Overview: BI Publisher vs OTBI
Feature | BI Publisher (BIP) | OTBI |
---|---|---|
SQL Support | Full SQL (native Oracle) | No direct SQL (uses metadata) |
Data Source | Data Model with SQL or View | Predefined subject areas |
Real-Time Data | Yes | Yes |
Customization Level | High (SQL + templates) | Moderate (drag & drop) |
Output Formats | Excel, PDF, RTF, HTML | Dashboard/Interactive |
Scheduling | Yes | Yes |
🔹 2. Writing SQL in BI Publisher
✅ How to Use SQL in BIP:
-
Go to Business Intelligence → Catalog.
-
Create a new Data Model.
-
Choose SQL Query as your data source.
-
Paste your SQL and define parameters (if needed).
✅ Example 1: List of Active Employees and Their Job Details
💡 Real-Time Use: Pull active employee data for payroll or HR audit reports.
🔹 3. Working with Parameters in BI Publisher
You can add parameters like :P_DEPT_ID
to make your query dynamic.
-
Supports string, date, number, and LOV (list of values).
-
Parameters can be reused across multiple queries in the same data model.
🔹 4. SQL in OTBI (Indirect via Logical SQL)
OTBI doesn’t support native SQL but allows drag-and-drop queries based on Subject Areas. Advanced users can write Logical SQL behind the scenes using:
-
Oracle BI Answers (Criteria tab)
-
Advanced SQL View (Analysis → Advanced → Logical SQL)
❌ You cannot write native SQL like:
✅ But you can do:
🔹 5. Real-Time Use Cases for SQL in Fusion HCM
🔸 Case 1: Payroll Report in BIP
Use: Create monthly salary output for payroll processing.
🔸 Case 2: OTBI Dashboard for Leave Balances
-
Subject Area: Absence Management – Absence Real Time
-
Metrics: Leave Type, Balance, Employee, Department
-
Visualization: OTBI table or bar chart with filters on date and department
🔹 6. Performance Optimization Tips
✅ BI Publisher:
-
Use date filters:
TRUNC(SYSDATE)
or:P_DATE
-
Avoid
SELECT *
, use only necessary fields -
Limit rows:
FETCH FIRST 100 ROWS ONLY
-
Use
WITH
clause (CTE) for cleaner queries
✅ OTBI:
-
Don’t overload with too many columns or filters
-
Use dashboard prompts and subject areas effectively
-
Avoid custom calculations unless necessary
🔹 Summary
✅ Use SQL in BI Publisher to create pixel-perfect reports using Oracle SQL
✅ Use OTBI for quick, interactive dashboards using subject areas
✅ Apply parameters, filters, and performance best practices to handle large Fusion HCM datasets
🔹 Next Steps
-
Previous Chapter: Mastering SQL for Oracle Fusion HCM – Chapter 14. SQL Advanced Data Manipulation Techniques in Fusion HCM
-
Next Chapter: Mastering SQL for Oracle Fusion HCM – Chapter 16. Best Practices for SQL in Fusion HCM – Optimizing Reports and Queries
No comments:
Post a Comment