Herhangi bir sebepten kullanıcı lock olabilir. dba_users tablosundaki account_status alanında LOCKED ifadesini görürüz. Locked durumunda olan kullanıcıları bulmak için şu sql i kullanabiliriz:
select *
from dba_users u
where u.account_status <> 'OPEN'
and u.profile <> 'DEFAULT'
Lock açmak için :
ALTER USER GOKHAN ACCOUNT UNLOCK;
Sql ile toplu lock olanları görüp açmak için :
select ' ALTER USER ' || u.username || ' ACCOUNT UNLOCK; ' as mKullanici
from dba_users u
where u.account_status <> 'OPEN'
and u.profile <> 'DEFAULT'
Sorgu sonucunda dönenleri command line den çalıştırıp lock ları açılabilir.