Accessing the schema repository

Normally, you modify the schema repository (master database) using the HCL Compass Designer. However, it is possible to get information from, and make limited changes to, the schema repository using the HCL Compass API. "Performing user administration", for example, is among such tasks.

Because the schema repository is different from your user databases, you cannot use the normal Session object to log on to the schema repository and access its contents. Instead, you must use an AdminSession Object, which provides access to the schema repository information.

Using the AdminSession Object, you can access information about the user databases associated with the schema repository. Each user database is represented by a Database object. You can use this object to get and set information about the database, including the login IDs, passwords, and database settings.