23Implementing Siebel High-Availability Upgrade Using Oracle Golden Gate to Upgrade to the Current Release

Implementing Siebel High-Availability Upgrade Using Oracle Golden Gate to Upgrade to the Current Release

Overview of Oracle Golden Gate Implementation

You use the standard Siebel upgrade process detailed in this guide to upgrade your Siebel database from one supported Siebel CRM version to another version. The duration of the upgrade process and the potential for having your live environment unavailable during the process depend on the database size and other factors. Performing a high-availability upgrade using Oracle GoldenGate enables you to keep your Siebel CRM production environment available to your customers during the upgrade process while also causing the least interruption to your business users because you do not have to shut down your Siebel environment during the upgrade. The following figure provides an overview of the Oracle GoldenGate architecture.

Siebel Upgrade Using Oracle GoldenGate

This figure shows two servers with Oracle GoldenGate software installed on each of them. Each server has a database instance: one is the source system Siebel CRM version 7.8.2, and the other has the target system, the current release of Siebel CRM. The directory structure and files reflect this environment.

For example, other upgrade situations might involve a single server hosting both databases (either in the same instance or in two different instances) with one instance of Oracle GoldenGate software. In this situation, the Oracle GoldenGate pump process and its parameter files are not required. The extract files created by the Oracle GoldenGate Extract process can be used by the Replicat process. In this case, the file prefix value in the replicat OBEY file (such as r782_811.oby) must be changed to the one used in the Extract process.

