Changes a database comment in the system database directory or the local database directory. New comment text can be substituted for text currently associated with a comment.
Scope
This command only affects the node on which it is executed.
Authorization
One of the following:
Required Connection
None
>>-CHANGE----+-DATABASE-+--database-alias--COMMENT--------------> '-DB-------' >-----+----------------+---WITH--"comment-string"-------------->< '-ON--+-path--+--' '-drive-'
Command Parameters
Examples
The following example changes the text in the system database directory comment for the SAMPLE database from "Test 2 - Holding" to "Test 2 - Add employee inf rows":
db2 change database sample comment with "Test 2 - Add employee inf rows"
Usage Notes
New comment text replaces existing text. To append information, enter the old comment text, followed by the new text.
Only the comment for an entry associated with the database alias is modified. Other entries with the same database name, but with different aliases, are not affected.
If the path is specified, the database alias must be cataloged in the local database directory. If the path is not specified, the database alias must be cataloged in the system database directory.
See Also