我有两个库db1, db2一个超级用户system/system我想用这个用户将db1中的表table1完全复制到db2中的表table2中,怎么做啊?
table2存在,且与table1完全一样!
用sql语句如何实现阿。

解决方案 »

  1.   

    CREATE DBLINKINSERT INTO TABLE2
    SELECT * FROM TABLE1@YOUR_DBLINK
      

  2.   

    MIS_ECSM大哥:
     照你的方法做了,不知道是什么地方出错了---》ORA-02019: 未找到远程数据库的连接说明
     我有两个users : foot和hand, foot用户有表t_dept, hand用户有表t_dept1
      步骤:
     1. conn scott/tiger as sysdba
      2. create database link dblink_foot 
         connect to foot identified by foot
         using 'zorro';    注:zorro 数据库服务名
      3. conn hand/hand
      4. insert into t_dept1 select * from t_dept@dblink_foot
      
      请教错在什么地方? Thanks
      

  3.   

    只是要访问同意服务器中同一实例的另一个用户的信息,只要赋权就可以了grant 权限 on 对象 to 用户  with grant option