When you connect to Oracle, localhost can have an IP address.

Source: Internet
Author: User

    1. With Oracle installed on this machine, when using Sqlplus and Plsqldev connections, Tnsname.ora in the host write is localhost, at this time to connect Oracle no problem, but the external machine connected to the machine, and Tnsname.ora in the host write IP address (192.168.1.110) is, error ora-12547, no monitoring, etc.

    2. Solve the problem, Oracle's own management tools, program-"oracle-oracle...-" configuration and porting Tools-"Net Manager Find local, LISTENER, add a listening service address, and then restart the Oracle monitoring service, Oracle can then be accessed using localhost and IP addresses.

    3. LISTENER. Ora file

LISTENER =

(Description_list =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521))

)

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521))

)

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.110) (PORT = 1521))

)


Tnsname. Ora file

ORCL =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521))

(Connect_data =

(SERVER = dedicated)

(service_name = ORCL)

)

)


Orclip =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.110) (PORT = 1521))

(Connect_data =

(SERVER = dedicated)

(service_name = ORCL)

)

)


This article is from the "bad-kbase" blog, make sure to keep this source http://bad51men.blog.51cto.com/3141086/1660466

When you connect to Oracle, localhost can have an IP address.

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.