Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> How to setup Oracle Connection Manager to connect to Oracle through an SSH tunnel (version 1.0)
Good luck!
If there are two Oracle Homes and two available OracleOraHomeCMan services. Select one.
If there are no such available services, then Oracle Connection Manager is not installed. Launch Oracle Universal Installer. From the "Installation Types" menu select "Custom". Install Oracle Connection Manager.
2. In the network\ADMIN sub-directory for the selected OraHome,
create a cman.ora file with these contents. Substitute hostname for the correct hostname. 1610 is the default port for Oracle Connection Manager
CMAN= (ADDRESS_LIST= (ADDRESS= (PROTOCOL=TCP) (HOST=hostname) (PORT=1610) ) )
Start the Oracle Connection Manager service
3. Modify your local tnsnames.ora file. Observe that there are
two address specifications. This is critical. Change the following as appropriate:
lnsn.domain =
(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 49000)) (ADDRESS = (PROTOCOL = TCP)(HOST = 192.1.1.167)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = ora) ) (SOURCE_ROUTE = yes) )
4. Connect to the remote computer using SSH to create a tunnel.
Using Cygwin SSH, this is the syntax:
ssh -L 49000:192.1.1.167:1610 userid_at_192.1.1.167:
5. Connect using sqlplus or any other Oracle client
sqlplus system/manager_at_lnsn Received on Wed Mar 05 2003 - 17:05:33 CST
![]() |
![]() |