In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.