ORA-00031: session marked for kill handles the locks that cannot be killed in Oracle Author: moonsoft (http://moonsoft.itpub.net)Posted at: 2006.09.06Category: Oracle basic/Data Warehouse/BiSource: http://moonsoft.itpub.net/post/15182/203828---------
Query and delete sessions in Oracle
Query and delete sessions in Oracle1. query the current session
SQL> select username, sid, serial # from v $ session where username is not null;Username sid serial #-------------------------------------------------
How to quickly kill database processes that occupy too many resources (CPU and memory. In many cases, exceptions or program errors may cause individual processes to occupy a large amount of system resources. to end these processes, run the following
Common commands in Oracle
1. Create a userCreate user Username identified by passwordNote: The username and password should be in English.For example, create user sms identified by sms;
2. Create a tablespaceCreate tablespace name datafile 'Storage
Explain how to query and unlock Oracle lock tables and explain how to unlock oracle locksDatabase Operation statement category
DDL: database mode definition language; Keyword: create
DML: data manipulation language; keywords: Insert, delete, and
Reproduced from: https://wenku.baidu.com/view/cfa4e185fd0a79563c1e72a0.html
1. Oracle differs from SQL Server 2005. On the macro level:1. The biggest difference is that the platform, Oracle can run on different platforms, SQL Server can only run on
1, view the currently unlocked object
Example: A table AA lock is executed with a select * from AA for update;
Way one: Through SQL query
Select ' Alter system kill session ', ' ' | | Trim (t2.sid) | | | Trim (t2.serial#) | |
From V$locked_object t1
From: http://www.cnblogs.com/loveLearning/p/3625544.htmlOracle Error: ORA-00054: The resource is busy and requires the specified NOWAITThe problem is as follows:Sql> Conn Scott/[email Protected]_databaseConnected to Oracle Database 11g Enterprise
。Sometimes you want to force the deletion of an already connected Oracle user, cannot be deleted directly, can use kill session information.For example, to delete a connected SDE user today, you can delete a "connecting" user in the following ways.1.
From:How to Kill a Session on the RAC Database in Instance independent Fashion. (Document ID 869777.1)Suitable for:Oracle database-enterprise edition-version 11.1.0.6 and laterInformation in this document applies to any platform.Goal:You can kill
querying SQL statements that Oracle is executing and executing--query Oracle Executing SQL statement and the user who executes the statement select B.sid Oracleid, B.username Log in to the Oracle user name, b.serial#, spid os ID, PADDR, sql_text
Problem Description:Customer side of the front-end application of an operation hang, no error and no operation of the normal ending prompt.View the lock information as follows:Sql> with LK as (select Blocking_instance| | '. ' | | blocking_session
Sometimes you want to force the deletion of an already connected Oracle user, cannot be deleted directly, can use kill session information. For example, to delete a connected SDE user today, you can delete a "connecting" user in the following ways. 1
Source Address: http://www.cnblogs.com/kerrycode/p/3636992.htmlOracle database sessions have five states of active, INACTIVE, killed, CACHED, sniped. A inactive state session indicates that the session is inactive, idle, and waiting. For example, PL/
Oracle Error: ORA-00054: The resource is busy and requires the specified NOWAITThe problem is as follows:Sql> Conn Scott/[email protected]_database Connected to Oracle database 11g Enterprise Edition Release 11.1.0.6.0 Conne CTED as Scott。。。。。。sql>
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.