Connect to the ORACLE database through Tunnels

Source: Internet
Author: User

Connect to the ORACLE database through Tunnels

Suppose there are two servers on the Internet, one is the application server (Linux), the other is the database server (win2003), and the two servers are in the same LAN (the same network segment ), you can access each other through LAN addresses. Now, you can connect to the application server through ssh, instead of remotely logging on to the database server through mstsc to operate the database. We can use the ssh tool (putty) to configure Tunnels to connect to the database. The procedure is as follows:

1. load session (enter the Internet ip address and port of the Application Server)

 

2. Configure Tunnels

 

Source port can be written to any port. This port is used to connect Toad to the oracle database.

Destination: the lan ip address of the database server and the port of the oracle database.

After entering the information, press the Add button.

 

Click "open" and enter the user password of the application server.

 

3. After successfully logging on to the application server, you can use Toad locally to connect to the database server.

Enter localhost directly, and port enter the previously configured source port

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.