建一个dblink,然后用insert into tb1 (,,,) as select ,,,, from tb2.dblink

解决方案 »

  1.   

    如何建dblink ??请说的详细点!
      

  2.   

    create public database link dblink
    connect to scott identified by tiger
    using 'test';  //test为net manager配置出来的insert into tb1 (,,,) as select ,,,, from tb2@dblink
      

  3.   

    偶菜菜呀  :(执行connect to scott identified by tiger所用的服务器是哪个?
      

  4.   

    先配置net8,得到连接另一个服务器的连接字符串
    然后创建dblinkconnect to scott identified by tiger//scott/tiger为另一个服务器中的一个用户名和密码
    using '连接字符串'
      

  5.   

    你如果是在两个库中互相导入到处两个相同的表,那倒用Delphi自带的DataDump这个工具倒是非常方便,非常实惠的—————————————————————————————————
    ┏━★━━◆━━★━┓ 
    ♂欢|◢CSDN◣|使♂        ▲自由保存帖子,浏览,关注检测
    ┃迎|◥论坛助手◤|用┃        ▲完善的CSDN客户端工具
    ┗━☆━━◇━━━☆┛       ▲自动添加签名......让你更快,更爽,更方便地上CSDN...
    http://www.csdn.net/expert/topic/573/573604.xml
    http://www.chinaok.net/csdn/csdn.zip
      

  6.   

    to:
    先配置net8,得到连接另一个服务器的连接字符串 
    怎么配置???我现在做
    create public database link dblink
    connect to scott identified by using 'test'SQL> insert into tab1 (aa) select aa from tab2@dblink;报: ORA-02019: 未找到远程数据库的连接说明和net80的配置有关吧?!
      

  7.   

    当然了,你先要进入Net8 Configuration Assistant里面配置一服务名,连接另外一个Oracle数据库
      

  8.   

    配置的时候你需要知道另外Oracle库的SID,IP地址
      

  9.   

    create public database link dblink
    connect to user2 identified by user2password using 'test'
    这里test用net8 manager设置得指向ser2的网络服务名
      

  10.   

    SQL> insert into tab1 (aa) select aa from tab2@dblink;这里的 dblink 就是dblink吗?还是我的 ser2 ??
      

  11.   

    ser2 的 net8 manager设置的网络服务名: s2
    ser1 的 net8 manager设置的网络服务名: s1
    执行:
    create public database link dblink;
    connect to user2 identified by user2password using 's2';现在连接上ser2insert into use1.tab1 (aa) select aa from use2.tab2@dblink;
    insert into use1.tab1 (aa) select aa from use2.tab2@s2;
    insert into use1.tab1 (aa) select aa from use2.tab2@s1;都报:ORA-02019: 未找到远程数据库的连接说明why????
      

  12.   

    use dts in sqlserver
    very very easy!
      

  13.   

    修改目的数据库的init.ora文件中的global_names=false
    重新启动数据库
      

  14.   

    老大,在ser1上设置一网络服务名test指向ser2,用test应该能访问到ser2,不行就看看文档