注意导出/导入语句
exp userid=user1/xxx owner=user1 file=xxxx 
imp userid=user2/xxxx fromuser=user1 file=xxxx ignore=y

解决方案 »

  1.   

    imp userid=epmnd/xxxxxx@xxxxxx fromuser=epmdy file=d:\epmdy.dmp ignore=y log=d:\epmnd.txt
    tablespaces=epmdat2
    这是我imp语句,大家看有问题吗?
      

  2.   

    但是我导入完成后,数据还是放到epmdat1里了
      

  3.   

    权限的问题!!!
    撤销epmnd的UNLIMITED TABLESPACE 系统权限!
    如果授予其RESOURCE权限就使其具备了UNLIMITED TABLESPACE 系统权限!
    这样在导入时,因其具备对epmdat1的quota权限,所以就会把表建到epmdat1中去了....指定他只有对其默认表空间有权限。如:
    revoke UNLIMITED TABLESPACE from epmnd;
    grant  UNLIMITED on epmdat2 to epmnd;然后再导入
    imp userid=epmnd/xxxxxx@xxxxxx fromuser=epmdy file=d:\epmdy.dmp ignore=y log=d:\epmnd.txt
      

  4.   

    >指定表空间TABLESPACES指定表空间参数,只是在传递表空间时与另外几个参数结合起来才有用。单独使用,无意义系统会忽略。
      

  5.   

    另,epmnd要导入不是自己导出的数据,需要有IMP_FULL_DATABASE的系统权限!
      

  6.   

    我当前epmnd用户拥有的角色是dba和connect,RESOURCE权限我干掉了。
    需要增加:UNLIMITED TABLESPACE 和IMP_FULL_DATABASE的系统权限???
      

  7.   

    SQL> grant  UNLIMITED on epmdat2 to epmnd;
    grant  UNLIMITED on epmdat2 to epmnd
           *
    ERROR 位于第一行 
    ORA-00990: 缺少无效权限
      

  8.   

    疏忽了,应该是alter user epmnd quota UNLIMITED on epmdat2 ;