How to Uninstall DB2 V9.5 in AIX

Posted: February 25, 2010 in Database, Linux & Unix
Tags: , , , , , , ,

(English version is below the Indonesian version).

Untuk uninstall DB2 V9.5, ada beberapa langkah yang harus dijalankan :
1. Lihat instance apa saja yang sedang berjalan
a. gunakan user root
b. masuk ke DB2DIR (tempat instalasi DB2, defaultnya di “/opt/IBM/db2/V9.5/)
c. masuk ke folder bin (cd bin)
d. Jalankan command “./db2ilist”
e. Akan muncul list instance yang ada (misalnya “db2inst1″). Ingat – ingat atau catat instance yang ada.

2. Matikan instance
Untuk tiap instance yang ada :
a. login sebagai owner instance
b. ketikkan “db2stop force” enter
c. ketikan “db2 terminate” enter untuk memastikan instance benar-benar mati

3. Matikan Database Administration Server (DAS)
a. Login sebagai DAS (biasanya dasusr1)
b. ketik “db2admin stop” enter untuk menghentikan server

4. Drop instance
a. login sebagai root, masuk ke DB2DIR, folder instance
b. untuk setiap instance yang ada, ketik “./db2idrop ” enter

5. Drop DAS
a. login sebagai root, masuk ke DB2DIR, folder instance
b. ketik “./dasdrop” enter untuk menghapus DAS

6. Uninstall
a. login sebagai root, masuk ke DB2DIR, folder install
b. ketik “db2_deinstall -a”, enter


To uninstall DB2 V9.5 in AIX, follow these steps :
1. Check for existing instances
a. login as root
b. go to DB2DIR (Where DB2 installed, by default it is “/opt/IBM/db2/V9.5/)
c. go to bin folder (cd bin)
d. run “./db2ilist” command
e. There will be list of instances (e.g “db2inst1″).

2. Shutdown instance
For each instance :
a. login as the instance owner
b. run “db2stop force”
c. run “db2 terminate” to ensure the instance has been properly terminated

3. Turn off Database Administration Server (DAS)
a. Login as DAS (commonly named as “dasusr1″)
b. run “db2admin stop” to stop DAS
4. Drop instance
a. login as root, go to DB2DIR, go to instance folder
b. For each existing instance, run “./db2idrop “

5. Drop DAS
a. login as root, go to DB2DIR, go to instance folder
b. run “./dasdrop”

6. Uninstall
a. login as root, go to DB2DIR, go to install folder
b. run “db2_deinstall -a”

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s