The Load Data Warehouse job - Full Load fails - when do you rebuild the DWH, and what are the steps to rebuild?
Release: All Supported Releases
Component: Clarity Data Warehouse
Run the following queries to find out if the database versions match:
Clarity: select * from cmn_install_history order by installed_date desc
DWH: select * from cmn_dwh_install_history order by installed_date desc
This is a mismatch between the Clarity and DWH meta data.
This is due to missing objects on the DWH database.
Examples:
--EXECUTE IMMEDIATE 'TRUNCATE TABLE DWH_CMN_ERROR_MESSAGE';
DWH_CFG_PRE_CONFIG_SP(P_DBLINK => 'DWHdblink_Clarity', P_FULL_RELOAD => 'Y');
DWH_CFG_RECOMPILE_SP;
END;
--[CA Clarity][Oracle JDBC Driver][Oracle]ORA-00942: table or view does not exist
ORA-06512: at "PPM_DWH.DWH_CFG_PRE_CONFIG_SP", line 43
ORA-06512: at line 3
--
2022/10/27 10:36:02 - META_LOAD_TABS_SQL - Invalid column name 'USE_CREATED_DATE'.
2022/10/27 10:36:02 - META_LOAD_TABS_SQL - ERROR (version 9.1.0.0-324, build 9.1.0.0-324 from 2020-09-07 05.09.05 by buildguy) : An error occurred executing this job entry :
2022/10/27 10:36:02 - META_LOAD_TABS_SQL - Couldn't execute SQL: MERGE INTO DWH_META_TABLES G
This is a mismatch between the Clarity and DWH meta data.
The above are indications that a DWH database rebuild may be necessary:
ATTENTION: If you drop the current DWH schema, and you have been using Trending, you may lose the entire Trending historical data. You have to back up all Trending tables before proceeding!
a. DBA will need to be given the out-of-the-box database file, depending on the database vendor:
Oracle: dwh_oracle_base.db
MSSQL: dwh_mssql_base.db
PostgreSQL: dwh_postgres_base.db
b. The DBA will drop the DWH schema and recreate it.
c. The DBA will import/restore the database file
admin db dwh-upgrade -Dupgrade.phase=maintenance
If you are on a base version and do not have patches DO NOT run this commandadmin content-jaspersoft csk restoreDomains -userName superuser -password superuser
admin jaspersoft syncPPMContext -userName superuser -password superuser
If the Data Warehouse schema name and connection details are the same and you are just replacing the existing schema you do not have to run this.
If the above doesn't help, see: