建一个dblink,然后用insert into tb1 (,,,) as select ,,,, from tb2.dblink
解决方案 »
- blob 字段通过触发器同步的问题?
- oracle怎么从日志中找到以前执行过的sql?
- ORACLE数据库,存储过程需要返回一个二维数组,请问应该怎么写
- 存储过程数据导入 在线等!
- oracle 如何书写批处理将原有用户及表空间删除,重新创建表空间和用户,高分急求!!!!!!!!!!!!!!!!!!!!!!
- 急!!!请问Oracle存储过程中如何执行一个字符串变量(例如在SQL SERVER中可以使用exec @s)
- 有关优化的问题
- 请问谁有在windows 2003 server下装oracle 9i的经验?
- studio在哪,找不着没法建表。。。。
- 请教关于ASP中Oracle 的分页问题
- timeout: distributed transaction waiting for lock是什么错误,怎么解决?
- 日期问题
connect to scott identified by tiger
using 'test'; //test为net manager配置出来的insert into tb1 (,,,) as select ,,,, from tb2@dblink
然后创建dblinkconnect to scott identified by tiger//scott/tiger为另一个服务器中的一个用户名和密码
using '连接字符串'
┏━★━━◆━━★━┓
♂欢|◢CSDN◣|使♂ ▲自由保存帖子,浏览,关注检测
┃迎|◥论坛助手◤|用┃ ▲完善的CSDN客户端工具
┗━☆━━◇━━━☆┛ ▲自动添加签名......让你更快,更爽,更方便地上CSDN...
http://www.csdn.net/expert/topic/573/573604.xml
http://www.chinaok.net/csdn/csdn.zip
先配置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的配置有关吧?!
connect to user2 identified by user2password using 'test'
这里test用net8 manager设置得指向ser2的网络服务名
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????
very very easy!
重新启动数据库