A DB2 instance is an environment where you store data and run applications. Use the db2icrt command to create an instance of the product. If you are not familiar with the concepts of a database instance, see Chapter 36. "Working with DB2 Instances".
The syntax of the db2icrt command is:
where:
Notes:
Note: | FencedID may not be root or bin. |
If a server product is installed, the syntax is:
db2icrt -u FencedID InstName
Examples:
db2icrt -u db2fenc1 db2inst1
db2icrt -u db2inst1 db2inst1
db2icrt db2inst1
When an instance is created, its name is also added to the list of instances on the system.
The db2icrt command creates the INSTHOME/sqllib
directory, where INSTHOME is the home of the instance owner.
![]() |
You should not create files or directories under INSTHOME/sqllib directory other than those created by DB2 products. This avoids a potential loss of data if an instance is deleted. There is one exception. If your system supports fenced User Defined Functions and fenced Stored Procedures, put the fenced User Defined Functions and the fenced Stored Procedures applications in the INSTHOME/sqllib/function directory.
|