用oracle90客户端导出oracle92后,再倒入oracle90

解决方案 »

  1.   

    ORA-00922 missing or invalid optionCause: An invalid option was specified in defining a column or storage clause. The valid option in specifying a column is NOT NULL to specify that the column cannot contain any NULL values. Only constraints may follow the datatype. Specifying a maximum length on a DATE or LONG datatype also causes this error. Action: Correct the syntax. Remove the erroneous option or length specification from the column or storage specification. ----呵呵,看到错误原因了吧,可能是因为你的表的某些字段是可以为空的,但你导入的数据库中这些字段不能为空,导致数据不能正常导入,所以会引发这个错误 ,还有就是你的DATE或是LONG数据类型的长度与原数据库字段不符,也会出现这个情况。
    解决办法: 修改你的目标数据库的结构,使你的约束条件能够符合你的源数据库的要求。。
      

  2.   

    如果两个数据库版本差距很大,EXP/IMP是有问题的,
    最好的方法,就是用ORACLE90的客户端EXP,再IMP就OK了
      

  3.   

    如果两个数据库版本差距很大,EXP/IMP是有问题的,
    最好的方法,就是用ORACLE90的客户端EXP,再IMP就OK了以上方法是可行的,补充一点:
    在导入之前请确保两个数据库之间使用的表空间名称(至少保证只多不少)完全一样,否则创建在不同表空间的表、视图、索引等都将失败
      

  4.   

    先 在oracle92的sqlplus中执行catexp.sql,再执行exp,然后在oracle90中imp
    或用oracle90的exp先导出,在imp导入