For more information on Oracle GoldenGate, see Oracle Technology Network (http://www.oracle.com/technetwork/indexes/documentation/index.html).

About Siebel High Availability Upgrade Files

Oracle GoldenGate software is implemented with a set of files that enable you to decrease the downtime of your Siebel production database during an upgrade. These files are provided in the Siebel Database Server installation directory:

SIEBEL_ROOT/dbsrvr/COMMON

These files are compressed with names like the following, depending on the database platform:

  • GoldenGateSIA782_SIA811_HA_Upg_ORA.zip

  • GoldenGateSIA782_SIA811_HA_Upg_ORA.tar.gz

  • GoldenGateSIA782_SIA811_HA_Upg_DB2UDB.tar.gz

  • GoldenGateSIA782_SIA811_HA_Upg_DB2UDB.tar.gz

  • GoldenGateSIA782_SIA811_HA_Upg_MSSQL.tar.gz

  • GoldenGateSIA782_SIA811_HA_Upg_MSSQL.tar.gz

Extracting Oracle Golden Gate Files

The ZIP or tar files include a number parameter files and OBEY files, which can be used with Oracle GoldenGate software. For more information, see About Siebel High Availability Upgrade Files.

Note: Some of the files are specific to a database platform. Depending on your database platform, database-specific ZIP or tar files must be used to extract the Oracle GoldenGate parameter files.

To extract compressed Oracle Golden Gate files

  1. From your dbsrvr directory, extract the files from the following ZIP or tar file:

    GoldenGateSIA782_SIA811_HA_Upg_*.*
    
  2. View the following files after extracting them:

    SIA8119/dbsrvr/COMMON 
    
    • GoldenGateSIA782_SIA811_HA_Upg_ORA.zip (Windows only)

    • GoldenGateSIA782_SIA811_HA_Upg_DB2UDB.zip (Windows only)

    • GoldenGateSIA782_SIA811_HA_Upg_MSSQL.zip (Windows only)

    • GoldenGateSIA782_SIA811_HA_Upg_ORA.tar.gz (UNIX and Linux only)

    • GoldenGateSIA782_SIA811_HA_Upg_DB2UDB.tar.gz (UNIX and Linux only)

    • GoldenGateSIA782_SIA811_HA_Upg_MSSQL.tar.gz (UNIX and Linux only)

      SIA8119/dbsrvr/GoldenGate/SIA782_811/SourceServer/GLOBALS
      
      • dirprm

        • d_782sia.prm

        • e_782sia.oby

        • e_782sia.prm

        • mgr.prm

        • p_782sia.oby

        • p_782sia.prm

        • s782sia_trandata.oby

        • siebelMacro.mac

      • dirrpt

        • extractReports

        • pumpReports

        SIA8119/dbsrvr/GoldenGate/SIA782_811/TargetServer/GLOBALS
        
      • dirprm

        • mgr.prm

        • r782_811.oby

        • r782_811.prm

        • siebelMacro.mac

      • dirrpt

        • replicatReports

  3. Assuming a directory structure illustrated in step 2.../SIA8119/dbsrvr/COMMON, run tar or extract the files to the following directory, depending on your operating system:

    • Windows. cd.../SIA8119/dbsrvr
    • UNIX. tar -xvf ./COMMON/GoldenGateSIA782_SIA811_HA_Upg_ORA.tar.gz

      See the following table for a description of the source server files and directories.

Table Oracle GoldenGate Source Server Files and Directories

File or Directory Name Description Required or Optional Changes

GLOBALS

Global Parameters file for the Oracle GoldenGate processes. This is an empty file.

You can add the required parameters for your environment.

d_782sia.prm

Parameters file for the Oracle GoldenGate executable defgen. This file contains the list of Siebel CRM version 7.8.2 tables from which data is extracted from the Siebel CRM version 7.8.2 database log file by Oracle GoldenGate.

You can do the following:

  • Change the login information for the source database.

  • Change the table owner and schema name for the tables.

  • Add your custom tables (X_* tables).

e_782sia.oby

The OBEY file used to create the Oracle GoldenGate Extract process.

You can do the following:

  • (Optional) Extract the file size.

  • (Optional) Add start command.

e_782sia.prm

The parameter file for the Oracle GoldenGate Extract process. This file contains the list of Siebel 7.8.2 application tables from which data is extracted from the Siebel 7.8.2 database log file by Oracle GoldenGate. The tables include the following:

  • Siebel Enterprise Integration Manager tables

  • Siebel repository tables

  • Other tables related to Siebel Remote log files and other similar files

You can do the following:

  • (Optional) Report options.

  • Add custom tables designated by the (X_*) prefix.

mgr.prm

The parameter file for the Oracle GoldenGate Manager process. The same file is included in both source and target dirprm directories.

You can do the following:

  • (Optional) Port and Port List numbers.

  • (Optional) other parameters.

p_782sia.oby

The OBEY file used to create the Oracle GoldenGate pump process.

You can do the following:

  • (Optional) pump file size.

  • (Optional) Add the start command.

p_782sia.prm

The parameter file for the Oracle GoldenGate pump process.

No changes required.

s782sia_trandata.oby

The OBEY file that contains the Oracle GoldenGate ADD TRANDATA command. Use this command to get a list of the tables whose data will be extracted from the Siebel database 7.8.2. This command also requests supplemental log information for the tables to be executed by the database server. For some tables, additional columns are included because those columns are required to populate the tables in the upgraded target database.

You can do the following:

  • Change the login information for the source database.

  • Change the table owner and schema name for the tables.

  • Add custom tables added by the customer (X_* tables).

siebelMacro.mac

Contains the Oracle GoldenGate macros that are used to define the following:

  • Source database login information

  • Target database login information

  • Source database table owner and schema name

  • Target database table owner and schema name

  • Target server name

  • Target manager port number

  • Primary language for the source Siebel database

These macros are used in the parameter files for the Extract process, pump, and Replicat process. For more information, see Oracle GoldenGate Macros.

extractReports

The directory where the report files for the Extract process are stored.

Ensure that this directory is created in the dirrpt directory of Oracle GoldenGate on the source server.

pumpReports

The directory where the report files for the pump process are stored.

Ensure that this directory is created in the dirrpt directory of Oracle GoldenGate on the source server.

See the following table for a description of some of the target server files and directories.

Table Oracle GoldenGate Target Server Files and Directories

File or Directory Name Description or Usage Changes to Make

GLOBALS

Global parameters file for the Oracle GoldenGate processes. This file has only one line, which is required: checkpoint table GGS_CHECKPOINT.

  • (Optional) Add the required parameters for your environment.

  • Change the checkpoint table name if you have a defined checkpoint table with any other name.

  • Add a checkpoint table in the target database by using the command: ADD CHECKPOINTTABLE table_owner_name.GGS_CHECKPOINT

mgr.prm

The parameters file for the Oracle GoldenGate Manager process. This file is included in both the source and the target dirprm directories.

  • (Optional) provide the port and the post list numbers.

  • (Optional) provide the other required parameters.

r782_811.oby

The OBEY file to create the Oracle GoldenGate Replicat process.

(Optional) Add the start command.

r782_811.prm

This file contains the list of Siebel SIA 8.1.1 tables for which the transaction data that was extracted from Siebel 7.8.2 SIA database is replicated in the target Siebel 8.1.1 SIA database, applying the required upgrade logic to the table.

  • (Optional) Add the report options.

  • Add any additional upgrade logic for Siebel database tables and custom tables (X_*).

siebelMacro.mac

Contains the Oracle GoldenGate macros that define following:

  • Source database login information

  • Target database login information

  • Source database table owner and schema name

  • Target database table owner and schema name

  • Target server name,

  • Target manager port number

  • Primary language for the source Siebel database

This file has the same values as the file on the source server. See the previous table for more information.

These macros are used in the parameter files for the Extract, pump, and Replicat process.

You can copy the file from the instance of Oracle GoldenGate on the source database after the macro values have been changed for this file in the source server.

replicatReports

The directory where the report files for the Replicat process are stored.

Ensure that this directory is created in the Oracle GoldenGate dirrpt directory on the target server.

Note: The standard Siebel upgrade process, described in this guide, does not use the ZIP files, tar files, or the extracted files and directories. Oracle GoldenGate software does not use the ZIP files, tar files, extracted files, and directories directly. These files must be located in the dirprm directory for the Oracle GoldenGate software installation.

The extracted files must be copied to the dirprm directory in the Oracle GoldenGate software installation and modified to reflect your environment. For example, modify the following: database login and password information, table owner and schema names, port numbers and the target server name and so on. Make sure that the directories mentioned in this topic have been created under the dirrpt directory where Oracle GoldenGate software has been installed.

    Oracle GoldenGate Macros

    The Oracle GoldenGate macros identify the following:

    • Source database table owner and schema name.

    • Target database table owner and schema name.

    • Source database login and password information.

    • Target database login and password information.

    • The remote host name. In other words, the server name where the Oracle GoldenGate instance for the target database is located.

    • The port number used by the Oracle GoldenGate Manager process for the Oracle GoldenGate instance in the target database.

    • Optionally, the macro determines the string value for the DB_LAST_UPD_SRC column in the target database.

    • The language code for the primary language of your Siebel CRM installation on the source database.

      Example of Implementing a Siebel High-Availability Upgrade

      This topic provides an example of how to implement a Siebel high-availability upgrade, using Oracle GoldenGate software:

      1. Install Oracle GoldenGate software on the source and target servers, and configure them.

        For more information on Oracle GoldenGate, see Oracle Technology Network (http://www.oracle.com/technetwork/indexes/documentation/index.html).

      2. Install the current release of Siebel CRM, including the Siebel Server, Siebel Database Server, and Siebel Gateway.

      3. From the installation of the current release of Siebel CRM, extract the Oracle GoldenGate files from the installed ZIP or tar file as described in Extracting Oracle Golden Gate Files, and copy the extracted files to the dirprm directory of the Oracle GoldenGate installation.

      4. Make all the required changes to those files. Provide database login and password information, as well as table owner, target server name, and so on. Create the required directories under the dirrpt directory.

      5. Customize the Oracle GoldenGate parameter files to include any custom tables that you have previously created (X_*), including any logic required for those tables.

      6. Using the Oracle GoldenGate executable defgen and the modified parameter file d_782sia.prm, generate the schema definitions for Siebel 7.8.2 tables.

        This parameter file defines the output file as Siebel782.dat. This file is generated under the dirdat directory. Copy this file to the target server's dirdat directory.

      7. Create a new database instance on the target server to host the Siebel 7.8.2 database that you will upgrade.

      8. Ensure that all disconnected users synchronize their local database with the server database.

      9. Bring the production database to an idle state by disconnecting all users and stopping all Siebel Server processes.

      10. Take a full dump of the database. Using the dump file, create a new copy of the database in the target server.

        This database will be upgraded to the current release of Siebel CRM.

      11. Start the Oracle GoldenGate Extract and pump process on the source server to capture all new transactions in the Siebel 7.8.2 database. Start the Siebel application and allow users to connect and continue to use the application.

      12. Ensure that the Oracle GoldenGate processes are running and extract files are created on the source server and are created in the target server by the Oracle GoldenGate pump process.

      13. Start the standard Siebel upgrade process on the target server to upgrade the Siebel 7.8.2 database and Siebel Business Applications to the current release of Siebel CRM.

      14. Monitor the Oracle GoldenGate Extract process and pump process to ensure that they are capturing data from the source server. Move the data to the target server continuously.

      15. After the upgrade to Siebel 8.1.1.x is complete and the upgrade is validated, start the Oracle GoldenGate Replicat process on the target server to apply the captured transactions in the extract files to the upgraded database for the current release of Siebel CRM.

      16. After the Oracle GoldenGate Replicat process has retrieved all the transactions in the source Siebel 7.8.2 database, all disconnected users must synchronize their local database with the server database and stop using the Siebel application in disconnected mode.

      17. Bring the production database to an idle state again, by disconnecting all users and stopping all Siebel Server processes.

      18. Check that the last few identified transactions on the source database are reflected in the upgraded database for the current release of Siebel CRM. Start all the required Siebel server processes and start the Siebel application. The upgraded Siebel CRM database and Siebel applications are now ready for use.

      19. Migrate all users so that they can start using the new upgraded database and Siebel applications for the current release of Siebel CRM. Shut down the Siebel 7.8.2 database, and stop the Oracle GoldenGate Extract, pump, and Replicat processes.

      20. If some users are disconnected (Siebel Mobile Web Client users), then create a new version of the local database for these users, for the current release of Siebel CRM. After those users initialize their local database with the new local database extract, they can start using the application in disconnected mode.

        The upgrade of Siebel 7.8.2.x to the current release of Siebel CRM, using Oracle GoldenGate with minimum downtime of the Siebel application (version 7.8.2), is now complete.

      Limitations When Performing a Siebel Upgrade with Oracle Golden Gate

      The following limitations apply when performing a Siebel upgrade with Oracle GoldenGate software:

      • You must not perform any of the following operations in the Siebel 7.8.2 database after the target database has been created when preparing to upgrade to the current release:

        • Creating or modifying schemas, business components, applets, views, and so on in the Siebel Repository

        • Creating or modifying workflows, assignment rules, audit rules, and so on

      • Siebel Enterprise Integration Manager tables are not replicated. This limitation is because all Siebel Enterprise Integration Manager operations on the source database result in changes to the application tables, and those transactions from the application tables are replicated.

      • Transactions in the docking transactions log tables are not replicated. This limitation is because disconnected users are expected to get a newly installed local database from the upgraded Siebel database following the completed upgrade when Oracle GoldenGate has applied all the Siebel CRM version 7.8.2 transactions to the database for the current release.

      • Log files and tables with data that are temporary are not replicated.

      • For LOV-based column values that are used in the upgrade steps, the Oracle GoldenGate Replicat parameter file contains values in English (ENU) from the S_LST_OF_VAL table. For customers whose primary language is not English, some of these steps must be changed to use values in the customer's installed language.

      • Using the OBEY files to define the Extract, pump, and Replicat processes and using the GGSCI command does not start those processes. You must run the start command from within the Oracle GoldenGate secure command interface (GGSCI) when you are ready to start the processes.