有两张数据表
表的结构都是一样的
分属于两个数据库
但是数据库的版本都是9I
请问我能不能把其中一张表的数据导入到另外那张数据表中
替换掉那张表里的数据

解决方案 »

  1.   

    假设表table A ,B用B导入A:--清空表A,不可回退
    truncate table A;--将B插入A
    insert into table A select * from B;
      

  2.   

    两个数据库可以用imp/exp啊也可以sql loader
      

  3.   

    imp/exp可以只指定导入导出其中一张表的数据吗?
      

  4.   

    可以啊,里面有个tables参数的可选你在cmd下面,
    imp help=y
    exp help=y看一下命令格式就整好了
      

  5.   

    数据量大的话imp导入
    现在要导的数据库平台
    exp user1/passwd file=d:\xx.dmp tables='tablename'
    在要导入的平台
    imp user2/passwd file=d:\xx.dmp tables='tablename' fromuser=user1 touser=user2 ignore=y
      

  6.   

    如果imp和exp使用的用户不相同的话,
    需要用dba用户导入,指定fromuser和touser参数