Implementation of the Windows operating system kill Oracle threads ____oracle

Source: Internet
Author: User

implementation steps:

1. Change init parameter resource_limit to true; restart the database;

2. Change the "Idle connection Time" of profile profiles for user profiles;

3. In the database query session state is "Snipe", through the operating system Orakill command to clear;

4. Define the Windows execution plan and execute the Kill_session_sql.bat script.

Script:

Kill_session_sql.bat content:

Set ORACLE_SID=ORA9/** Database instance sid**/

Sqlplus system/oracle@ora9 @c:kill_session.sql

C:kill_session.bat

Kill_session.sql content:

Spool C:kill_session.bat

Set head off

Set Feedback off

Set PageSize 1000

Set term off

COLUMN EVENT FORMAT A30

Select ' Orakill ora9 ' | | P.spid | | ' From V$process p, v$session s Where p.addr = s.paddr and status = ' sniped ' and s.username are NOT null;

Spool of

Exit

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.