1 批量锁用户--数据库迁移后不允许在连接了
SELECT 'alter user '||username||' account lock;' from dba_users WHERE username NOT IN ('SYS','UUFS_2020')AND account_status='OPEN';
alter user wjxyxg accou...
转载自:https://www.cnblogs.com/qianxiaoruofeng/p/15542468.html
第一种
1.查询是否锁表
show OPEN TABLES where In_use > 0;
2.查询进程(如果您有SUPER权限,您可以看到所有线程。否则,您只能看到您自己...