Oracle Database Links Master Class

作者: Maclean Liu , post on December 12th, 2010 , English Version
【本站文章除注明转载外,均为本站原创编译】
转载请注明:文章转载自: Oracle Clinic – Maclean Liu的个人技术博客 [http://www.oracledatabase12g.com/]
本文标题: Oracle Database Links Master Class
本文永久地址: http://www.oracledatabase12g.com/archives/oracle-database-links-master-class.html

Remote Queries

  • Session is connected to a local instance and a database link is used to query data from one remote database instance.
  • The local instance sends the entire query to the remote database instance for processing
  • Query may access one or more tables, or views possibly using synonyms
  • The remote instance returns data to the local instance

Distributed Queries

  • Session is connected to a local instance and database links are used to query data from two or more database instances possibly including the local one
  • The query is always executed from the local database instance
  • The local instance decomposes the query into subqueries to be sent to each remote database instance.
  • The local instance retrieves data from remote instances and performs any necessary post-processing.

Remote Transactions

  • Session is connected to a local instance and a DB link is used to insert, update or delete data using one instance of a remote database.
  • The local instance sends the entire DML statement to the remote database instance for processing.
  • The statement may access one or more tables, or views possibly using synonyms
  • The remote instance returns DML results to the local instance
  • Single Phase Commit is used at transaction end

Distributed Transactions

  • Session is connected to a local database instance and DB links used to perform DML on tables in two or more of the databases
  • Only one instance used for each remote database
  • Multiple DMLs may be sent to any of the databases involved in the transaction
  • The local instance retrieves the status from the remote instances for each DML
  • Two Phased Commit is used to Commit or Rollback the transaction guaranteeing consistency across all the databases involved in the transaction

DML and DDL for Distributed Transactions

DML and DDL statement can be executed in parallel, but with some restrictions:

  • All remote operations must be SELECT statements.
  • These statements must not be clauses in another distributed transaction.
  • A remote operation cannot be performed after issuing parallel DML/DDL or direct load INSERT.
  • DML is not parallelized if a distributed operation other than a SELECT is performed in the transaction.

See the Oracle8i Distributed Database Systems manual for more information.

© 2010, www.oracledatabase12g.com. 版权所有.文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.

相关文章 | Related posts:

  1. Database Links: Troubleshooting ORA-2085 “database link %s connects to %s”
  2. Limitations of DRIVING_SITE Hint
  3. EFFECT OF GLOBAL_NAME, GLOBAL_NAMES ON DB LINKS
  4. How to create a GoldenGate uni-directional target database in a production database zero downtime
  5. Oracle Database 10g Automatic Storage Management Concepts and Administration
  6. Advanced Compression in Oracle Database 11g
  7. Data Warehouse with Oracle Database 11g
  8. Oracle Database 11g: Performance Student Guide
  9. Oracle 10g Transaction Rollback Monitoring
  10. Exadata V2 Sun Oracle Database Machine

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>