(Modified) oracle11g listens to the configuration of multiple hosts and uses pl/SQL to connect to and operate multiple databases.

Source: Internet
Author: User

(Modified) oracle11g listens to the configuration of multiple hosts and uses pl/SQL to connect to and operate multiple databases.

Many friends in the development project do not use a single database, but have a single host as the database server for development. In this way, our developers need to connect to it.

First, go to oracle's Net Mananger;

 

The next step is to make simple settings ..
(1) Click the service name, and then click "+" here;

 

Go to the following page, and define the service name. Here, we use "service ". Indicates connecting to the database server rather than the local machine:

 

Click Next and select the TCP/IP protocol

Next, enter the IP address of the target host to be monitored,

Next, take the next step. Pay attention to the following steps,
Enter the database instance of the target host, that is, the global database name. You can use SQL _PLus to search for unknown data. SQL statement: select global_name from global_name;

You need to correspond to the Instance name of the target host to listen. Click Next. You can also test whether the connection can be connected;

 
Click test:


(2) After that, you can see the added service under "service name ".

 

 

Next, we use the pl/SQL tool to connect to the target host database. here we can see a service just configured, such:

 


In this way, you can use tools to operate the target database... If you want to listen to multiple target databases, repeat the above steps!

 

PS: as mentioned in the original article, the listener is added after the service is added, but I find that the service can be connected after the service is added. If PL/SQL cannot be used to log on after the service is added, for more information, see the original article and add a listener.

Source: http://my.oschina.net/hackenhu/blog/96837

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.