Ora-12154 TNS: unable to process service name

Source: Internet
Author: User
Sometimes how to configure tnsnames. ora has a ora-12154
TNS: failed to handle service name errors! In fact, the configuration strings vary according to the Oracle version. For example, the content of the sqlnet. ora file of oracle8.1.5 is as follows: Path: orant \ net80 \ admin \ sqlnet. oratrace_level_client
= Off
# Sqlnet. authentication_services = (none)
Names. directory_path =
(Tnsnames, hostname)
Names. default_domain = World
Name. default_zone =
World
Automatic_ipc = off so. world must be added after the service name, for example: card. World =
(Description
=
(Address = (Protocol = TCP) (host = 192.168.0.2) (Port = 1521 ))

(CONNECT_DATA = (SID = card ))
)
However, in Oracle9i, the following configuration is required: Card =

(Description =
(Address_list =
(Address = (Protocol = TCP) (host =
192.168.0.2) (Port = 1521 ))
)
(CONNECT_DATA =
(Server = dedicated)

(SERVICE_NAME = card)
)

) Sqlnet. ora of oracle9i is like this: Path: oracle \ ora92 \ Network \ admin \ sqlnet. ora #
Sqlnet. ora network configuration file: C: \ oracle \ ora92 \ Network \ admin \ sqlnet. ora

# Generated by Oracle configuration tools. sqlnet. authentication_services =
(CNT) names. directory_path = (tnsnames, onames,
Hostname) so if you follow the oarcle8.1.5 configuration reference Oracle9i configuration, it is obviously incorrect. Because the sqlnet. ora file in oracle8.1.5 defines that the service name must have. World According to the Oracle version,
The SID may be changed to SERVICE_NAME.
Refer to global_name. Of listener. ora. In sqlnet. ora, set names. default_domain to null characters. It should be okay to exclude these issues.

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.