+ -
当前位置:首页 → 问答吧 → dblink会否导致远端数据库的性能问题?复杂的dblink查询怎么表示?

dblink会否导致远端数据库的性能问题?复杂的dblink查询怎么表示?

时间:2010-08-31

来源:互联网

已建立并能运行诸如 select * from abc@remote_db的查询。但有以下问题,请问

1.时不时的用dblink会否拖慢远端数据库(假如时不时的在用select * from abc@remote_db,select * from efg@remote_db,select * from hij@remote_db.....)
何时需要用ALTER SESSION CLOSE database link remote_db;  ?

2.如果要运行复杂查询,该怎么写?(我本地数据库local_db里有和remote_db里同样的结构,同样的表名)

select local_table.A
          efg@remote_db.B,
          A*B/2    C,
          decode(..............)     D,
...........
      from abc@remote_db,efg@remote_db,hij@remote_db,local_table,......
  where  abc@remote_db.A=efg@remote_db.B
              and efg@remote_db.E=hij@remote_db.F
              and abc@remote_db.A=local_table.A
..............................

作者: blackantt   发布时间: 2010-08-31

dblink就相当于建立了一个镜像一样。

作者: renxiao2003   发布时间: 2010-08-31

不敢用复杂的query通过dblink去查生产库,用过的朋友说说看

作者: blackantt   发布时间: 2010-08-31