Ora-00031 error for Oracle

Source: Internet
Author: User

1. A ora-14452 error occurred while deleting the user.

SQL> drop user ggtransfer2 cascade;

Drop user ggtransfer2 cascade

*

ERROR at line 1:

ORA-00604: error occurred at recursive SQL level 1

ORA-14452: attempt to create, alter or drop an index on temporary table already

In use

 

2. Find the id of the user's object

Select object_id from user_objects where object_name = upper ('ggs _ stick ');

 

3. Locate sid by id,

Select * from v $ lock where id1 = 123623

 

548

 

4. Locate sid and serial Based on sid #

Select * from v $ session where sid = 548

548, 1

5. view the SQL statement of this sid

SELECT SQL _text

FROM v $ sqltext

WHERE a. hash_value = (SELECT SQL _hash_value

FROM v $ session B

WHERE B. SID = '& sid ')

Order by piece ASC

1. If the SQL statement does not affect system operation, kill

SQL> alter system kill session '2017, 1 ';

Alter system kill session '2017, 1'

*

ERROR at line 1:

ORA-00031: session marked for kill

6. The session of this SQL statement cannot be killed normally. Search for the process in the OS system.

Select spid, oSUSEr, s. program

From v $ session s, v $ process p

Where s. paddr = p. addr and s. sid = 548

1 29321 oraoms Oracle @ CQXXDBS01 (Q002)

2. kill the process in the OS system

Kill-9 29321

ORA-00031: session marked for kill

Cause: The session specified in an alter system kill session command cannot be killed immediately (because it is rolling back or blocked on a network operation), but it has been marked for kill. this means it will be killed as soon as possible after its current uninterruptible operation is done.

Action: No action is required for the session to be killed, but further executions of the alter system kill session command on this session may cause the session to be killed sooner

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.