Will be installed or uninstalled. There are not many detailed installation instructions. I think this is well written.
Preparation. 1. Use ps-ef | grep db2 to find the db2 installation directory 2./db2level to find the DB2 installation version and directory.
#. /Db2level DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL09010" with level identifier "02010107 ". informational tokens are "DB2 v9.1.0.0", "s060629", "AIX64", and Fix Pack "0 ". product is installed at "/opt/db2_09_01 ". uninstall: 1. delete all databases on an instance
1.1 switch to db2 instance user
Su-db2inst1
Cd/home/db2inst1/sqllib
1.2 list all current databases
./Db2 list db directory
1.3 disconnect all applications
./Db2 force application all
1.4 stop the database
./Db2stop force
1.5 after restart, delete all databases in sequence
./Db2start
./Db2 drop db database name
./Db2 list db directory
./Db2stop
2. Delete all instances 2.1 find all instance names. If there are multiple instances, refer to the above method to delete the database. su-root
./Db2ilist view current instance Windows: echo % DB2INSTANCE % other systems: set | grep DB2INSTANCE
2.2 stop and delete a DB2 instance
Su-db2inst1 // enter the instance user
./Db2inst1 stop // stop the instance
Exit
./Db2idrop Instance name // Delete
// The sqllib sub-directory cannot be deleted, and several sub-directories are generated in the adm sub-directory. nfs files. // It indicates that nfs is installed. delete the file server and delete the sqllib subdirectory.
If you have installed the DAS Management Service name, delete it./daslist // command to check./dasdrop // Delete
2.3 check whether the deletion is successful./db2ilist
3. Uninstall DB2 3. 1. Go to the install directory under the DB2 installation directory, and find the db2_deinstall command 3.2 to delete./db2_deinstall-a 4. Remove users and groups and the home directory.
Delete user rmuser, userdel rmgroup, or groupdel rm-r/home/db2inst1 with smit user in AIX
4.2 clear environment variables or scripts
This is all done.
MAIL: xcl_168@aliyun.com Blog: http://blog.csdn.net/xcl168