SQL adaptation guide for IBM DB2 UDB 10.x / Installation (Runtime Configuration) |
If you are tasked with installing and configuring the database, here is a list of steps to be taken:
$ db2 ... db2 => CREATE DATABASE dbname AUTOMATIC STORAGE YES USING CODESET UTF-8 TERRITORY EN_US DB20000I The CREATE DATABASE command completed successfully.
db2 => connect to dbname Database Connection Information Database server = DB2/LINUX 10.1.0 SQL authorization ID = DB2INST Local database alias = dbname
db2 => GRANT CONNECT ON DATABASE TO USER appadmin DB20000I The SQL command completed successfully.
db2 => GRANT CREATETAB ON DATABASE TO USER appadmin DB20000I The SQL command completed successfully.
db2 => connect to dbname user appadmin using password Database Connection Information Database server = DB2/LINUX 10.1.0 SQL authorization ID = DB2INST Local database alias = dbname