问题
How to create new instance in db2 10.1 using command line db2icrt command with example or using data studio client.
Anybody please reply.
Thanks
回答1:
Which OS are you usnig.
In Lunix/UNIX/OS X
You have two options:
- Dedicated user for the instance
You need to create one user in the OS (useradd) with a file system
useradd -m db2inst2
/opt/db2/10.1/instance/db2icrt -u db2inst1 db2inst1
- Your own user
You install DB2 in your home, and then your username will be the name of the instance (non-root installation)
In Windows
The command does not need a dedicated user for the instance.
来源:https://stackoverflow.com/questions/16030914/how-to-create-new-instance-in-db2-10-1-using-ibm-data-studio