Solution for OracleORA-12154: TNS: couldnotresolveservicename

Source: Internet
Author: User
Solution for OracleORA-12154: TNS: couldnotresolveservicename

Oracle ORA-12154: TNS: cocould not resolve service name Solution

Problem description: An error occurred while executing sqlldr. The error message is as follows:

C: \ Documents ents and Settings \ Administrator> sqlldr username/password @ Statistics controlpolic'controlfile.txt 'logtail'log.txt'


SQL * Loader: Release 9.2.0.8.0-Production on Friday January 6 11:23:55 2012


Copyright (c) 1982,200 2, Oracle Corporation. All rights reserved.


SQL * Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12154: TNS: cocould not resolve service name

However, the pl/SQL tool can be connected with this connection name.


Solution:

1,

SQL * PLUS connection error, error display:ORA-12154: TNS: cocould not resolve service name

Test an error using the tnsping command for Oracle, with the error: TNS-03505: failed to break down the name

2. Use the oracle tnsping command to test


TNS-12533: TNS: illegal ADDRESS parameters

The error message can be analyzed. The ADDRESS parameter is invalid.


OriginalInPROTOCOL = TCPLeft parentheses are missing. The correct configuration is as follows:

Statistics =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.20.30.12) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oralce_servicename)
)
)

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.