Removes a DB2® instance that was created by db2icrt.
You can only drop instances that are listed by db2ilist for the same DB2 copy where you are issuing db2idrop from.
On Linux and UNIX operating systems, this utility is located in the DB2DIR/instance directory, where DB2DIR represents the installation location where the current version of the DB2 database system is installed. On Windows operating systems, this utility is located under the DB2PATH\bin directory where DB2PATH is the location where the DB2 copy is installed.
Root user authority on Linux and UNIX operating systems or Local Administrator on Windows operating systems.
For Linux and UNIX operating systems
>>-db2idrop--+-----+--+-----+--+-----+--InstName--------------->< '- -d-' '- -f-' +- -h-+ '- -?-'
For Windows operating systems
>>-db2idrop--+-----+--+-----+--InstName------------------------>< '- -f-' '- -h-'
For Linux and UNIX operating systems
Specifies the force applications flag. If this flag is specified all the applications using the instance will be forced to terminate.
/opt/IBM/db2/copy1/instance/db2icrt -u db2fenc1 db2inst1
To
drop db2inst1, you must run the following command:/opt/IBM/db2/copy1/instance/db2idrop db2inst1
On AIX® 6.1 (or higher), when running this command from a shared DB2 copy in a system workload partition (WPAR) global environment, this command must be run as the root user.