After you install DB2 on your Linux system (along with IBMs Data Studio) you may have problems connecting to the sample database. It may be that it did not install. If you have any questions about the above, post a comment.
To install the sample database, first be sure you log in to your instance. By default during your first install, your instance name should be db2inst1
Once you are in you’re logged into your instance session, navigate to your sqllib/samples folder. Execute the db2sampl file. This will begin the Sample Database installation process.
Once the installation is complete, connect to the database by typing: db2 connect to sample.
You can list the tables in the database by typing: db2 list tables
Now that you’ve set up your playground, have fun.