echo "
SET linesize 2000
SET pagesize 50
COLUMN pu FORMAT a8 HEADING 'O/S|Login|ID' JUSTIFY left
COLUMN su FORMAT a8 HEADING 'Oracle|User ID' JUSTIFY left
COLUMN os_user FORMAT a12 HEADING 'O/S User' JUSTIFY left
COLUMN oracle_user FORMAT a12 HEADING 'Oracle User' JUSTIFY left
COLUMN stat FORMAT a8 HEADING 'Status' JUSTIFY left
COLUMN ssid FORMAT 999999 HEADING 'SID' JUSTIFY right
COLUMN sser FORMAT 999999 HEADING 'Serial#' JUSTIFY right
COLUMN spid FORMAT 999999 HEADING 'O/S PID' JUSTIFY right
COLUMN program FORMAT a30 HEADING 'Program' JUSTIFY left truncate
SET verify off
SELECT
s.username oracle_user
, s.sid ssid
, s.serial# sser
, s.osuser os_user
, lpad(p.spid,7) spid
, s.program program
, s.status stat
FROM
v\$process p
, v\$session s
WHERE (
p.spid=&1
OR p.spid=&2
OR p.spid=&3
OR p.spid=&4
OR p.spid=&5
OR p.spid=&6
OR p.spid=&7
OR p.spid=&8
OR p.spid=&9
OR p.spid=&10
OR p.spid=&11
OR p.spid=&12
OR p.spid=&13
OR p.spid=&14
OR p.spid=&15
)
AND p.addr = s.paddr
AND s.username IS NOT null
ORDER BY
s.program
, s.osuser
/
exit
" > top15.sql
top -b | awk '{print $1}' | tail -16 | xargs echo start top15.sql $* > top15_temp.sql
sqlplus -s "/ as sysdba" @top15_temp.sql
# +----------------------------+
# | REMOVE ALL TEMPORARY FILES |
# +----------------------------+
rm top15.sql
rm top15_temp.sql
SET linesize 2000
SET pagesize 50
COLUMN pu FORMAT a8 HEADING 'O/S|Login|ID' JUSTIFY left
COLUMN su FORMAT a8 HEADING 'Oracle|User ID' JUSTIFY left
COLUMN os_user FORMAT a12 HEADING 'O/S User' JUSTIFY left
COLUMN oracle_user FORMAT a12 HEADING 'Oracle User' JUSTIFY left
COLUMN stat FORMAT a8 HEADING 'Status' JUSTIFY left
COLUMN ssid FORMAT 999999 HEADING 'SID' JUSTIFY right
COLUMN sser FORMAT 999999 HEADING 'Serial#' JUSTIFY right
COLUMN spid FORMAT 999999 HEADING 'O/S PID' JUSTIFY right
COLUMN program FORMAT a30 HEADING 'Program' JUSTIFY left truncate
SET verify off
SELECT
s.username oracle_user
, s.sid ssid
, s.serial# sser
, s.osuser os_user
, lpad(p.spid,7) spid
, s.program program
, s.status stat
FROM
v\$process p
, v\$session s
WHERE (
p.spid=&1
OR p.spid=&2
OR p.spid=&3
OR p.spid=&4
OR p.spid=&5
OR p.spid=&6
OR p.spid=&7
OR p.spid=&8
OR p.spid=&9
OR p.spid=&10
OR p.spid=&11
OR p.spid=&12
OR p.spid=&13
OR p.spid=&14
OR p.spid=&15
)
AND p.addr = s.paddr
AND s.username IS NOT null
ORDER BY
s.program
, s.osuser
/
exit
" > top15.sql
top -b | awk '{print $1}' | tail -16 | xargs echo start top15.sql $* > top15_temp.sql
sqlplus -s "/ as sysdba" @top15_temp.sql
# +----------------------------+
# | REMOVE ALL TEMPORARY FILES |
# +----------------------------+
rm top15.sql
rm top15_temp.sql
[진짜실무교육&환급100%]SQL/자바/스프링/안드로이드/닷넷C#/웹… | 12-27 | 2313 | ||
[채용예정교육]오라클자바개발잘하는신입뽑기2개월과정,교육전취… | 12-11 | 1670 | ||
53 | [평일전액환급실무교육]Spring,자바&JSP,안드로이드,웹퍼블리싱,… | 03-15 | 1482 | |
52 | [주말]C#,ASP.NET마스터 | 01-31 | 1589 | |
51 | [기업100%환급,평일주간]SQL기초에서스키마오브젝트,PLSQL,힌트… | 01-31 | 1974 | |
50 | [기업100%환급]개발자를위한스프링,마이바티스,하이버네이트(스… | 01-31 | 1255 | |
49 | [평일주간,평일야간,주말]Spring,MyBatis,Hibernate개발자과정 | 01-19 | 1560 | |
48 | [평일야간,주말]안드로이드개발자과정(Android기초실무) | 01-11 | 1382 | |
47 | [평일야간,주말주간,주말야간]JAVA,Network&JSP&Spring,MyBatis,… | 01-03 | 1930 | |
46 | [진짜실무교육&환급100%]SQL/자바/스프링/안드로이드/닷넷C#/웹… | 12-27 | 2313 | |
45 | [기업100%환급]자바웹개발기초과정(JAVA,JDBC,JSP,Servlet,Aajx,… | 12-19 | 1654 | |
44 | [평일주간야간, 주말]웹퍼블리싱 마스터(HTML5,CSS3,jQUERY,AJAX… | 12-14 | 1632 | |
43 | [채용예정교육]오라클자바개발잘하는신입뽑기2개월과정,교육전취… | 12-11 | 1670 | |
42 | [기업100%환급]웹퍼블리싱마스터(HTML5,CSS3,JavaScript,jQUERY) | 12-09 | 1332 | |
41 | [평일야간]닷넷(C#,Network,ADO.NET,ASP.NET)마스터 | 12-01 | 1560 | |
40 | [기업100%환급]자바기초&안드로이드개발자과정(Android전액환급… | 12-01 | 1737 | |
39 | [평일야간,주말]SQL기초에서실무까지(SQL기초,PLSQL,힌트,튜닝) | 12-01 | 1201 |
댓글 없음:
댓글 쓰기