I have installed DB2 Express-C in my Ubuntu machine. I start my DB2-Server with the command:
sudo su - db2inst1
I wonder, whether I can start my DB2 with other commands too?
I havent tried this, because I just "broke" my Ubuntu machine. Because of a problem, I changed the name of etc/passwd.lock into etc/passwd.lock_bak. Since then, my Ubuntu ist broken
I will have to install it new.
But to my previous problem. I actually havent understood, why I HAVE to use sudo su - db2inst1 to connect to the instance db2inst1.
I tried to log in as user with the command su. After that I tried to sudo db2inst1. But it didnt work.
You seem to be learning Linux and learning DB2 at the same moment, and asking a lot of very simple questions.
Maybe that is not wise to try both things at the same moment.
Maybe it is best to Learn the basics of Linux first...
That would let you progress faster...
This failure to start DAS is not a blocking problem, you can survive without the DAS, but the problem should be easy to fix if you study the messages and Infocenter.
In V9.7 the DAS is needed only for some actions in Control-Center.
Become the DAS user (example: login as that account , or sudo su - dasadm1, or su - dasadm1 )
Try to start the DAS manually:
and then try to understand the messages, look in the infocenter for the meaning of the error messages and the recommended actions.
You can also create a .profile for the DAS user and add a line to dot in the dasprofile
.profile --> . $HOME/das/dasprofile
You can also read the error messages in the DAS diagnostics file
Always study the Infocenter before asking for help. Google answers many simple questions quickly.
I actually just want to start using the database SAMPLE without having to "log in" over sudo su - db2inst1.
Because, this command seems to be a logging in as an administrator for the instance db2inst1.
In fact, I found a lot of informations regarding starting a db. The simplest way might be:
db2 connect to db2inst1
db2 connect to db2inst1 ratna db2inst1
But they just didnt work. They kept giving me the error "command not found". To be honest, I dont even have a clue, why:
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then