In many cases, when the application administrator notifies us that the application is slow and the database is slow, when we go to the database, we do a few examples of select and find the same problem, sometimes we will not be able to start, because we believe that the various life-saving rates of the database are all to meet the recommendations of the Oracle documentation. In fact, today's optimization has been transformed to optimization wait (wait
oracle| Performance | execution
The cost of using the Oracle execution planning mechanism to improve query performance the time of the new SQL statement is the most important part of the Oracle SQL statement execution time. But by understanding the mechanism within
, no tests were conducted. In win32, only PHP3 can connect to the oracle Database. Therefore, only the performance of connecting oracle with PHP3 is tested. I believe that after the official version of PHP4 is released, the speed of connecting oracle with PHP4 should be improved.
In LINUX, I only tested the
Oracle uses TRACE for SQL Performance Analysis
If the SQL _trace parameter is set to true, the entire instance will be tracked, including all processes: User processes and background processes, which may cause serious performance problems and must be used with caution in the production environment.
1. perform trace operations based on related transactions or SQL:
How much performance can be improved by using the Oracle PipeLined method? Recently, Oracle table functions are used. In particular, the nested table data is returned by the table structure. We found that the PIPELINED method is used, it can indeed greatly improve the performance.
recommended Optimization Method for Oracle. To use CBO well and maximize the efficiency of SQL statements, the timeliness of statistical data must be ensured.
Statistical information can be generated using the full calculation method and sampling estimation method. SQL example:
Full calculation method:
analyzetableabccomputestatistics;
Sample estimation method (sample 20% ):
analyzetableabcestimatestatisticssample20percent;
The full
prepared to improve the query performance.2. Analysis
First, check whether the remote Oracle table has an index on the filter field. It has been confirmed that an index exists.
Then, the execution plan of the statement is viewed in the SSMS client, as follows:
From the execution plan, we can see that the process is not as imagined. I thought that SQLServer would submit the entire query to the
The authoritative Performance Testing Organization TPC was confirmed on December 3, United States time, the SPARCT3-4Supercluster submitted by Oracle one day before to TPC (number of transactions processed per minute) 30249
Authoritative Performance Testing Organization TPC was confirmed on December 3, us time, Oracle
The most important component of Oracle SQL running time is the time spent preparing new SQL statements for execution. However, if you understand the Inherent Mechanism of executable plan generation, you can control the time spent by Oracle in evaluating the table connection sequence and improve query performance in general.
Prepare the SQL statements for execu
Label:Poptest is the only training institute for developing Test and development engineers in China, aiming at the ability of the trainees to be competent in automated testing, performance testing and testing tools development. If you are interested in the course, please consult qq:908821478, call 010-84505200. 1 Overview of Performance optimizationsThis chapter provides an introduction Toperformance tuning
top transaction panel: load: Indicates the "weight" of the transaction in comparison to othe transactions. A higher weight indicates that it more likely to be run.This Panel can be used to cancel some fixed transaction types. The load column is mainly used to adjust the weights of some transactions in the test. For example, browse product is mainly a select statement, which can increase its weight to indicate more people to query.Several parameters in oewizard:Number of Customers: Number of use
.
Select event, total_waits, time_waited, average_wait from v $ system_event where event like 'Log file switch (arch % ';
If there is a wait, check whether the storage device that saves the archived logs is full. Add a log file group and adjust log_archiver_max_processes.
F. DB_block_checksum = true, which increases the performance burden. (To ensure data consistency, add a checksum to the block when writing data in
Test hardware description:The test uses my machine. The configuration is as follows:CPU: C433Memory: 128 MBHard disk: Cool 2 generation 20GTest Software description:Windows nt server4, sp5, apache 1.3.12, php3.0.15, php4rc1, mysql 3.22.29, and oracle 8.0.5 are used in WIN32.In linux, bluepoint linux1.0, apache 1.3.12, php4rc1, and mysql 3.22.32 are used.Test Code description:A simple table is used. mysql and oracl
Oracle-based high-performance dynamic SQL Program Development
Oracle-based high-performance dynamic SQL Program Development
The ORACLE tutorial is: Oracle-based high-performance dynami
Oracle| Notes | performance
Oracle Performance Diagnostics-Learning Statspack Notes (iii) [Classification of tables]
Author: Liu Yingbo
Time: 2004-3-10
Mail:liuyingbo@126.com, please correct me.
Reprint please indicate the source and the author
Description: Statspack does not capture all the information need
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
What exactly does Oracle do when it submits an SQL command to Oracle? A good understanding of this problem can help you better analyze the optimization of SQL statements.Executing an SQL statement from start to finish requires 4 steps:
Analysis--parsing, semantic analysis, and shared pool checking of submitted statements.
Optimization-generates an optimal plan that can be used to execute statem
sequential access to each record in the table. ORACLE optimizes full table scan by reading multiple data blocks at a time.
B. Access the table through ROWID
You can use ROWID-based access to improve the efficiency of accessing tables. ROWID contains the physical location information recorded in the table .. ORACLE uses indexes to establish a connection between data and the physical location where data is s
The Oracle tutorial you are looking at is: Oracle SQL Performance Tuning Series Learning Ii.
4. Select the most efficient table name order (valid only in the Rule-based optimizer)
The Oracle parser processes the table names in the FROM clause in Right-to-left order, so the last table in the FROM clause (the underlying
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.