How to move custom domains when doing a migration to Postgres (from Oracle or MSSQL). How was the migration of custom domains handled on GCP?
Release : Any
If you export a domain from an Oracle environment, open the schema.xml.data file and then collapse the main tags inside the domain xml schema, you will find 4 main blocks.
<itemGroups> is where we define how the domain will display in the Ad hoc view so users can select fields and build their ad hoc reports. It contains aliases to columns and tables and these aliases are used by ad hoc views. We do not recommend changing these aliases as they would most likely break ad hoc views based on the domain.
<resources> is where we establish the association between aliases and tables, and also columns.
First, change the table names in datasourceTableName to lowercase. Do not change the id. This is the table alias referenced in <itemGroups>
<jdbcTable id="DWH_INV_INVESTMENT" datasourceId="CA_PPM_DWH_BEAN" schemaAlias="schema1" datasourceTableName="dwh_inv_investment ">
Second, change the column names in fieldDBName to lowercase. Again, do not change the id. This is also the column alias referenced in <itemGroups>
<jdbcTable id="DWH_INV_INVESTMENT" datasourceId="CA_PPM_DWH_BEAN" schemaAlias="schema1" datasourceTableName="dwh_inv_investment">
<fieldList>
<field id="BASELINE_FINISH" type="java.sql.Timestamp" fieldDBName="baseline_finish"/>
<field id="CALC_LANGUAGE_CODE" type="java.lang.String" dataSetExpression="groovy('authentication.getPrincipal(). getAttributes().find{ it.attrName == "ppmUserLanguage" }.attrValue')" fieldDBName="calc_language_ code "/>
<joinInfo alias="DWH_INV_INVESTMENT" referenceId="DWH_INV_
<joinList>
<join left="DWH_INV_INVESTMENT" right="DWH_INV_INVESTMENT_LN" type="inner" expr="DWH_INV_INVESTMENT.
and DWH_INV_INVESTMENT_LN.LANGUAGE_CODE == DWH_INV_INVESTMENT_LN.CALC_ LANGUAGE_CODE" weight="1"/>
<filterExpression>DWH_INV_SECURITY_V.USER_UID == groovy('authentication.principal.username')</ filterExpression>