по мотивам «Installing IBM DB2 for Linux, UNIX, and Windows transparently with your application«.
Uninstalling DB2 on Linux and UNIX
On Linux and UNIX, you need to perform the following steps, in this order:
- Drop all databases by entering the following command:
DROP DATABASE database_alias. - Stop the DB2 Administration Server by logging in as the DB2 administration server owner and issuing the
db2admin stopcommand. - Stop all DB2 instances by repeating the following steps for each instance you created:
- Log in as the instance owner.
- Severe all database connections by entering the
FORCE APPLICATION ALLcommand. - Stop the DB2 database manager by entering the
db2stopcommand.
- Remove the Administration Server:
- Log in as root.
- Issue the command:
/opt/ibm/db2/V9.5/instance/dasdrop.
- Remove DB2 instances by repeating the following steps for each instance you created:
- Log in as root.
- Issue the
/opt/ibm/db2/V9.5/instance/db2idrop InstanceNamecommand. - Remove the instance owner’s user ID and group if you created them during installation and if they are used only by your program.
- Remove DB2. You must have root authority for uninstalling.
- Use the
db2_deinstallcommand in the root directory of the DB2 DVD or image.
- Use the
Что я могу сказать. Столько дейтсвий я еще никогда не делал, чтобы сненсти что-нибудь в Linux :).
Кстати, это я уже второй раз сношу :) В первый раз я сделал всё по простому — просто снёс директорию с DB2 к чёртовой матери и всё. Но после этого при следующей установке DB2 немного корёжило. Он всё думал, что у меня есть еще одна версия :). Теперь же всё было сделано по феншую.



