Johnny Deng's Blog

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: 订阅 订阅 :: 管理 ::
     拿同事给的dmp文件导入到自己的数据库,

C:\> imp newsale/newsale@orcl file=d:\ds.dmp fromuser=BZ1103 touser=newsale

SQL> select table_name, tablespace_name from user_tables;
   发现表空间为SYSTEM,这并不是我想要的(在create user时有指定default tablespace newtbs)。
     删掉重新导,在imp时指定tablespaces=newtbs还是不行,不通……

     经过查资料+多次试验,最终确定,

SQL> revoke unlimited tablespace from newsale;
SQL
> alter user newsale quota unlimited on newtbs;

    然后再重新imp,导入成功后发现表空间的确已经是newtbs了。

   
posted on 2009-10-14 14:59  Johnny Deng  阅读(419)  评论(0编辑  收藏  举报