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




最新评论