You are root user so you must have the "db2 environment" or log into the instance user (usually "db2inst1").
To log into the instance user :
su - db2inst1
To have the environment (supposed the instance owner was "db2inst1") :
. /home/db2inst1/sqllib/db2profile (n.b. blank after the initial dot)
As we see the error
SQL10007N, I think you must first start the database software itself(with "db2start" com
mand) and then, probably, create the TESTDB database (db2 "CREATE DATABASE TESTDB").
------------------------------
Adriano Mari
------------------------------