유지됩니까 숨겨짐 표, 시스템 변수 또는 특정 순간에 표시하십시오 활성화됨 연결용으로 뭔가?
List. ['V $ SESSION'] [1] 보기입니다.
>. v $ SESSION '각' 표시합니다. 세션정보를 현재 세션.
[1]: http://docs.oracle.com/cd/B19306_01/server.102/b14237/dynviews_2088.htm # REFRN30223
대한 보다 자세한 답변 참조. http://dbaforums.org/oracle/index.php = 16834 쇼토피스?
select
substr(a.spid,1,9) pid,
substr(b.sid,1,5) sid,
substr(b.serial#,1,5) ser#,
substr(b.machine,1,6) box,
substr(b.username,1,10) username,
-- b.server,
substr(b.osuser,1,8) os_user,
substr(b.program,1,30) program
from v$session b, v$process a
where
b.paddr = a.addr
and type='USER'
order by spid;
select s.sid as "Sid", s.serial# as "Serial#", nvl(s.username, ' ') as "Username", s.machine as "Machine", s.schemaname as "Schema name", s.logon_time as "Login time", s.program as "Program", s.osuser as "Os user", s.status as "Status", nvl(s.process, ' ') as "OS Process id"
from v$session s
where nvl(s.username, 'a') not like 'a' and status like 'ACTIVE'
order by 1,2
이 질의에서는 시도_횟수 필터링하도록 모든 백그라운드 프로세스들이다.
select
username,
osuser,
terminal,
utl_inaddr.get_host_address(terminal) IP_ADDRESS
from
v$session
where
username is not null
order by
username,
osuser;
select status, count(1) as connectionCount from V$SESSION group by status;
select
count(1) "NO. Of DB Users",
to_char(sysdate,'DD-MON-YYYY:HH24:MI:SS') sys_time
from
v$session
where
username is NOT NULL;