分类: Oracle
2008-05-22 17:13:13
来源: |
|
以上示例,oracle server和透明网关server都是在同一台上,像在开始说明的那样,我们同样可以在其他下面oracle server中通过透明网关来访问sql server的数据。下面是示例: 现在这个oracle server上添加tnsname。 hawk3 $sqlplus cyx SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jun 25 14:00:34 2003 (c) Copyright 2000 Oracle Corporation. All rights reserved. Enter password: Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production With the Partitioning option JServer Release 8.1.7.0.0 - Production SQL> create database link hawk3_sql2k connect to cyx identified by cyx 2 using 'sql2k'; Database link created. SQL> select * from t@hawk3_sql2k; c -------------------- abc aaa bbb cyx gototop ncn 11111 ncn.cn 8 rows selected. |