Oracle Turn on Slow monitoring

Source: Internet
Author: User

Phenomenon:

In an Oracle database, it is very slow to use lsnrctl to turn on, turn off listening, or to view the listening state, so that the action can be done immediately by means of a broken network.

When a client connects to a database using Plsql and other methods, it is also very slow, and it can also be done by switching network state.

Divided into two levels:

1. The monitoring itself has a problem

Turn off the listening log and clean up the listening log

A. Turn off the listening log

Shell command line login to Oracle user, enter LSNRCTL to enter the listening command line.

Show Log_status View the Listening log status, "set to On" means open, "set to off" means close

Set Log_status off Listen log

Save_config Save Configuration

B. Clean up the Listening log

The Listening log (with the word "log" in the name) may be in the following location, and it is recommended to clean or rename after backup.

/u01/app/oracle/diag/tnslsnr/distance/listener/alert

/u01/app/oracle/diag/tnslsnr/distance/listener/trace

/u01/app/oracle/diag/rdbms/orcl/orcl/alert

(The location may vary depending on the installation, please find the corresponding directory of your machine according to the actual situation)

Reference: https://zhidao.baidu.com/question/616289319368834692.html (Stop listening)

10195493 (listening log location)

2. Server Network configuration issues

There may be a problem with the DNS resolution file, modify the database server's/etc/resolv.conf, the "nameserver xxx.xxx.xxx.xxx" this line commented out

Troubleshooting and conclusion reference from http://www.itpub.net/thread-1784287-1-1.html

In the process of solving the above problems, there is an episode, because their CentOS build too long forgotten the root password, reference https://www.linuxidc.com/Linux/2018-01/150211.htm modified the CentOS password.

CentOS6 change root password, pro-test effective, of course, remember to take a snapshot of the virtual machine before changing.

Oracle Turn on Slow monitoring

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.