Database log optimization analysis method and device
An analysis method and database technology, applied in the field of database log analysis, can solve problems such as unfavorable server operation, disk reading and writing pressure, redundant reading, etc., and achieve the effect of reducing redundant reading, reducing disk pressure, and speeding up synchronization efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0018] like figure 1 As shown, Embodiment 1 of the present invention provides a log optimization analysis method for a database, which is used to analyze the logs of a database container containing multiple plug-in databases, including the following steps:
[0019] S1. Create a plurality of log capture threads that are equal in number to the plug-in database and correspond one-to-one, and create a virtual log capture thread;
[0020] S2. Capture the archive log of the database container through the virtual log capture thread;
[0021] S3. Identify the ownership of each log record in the archived log, and deliver each log record to the log capture thread to which it belongs;
[0022] S4. Each of the log capture threads parses corresponding log records.
[0023] Hereinafter, the database container is called CDB for short, and the plug-in database is called PDB for short. like figure 2 As shown, there can be multiple PDBs in a CDB, where there is a root container PDB$ROOT, a...
Embodiment 2
[0041] Embodiment 2 of the present invention provides a log optimization and analysis device for a database, including a processor and a memory, and a computer program is stored in the memory, and when the computer program is executed by the processor, it can realize the information provided by any of the above embodiments. Database log optimization analysis method.
[0042] Specifically, the database log optimization analysis method is as follows:
[0043] Create a plurality of log capture threads that are equal in number to the plug-in database and correspond one-to-one, and create a virtual log capture thread;
[0044]Capture the archive log of the database container by the virtual log capture thread;
[0045] Identify the attribution of each log record in the archive log, and deliver each log record to the log capture thread to which it belongs;
[0046] Each of the log capture threads parses corresponding log records.
[0047] The database log optimization analysis dev...
Embodiment 3
[0049] Embodiment 3 of the present invention provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the log optimization and analysis method for a database provided in any of the above embodiments is implemented.
[0050] Specifically, the database log optimization analysis method is as follows:
[0051] Create a plurality of log capture threads that are equal in number to the plug-in database and correspond one-to-one, and create a virtual log capture thread;
[0052] Capture the archive log of the database container by the virtual log capture thread;
[0053] Identify the attribution of each log record in the archive log, and deliver each log record to the log capture thread to which it belongs;
[0054] Each of the log capture threads parses corresponding log records.
[0055] The computer storage medium provided by the present invention is used to implement the database log optimization analysis me...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com