Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oralce is always in the process of performing a query operation.

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Background

Suddenly querying a table in the morning could not be queried.

The troubleshooting process to see if the table is locked or the transaction being committed

Select from v$locked_object

Select from v$lock k, v$session s,all_objects

Where k.sid=s.sid and k.id1=all_objects.object_id and k.type in ('TX','TM')

View table status

Select status from dba_objects

Check the connection

Select * from v$session where username =''

Check to see if there is an updated sql

Select sql_text,s.*

From v$session s, v$sqlarea sqlarea

Where s.SQL_ID = sqlarea.sql_id and username =''

Solution process result

No lock table and transaction being committed, table status is normal, connection is normal, no updated sql

Solution

Clear all connections

Kill disconnect at database level

Select terminal,'alter system kill session''| | sid | |','| | serial# | |''; 'from v$session where username =''

Kill drop remote connection at the system level

Ps-ef | grep LOCAL=NO

Then kill drops the process found out.

Matters needing attention

System-level kill drop is to stop all external access, try not to do operations at the system level

It is possible to perform kill operations on all nodes when oracle is rac

Reference:

Https://blog.csdn.net/vic_qxz/article/details/52747919

Http://blog.itpub.net/23718752/viewspace-1880204/

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report