Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set Statspack to display complete SQL statements

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to set Statspack to display complete SQL statements". In daily operation, I believe many people have doubts about how to set Statspack to display complete SQL statements. Xiaobian consulted all kinds of information and sorted out simple and easy to use operation methods. I hope to help you answer the doubts of "how to set Statspack to display complete SQL statements"! Next, please follow the small series to learn together!

When statspack file is generated with spreport.sql in 10g, SQL statement only shows 5 lines, which is often incomplete, sometimes complete SQL is needed to further analyze SQL performance problems. Tuning specific SQL statements.

Look at the/oracle/oms/102_64/rdbms/admin/spreport.sql statement in Oracle10g, which calls the sprepins script, which calls the sprepcon.sql script. In sprepcon.sql script, define num_rows_per_hash=4; //means that each SQL can display at most 4 lines. If some SQL is long, you can set num_rows_per_hash=100;//short SQL, all SQL will be displayed. If the sql is long, it can display up to 100 lines.

At this point, the study of "how to set Statspack to display complete SQL statements" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report