Troubleshooting of Oracle client tool connection to Database Server

Source: Internet
Author: User
Often encounter problems where Client-dependent tools such as PLSQLDeveloper cannot connect to the Oracle Database Server. So far, it is not completely clear. I will first post to summarize the current problem.

Often encounter problems where Client-dependent tools such as PL/SQL Developer cannot connect to the Oracle Database Server. So far, it is not completely clear. I will first post to summarize the current problem.

Often encounter problems where Client-dependent tools such as PL/SQL Developer cannot connect to the Oracle Database Server. So far, it has not been fully clarified. I will first post a summary of the current method, which will be improved in the future.

Method 1:

Restart the services on the Oracle server, including the services of the database instance used by TNSListener. You can directly restart the service in Windows. Or (available commands ):

Lsnrctl stop
Lsnrctl start
Lsnrctl reload
Sqlplus/as sysdba;
Startup;

This method has been tried multiple times, but the cause is unknown and the truth is correct.

Method 2:

Use Net Configuration Assist to configure the server and client.

The Oracle server needs to set listener (listener), and the setting result affects listener. ora (... \ db_1 \ NETWORK \ ADMIN ). The "local Net service name configuration" needs to be configured on the Client (Client), which may affect the tnsnames. ora and sqlnet. ora files. If it is an Oracle Client, the file location is... \ client_1 \ NETWORK \ ADMIN

Method 3:

If an Oracle Client is installed, you can use the Enterprise Manager Console to add a database connection. The tnsnames. ora file (... \ client_1 \ NETWORK \ ADMIN) is modified ).

Method 4:

Check whether NAMES and DIRECTORY_PATH exist in sqlnet. ora, which may be related to this.

# Sqlnet. ora Network Configuration File: C: \ oracle \ product \ 10.2.0 \ db_1 \ network \ admin \ sqlnet. ora
# Generated by Oracle configuration tools.

# This file is actually generated by netca. But if MERs choose
# Install "Software Only", this file wont exist and without the native
# Authentication, they will not be able to connect to the database on NT.

SQLNET. AUTHENTICATION_SERVICES = (CNT)

NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

Note:

1. the database connection descriptor added by Enterprise Manager Console and Net Configuration Assist is different. The former is... CONNECT_DATA = (SID = ...) (SERVER = ...)..., the latter is... (SERVICENAME = ...)....

2. after deleting a connection in the Enterprise Manager Console, tnsnames. the description string in ora is not automatically deleted; after a local Net service Configuration is deleted in Net Configuration Assist, tnsnames. the corresponding description string in the ora file is automatically deleted.

3. If OWB (Oracle Warehouse Builder) is installed and configured, the file location is... \ client_1 \ NETWORK \ ADMIN.

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.