ORA-00922 missing or invalid option Cause: 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. 

解决方案 »

  1.   

    IMP-00003 Oracle message code num encountered Cause: Import encountered the referenced Oracle error. 
    Action: Look up the Oracle message and take appropriate action. (To find information on the error number, click the Help Topics button in this window, click the Index tab, then type the error number, including its three-letter prefix with the hyphen.) 
      

  2.   

    IMP-00017 following statement failed with Oracle message num: str Cause: Import failed to execute the statement from the export file because of anOracle error. 
    Action: Look up the accompanying Oracle message and take appropriate action. (To find information on the error number, click the Help Topics button in this window, click the Index tab, then type the error number, including its three-letter prefix with the hyphen.) 
      

  3.   

    错误原因我是知道的,就是多了LOGGING NOCOMPRESS这两个参数。
    把这两个参数去掉之后就可以插入了。
    问题是如何解决呢?我只有dmp文件,怎么才能去掉他们呢?
    还有,能不能让dmp文件不创建表,而是直接导入数据呢?我试了自己建表然后imp这个dmp文件,但是不行,还是要建,还是报错。即使加了ignore=y的选项也一样。
      

  4.   

    你是用哪个版本导出的DMP文件,又导入到哪个版本?