Oracle inactive session (Last_call_et)

Source: Internet
Author: User

Note the value of the Last_call_et,

Select s.status,s.last_call_et,s.* from v$session s where username= ' DDD ';

In this example, a sqlplus is opened and a select * from Big_table is performed on a large table;

Can be opened until the results are shown.

But when viewing v$session you can see that status has been inactive.

At the same time open another session, do not do anything. (Last_call_et has been increasing)

The Session,last_call_et in query only changes between 0 and 1.

Oracle Doc:

LAST_CALL_ET NUMBER If the session STATUS is currently ACTIVE , then the value represents the elapsed time in seconds since the session has becom E Active.

If the session STATUS is currently INACTIVE , then the value represents the elapsed time in seconds since the session have BEC ome inactive.

In conclusion, when judging the session is inactive, we should observe the value of last_call_et, otherwise it is possible to manslaughter.

Oracle Inactive session (Last_call_et)

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.