10.3 Configuring Oracle Connection Manager in Tunneling Mode for Reverse Connection
Oracle Connection Manager in tunnelling mode establishes tunnel connections between server CMAN and client CMAN. Clients can make reverse connections over tunnels by connecting to server cman.
Complete the tasks in the following topics to configure Oracle Connection Manager in tunneling mode:
- Configure cman.ora for Oracle Connection Manager in Server Tunneling Mode
Use the tunneling parameter to set up Oracle Connection Manager in server tunnelling mode. - Configure cman.ora for Oracle Connection Manager in Client Tunnelling Mode
You must set the tunnel_address parameter in the cman.ora file to set up Oracle Connection Manager in client tunnelling mode. - Configure Clients to Make Reverse Connection
When connecting to the server CMAN, the clients must specify client CMAN identifier. - Configure Rules in Server CMAN for Tunnel Registration and Client Access
The client CMAN connects to the server CMAN using tunnel service. - Configure Oracle Database Server for Client Oracle Connection Manager
You must register the database with client Oracle Connection Manager.
Parent topic: Configuring and Administering Oracle Connection Manager
10.3.1 Configure cman.ora for Oracle Connection Manager in Server Tunneling Mode
Use the tunneling parameter to set up Oracle Connection Manager in server tunnelling mode.
Set the tunneling parameter to ON
in the cman.ora
file.
cman.ora
configuration for Oracle
Connection Manager in server tunnelling mode.
CMAN_SERVER=
(CONFIGURATION =
(ADDRESS= (PROTOCOL=TCP)(HOST=SERVERCMAN)(PORT=1522))
(RULE_LIST=
(RULE=(SRC=*)(DST=*)(SRV=*)(ACT=accept))
)
(PARAMETER_LIST=
(TUNNELING=ON)
(GATEWAY_PROCESSES=16)
(NON_TUNNEL_GATEWAYS=8)
(TUNNEL_CAPACITY=32)
(TUNNEL_PROBE_INTERVAL=7)
)
)
10.3.2 Configure cman.ora for Oracle Connection Manager in Client Tunnelling Mode
You must set the tunnel_address parameter in the cman.ora file to set up Oracle Connection Manager in client tunnelling mode.
cman.ora
configuration for Oracle Connection Manager in
client tunnelling mode.
CMAN_CLIENT=
(CONFIGURATION=
(TUNNEL_ADDRESS=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=SERVERCMAN)(PORT=1522))
(CONNECT_DATA=(TUNNEL_ID=south))
)
)
(ADDRESS=(PROTOCOL=TCP)(HOST=CLIENTCMAN)(PORT=1523))
(RULE_LIST=
(RULE=(SRC=*)(DST=*)(SRV=*)(ACT=accept))
)
(PARAMETER_LIST=
(MAX_TUNNELS=2)
(GATEWAY_PROCESSES=16)
(NON_TUNNEL_GATEWAYS=8)
)
)
The
default name for tunnel_id
is RC
.
10.3.3 Configure Clients to Make Reverse Connection
When connecting to the server CMAN, the clients must specify client CMAN identifier.
Use the TUNNEL_SERVICE_NAME
parameter to specify the client CMAN
identifier.
tnsnames.ora
configuration for
client.
SOUTH_SALES_DB=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=SERVERCMAN)(PORT=1522))
(CONNECT_DATA =
(TUNNEL_SERVICE_NAME=south)
(SERVICE_NAME=SALES)
)
)
Note:
source_route
is not
supported for reverse connection.
10.3.4 Configure Rules in Server CMAN for Tunnel Registration and Client Access
The client CMAN connects to the server CMAN using tunnel service.
The tunnel ID of client CMAN is registered as a service in server CMAN.
- Configure Rules in Server CMAN using rule_list Syntax
You must add a rule for each client CMAN as source, and service as tunnel. To allow client connections to a client CMAN, add a rule for service that identifies the client CMAN. - Configure Rules in Server CMAN Using rule_group Syntax
Add a group for each tunnel ID. The rule list in the group grants access to the required source addresses.
10.3.4.1 Configure Rules in Server CMAN using rule_list Syntax
You must add a rule for each client CMAN as source, and service as tunnel. To allow client connections to a client CMAN, add a rule for service that identifies the client CMAN.
You must set destination as *
or localhost.
cman.ora
configuration for server Oracle Connection Manager in
tunnelling mode using
rule_list
.
CMAN_SERVER=
(CONFIGURATION=
(ADDRESS=
(PROTOCOL=TCP)(HOST=SERVERCMAN)(PORT=1522))
(RULE_LIST=
(RULE=(SRC=CLIENTCMAN)(DST=*)(SRV=tunnel)(ACT=accept))
(RULE=(SRC=CLIENTHOST)(DST=*)(SRV=south)(ACT=accept))
)
(PARAMETER_LIST=
(TUNNELING=ON)
(GATEWAY_PROCESSES=16)
(NON_TUNNEL_GATEWAYS=8)
(TUNNEL_CAPACITY=32)
(TUNNEL_PROBE_INTERVAL=7)
)
)
10.3.4.2 Configure Rules in Server CMAN Using rule_group Syntax
Add a group for each tunnel ID. The rule list in the group grants access to the required source addresses.
You must set destination as *
or localhost.
cman.ora
configuration for server Oracle Connection Manager in
tunnelling mode using
rule_group
.
CMAN_SERVER=
(CONFIGURATION=
(ADDRESS=(PROTOCOL=TCP)(HOST=SERVERCMAN)(PORT=1522))
(RULE_GROUP=
(GROUP=
(DESCRIPTION=(NAME=south))
(RULE_LIST=(RULE=(SRC=CLIENTCMAN)(DST=*)(SRV=*)(ACT=accept)))
(RULE_LIST=(RULE=(SRC=CLIENTHOST)(DST=*)(SRV=*)(ACT=accept)))
)
(GROUP=
(DESCRIPTION=(NAME=cmon))
(RULE_LIST=(RULE=(SRC=*)(DST=*)(SRV=*)(ACT=accept)))
)
)
(PARAMETER_LIST=
(TUNNELING=ON)
(GATEWAY_PROCESSES=16)
(NON_TUNNEL_GATEWAYS=8)
(TUNNEL_CAPACITY=32)
(TUNNEL_PROBE_INTERVAL=7)
)
)
10.3.5 Configure Oracle Database Server for Client Oracle Connection Manager
You must register the database with client Oracle Connection Manager.
Section Configuring the Oracle Database Server for Oracle Connection Manager of this guide explains how to register the database with Oracle Connection Manager.
Note:
Static routing is not supported by Oracle connection manager in tunnelling mode.