在b机器用exp将a上的数据库导出,然后在b机器上,将导出的文件导入到b的数据库中!

解决方案 »

  1.   

    to:ashzs((可以包含中文字符)) 
       请您给出具体的命令和操作过程我是如下做的:所有的操作都是在b机器上set nls_lang=american_america.zhs16cgb231280exp system/manager file=exp.dmp log=exp.log full=yset nls_lang=american_america.zhs16cgb231280imp system/manager file=exp.dmp log=imp.log full=y导出成功执行了,但是倒入的时候出错,倒入的日志如下:Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - ProductionExport file created by EXPORT:V09.02.00 via conventional path
    import done in ZHS16CGB231280 character set and AL16UTF16 NCHAR character setIMP-00017: following statement failed with ORACLE error 942:
     "GRANT READ ON DIRECTORY "MEDIA_DIR" TO "PM""
    IMP-00003: ORACLE error 942 encountered
    ORA-00942: table or view does not existIMP-00019: row rejected due to ORACLE error 1
    IMP-00003: ORACLE error 1 encountered
    ORA-00001: unique constraint (OE.PRODUCT_INFORMATION_PK) violated
      

  2.   

    在B上
    exp userid=system/manager@iagentdb file=d:\orabak\1_full.dmp full=y direct=y rows=y constraints=y  grants=y然后
    imp userid=system/manager file=d:\orabak\1_full.dmp full=y;