databasedb2how tolinux

Installing DB2 on openSuse Linux

Last year, I wrote an article on how to install DB2 on Ubuntu Linux.  Well, today I am attempting to install DB2 on Suse Linux.   First you need to download openSuse .
I downloaded the 32 bit, since my sandbox laptop is a 32 bit CPU/ Burn it onto a DVD using your favorite software.   If you doing a native install (meaning its not a VM install), you should boot the computer off the DVD.  At the splash screen click “Installation”

Go through the different screens presented by the installer. Its no rocket science to install openSuse.  Once you install open up YaST , click Online Update under software, click the OK .  Let it do its thing.  It may require a reboot of the machine depending on the updates it finds.

Once you have the OS all installed and setup, you can download DB2 V9.7 Express-C for Linux  The file you download is a zipped file.  Using a terminal, navigate to the directory you saved the file ; you should find a file db2exc_972_LNX_x86.tar.gz .
sudo to root by typing  sudo su –

  • Type gunzip  db2exc_972_LNX_x86.tar.gz to unzip it .
  • Type tar -xvf db2exc_972_LNX_x86.tar
  • type cd  expc directory
  • type export DISPLAY=:0 if for some reason you cannot setup the DISPLAY variable, type xhost + first and then type export DISPLAY=:0
  • type ./db2setup . You should now see a new IBM splash screen.
  • select Install a product
  • click Install New
  • select Typical or Custom depending on your expertise level
  • select Install DB2 Express-c on this computer
  • choose your install directory, I recommend leaving the default install path
  • type in a password for your db2 admin server userid
  • choose if you want to create a instance as part of the install
  • if you chose to create a instance, type a password for the instance userid
  • type a password for the db2 fence userid
  • Click Finish
  • Once its complete, review the log file just to ensure everything went well.  Once satisfied, click Finish .  You now have a db2 instance running to use !!