GOALThis document describes how to create a Database Link using IPC protocol instead of TCP. SOLUTIONA Database Link (DBLink) can be configured to use the IPC protocol instead of TCP protocol when the source and the target databases are on the same machine. listener.ora (The listener version must always be at or higher than the version of the databases, so we're using the version 10 listener here) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = DB9) (ORACLE_HOME = D:\app\oracle9) (SID_NAME = DB9) ) (SID_DESC = (GLOBAL_DBNAME = DB10) (ORACLE_HOME = D:\app\oracle10) (SID_NAME = DB10) ) )
DB9 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = DB10 = IPC_TNS_ALIAS = sqlnet.ora SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= (TNSNAMES)
C:\>tnsping IPC_TNS_ALIAS TNS Ping Utility for 32-bit Windows: Version 9.2.0.4.0 - Production on 12-MAY-2004 16:52:30 Copyright (c) 1997 Oracle Corporation. All rights reserved. Used parameter files: D:\app\oracle9\network\admin\sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC) (key = DB10))) (CONNECT_DATA = (SERVICE_NAME = DB10))) OK (40 msec) C:\sqlplus SQL*Plus: Release 9.2.0.4.0 - Production on Wed May 12 16:53:05 2004 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle10i Enterprise Edition Release 10.1.0.1.0 - Beta With the Partitioning, OLAP and Data Mining options SQL> select instance_name from v$instance; INSTANCE_NAME ---------------- DB10
SQL> select instance_name from v$instance; INSTANCE_NAME ---------------- DB9 SQL> create database link SQL> select instance_name from v$instance@ |