8 Pricing Design Center Post-Upgrade Tasks
Learn how to perform tasks, such as creating users or synchronizing pricing setup components, after upgrading Oracle Communications Pricing Design Center (PDC).
Topics in this document:
Post-Upgrade Tasks for PDC
After upgrading your existing PDC 11.x installation to PDC 12.0 or a PDC 12.0 patch set, do the following:
Note:
If you have upgraded from PDC 11.1 Patch Set 9 to PDC 11.1 Patch Set 12 before upgrading to PDC 12.0, and you have an item type selector that has both of the following, follow the instructions in Doc ID 3068379.1, "Post Upgrade Steps When Upgrading from PDC 11.1 PS9 to Higher Version," on the Oracle Support website: https://support.oracle.com.
-
The applicableToAllBalImpact element set to true
-
The rule.expression.fieldKind element set to CHARGING_RESULT_SPEC
-
Upgrade your PDC database schema to the PDC 12.0 or PDC 12.0 patch set schema. See "Upgrading the PDC Database Schema".
-
If you are using Oracle Communications Billing and Revenue Management Elastic Charging Engine (ECE) for usage rating, upgrade to the compatible version of ECE on the machine on which ECE is installed.
See "BRM Suite Compatibility" in BRM Compatibility Matrix for more information about compatible versions.
-
Ensure that you migrate offer profiles from BRM into PDC. See "Migrating Offer Profiles from BRM into PDC".
-
Run the ReplaceResourceNameWithCode.sql upgrade script. See "Running the BRM Integration Pack Upgrade Script".
-
(Optional) Restrict the tablespace quota for a schema user. The default tablespace quota is unlimited. See "Restricting Tablespace Quota for a Schema User".
-
If you upgraded to PDC 12.0 Patch Set 1 or a later patch set, do the following:
-
Configure Oracle WebLogic Server to use the SSL-enabled data source. See "(Patch Set 1 or later) Configuring WebLogic Server to use SSL-Enabled Data Source".
-
Configure PDC to use the secure sockets layer (SSL)-enabled data source. See "(Patch Set 1 or later) Configuring PDC to Connect to SSL-Enabled Database".
-
-
(Optional) Configure SAML to enable single-sign on (SSO) for PDC. See "Setting Up Single Sign-On for Pricing Design Center".
-
If you upgraded to PDC 12.0 Patch Set 4 or later, update the following variables in the PDC_Oracle_home/apps/bin/setEnv.sh file:
-
MIDDLEWARE_HOME: Set this to the directory in which WebLogic Server 12.2.1.4 is installed.
-
WL_HOME: Set this to MIDDLEWARE_HOME/wlserver.
-
-
If you are upgrading from PDC 11.x to PDC 12.0 Patch Set 5 or later, run additional SQL scripts. See "(Patch Set 5 or later) Running the BRM Integration Pack Scripts".
-
Update the JAVA_HOME path for the PDC and BRM Integration Pack utilities. See "Updating the JAVA_HOME Path for PDC Utilities".
-
Start the transformation engines. See "Starting the Transformation Engines".
-
Run the SyncPDC utility. See "Running SyncPDC".
This synchronizes the setup components defined in other BRM components with PDC.
Upgrading the PDC Database Schema
To upgrade the PDC database schema:
-
Go to the PDC_home/server/upgrade/schema/pdc directory.
-
Enter the following command, which opens SQL*Plus:
sqlplus pdcUser@databaseName Enter password: password
where:
-
pdcUser is the PDC database user name.
-
password is the PDC database user password.
-
databaseName is the service name or database alias of the PDC database.
-
-
Run the following command, which upgrades the PDC database schema:
SQL> @PricingDesignCenter.sql
-
Exit SQL*Plus.
Migrating Offer Profiles from BRM into PDC
Perform this task if you are upgrading from PDC 11.x to PDC 12.0 Patch Set 1 or later.
If you are using ECE for usage charging, ensure that you migrate the existing offer profile data from BRM into PDC and use only PDC for configuring policy specifications.
Note:
After you migrate the offer profile data into PDC, delete the existing offer profiles in BRM and do not create any new offer profiles in BRM.
To migrate offer profiles from BRM into PDC:
-
If you are upgrading to PDC 12.0 Patch Set 1 or later, do the following:
-
Replace @PDC_SCHEMA_USER_NAME@ with the PDC schema user name in the PDC_home/PDC/sqlscripts/policyspecification/DatabaseLinkPrivilege.jdbc file.
-
Run the following command as a SYS user:
SQL> connect sysUser@databaseName Enter password: password SQL> DatabaseLinkPrivilege.jdbc
-
-
Open the PDC_home/PDC/sqlscripts/policyspecification/PolicySpecificationDataUpgrade.sql file in a text editor.
-
Specify the following parameters:
CREATE DATABASE LINK brmpdclink CONNECT TO brm_dbhost_username IDENTIFIED BY brm_dbhost_password USING '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = brm_schema_hostname)(PORT = brm_schema_port_number))) (CONNECT_DATA = (SID = brm_schema_sid) ) )';
where:
-
brm_dbhost_username is the BRM database user name.
-
brm_dbhost_password is the BRM database user password.
-
brm_schema_hostname is the BRM schema host name.
-
brm_schema_port_number is the port number assigned to the BRM schema.
-
brm_schema_sid is the SID of the BRM schema.
-
-
Save and close the file.
-
Ensure that the BRM and PDC databases are running.
-
Connect to the PDC database using SQL*Plus:
sqlplus pdcUser@databaseName Enter password: password
where:
-
pdcUser is the PDC database user name.
-
password is the PDC database user password.
-
databaseName is the service name or database alias of the PDC database.
-
-
Migrate offer profiles into PDC by running the following command:
SQL> @PolicySpecificationDataUpgrade.sql
The offer profiles are migrated from BRM into PDC in the PDC format as policy specifications and policy labels.
-
Type exit to exit SQL*Plus.
-
Restart WebLogic Server.
-
Export the policy specifications and policy labels to XML files by running the following command:
ImportExportPricing -export FileNamePrefix -config POLICY_SPECIFICATION ImportExportPricing -export FileNamePrefix -config POLICY_LABEL
where FileNamePrefix is the prefix to append to the beginning of the generated XML file name.
The policy specifications and policy labels are exported to the respective XML files.
-
Verify the migrated data in the XML files and make any necessary changes if required.
-
If you make any changes in the XML files, import the policy specifications and policy labels into the PDC database by running the following command:
ImportExportPricing -import -config POLICY_LABEL filename ImportExportPricing -import -config POLICY_SPECIFICATION filename
where filename is the name of the XML file.
The policy specifications and policy labels are imported into the PDC database.
-
Publish the required pricing and setup components to ECE by running the following command:
ImportExportPricing -publish POLICY_SPECIFICATION -target ece ImportExportPricing -publish CHARGE_OFFERING -target ece ImportExportPricing -publish ALTERATION_OFFERING -target ece
The policy specifications, charge offers, and discount offers are published to ECE.
Note:
During PDC installation, the create database link privilege is granted to the PDC schema user. After migrating offer profiles from BRM into PDC, you can revoke the create database link privilege from the PDC schema user by running the following command as the SYS user:
sqlplus sysUser@databaseName Enter password: password SQL> revoke create database link from pdc_schema_hostname;
Running the BRM Integration Pack Upgrade Script
If you are using Pipeline Manager for rating, you must update the resource names in the Pipeline Manager database tables and add a column for event type in the MIGRATE_EVENT table by running the ReplaceResourceNameWithCode.sql and MigrateEventAddEventType.sql scripts.
To run the BRM Integration Pack upgrade scripts:
-
Make a complete offline backup of the IFW_RESOURCE and IFW_PRICEMDL_STEP tables.
-
Go to the BRM_Integration_Pack_Home/sqlscripts/pdc_brm directory, where BRM_Integration_Pack_Home is the directory in which BRM Integration Pack is installed.
-
Enter the following command, which opens SQL*Plus:
sqlplus systemUser@brmDBName Enter password: password
where:
-
systemUser is the SYSTEM or SYSDBA user name.
-
password is the SYSTEM or SYSDBA user password.
-
brmDBName is the service name or database alias of the BRM database.
-
-
Grant database linking privilege to the Pipeline Manager database user by running the following command:
SQL> GRANT CREATE DATABASE LINK TO pipelineUser;
where pipelineUser is the name of the Pipeline Manager database user.
-
Open the BRM_Integration_Pack_Home/sqlscripts/pdc_brm/ReplaceResourceNameWithCode.sql file in a text editor.
-
Edit the following parameters with the actual values that are used to create the database link between Pipeline Manager and the BRM database:
CREATE DATABASE LINK IFW_BRM_DB_LINK CONNECT TO brm_db_user IDENTIFIED BY brm_db_user_password USING '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = brm_db_host)(PORT = brm_db_port)) (CONNECT_DATA = (SID = brm_db_sid) ) )';
where:
-
brm_db_user is the BRM database user name.
-
brm_db_user_password is the BRM database user password.
-
brm_db_host is the BRM schema host name.
-
brm_db_port is the port number assigned to the BRM schema.
-
brm_db_sid is the SID of the BRM schema.
-
-
Save and close the file.
-
Type exit to exit SQL*Plus.
-
Ensure that the BRM and Pipeline Manager databases are running:
sqlplus pipelineUser@pipelineDBName Enter password: password
where:
-
pipelineUser is the Pipeline database user name.
-
password is the Pipeline database user password.
-
pipelineDBName is the service name or database alias of the Pipeline database.
-
-
Update the resource names by running the following command:
SQL> @ReplaceResourceNameWithCode.sql
- Add the event type column to the MIGRATE_EVENT table by running the following
command:
SQL> @MigrateEventAddEventType.sql
-
Revoke the create database link privilege by running the following command as the SYSTEM or SYSDBA user:
SQL> REVOKE CREATE DATABASE LINK FROM pipelineUser;
-
Type exit to exit SQL*Plus.
Restricting Tablespace Quota for a Schema User
PDC grants unlimited tablespace quota to the following schema users:
-
PDC schema
-
Transformation cross-reference schema
-
Migration cross-reference schema
You can restrict the quota limit for a schema user in a tablespace by using SQL*Plus.
To restrict the tablespace quota for a schema user:
-
Connect to your database using SQL*Plus:
sqlplus pdcUser@databaseName Enter password: password
where:
-
pdcUser is the PDC database user name.
-
password is the PDC database user password.
-
databaseName is the service name or database alias of the PDC database.
-
-
At the SQL*Plus prompt, enter the following command:
SQL> alter user schema_user_name quota size on tablespace_name;
where:
-
schema_user_name is the PDC schema user name.
-
size is the tablespace quota size.
-
tablespace_name is the name of the tablespace for the PDC schema user.
For example:
SQL> alter user schema_user_name quota 500k on data_ts;
-
-
Type exit to exit SQL*Plus.
(Patch Set 1 or later) Configuring WebLogic Server to use SSL-Enabled Data Source
Note:
Perform this task only if you installed PDC 12.0 with Patch Set 1 or a later patch set.
To use the SSL-enabled data source in WebLogic Server:
-
Log in to WebLogic Server Administration Console.
-
In the Domain Structure panel, click Services and Datasources.
The available data sources are displayed.
-
Select the following data sources for which you want to enable SSL:
-
PricingDB
-
JobDispatcherDS
-
JobDispatcherPersistentDS
-
-
In the Configuration tab, select Connection Pool.
-
Modify the connection URL:
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)(HOST = hostname)(PORT = ssl-port))(CONNECT_DATA=(SERVICE_NAME=SID)))
where:
-
hostname is the name of the machine on which the database is installed.
-
ssl-port is the SSL-enabled port to use for connecting to the database.
-
SID is the unique name of the Oracle database.
-
-
Add the following properties:
javax.net.ssl.trustStore = path to client wallet
javax.net.ssl.trustStoreType = wallet type
where:
-
path to client wallet is the location of the client wallet that is used to connect to the database.
-
wallet type is the type of the client wallet, such as SSO and PKCS12. If the extension of the client wallet is .sso, the wallet type is SSO and if the extension of the client wallet is .p12, the wallet type is PKCS12.
-
-
If wallet type is PKCS12, add the following property:
javax.net.ssl.trustStorePassword = wallet password
-
Restart the WebLogic Server domain.
-
Log in to the PDC application.
If you cannot log in to the PDC application, verify the WebLogic Server configurations that you have performed.
(Patch Set 1 or later) Configuring PDC to Connect to SSL-Enabled Database
Note:
Perform this task only if you installed PDC 12.0 with Patch Set 1 or a later patch set.
To connect to the SSL-enabled database securely for synchronizing, transforming, and migrating the PDC data, you must specify the SSL port number and the database TrustStore details in the following configuration files:
-
SyncPDCConfiguration.xml
-
TransformationConfiguration.xml
-
MigrationConfiguration.xml
To connect to the SSL-enabled database:
-
Open the BRM_Integration_Pack_home/apps/configurationfile file.
where:
-
BRM_Integration_Pack_home is the directory in which BRM Integration Pack is installed.
-
configurationfile is:
-
SyncPDCConfiguration.xml
-
TransformationConfiguration.xml
-
MigrationConfiguration.xml
-
-
-
Uncomment the trustStore and truststoreType section to connect to the database securely:
<dbSSLConfiguration> <trustStore>databaseTruststoreLocation</trustStore> <trustStoreType>databaseTruststoreType</trustStoreType> </dbSSLConfiguration>
where:
-
databaseTruststoreLocation is the path to the client wallet which is used to connect to the database securely.
-
databaseTruststoreType is the type of the trustStore used to connect to the database securely:
If databaseTruststoreLocation is Wallet_Home/cwallet.sso, the databaseTruststoreType is SSO.
If databaseTruststoreLocation is Wallet_Home/ewallet.p12 , the databaseTruststoreType is PKCS12.
-
-
Specify the SSL port number in the connectionInfo section for all the databases, such as the migration cross-reference database and transformation cross-reference database. For example:
<xrefDatabase> <connectionInfo> ... <port>SSL_Port</port> ... </connectionInfo></xrefDatabase>
-
Save and close the file.
-
Go to the BRM_Integration_Pack_home/apps/bin directory.
-
Run the following command, which updates the database TrustStore password in the BRM Integration Pack wallet:
./PDCBRMWalletUtil.sh walletlocation walletpassword DB_TRUSTSTORE_PASSWORD password
where:
-
walletlocation is the location in which the BRM Integration Pack wallet is located.
-
walletpassword is the BRM Integration Pack wallet password.
-
password is the database TrustStore password.
-
-
At the command prompt, enter Y.
The database TrustStore password is added to the BRM Integration Pack wallet.
(Patch Set 5 or later) Running the BRM Integration Pack Scripts
If you are upgrading an existing PDC system from PDC 11.x to PDC 12.0 Patch Set 5 or later, you must perform the following steps:
-
Go to the BRM_Integration_Pack_home/sqlscripts/pdc_brm directory, where BRM_Integration_Pack_home is the directory in which BRM Integration Pack is installed.
-
Enter the following command, which opens SQL*Plus:
sqlplus XrefUser@XrefDBName Enter password: password
where:
-
XrefUser is the user name for the XREF database schema.
-
XrefDBName is the database alias of the XREF database.
-
password is the password for XrefUser.
-
-
Run the following commands:
SQL> @AddProrateCycleXrefRRECharges.sql SQL> @CleanXrefDiscountMaster.sql SQL> @CreateXrefRRETaxCodeTable.sql SQL> @CreateXrefRRETaxExemptionCodeTable.sql SQL> @CreateXrefRRETaxSelectorTable.sql
-
Type exit to exit SQL*Plus.
-
Open the BRM_Integration_Pack_home/apps/transformation/TransformationConfiguration.xml file.
-
In the file, add the following lines after the <persistOutFiles> block:
<transformationOut> <rreTransformOutFileLocation>BRM_Integration_Pack_home/apps/transformation/out/rre</rreTransformOutFileLocation> <breTransformOutFileLocation>BRM_Integration_Pack_home/apps/transformation/out/bre</breTransformOutFileLocation> </transformationOut>
-
Save and close the file.
Updating the JAVA_HOME Path for PDC Utilities
Update the JAVA_HOME path to the latest recommended Java Development Kit (JDK) version for the following PDC and BRM Integration Pack utility files:
-
PDC_home/apps/bin/setEnv.sh
-
BRM_Integration_Pack_home/apps/bin/startRRETransformer
-
BRM_Integration_Pack_home/apps/bin/startBRETransformer
-
BRM_Integration_Pack_home/apps/bin/startSyncPDC
-
BRM_Integration_Pack_home/apps/bin/MigrateBRMPricing
See "Additional PDC Software Requirements" in BRM Compatibility Matrix for the recommended JDK version for each release.
Starting the Transformation Engines
The transformation engines do not automatically start when you start the PDC server, you must start them manually. See the discussion about starting the transformation engines in BRM System Administrator's Guide for more information.
Running SyncPDC
Run the SyncPDC utility to synchronize the setup components defined outside of PDC.
See "Synchronizing Pricing Setup Components" in PDC Creating Product Offerings for more information.
When you run SyncPDC after upgrading to Patch Set 6 or later, changes are made to add tax code handling in PDC. See "Tax Codes Are Now Created in PDC" in Patch Set Release Notes for more information.