This article describes how to install and uninstall a DB2 database in a linux environment for your reference.
Install db2 express_c 9.5 on redhat linux enterpise v5 on the VM
1. Upload the db2 linux installation package to the linux server through ftp.
2. decompress the tar-zxvf db2 file package
3. Enter the decompressed directory for cd expc.
4. Execute the command "this is the installation wizard, it is best to use this, instead of db2_install"
./Db2setup
5. Open the Installation Wizard
Select agree to select a typical installation select a location for storing the response File
Default installation path:/opt/ibm/db2/V9.5
New DAS user dasusr1 group name: dasadm1
Instance settings: Select create instance
User name with instance: db2inst1 group name: db2iadm1
Protected User Username: db2fenc1 group name: db2fadm1
6. After completing the settings, click Finish to start database and instance installation.
7. After the installation is complete, check whether the installation is successful, and the installation example database is optional. We recommend that you install it if you want to learn it)
For details, see the db2 express-c Installation check and installation example database.
It is mainly to learn a command db2fs (Note: You should log on to the instance with [db2inst1] and then execute db2fs)
NOTE: If no error is reported after db2fs is executed, but no response is returned,
Execute this command: xhost + db2inst1