Read about oracle database performance monitoring scripts, The latest news, videos, and discussion topics about oracle database performance monitoring scripts from alibabacloud.com
Oracle databases are favored by more and more enterprises for their high reliability, security, and compatibility. Many database administrators are concerned about how to maintain excellent performance of Oracle databases. Based on my experience, we suggest you consider the following aspects.
I. Partitioning
Based on a
Reader to like:
Developer: If you are doing database development, the content of this article is very suitable, because this article is from the programmer's point of view on database performance optimization.
Architect: If you are a database application architect, you should be aware of the knowledge of this article 9
from the index table and no longer need to scan the entire data table. This will greatly improve the performance.
(2) Avoid "*" in the select clause.
During the parsing process, the database converts "*" to all column names in sequence. This task is done by querying the data dictionary, which means it takes more time. It is best to write the column names one by one.
3. Avoid resource-consuming operations
S
Iii. segment fragmentation
When a database object is generated, a table or an index is used. The tablespace is specified by the user's default value or specified value. A segment generated in a tablespace is used to store object-related data. Before a segment is closed, shrunk, or truncated, the space allocated by the segment is not released.
A segment is composed of a range, And a range is composed of adjacent Or
Oracle Database query performance optimization
Querying, adding, modifying, and deleting databases are important factors that affect web application performance indicators. The following are some common suggestions to improve query performance.
1. Optimize JDBC connections
T
A lot of the time, do Oracle DBA us, when the application administrator to inform us that the application is now slow, the database is very slow, when we go to the database to do a few examples of select also found the same problem, sometimes we can not start, Because we believe that the various life rates of the database
(begin_interval_time, ‘yyyymmddhh24miss‘) begin_time,
to_char(end_interval_time, ‘yyyymmddhh24miss‘) end_time
from DBA_HIST_SNAPSHOT t
where dbid=4033498616
order by 1, 4 desc; Based on the information above, we can use dbms_workload_repository.awr_diff_report_html to generate the Compare report. Spool awr_compare_report.htmlSetEchooff;SetVerioff;SetFeedbackoff;SetHeadoff
SetVerifyoff
SetLines8000
Select* fromTABLE (dbms_workload_repository.awr_diff_report_html (97461353,1,279,280,4
A lot of the time, do Oracle DBA us, when the application administrator to inform us that the application is now slow, the database is very slow, when we go to the database to do a few examples of select also found the same problem, sometimes we can not start, Because we believe that the various life rates of the database
The most important component of Oracle SQL uptime is the time spent preparing new SQL statements for execution. However, if you understand the intrinsic mechanism of the executable plan, you can control the time that Oracle spends in assessing the connection order of the tables and improve the performance of the query overall.
Prepare the SQL statement provided
Parallel recovery of large oracle transactions leads to database performance degradation-high cpu usage
The rollback of a large transaction has a very high cost, not only locking the required resources
And the CPU and IO consumption, especially IO, will be extremely intensive. At this time, we hope to reduce the number of rollback results.
. It is impossible to s
Take oracle in Unix as an example.1. Check the SQL statement currently executed by the sessionRun the TOP command to check the CPU usage of the Oracle service process. Generally, the CPU usage of a single process should not exceed 5%. If the CPU usage exceeds 10%, the database retrieval policy may be considered problematic. If this happens, it may be that the SQL
Note: The following indicators are taken from the performance analysis indicators provided by the Oracle performance analysis tool Statspack.
Indicator Name
Indicator description
Indicator range
Indicator Unit
1. Performance indicators of Instance Efficiency Percentages
No buffer wa
of the latest data and applications, and mistakenly chooses a non-optimized execution pathTherefore, we need to collect statistical information in time to ensure that the CBO-based optimizer can run happily ㈥ Unreasonable parameter setting System parameters must be adjusted, but also reasonable to adjustMainly memory parameters, process parameters, etc. ㈦ Storage Deployment is unreasonable I/O inefficiencies due to unreasonable storage deploymentProcessing solutions: ASM, RAID10, etc. ㈧ Frequen
When this problem encountered, I did not look at the alarm log, always thought that the database lock blocking affects performance. Know that the archive log is full when the view log is found. To cause this problem to occur:Errors in File/dbbk/oracle/diag/rdbms/orcl/orcl/trace/orcl_arc0_28918.trc:ora-19809:limit exceeded for recoveryFilesora-19804:cannot Reclaim
how much salt is suitable for this time. The following describes how to test the size of a shared pool.
First, set your shared pool to a very large value. If it is 10 Gb, set sga_target to a very large value, restart your data, and then start all applications in the database. After the application runs for a period of time, you can use the following statement to calculate the approximate size of the database
Performance Comparison of Oracle Database date filtering methods
Performance Comparison of Oracle Database date filtering methods
When developing SQL statements, filtering date segments is a common problem. How can we efficientl
One, MySQL database link:Note: The following questionsare as follows: "JMeter4.0" The problem Summary (continuous update) "(including MySQL, Orcale)Preparation: Lead package, package path must be lil bit position, refer to the following map path:1. Add JDBC Connection Configuration2. Add JDBC Request3. Adding listeners and runningIi. Oracle Database Links:Prepara
1. Types of SQL parse
SQL parse is usually divided into hard parsing and soft parsing. When SQL is executed for the first time, hard parsing will occur, and subsequent execution will be soft parsing if it can be found in the shared pool. Therefore, to improve data performance, try to find the SQL statement executed each time in the shared pool.
2. Under what circumstances does SQL send hard parsing?
1) Changes in Statistics
Zookeeper
2) ddl operati
required for recovery and reduces the performance of the system during running.
Lgwr writes logs to each log group cyclically. When a log group is full, the Oracle server must perform a checkpoint, which means: dbwn writes all or part of the dirty data blocks covered by the corresponding log into the data file; ckpt updates the data file header and control file. If dbwn does not complete the operation an
A virtual index is a "false" index, which is defined in a data dictionary, but does not have the corresponding index segment, that is, it does not allocate any storage space. Using Virtual indexes, developersYou do not need to wait for the index to be created, or you do not need additional index storage space, you can use it as an index that already exists and test the execution plan of the SQL statement. If the optimizer isThe execution plan for SQL statement creation is very expensive. SQL Tun
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.