IBM Support

How to activate a DB2 database and what is difference?

Question & Answer


Question

What is difference between explicit activation and implicit activation of a DB2 database?

Answer

There are two ways to activate a DB2 database:

1) Explicit activation

db2 "activate database <dbname>"

This command activates the specified database on all nodes within the system.

2) Implicit activation

db2 "connect to <dbname>"

The first connection to the database activates the database.


If database was activated implicitly, i.e. activated via first connection, then the database will be deactivated automatically after all the connections are terminated. On the other hand, if a database was explicitly activated, it will need to be explicitly deactivated by using "deactivate DB <dbname>" command.

If a database need to be activated in advance, for example when there are automatic maintenance jobs, such as automatic backup/automatic reorg, etc are scheduled in the database, database should be activated during the maintenance window and explicit activation is preferred.

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Install\/Migrate\/Upgrade - Database","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.7;9.5;10.1;10.5","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 June 2018

UID

swg21673507