
26
then su to the db2 instance ID:
su – db2inst1
To add a new database to the system.
At the DB2 prompt type:
db2 create db testdb
To make sure the database was created use the list command to view the databases in the
database directory:
db2 list db directory
$ db2 list db directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:Database alias = TRADEDB
Database name = TRADEDB
Local database directory = /home/db2inst1
Database release level = c.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
.
.
.
Comentarios a estos manuales