Implementing Siebel eBusiness Applications on DB2 UDB for OS/390 and z/OS > Siebel Repository Import, Export, and Postinstallation Tasks > Postinstallation Tasks >

Validating the Siebel Schema


After installation and repository import, you should compare the physical database schema with the repository to make sure that there are no inconsistencies. This is accomplished using the Siebel Server utility dbchck.exe (Windows) or dbchck (UNIX), located within the binary subdirectory of your Siebel Server installation directory.

You can use the dbchck utility to validate data relationships, including foreign keys and the list of values. You can also use this utility when you have made changes to the extensibility of your Siebel database.

The most popular mode in which to run dbchck is using the option /dict /all. This option provides a comprehensive log file that lists all of the discrepancies between the logical data model defined in the repository you specify and the physical database schema in the Siebel database you run the utility against.

To run dbchck

  1. From the binary subdirectory of your Siebel Server installation directory, locate dbchck.exe or dbchck, depending on your OS platform.
  2. If your midtier platform is Windows, delete the diccache.dat file before running dbchck. But, be sure that no EIM or Siebel Remote operations are running before deleting it.
  3. The dbchck utility creates a new diccache.dat file as a first step before proceeding with the integrity check. By deleting the dictionary cache file before starting, you make sure that dbchck validates against the Siebel Repository you specify.

    NOTE:  If you had to stop any EIM or Siebel Remote processes, you can safely restart them after dbchck has run.

  4. Source environment variables as appropriate for your platform, as described earlier in this chapter, using either siebenv.bat (for Windows) or siebenv.sh or siebenv.csh (for UNIX).
  5. Environment variable scripts are located in the binary subdirectory of your Siebel Server installation directory.

  6. Source the database profile.
  7. Run dbchck using the following syntax:
  8. dbchck /u SADMIN /p password /t SIEBTO /r "Your Siebel Repository Name" /l dbchck.log /dict /all /s ODBC data source

    where:

  9. Review the log file generated as a result of running this script. Any discrepancies are flagged as failures.
  10. You should investigate all discrepancies.

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