mkdir -p /data//db2dir/testdb/
2.赋予db2用户权限
3.建库(需要相应的权限)
连接到数据库db2 connect to testdb
create user temporary tablespace TEMPSP16K pagesize 16384 managed by database using(file '/data/db2dir/testdb/NODE00003' 65000) extentsize 16 prefetchsize 16 bufferpool dw_bp
update db cfg for testdb using newlogpath /data/db2dir/dccdb/log.01
update db cfg for testdb using logprimary 20
update db cfg for testdb using logfilsiz 7680
update db cfg using STMTHEAP 16384
update db cfg using APPLHEAPSZ 512
5.创建模式
create schema db2test [authorization db2test]
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25897089/viewspace-697001/ ,如需转载,请注明出处,否则将追究法律责任。