如何在两个字符集不同的数据库之间转换数据?

tongkun 2003-02-20 04:25:45
我是说字符集,不是显示格式。如何转换?
我以前用以下两个办法:
1、先exp数据库A,在改dmp文件的第二个字节,再imp数据库B
2、用delphi将A导入dbf中再导入B中。
有没有其他操作简单的办法?
...全文
51 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
maohaisheng 2003-02-21
  • 打赏
  • 举报
回复
楼上说的对,我以前看到zhs16gbk和zhsgb231280字符集可以互相转换,就想当然了:

An export file that is produced with a multibyte character set (for example, Chinese or Japanese) must be imported on a system that has the same character set or where the ratio of the width of the widest character in the import character set to the width of the smallest character in the export character set is 1. If the ratio is not 1, Import cannot translate the character data to the Import character set.

Caution: When the character set width differs between the export client and the export server, truncation of data can occur if conversion causes expansion of data. If truncation occurs, Export displays a warning message.
dy125 2003-02-20
  • 打赏
  • 举报
回复
大哥,不同字符集的數據庫之間可以通過exp/imp切換嗎,exp出來的dmp文件會記錄字符集,當想imp到不同的字符集數據庫中時會報錯,而且不允許執行.好像dmp不可以改變格式吧
maohaisheng 2003-02-20
  • 打赏
  • 举报
回复
我实在不明白你要做什么。
在不同字符集的数据库之间导入导出数据使用exp/imp工具就可以了,oracle工具可以做到的事情,为什么要写程序?
dmp文件是经过压缩的二进制文件,我还真不知道它的格式定义。

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