데이터베이스2013. 9. 24. 16:02
ORA-00054:resource busy and acquire with NOWAIT specified



 

이런 에러로 DML DDL명령이 안될때가 있다.

해당 DB가 lock 이 걸린경우 나오므로 해당 DB의 lock을 풀어주어야 한다.

예를 들어, EMP 테이블이라하면

dba 관리자 모드로 들어가서

 

sqlplus 디비접속(시스템계정으로)

쉘에서 -> sqlplus "/as sysdba"

 

이후


SQL> select a.sid, a.serial# 
from v$session a, v$lock b, dba_objects c 
where a.sid=b.sid and 
b.id1=c.object_id and 
b.type='TM' and 
c.object_name='EMP'; 

>>출력

SID SERIAL# 
--- ------- 
5        1 
6        1 

SQL> alter system kill session '5, 1'; 
SQL> alter system kill session '6, 1'; 

이렇게 하면 lock 이 풀리게된다.


Posted by 미랭군

private function listFonts():void {

var fontArray:Array = Font.enumerateFonts(true);

var str:String = "Fonts: \n";

for(var i:int = 0; i < fontArray.length; i++) {

var thisFont:Font = fontArray[i];

str += "FONT " + i + ":: name: " + thisFont.fontName + "; typeface: " + 

thisFont.fontStyle + "; type: " + thisFont.fontType;

if (thisFont.fontType == "embeddedCFF"||thisFont.fontType == "embedded") {

str += "*";              

}            

str +=  "\n";

}

trace(str);

}

Posted by 미랭군
자바·JSP2013. 8. 24. 20:02

JSTL 리스트 카운트 표시

<c:set value="${list.size()}" var="listCnt"></c:set>


JSTL 조건문

<c:if test="${listCnt == listStatus.index }">

</c:if>


JSTL if, else 조건문

<c:choose>

<c:when test="${listCnt > 0}">

<c:forEach items="${list}" var="listItem" varStatus="listStatus">

listItem.title, listItem.content

</c:forEach>

</c:when>

<c:otherwise>

게시물이 없습니다.

</c:otherwise>

</c:choose>


  <c:choose>

        <c:when test="${results.totalAns ne 0}">

            <fmt:formatNumber value="${results.totalSec / results.totalAns }" maxFractionDigits="3" />

        </c:when>

        <c:otherwise>

            0

        </c:otherwise>

    </c:choose>


JSTL formatter

<fmt:parseDate  type="date" value="${listItem.regDt }" var="regDt" pattern="yyyyMMddHHmmss"/>

<fmt:formatDate value="${regDt}" pattern="yyyy-MM-dd HH:mm" />  


Posted by 미랭군