DB2 - SPLessons
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

DB2 Instance

DB2 Instance

shape Description

The Instance is a coherent situation for Database Manager in DB2 . Utilizing these instance, the client can oversee the databases. Contingent upon the prerequisites, the client can can make various occurrences on one substantial apparatus. The Instance directory can be classified into: For an instance, every database contain a particular naming attributes of an individual kinds, its own arrangement of list tables, designs documents, benefits and authorities.

shape Conceptual figure

Multiple instance

shape Description

A client can generate numerous instance in a single DB2Server on Windows, UNIX and Linux. It is conceivable to install various DB2Servers on a substantial apparatus.

Creating instance on windows

shape Description

An Instance organizer contains database setup records and envelopes. The Instance index is saved at various areas on Windows relying upon the working framework variants.

Listing instance

shape Description

The listing command will list all the instance that exist in the DB2 database.

shape Syntax

The syntax for listing of an instance is as follows:
db2ilist db2ilist => List all the instance available in the database.

shape Examples

By viewing the below example, the concept of DB2 instances can be understand easily. [c]C:\Program Files\IBM\SQLLIB\BIN>db2icrt myinst DB21009E The DB2ICRT command completed successfully. C:\Program Files\IBM\SQLLIB\BIN>db2ilist DB2 MYINST [/c] Here in the above example, the instance list contain DB2 and MYINST.

Setting an instance

shape Description

To begin or stop the database director of an example on DB2 UDB, the accompanying command is executed for the present instance.

shape Syntax

The syntax for setting of an instance is as follows:
Set db2instance = myinst db2instance => Assigning the new instance. Myinst =>Is an instance in the db2 database.

shape Examples

By viewing the below example, the concept of setting a DB2 instance can be understand easily. [c] C:\Program Files\IBM\SQLLIB\BIN>set db2instance = myinst C:\Program Files\IBM\SQLLIB\BIN>db2 get instance The current database manager instance is: DB2 [/c] Here in the above example, the current database manager is assigned to DB2.

Starting a db2 instance

shape Description

By utilizing this start db2 instance a user can start a new db2 instance.

shape Syntax

The syntax for starting a db2 instance is as follows:
db2start db2start => Beginning a new database instance.

shape Examples

By viewing the below example, the concept of starting a DB2 instance can be understand easily. [c] C:\Program Files\IBM\SQLLIB\BIN>db2start SQL1063N DB2START processing was successful [/c] Here in the above example, the current database manager is assigned to DB2.

Stopping a db2 instance

shape Description

By utilizing the stop db2 instance a user can stop a db2 instance.

shape Syntax

The syntax for stopping a db2 instances is as follows:
db2stop db2stop => Stopping a database instance.

shape Examples

By viewing the below example, the concept of stopping a DB2 instances can be understand easily. [c] C:\Program Files\IBM\SQLLIB\BIN>db2stop SQL1063N DB2STOP processing was successful [/c] Here in the above example, the current database manager is assigned to DB2.

Summary

shape Key Points

  • DB2 Instances - Is a coherent group in db2 manager.
  • Multiple Instance - Generate numerous instance in a single DB2Server for various platforms.
  • Creating instance in window - Creates a database setup.
  • Listing instance - Listing all the instance available in the database.
  • Setting a instance - Manager the start and stop the instance in the db2 database.
  • Starting a db2 instance - Starting a new db2 instance.
  • Stopping a db2 instance - Stopping a new db2 instance.