Explore how to collect Oracle listener log files

Source: Internet
Author: User

The Oracle listener log file is a continuously increasing plain text file. It usually checks whether the listener has an abnormal stop or malicious attack connection.

When this file is very large, it may be slow to open and browse the file content. In this case, you may want to back up the current log file and create a new log file. However, the Oracle listener cannot delete or rename its log files at runtime. Therefore, only the Oracle listener is stopped, and then the Oracle listener is started, A new listener log file will be automatically created at startup, but the client connection will be disconnected. This article introduces a way to rename the Oracle listener log file without stopping the listener.

On Windows:

 
 
  1. C :\>Cd \ oracle \ ora92 \ network \ log # Switch to the directory where the listener log file is located
  2. C: \ oracle \ ora92 \ network \ log>Lsnrctl set log_status off # temporarily offline the listener Log File
  3. C: \ oracle \ ora92 \ network \ log>Rename listener. log listener. old # rename the log file and add the date
  4. C: \ oracle \ ora92 \ network \ log>Lsnrctl set log_status on # Bring the listener log file online and a new log file will be created automatically.
  5.  

On Linux/Unix platforms:

 
 
  1. % cd /u01/app/oracle/product/9.2.0/network/log  
  2. % lsnrctl set log_status off  
  3. % mv listener.log listener.old  
  4. % lsnrctl set log_status on  
  5.  

After the name is renamed, you can copy listener. old to the DBA's work computer for in-depth analysis. In case of hacker attacks, you can also retain the file as evidence.

  1. Code required to modify the Oracle Stored Procedure
  2. Summary of Oracle stored procedures
  3. Code for implementing the Oracle Stored Procedure
  4. In-depth high-performance dynamic Oracle SQL Development
  5. Analysis of Oracle SQL optimization rules

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.