---
title: "db2 codepage 导致连接不上数据库问题"
author: "flypeace"
date: "2008-04-11T08:50:26Z"
tags: []
slug: "db2-codepage"
draft: false
lastmod: "2008-04-11T08:50:26Z"
id: 181537
url: "https://host.iteye.com/blog/181537"
---

在客户端机器装上db2客户端，以及配置好链接远程数据库别名后，连接一把，

报告错误：

SQL0332N  There is no available conversion for the source code page "1386" to  
the target code page "819".  Reason Code "1".  SQLSTATE=57017

查相关资料，原来源代码页与目标代码页不兼容，用命令：

db2set db2codepage=1386 -I db2inst

db2 terminate

后，重新连接，一切正常！