drop user username;create user newuser;imp newuser/password@eomsdis file=***.dmp  fromuser=eoms touser=newuser full=y

解决方案 »

  1.   

    而且,我把很多表都建立在system表空间了,这些表怎么办啊?
      

  2.   

    你可以导入到另外一个表区间,比如scott.这样就不会覆盖了
      

  3.   

    一般情况下,表空间不用重建,imp会重新组织的。如果你的Oracle装在两台电脑上,则你在新电脑上可以如此操作:Sql Plus:
    connect system/manager;create user your_name identified by your_password
      temporary tablespace temp
      default tablespace users;grant dba to your_name;Dos:
    imp your_name/your_password file=***.dmp full=y buffer=20480000---------------
    如果你是同一台机器,则建议你建立一个新的实例,然后再倒入数据