Implementing Siebel eBusiness Applications on DB2 UDB for OS/390 and z/OS > Customizing a Development Environment >

Cloning an OS/390 or z/OS Database


Your DBA can clone your existing Siebel database to the target database. The DB2 system cloning process involves the following tasks:

To do this, you must run the database server configuration utility twice.

Extracting a Storage Control File from the Development Database

The first run of the database server configuration utility "reverse engineers" the existing Siebel schema by creating a storage control file (.ctl) file from the database.

For instructions on how to use this utility, see Extracting a Storage Control File from the DB2 Catalog.

Generating a DDL File from a Storage Control File

The second run of the database server configuration utility uses the newly created storage control file to generate a DDL file. This DDL file will be applied to the database by your DBA to create the Siebel schema clone.

To generate the DDL file under Windows

  1. Launch the Database Server Configuration Utility in either of two ways:
  2. Choose Start > Siebel Enterprise Server 7.x.x > Configure DB Server.

    or

    1. Open a command prompt.
    2. Go to the SIEBSRVR_ROOT\BIN directory.
    3. Run the following command:
    4. ssincfgw -l ENU -v Y

    5. In the screen that appears, select dbsrvr.scm.
  3. In the Gateway Server Address screen, type the following values as you recorded them in your copy of Deployment Planning Worksheet.
  4. In the Siebel Server Directory screen, perform either of the following tasks:
  5. In the Siebel Database Server Directory screen, perform either of the following tasks:
  6. In the RDBMS Platform screen, select IBM DB2 UDB for OS/390 and zSeries.
  7. To continue, click Next.

  8. In the Siebel Database Operation screen, select Install Database, and then click Next.
  9. In the Select Installation Operation screen, select Install Siebel Database, and then click Next.
  10. In the OBDC Data Source Name screen, type your source ODBC connection name, and then click Next.
  11. In the Database User Name screen, type your database username and password, confirm the password by typing it again, and then click Next.
  12. In the Schema Qualifier screen, type the schema qualifier in uppercase and security group ID for your new database, and then click Next.
  13. In the Select Installation Type screen, select the Customized Install, and then click Next.
  14. In the Select Installation Mechanism screen, select the Generate DDL Into Files, and then click Next.
  15. In the DDL Output Directory screen, type the following, and then click Next.
  16. Review the parameters, and then click Finish.
  17. The runnow screen appears, giving you the choice of applying the configuration now or applying it later (and specifying the command line to apply it later).

  18. Click OK to apply the configuration now.
  19. The Siebel Upgrade Wizard launches.

  20. Click OK to perform the operation when the following message appears.
  21. Files schema.sql and bumpver.sql with the Siebel Schema modifications have been generated in the DDL Output Directory. Please select Yes to exit now and apply the files

    The following files are created:

NOTE:  If you want to clone the Siebel schema into more than one database, copy the generated DDL file, replace the schema qualifier in the DDL file, and then save the file under a new name.

To generate the DDL file under UNIX

  1. Source environment variables from $SIEBEL_ROOT.
  2. SIEBEL_ROOT should be the path of your Siebel installation directory.

    LANGUAGE should be set to the language in which the Configuration Wizard prompts appear, for example, enu for U.S. English.

    NOTE:  LANGUAGE is not the same as LANG; the former is the language in which the Configuration Wizard runs, while the latter is the code for the Language Pack you installed.

    If either of these values is incorrect or empty, reset them using one of the following commands, as appropriate to the shell you use:

    csh

    setenv SIEBEL_ROOT New Value

    setenv LANGUAGE New Value

    ksh

    SIEBEL_ROOT=New Value ; export SIEBEL_ROOT

    LANGUAGE=New Value; export LANGUAGE

  3. Go to $SIEBEL_ROOT /bin and enter:
  4. dbsrvr_config.ksh

    This launches the Database Server Configuration Wizard.

  5. Review the values of the following environment variables and confirm whether the settings are correct by entering either Y or N.
  6. NOTE:  If either the SIEBEL_ROOT or LANGUAGE value is not set or is incorrect, you must correct it before proceeding.

  7. Specify the path of your Siebel Server root directory, or accept the default by pressing ENTER.
  8. Specify the path of your database server root directory, or accept the default by pressing ENTER.
  9. Enter the number that corresponds to your database platform.
  10. In the Select Database Operation menu, choose Install Database (1).
  11. In the Installation Operation screen, select Install Siebel Database (1).
  12. Enter the number that corresponds to the language you are using, typically 1 for English.
  13. Enter your source ODBC connection name.
  14. Enter your database username and password, and then confirm the password by typing it again.
  15. Enter the schema qualifier for your new database in uppercase.
  16. Enter the group ID for your new database, or accept the default (SSEROLE) by pressing ENTER.
  17. In the Installation Type screen, select Customized Install (2).
  18. In the Installation Mechanism screen, select Generate DDL Into Files (1).
  19. Specify the DDL output directory, for example
    DBSRVR_ROOT/DB2390/dboutput/install.
  20. Specify the new storage control file, for example
    DBSRVR_ROOT/DB2390/my_storage_file.ctl.
  21. The configuration parameters are listed and you are asked if you want to run srvrupgwiz.

  22. Enter Y for yes.
  23. The Siebel Upgrade Wizard launches.

  24. Enter Y to perform the operation when the following message appears.
  25. Files schema.sql and bumpver.sql with the Siebel Schema modifications have been generated in the DDL Output Directory. Please select Yes to exit now and apply the files

    The following files are created:

NOTE:  If you want to clone the Siebel schema into more than one database, copy the generated DDL file, replace the schema qualifier in the DDL file, and then save the file under a new name.


 Implementing Siebel eBusiness Applications on DB2 UDB for OS/390 and z/OS 
 Published: 18 April 2003