oracle&mysql 常用sql

ORACLE:

 

修改密码:

//修改用户口令 格式 alter user 用户名 identified by 新密码;

 alter user euser identified by euser249

 

 

 --查找锁定表信息
select p.spid,
       c.object_name,
       b.session_id,
       b.oracle_username,
       b.os_user_name
from v$process p, v$session a, v$locked_object b, all_objects c
where p.addr = a.paddr
   and a.process = b.process
   and c.object_id = b.object_id;

你可能感兴趣的:(oracle)