Updating the repository using db2ed_update

You can use the command to update the repository.

Any time you change the structure of the database (for example, by adding or deleting containers), you must run db2ed_update.

Before updating the repository, review the following information:

Prerequisites

  • You must be logged on as the instance owner (typically, the user ID db2inst1).

Usage notes

  • The db2ed_update command saves or updates the information related to the DB2 database in the SFDB repository.

  • The database must be up and running, and the $DB2DATABASE variable argument must be specified with the -D option. The $DB2INSTANCE argument is optional.

  • For multiple partitions, use the db2ed_update_all command. db2ed_update_all calls db2ed_update on every database partition for a partitioned DB2 database.

  • See the db2ed_update(1M) manual page for more information.

Table: Options for updating the repository lists the options for updating the repository.

Table: Options for updating the repository

Option

Description

-D DB2DATABASE

Specifies the name of the DB2 database for which a snapshot image will be created.

-I DB2INSTANCE

Specifies the name of the DB2 instance.

-G service_group

Specifies the name of the VCS service group for the database if the DB2 instance is under VCS control.

To update the SFDB repository