成功导入dmp文件后,我无法在oracle 10g上看到表

时间:2015-05-18 08:11:18

标签: oracle import oracle10g oracle-xe

我是Oracle的新手 这里我们的客户端在.dmp文件中提供导出的文件,并且.dmp文件在6i oracle中导出。 现在,我正在尝试在oracle 10g express版中导入该文件。我在11g企业版中使用 impdp 命令尝试了同样的事情,但是没有工作而我发现了我的错误; 只能通过imp 命令完成。并在oracle 10g快递版中做同样的事情。在这里,我采取了以下步骤:

  1. 创建用户(for shcema)

    create user veshraj identified by veshraj
    //granting some priviliges
    grant connect, create, imp_full_database to veshraj
  2. 通过CLI强制执行imp命令

    imp  // press enter
    //asks for user name and password i provide new user name and password
    //it provides following lines
    import file EXPDAT.DMP> c:\db\motor.dmp
    // it asks for number of bytes and i provide the maximum value
    List contents of import file only (yes/no): no >Y
    Import entire export file (yes/no): no >Y
    // provides following results
    "ALTER SESSION SET "_LOAD_WITHOUT_COMPILE" = NONE"
    "ALTER SESSION SET CURRENT_SCHEMA= "ADMIN""
    "ALTER PACKAGE "PACK_DC" COMPILE REUSE SETTINGS TIMESTAMP '2007-02-22:11:13:" "07'"
    "ALTER PACKAGE "PACK_MOTOR" COMPILE REUSE SETTINGS TIMESTAMP 2006-12-10:14:" "54:12'"
    "ALTER PACKAGE "PACK_NW" COMPILE REUSE SETTINGS TIMESTAMP '2006-10-16:11:55:" "48'"
    "ALTER TABLE "MISCH_REFUND" ADD CONSTRAINT "FK1" FOREIGN KEY ("PRIMARY_NO") " "REFERENCES "MISCH_MASTER" ("PRIMARY_NO") ENABLE           "
    "ALTER TABLE "AD_LEAVE" ADD CONSTRAINT "FK_AD_LEAVE" FOREIGN KEY ("EID") REFERENCES "AD_EMP" ("EID") ENABLE NOVALIDATE"
    "ALTER TABLE "INT_DET" ADD CONSTRAINT "FK_INT_DET" FOREIGN KEY ("PRIMARY_NO""") REFERENCES "LAGANI" ("PRIMARY_NO") ENABLE           "
    "ALTER TABLE "LOAN_INF" ADD CONSTRAINT "FK_LOAN" FOREIGN KEY ("PRIMARY_NO") "REFERENCES "LOAN_DET" ("PRIMARY_NO") ENABLE           "
    "ALTER TABLE "MONC_DET" ADD CONSTRAINT "FK_MONC" FOREIGN KEY ("FISCAL_YEAR") REFERENCES "MONC_MASTER" ("FISCAL_YEAR") ENABLE NOVALIDATE"
    // and many more alter table information
    // final message is follows
    Import terminated successfully without warnings.
  3. 但问题是我在oracle 10g的某个地方看不到任何表(导入)。我该怎样做才能完成。

1 个答案:

答案 0 :(得分:2)

  

仅列出导入文件的内容(是/否):否> Y

这相当于the SHOW parameter。你说是的,所以列出了内容,没有导入数据。重新运行您的导入,但对该提示拒绝。