The reason why Oracle SQL Execution is slow and the solution is described in the following article is the reason why Oracle SQL Execution is slow. If the data of a table in Oracle Database is more than 0.2 billion, at the same time, this table also creates four independent related indexes. Due to business needs, you need to insert 3 million records into the table twice a day. Because of the large data volume, it takes more than three hours to insert data at www.2cto.com, which seriously affects the efficiency. Therefore, the system algorithm is modified to store only new records of the current day in this table. It takes a lot of time to perform the update operation on the table the next day after the table is truncate. When the table contains more than 0.2 billion data records, the Oracle SQL statement takes 59 seconds. When the table contains 3 million data records, the Oracle SQL statement takes several hours. After consulting the DBA, we can conclude that the index needs to be rebuilt. After reconstruction, this operation is completed in 6 seconds. However, the problem persists on the third day. DBA is looking for the reason. Do you need to re-create the tb index for each truncate table? The DBA did not give a reasonable explanation of this problem. The primary cause of speculation is the complicated Query Optimization Algorithm of Oracle. Finally, the DBA gave the solution: www.2cto.com truncate table .... drop index ..... insert data ..... create index... analyze table table_name compute statistics; after the statistical data is regenerated, the entire operation takes a very small amount of time. The above content is an introduction to the slow execution of Oracle SQL statements. I hope you will find some gains. Author chen11-1