Wednesday, October 23, 2013

Instance or Database Manager


DB2 Instance or Database Manager


  1. An Instance is also called as database Manager as it manages all the database within it.
  2. It has it own 
    1. processes 
    2. configuration file
    3. diagnostic log files.
  3. A log file "db2diag.log" per instance is generated. It location is specified by the dbm cfg file parameter "Diagnostic data directory path               (DIAGPATH)"
  4. Depth of logging Level in "db2diag.log" is specified by the dbm cfg file parameter "Diagnostic error capture level              (DIAGLEVEL) ", by default its level is set to 3.
  5. Following are the five levels of diagnostic log: -
    1. No diagnostic messages captured (not recommended)
    2. Severe errors only
    3. All errors
    4. All errors and warnings (default)
    5. All errors and warnings and informational messages
  6. Following are the List of commands for Creating, Managing and Dropping  Instance.(Note:- All commands are executed at windows level command prompt)

  1. db2icrt
    1. Create a DB2® instance, including a DB2 pureScale® instance.
  2. db2idrop
    1. Removes a DB2® instance that was created by db2icrt.
  3. db2ilist
    1. Lists all the instances that are created using the db2icrt command
  4. db2imigr(db2iupgrade in 10.1 version)
    1. The db2iupgrade command upgrades an instance from a DB2 copy of a previous release to a DB2 copy of the current release.
  5. db2iupdt
    1. The db2iupdt command can be used to update an instance to a higher level within a release
  6. db2start
    1. To start an instance
  7. db2stop
    1. To stop an instance
  8. db2iauto
    1. Enables or disables the autostart of an instance after each system restart. This command is available on Linux and UNIX operating systems only
  9. db2instance
    1. The db2instance command is used to query the state of a DB2® instance
  10. db2iprune
    1. The db2iprune command can reduce the size of your DB2® product installation image before installation.
  11. db2isetup
    1. Starts the DB2 Instance Setup wizard, which is a graphical user interface (GUI) tool for creating, configuring, and extending instances.

No comments:

Post a Comment