linux oracle服务器无密码登录dba
1、su - oracle 切换到oracle
2、sqlplus sys/manger as sysdba
3、新建用户:
create user username identified by password default tablespace user_date;
username-用户,password-密码,user_data-表空间
4、grant create session,create table, unlimited tablespace to username;
5、查找所有锁,包括TX锁:
SELECT l.type, s.sid, s.serial# FROM v$session s, v$lock l WHERE s.sid = l.sid AND s.username = '<username>'
6、查看锁类型
SELECT l.type, s.sid, s.serial# FROM v$session s, v$lock l WHERE s.sid = l.sid AND s.username = '<username>'