#!/bin/bash INSTANCE='cmsSvr11' echo 'Tomcat Stop' sh ~/was/tomcat/bin/stop$INSTANCE.sh while [ : ]; do sleep 1 CNT=`ps -ef | grep tomcat | grep java | grep -v grep | grep D$INSTANCE | wc -l` echo 'Tomcat process count -> '$CNT if [ $CNT -lt 1 ] then echo "Tomcat starting... >> catalina tail start"; sh ~/tomcat/bin/startup.sh cdate=$(date +'%Y-%m-%d') tail -f ~/tomcat/logs/catalina.$cdate.log ex..
테이블 길이 구하기(컬럼 사이즈 합) SELECT SUM (REALLENGTH) FROM (SELECT DATALENGTH, COLUMNNAME, REALLENGTH FROM (SELECT A.COLUMN_NAME AS COLUMNNAME, A.DATA_TYPE AS DATATYPE, A.DATA_LENGTH AS DATALENGTH, B.COMMENTS AS COMMENTS, A.NULLABLE AS NULLABLE, CASE WHEN DATA_TYPE = 'NUMBER' THEN DATA_PRECISION ELSE DATA_LENGTH END AS REALLENGTH FROM DBA_TAB_COLUMNS A, ALL_COL_COMMENTS B WHERE A.OWNER = B.OWNER AND A.TA..
크론탭에 등록 후 사용할 것을 추천서버가 살아있는지 죽어있는지 단순 텔넷을 이용해 로그를 남긴다. #!/usr/bin/ksh tpipe() { sleep 2;echo 'exit' sleep 2 } aliveCheck() { LOG_YEAR=`/bin/date +%Y` LOG_MONTH=`/bin/date +%m` LOG_DATE=`/bin/date +%Y%m%d` LOG_TIME=`/bin/date +%H:%M:%S` TARGET_SERVER='127.0.0.1 80' aliveDir=/home/test/log/$LOG_YEAR/$LOG_MONTH/ aliveFileName=alive.$LOG_YEAR$LOG_MONTH$LOG_DATE alivePath=$aliveDir$aliveFileName if [..
du -Sh 끝
-- Ver. 1 -- SELECT MIN(DECODE(TO_CHAR(ym+LEVEL-1,'D'),'1',LEVEL)) SUN, MIN(DECODE(TO_CHAR(ym+LEVEL-1,'D'),'2',LEVEL)) MON, MIN(DECODE(TO_CHAR(ym+LEVEL-1,'D'),'3',LEVEL)) TUE, MIN(DECODE(TO_CHAR(ym+LEVEL-1,'D'),'4',LEVEL)) WED, MIN(DECODE(TO_CHAR(ym+LEVEL-1,'D'),'5',LEVEL)) THU, MIN(DECODE(TO_CHAR(ym+LEVEL-1,'D'),'6',LEVEL)) FRI, MIN(DECODE(TO_CHAR(ym+LEVEL-1,'D'),'7',LEVEL)) SAT FROM (SELECT TO..
비스타를 사용중인데.. XP에서 잘되던 TOAD가 난데없이..Oracle no Instant ClientOracle Home...머시기.. 가 잡혀 구글을 뽑아보니..원본 : http://oddpold.tistory.com/tag/Toad%20for%20Oracle내용을 보시기 불편하시니.. 윗 원본사이트에서 보시면 되실듯..또 가기 불편하시다는 분은 아래내용 계속^^...http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html에서 필히... Instant Client 10.1.0.5.0 버전 다운로드instantclient-odbc-win32-10.1.0.5-20060419.zipinstantclient-ba..
- Total
- Today
- Yesterday
- 합정
- Spring
- docker
- Kotlin
- maven
- vim
- Tomcat
- resttemplate
- java
- properties
- boot
- IntelliJ
- ls
- Access
- Shell
- Linux
- Build
- 코틀린
- Eclipse
- 도커
- oracle
- 톰캣
- vrapper
- mybatis
- jQuery
- grant
- Profile
- 맛집
- Database
- vi
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |