在oracle中如何导出PDMM31A实例下的IUSER,T2ATTRUPT,T2CLASS,T2LIST,T2TABLE表中的数据,要求表结构和数据一同导出?
我是这样写的:exp sys/change_on_install@PDMM31A file= d:datanewsmgnt.dmp tables=(IUSER,T2ATTRUPT,T2CLASS,T2LIST,T2TABLE) ;可是报这样的错误:
ORA-00900: 无效 SQL 语句

解决方案 »

  1.   

    我在dos窗口下输入exp命令,命令如下:F:\oracle9.2.0.1.0\bin>exp sys/change_on_install@M31A_PDMTSTMSVR file= d:datanew
    smgnt.dmp tables=(IUSER,T2ATTRUPT,T2CLASS,T2LIST,T2TABLE)Export: Release 9.2.0.1.0 - Production on 星期一 2月 2 13:21:01 2009Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    EXP-00056: 遇到 ORACLE 错误 12154
    ORA-12154: TNS: 无法处理服务名
    EXP-00000: 导出终止失败M31A_PDMTSTMSVR为服务器端的数据库
      

  2.   

    M31A_PDMTSTMSVR 这个如果在数据库服务器上,不用写,直接 exp username/password 即可。如果客户端需要写,但这个地方是 客户端的 连接串 名,非 数据库实例名。
      

  3.   

    请查清楚你所用导出的计算机上的ORACLE客户端上有没有创建好你想要导出的实例?
      

  4.   

    我以前用dos命令是在服务器端执行的 客户端我是用工具,toad plsql完成 
      

  5.   

    请问是否一定要先切到/bin目录下用这个命令
      

  6.   

    on your web server, your sqlnet.ora and tnsnames.ora and/or ldap.ora aren't able to find connection to your database.That can be because the tnsnames.ora doesn't have the connect alias you're using
    or
    ldap.ora isn't pointing to a server with the connect alias you're usingthat could be because they are simply missing, or possibly because of a typo in the alias you're using in your application.
      

  7.   

    根据数据库别名PDMM31A 找不到你的数据库
    在执行exp命令的机器上,要先定义数据库别名,能连接上后再到处应该就没事了
    如果数据库就在执行exp命令的机器上,就不要加@PDMM31A 了