Kill linux job processes

Source: Internet
Author: User
Today, the JOB process that kills LINUX finds that a JOB in the database has been being executed for several hours. Therefore, the operating procedure for deleting the system environment www.2cto.com: ORACLE10GLinux is as follows: step 1. the job is running. find a job... today, the JOB process that kills LINUX finds that a JOB in the database has been being executed for several hours. Therefore, we have to delete the system environment www.2cto.com: the procedure for operating the ORACLE 10G Linux operating system is as follows: Step 1. the job is running. find the corresponding SID Field. SQL code select * from dba_jobs_running -- find the sid corresponding to the job. step 2. use the following statement to query the SPID corresponding to the SID. SCHEMANAME = '# username #' indicates the name of the user running the JOB, SID = 342 is the SID code previously queried. SQL code select * from gv $ process s, Gv $ session gn where s. ADDR = gn. PADDR and gn. STATUS = 'active' and gn. SCHEMANAME = '# username #' and sid = 342 -- find step 3 of spid corresponding to this sid. in command line mode, the following code is allowed, where 1622202 is The SPID text code kill-9 1622202 -- kill the process.
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.