oracle查看会话数,kill会话,查看linux oracle

select username, sid, serial# from v$session where username='用户名';
drop user yiwu2 cascade;
select username,sid,serial# from v$session ;
alter system kill session '14,7123';
alter system kill session 'sid,serial#' ;
CREATE user yiwu2 identified by 123456;
SQL> select count(*) from v$session #连接数
SQL> Select count(*) from v$session where status='ACTIVE' #并发连接数
SQL> show parameter processes #最大连接
SQL> alter system set processes = value scope = spfile;#重启数据库
SQL>select sessions_highwater from v$license; #数据库会话曾经达到的最大值
SQL>select * from v$license; #查询数据库自启动以来最大的并发数量
---查看表数
select count(*) from dba_tables t where t.owner='QUANQIUWANG';

查看oracle路径
ps -ef| grep oracle

你可能感兴趣的:(Oracle)