六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 79|回复: 0

db2 database

[复制链接]

升级  60.33%

117

主题

117

主题

117

主题

举人

Rank: 3Rank: 3

积分
381
 楼主| 发表于 2013-1-13 18:36:17 | 显示全部楼层 |阅读模式
Database:
create database:
db2 create database test
db2 create database test on /mydir
db2sampl <location>  -- create a sample database
db2 create database test using codeset IBM-1252 territory US

using database directories:
db2 list database directory - to view list in the System Database Directory
db2 list database directory on /home/db2inst1 - to view list of databases residing in certain location
db2 list database directory on e:  - same on Windows

The database directory has the following structure:
     $DBHOME/instance/NODE0000/SQL00001
For example:
myserver : /home/db2inst1/db2inst1/NODE0000 > ls
SQL00001/  SQL00002/  SQL00003/  sqldbdir/

Configuring the database:
db2 get db cfg for <dbname>
db2 get database configuration for <dbname>

db2 update db cfg for <dbname> using locktimeout 10
db2 update database configuration for <dbname> using locktimeout 10

deleting a database:
db2 drop database <dbname>
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表