Renaming Repositories After Full Migration

Note: No other mechanism for renaming repositories in a Runtime Repository environment is supported. Examples of unsupported methods include using Siebel Tools, Web Tools, or direct SQL.

After a full migration execution using the Runtime Repository Data Service, your target environment will have (at least) two repositories – "Migrated Repository" and "Siebel Repository". To switch to using the newly migrated repository, you must stop all Siebel services and rename them using the siebdevcli utility, as shown in the following procedure.

Note: Do not perform this procedure after an Incremental Runtime Repository migration.

To rename repositories after a full migration

  1. Stop all Siebel services.

  2. Rename Siebel services using the siebdevcli utility as follows:

    siebdevcli $SIEBEL_HOME\siebsrvr\bin\enu\<siebel.cfg> /l <language_code> /u <username> 
    /p ******** /d <DataSourceName> /SwitchRepository /SRCurrent <current repository> /SRNew <new re
    pository> /SROld <old repository name>

    Where:

    • <siebel.cfg> is the name of the configuration file – typically "siebel.cfg" located in the $SIEBEL_HOME\siebsrvr\bin\enu directory. This file must contain correct database connection parameters. For more information about the siebel.cfg file, see Modifying siebel.cfg Before Upgrading Siebel Database and Troubleshooting Database Configuration.

    • <language_code> is the language in which siebdevcli should run (such as "ENU"). This will determine the language used for log files and errors.

    • <username> is any Siebel Administrator username (for example, SADMIN).

    • <password> is the password for the username specified with /u.

    • <DataSourceName> is the data source entry from the siebel.cfg file (typically "ServerDataSrc").

      Note: The ServerDbODBCDataSource parameter under the [Siebel] section in the siebel.cfg file must point to the correct data source – that is, the ODBC_DSN on the application server. For example: ServerDbODBCDataSource = "siebel_DSN".
    • <current repository> is the name of the repository you are trying to replace (typically "Siebel Repository").

    • <new repository> is the name of the recently migrated repository (typically "Migrated Repository").

    • <old_repository_name> is the name you want to give to the existing <current repository> (for example: "Old Repository").

    For example:

    siebdevcli /c $SIEBEL_HOME\siebssrvr\bin\enu\siebel.cfg /l ENU /u SADMIN /p ****** 
    /d ServerDataSrc /SwitchRepository /SRCurrent "Siebel Repository" 
    /SRNew "Migrated Repository" /SROld "Old Repository"

    After executing this command, your old "Siebel Repository" will be renamed "Old Repository" and your recently migrated repository will be named "Siebel Repository".

    Upon restarting the server, the Application Object Manager will use the updated repository definition.