db2遇到的问题(更新中)

问题一:SQL1047N  The application is already connected to another database.



db2 => create database smart_crud
SQL1001N  "smart_crud" is not a valid database name.  SQLSTATE=2E000


db2 => create database smartcru (MB的,db2数据库名的长度只能是8位?)
SQL1047N  The application is already connected to another database.


db2 => connect reset
DB20000I  The SQL command completed successfully.


db2 => create database smartcru
DB20000I  The CREATE DATABASE command completed successfully.

问题二:数据库的大小

db2 "CALL GET_DBSIZE_INFO(?, ?, ?, -1)"

问题三:

Application code page not determined, using ANSI codepage 1208
Error opening list file. Terminating …
**Error occured while opening a file.

1,db2 变量查看 
db2set -all 
(connect to dbanme ) get db cfg 
db2pd -osinfo 


2、db2c变量的设置用命令 
db2set 变量=value 
可以参考一下: 
客户端: 
    db2codepage=1386(简体中文) 
       db2country=86(中国) 
       db2comm=tcpip 
服务器端: 
    db2codepage=1386(简体中文) 
       db2country=86(中国) 
       db2comm=tcpip 
  一定要把缺省的db2codepage=819改为数据库的代码页设置 


DB2 CODEPAGE --代码页查询列表 


Try the following:
export DB2CODEPAGE=819
do the export
on the other mashine do export DB2CODEPAGE=819
do the import


export and import utilities use the codepage that is set on the client
machine.
(我直接改的客户端1208,你懂的)

db2的用户对于当前文件夹没有写权限,使用chown改变owner或者chmod改变权限。
chown db2inst1:db2iadm1 $directory_name -R






  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值