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:
Investigating documents, dump records
Hub Configuration File
Framework Database index
Database Manager Configuration record
Hub Directory
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.
Conceptual
figure
Multiple instance
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
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
Description
The listing command will list all the instance that exist in the DB2 database.
Syntax
The syntax for listing of an instance is as follows:
db2ilist
db2ilist => List all the instance available in the database.
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
Description
To begin or stop the database director of an example on DB2 UDB, the accompanying command is executed for the present instance.
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.
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
Description
By utilizing this start db2 instance a user can start a new db2 instance.
Syntax
The syntax for starting a db2 instance is as follows:
db2start
db2start => Beginning a new database instance.
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
Description
By utilizing the stop db2 instance a user can stop a db2 instance.
Syntax
The syntax for stopping a db2 instances is as follows:
db2stop
db2stop => Stopping a database instance.
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
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.