"TNS-03505: unable to resolve name" problem solution example

Source: Internet
Author: User
1. problem: A developer adds an ORACLE client in a windows environment and configures tnsnames. after ora, prepare to connect to the ORACLE database Linux environment, with tnsping test reported TNS-03505: unable to resolve the name error, the request is resolved. 2. tnsnames. ora file configuration content # TNSNAMES. ORANetworkConfigurationFile

1. problem: A developer adds an ORACLE client in a windows environment and configures tnsnames. after ora, prepare to connect to the ORACLE database Linux environment, with tnsping test reported TNS-03505: unable to resolve the name error, the request is resolved. 2. Configuration content of the tnsnames. ora File # TNSNAMES. ORA Network Configuration File

1. Problem

A developer adds an ORACLE client in a windows environment and configures "tnsnames. ora, prepare to connect to the ORACLE database Linux environment, with tnsping test reported TNS-03505: unable to resolve the name error, the request is resolved.

2. Configuration content of the "tnsnames. ora" File

# TNSNAMES. ORA Network Configuration File: $ ORACLE_HOME \ NETWORK \ ADMIN \ tnsnames. ora

# Generated by Oracle configuration tools.

SINGLE =

(DESCRIPTION =

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

(CONNECT_DATA =

(SERVER = DEDICATED)

(SID = single)

)

)

Check the preceding configuration content. The connection string configuration is correct.

3. analyze the problem

(1) ping 192.168.1.150 first.

(2) telnet 192.168.1.150 1521.

(3) tnsping single on the local server (192.168.1.150 ).

(4) check whether there is a problem with the "tnsnames. ora" file. below is the file icon.

Notepad file of notepad

(5) Confirm that the file is not a tnsnames.ora.txt File

Display the extension name of the file on windows, as shown in the following figure:

4. Solution

Remove the TXT Suffix of the tnsnames.ora.txt file in the format of the display file extension name, and then tnsping single on the client.

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.