|
1. sqldeveloper¿¡¼
$ sqlplus "scott/tiger"
SQL> update emp set job='MANAGER' where ename='LION';
2. DOSâ¿¡¼
$ sqlplus "scott/tiger"
SQL> update emp set job='SALESMAN' where ename='LION';
3. system °èÁ¤¿¡¼
SQL> select sid, type, id1, id2, lmode, request
from v$lock
where type in('TX','TM');
SID TY ID1 ID2 LMODE REQUEST
---------- -- ---------- ---------- ---------- ----------
132 TX 262158 918 0 6
202 TM 73196 0 3 0
132 TM 73196 0 3 0
202 TX 262158 918 6 0
SQL> select holding_session, waiting_session
from dba_waiters;
HOLDING_SESSION WAITING_SESSION
------------------ ------------------
202 132
SQL> select sid, serial#, username from v$session
where sid='202';
SID SERIAL# USERNAME
---------- ---------- ------------------------------
202 130 SCOTT
SQL> alter system kill session '202, 130';
4. sqldeveloperâ¿¡¼ È®ÀÎ
Á¢¼ÓÀÌ ²÷±è
5. DOSâ¿¡¼ È®ÀÎ
1 ÇàÀÌ °»½ÅµÇ¾ú½À´Ï´Ù.
SQL> select * from emp where ename='LION';
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTN
---------- -------------------- ------------------ ------ --------- ---------- ---------- ----------
1000 LION SALESMAN 16/02/18 5000
|