要命的逗号

在从Linux环境下的Oracle数据库导出schema至Windows环境并尝试导入时遇到ORA-39001等错误。经过排查发现是由于逗号在不同操作系统下的处理差异导致的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • 源数据库:
  1. Linux 64 Bit
  2. Oracle 11.2.0.1.0  64Bit
  3. 字符集 UTF-8
  • 目标数据库:
  1. win7 64 Bit
  2. Oracle 11.2.0.1.0  64Bit
  3. 字符集 UTF-8

使用expdp成功从源数据库导出一个schema的dump文件,经详细检查过程中没有任何错误;将文件下载到目标操作系统上用impdp导入时总是提示那三个错误,两个数据库的版本和字符集都是一样的,version的参数值无论是用compatible还是latest都报同样的错误,纠缠了很久实在找不到原因,最后删除逗号问题解决,逗号在linux环境下是没有问题的,但在windows环境下使用dos命令就有问题了,而且提示的错误信息容易误解,真是要命的逗号。


  1.  C:\>impdp user/pwd@ORCL  schemas=schema1 directory=dir1 dumpfile=schema1.dmp LOGFILE= schema1 .log content=all version=compatible; 
  2.  
  3. Import: Release 11.2.0.1.0 - Production on Fri Jun 8 15:28:49 2012 
  4.  
  5. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved. 
  6.  
  7. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production 
  8. With the Partitioning, OLAP, Data Mining and Real Application Testing options 
  9. ORA-39001: invalid argument value 
  10. ORA-39023: Version COMPATIBLE; is not supported. 
  11. ORA-06502: PL/SQL: numeric or value error: character to number conversion error 
  12.  





本文转自sarchitect 51CTO博客,原文链接:http://blog.51cto.com/stevex/892745,如需转载请自行联系原作者



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值