db2ilist command is used to list the all the instances that are available on a system.
Syntax:
- db2ilist
Instance environment commands
To Get Instance:
db2 get instance command is used to see details of the currently running instances.
Syntax:
- db2 get instance
To Set Instance:
If you want to start or stop the database manager of an instance on DB2 UDB, the following command is executed for the current instance.
Syntax:
- set db2instance=<instance_name>
For Example: Arrange the "db2admin" environment to current user:
- set db2instance=db2admin