on
05-14-2025
02:35 PM
- edited on
05-14-2025
03:05 PM
by
Tristan
To ensure that the Incorta cluster is properly sized for the data being ingested from Oracle Cloud ERP (Fusion) we need to ascertain the source data size. There is no direct way to run ad hoc SQL queries on the Oracle Cloud ERP database, unlike traditional on-premises systems. However, there’s a powerful workaround: BI Publisher. All Oracle Cloud ERP environments come with BI Publisher enabled, allowing users to create custom SQL-based reports using data models.
This guide walks you through a simple 2-step process to retrieve row counts and table sizes.
/analytics
to your base URL:https://<yourEnv>.oraclecloud.com/analytics
Log into BI Publisher (/analytics
).
On the top-right, click Create → Data Model.
Click + New Data Set → SQL Query.
Select a Data Source:
Choose the appropriate Fusion database based on your module:
ApplicationDB_FSCM
(Finance/Supply Chain)
ApplicationDB_HCM
(HCM/HR)
ApplicationDB_CRM
(Customer Relationship)
Set SQL Type: Choose Standard SQL
.
Enter SQL Query:
Here's a sample query to get row counts and size estimates:
SELECT owner,
table_name,
num_rows,
ROUND(blocks * 8 / 1024) AS size_mb
FROM all_tables
WHERE owner NOT IN ('SYS', 'SYSTEM')
AND blocks > 0
ORDER BY owner, table_name;
Click View Data. Wait a couple of minutes for the data model to be fully built.
Click Save Sample Data — this is required before you can use the data model in a report.
Save the data model with a recognizable name.
Go back to the BI Publisher home screen.
Click Create → Report.
When prompted, choose the data model you just created.
Continue through the wizard to design the report layout (table, chart, or raw data).
Save and run the report to view live row counts and table size information.