Use putty's SSH tunnel to connect to Oracle

Source: Internet
Author: User

Use putty's SSH tunnel to connect to Oracle
1. Set SSH tunnel on putty of localhost, for example:
In this way, the port 1511 connecting to the local machine will be forwarded to port 1521 of remoteIP. Click "Add", and then log on to the remoteIP through SSH. The SSHtunnel is created. On the local machine netstat-a | find "1511", you can see that port 1511 has a linstener listener.
TCP 127.0.0.1: 1511 CNHSHAKER1NB912: 0 LISTENING local configuration tns xxxdb =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1511 ))
)
(CONNECT_DATA =
(SERVICE_NAME = XXservice)
)
) Note that the port 1511 of the specified localhost is used. Then, use sqlplus user/pwd @ XXXDB to connect to oracle on the target tunnel machine.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.