db2 manually create a new instance - win7

After installing DB2 under win7, for convenience, you need to re-create an instance and create a database on the instance.

Open the db2 manager, on the console, enter db2ilist, you can see all instances of the current db2. By default, the output of this command is DB2, that is, after db2 is installed, the system will have a DB2 instance by default.

Enter the command: db2icrt db2_instance
where db2_instance is the instance name that the user needs to create.

After the instance is created, set the current environment to the newly created instance.
Enter the command: set db2instance=db2_instance
where db2_instance is the instance name.

By entering the command: db2 get instance, you can see that the current instance is db2_instance.

Enter db2start on the console to start the current instance.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325774971&siteId=291194637