这个问题已经将我头都搞懵了了!导入的时候问题如下:一开始没有注意头ps2-0734这一行的错误;有的很多数据导入报错,报什么字符串没有正常结束,但是导入成功的数据查看时中文部分都是乱码。是在纠结,昨天搞了一天,乱码的问题,注意到了我如果在plsqldeveloper里将导入的那个出现乱码的插入语句直接用sql语句执行没有报错也不存在乱码。其实我有两个不同数据库的备份文件,但是导入另一个的时候没有任何错误乱码的问题一切很顺利,我初步确定就是那个
ps2-0734这一行的问题。但是不知道怎么办。还请各位朋友给教我一下!

解决方案 »

  1.   

    Check your character set....
      

  2.   


    i guess you export your data into a .sql file by using pl/sql developer,right?
    how you execute this sql file? in sqlplus or command window of pl/sql developer?
      

  3.   

    在仔细点:
    我有两个不同的数据库备份文件A与B;所涉及的服务器有三个:f1,f2,f3;
    f1是操作系统为windows2000的原始服务器,f2是操作系统为Linux的原始服务器;f3是操作系统为windows2000的目标服务器(即我要将数据导入的服务器);
    A是从f1中备份的.sql数据文件,导入f3没有问题。
    B是从f2中备份的.sql数据文件,导入f3中有问题,问题入上述。经过检查服务器字符集都是AL32UTF8
      

  4.   

    the char set of the client where you export the sql file will made a impact.
    please try to execute the sql file where you exactly export it. 
      

  5.   


    是的导出的时候是用pl/sql developer。
    命令我不会。看了也烦。
    我导入的时候也是使用界面导入的sql,命令执行是sqlplus.exe不太明白你问题的具体目的!
      

  6.   

    just try to execute the sql file in command window of your pl/sql developer,
    the command would be like @D:\XXXX.SQL
      

  7.   


    watch your mouth young man, i'm online thru Solaris server in full English environment.I could not input any Chinese character.
      

  8.   

    我注意到出问题的是从linux到windows出的错,是不是导入导出都用工具做的?如果出现过文件转移(比如用ftp)上传下载,就会出现文件格式发生变化),出错的截图再传一下。
      

  9.   

    good  job;New problem now!我用pl/sql developer在客户的服务器上(也就是那个linux上)导出的数据文件为.sql文件再导回去还是报同样的错误,导出的数据文件打开后没有任何乱码问题。我在导出数据的时候是分两步的:
    第一是导出对象,得到我要的一些过程,表结构,序列等对象;导出的对象在导入后也没有乱码(如表中字段的额中文注释)和报错。第二步再导出表;这里就报错。现在我在怀疑是我的oracle客户端出错了,导致我所备份的数据出现问题。现在客户的那边我还要手工的将那些insert 语句给贴出来在单独运行,麻烦了!
      

  10.   

    table structures and comments,sequences,procedures -> no error
    table data(insert statements) ->errors
    am i right?
      

  11.   

    我现在应该怎么去解决啊?现在我在将一个正在使用的数据一批一批用sql语句添加,手都复制疼了!
      

  12.   

    make sure your client char set is AL32UTF8 first
    check it in regedit 
      

  13.   


    SIMPLIFIED CHINESE_CHINA.ZHS16GBK
      

  14.   


    是GBK字符集,对这个字符集也是很麻烦,网上查看的那些相关知识结合起来让我很混乱。
      

  15.   

    我用了命令窗口导入居然是没有报错,也没有乱码。不知道command window方式与sql*plus方式有什么区别?还望朋友提点一下!
      

  16.   


    im not sure about this, i just faced this issue before. i exported the structure of some tables into a sql file in pl/sql developer. Within same client charset, it get executed successfully in command window, but raised ps2-0734 in sqlplus.