1 在db2cmd中執行db2 get dbm cfg |find "SVCENAME"
沒有設定node
#設定
linux
$ db2 update dbm cfg using SVCENAME db2inst數據庫
#用命令查看服務器
$ db2set -allapp
問題 二
tcp
db2 => connect to platform
SQL1224N The database manager is not able to accept new requests, has
terminated all requests in progress, or has terminated the specified request
because of an error or a forced interrupt. SQLSTATE=55032ide
重新建實例ui
1 刪除現有實例this
#停掉實例debug
[db2inst@cnwbzp0253 ~]$ db2stop
#使用root用戶登陸,進入到DB2安裝目錄
[root@cnwbzp0253 instance]# pwd
/opt/ibm/db2/V10.1/instance
#執行db2idrop命令刪除
[root@cnwbzp0253 instance]# ./db2ilist
db2inst
[root@cnwbzp0253 instance]# ./db2idrop -f db2inst
DBI1006I An invalid argument was entered for the db2idrop command.
Explanation:
The syntax for the db2idrop command is:
db2idrop [-h|-?]
[-d]
[-g]
[-f]
InstName
Valid arguments for this command are:
-h|-?
Display the usage information.
-d
Turn debug mode on.
-g
This parameter is required when db2idrop is used with a DB2
pureScale instance. Specifies that you want to drop the DB2
pureScale instance on all hosts. This parameter requires all
DB2 members and all cluster caching facilities (CFs) are
stopped on all the hosts in the DB2 pureScale instance.
-f
This parameter is deprecated. This parameter flags
applications. If this flag is specified all applications using
the instance will be forced to terminate. This parameter is not
supported on a DB2 pureScale environment.
InstName
Specifies the name of the instance.
User response:
Enter the command again using valid parameters.
Related information:
db2idrop - Remove instance command
換個思路,不刪除實例,改配置
db2 update dbm cfg using SVCENAME db2c_db2inst
vi services
不是這個問題
ok 解決了,在本機建數據庫,不用catalog
db2 "CREATE DB platform using codeset UTF-8 territory us COLLATE USING UCA400_NO PAGESIZE 32768"
總結:
DB2安裝
1, 修改服務器設置
[db2inst@cnwbzp0253 ~]$ db2set -all
[i] DB2COMM=TCPIP
[i] DB2AUTOSTART=YES
[g] DB2SYSTEM=dnode
[g] DB2INSTDEF=db2inst
2,在客戶端創建服務器端數據庫的節點
Db2 catalog tcpip node test remote host/ip server 50000
注:test爲在客戶端定義的節點,名字能夠任意
查找/設置服務器端DB2使用的端口,
若是服務器端爲linux,能夠訪問/etc/services文件,若是你的實例名爲db2inst1,找到以下行
db2inst1 50000/tcp
3, 在db2cmd中執行db2 get dbm cfg |find "SVCENAME"
沒有設定
#設定
$ db2 update dbm cfg using SVCENAME db2inst
#用命令查看
$ db2set -all
catalog 節點