사용자 도구

사이트 도구


dbms:oracle:concept:dblink

문서의 이전 판입니다!


REMOTE DATABASE LINK

  1. 원격에서 정보를 가져오는 부분에 있어서 제한이 있다.
  2. 그 제한을 알고 제대로 활용해보자.

Oracle에서 remote database query 하는 중요 포인트

  1. Aggregate functions like MAX(), COUNT() are NOT passed across the net but rather are performed on the local node.
  2. Expressions in the SELECT list are decomposed into columns and evaluated when the data is retrieved.
  3. Only a relevant subset of columns are fetched across the net.
  4. An expression in a WHERE clause is passed across to the remote database if it compares the remote column to a literal (eg ename = 'KING').
  5. Expressions in a WHERE clause are passed to the remote database if all columns are in the expression are located in the same remote table the remote database (eg emp.sal * 0.20 > emp.bonus)
  6. Datatype conversion functions like TO_CHAR() in a WHERE clause are subject to the conditions in #4 and #5.
  7. The optimizer only has knowledge of local indexes when making decisions about how to execute a query.
  8. Remote indexes can be still be used to resolve the decomposed query sent to the remote database.
  9. GROUP BY is not sent to the remote database.
  10. ORDER BY is not sent to the remote database.
dbms/oracle/concept/dblink.1266938802.txt.gz · 마지막으로 수정됨: 2010/02/24 00:26 저자 starlits