If the other database is not an Oracle database system, they must be accessed with Oracle Heterogeneous Services.
Execution plans
If a statement can be run completely on the remote database, dbms_xplan.display()
adds the note fully remote statement.
explain plan for
select count(*) from xyz@db_far_away;
select * from dbms_xplan.display();
----------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Cost (%CPU)| Time | Inst |
----------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT REMOTE| | 1 | 12034 (14)| 00:00:01 | |
| 1 | SORT AGGREGATE | | 1 | | | |
| 2 | INDEX FAST FULL SCAN | XYZ_IX | 33M| 12034 (14)| 00:00:01 | XINST~ |
----------------------------------------------------------------------------------------
Note
-----
- fully remote statement