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

What are the uses of set autotrace in the database

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

Share

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

The editor will share with you the usage of set autotrace in the database. I hope you will gain something after reading this article. Let's discuss it together.

Usage: SET AUTOT [RACE] {OFF | ON | TRACE [ONLY]} [explain] [stats]]

Description:

One of the first three parameters {OFF | ON | TRACE [ONLY]} must be selected, and only one can be selected.

The last two parameters [explain] [STAT [ISTICS]] are optional, or neither can be selected.

The meaning of TRACE [ONLY] is to show only explain and statistic, but not the result set of SQL. The following 4memes with parameters of TRACE [ONLY] are the fourth most commonly used.

As long as you bring off, the following [explain] [stats] will be invalid.

1:set autotrace on

Display: recordset + explain+statistics

2:set autotrace on explain

Display: recordset + explain

3:set autotrace on statistic

Display: recordset + statistics

4:set autotrace traceonly

Display: expain+statistics (no data is displayed)

5:set autotrace traceonly statistics

Display: statistics

6:set autotrace traceonly explain

Display: explain

7:set autotrace off

Display: only the recordset is displayed, which is the default SQL PLUS window effect

After reading this article, I believe you have a certain understanding of "what is the use of set autotrace in the database". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

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