我的数据库(orcl)中有三个表空间ubase 、utpf和uwf
对应ubase 、utpf和uwf三个用户
因为我和外地同事的数据表不一致,他已经分别导出了ubase和utpf和uwf的dmp文件
我现在要导到我这边的数据库中  我现在要怎么做我先删除了 用户ubase  drop user ubase  cascade
然后打算删除  ubase表空间   drop tablespace ubase including contents and datafiles cascade onstraints;
再重新建立表空间  将dmp文件导进来但是在cmd中sqlplus /nolog ->  conn /as sysdba -> 然后之行ubase  drop user ubase  cascade
成功
但是执行 drop tablespace ubase including contents and datafiles cascade onstraints;后显示“2” 没有反应

解决方案 »

  1.   

    你确认分号跟上的?看你的情况,应该是没跟分号,2是提示你第二行。跟上;注意是英文输入法下的,或者/
    另外你的语句有问题。应该是SQL> drop tablespace ubase including contents and datafiles cascade onstraints
      2  /
    drop tablespace ubase including contents and datafiles cascade onstraints
                                                                   *
    第 1 行出现错误:
    ORA-00905: 缺失关键字
    SQL> drop tablespace ubase including contents and datafiles;
    drop tablespace ubase including contents and datafiles
    *
    第 1 行出现错误:
    ORA-00959: 表空间 'UBASE' 不存在
      

  2.   

    表空间可以保留drop user cascade就可以了
      

  3.   

    三个表空间ubase 、utpf和uwf 
    对应ubase 、utpf和uwf三个用户   我只把用户删了  ,表空间还在吗?
    表空间的表还在吗?如果表和表空间还在的话,那往里边导的表和原来的表只是字段不一样, 那结果怎么样,表不会被导进去吧?
      

  4.   

    三个表空间ubase 、utpf和uwf 
    对应ubase 、utpf和uwf三个用户   我只把用户删了  ,表空间还在吗?
    表空间的表还在吗?如果表和表空间还在的话,那往里边导的表和原来的表只是字段不一样, 那结果怎么样,表不会被导进去吧?
      

  5.   

    我也有这样的情况,开始时:drop tablespace tablespace_name including contents and datafiles cascade onstraints; 不行,后来把cascade onstraints 去掉就没有这个提示了。没有搞懂为什么。
      

  6.   

    最后一个单词写错了,应该是constraints