• 이벤트 6005는 이벤트 로그 서비스가 시작되었음을 알리기 위해 부팅할 때 기록됩니다.
  • 이벤트 6006은 정상 종료(Clean Shutdown) 시 기록됩니다.
  • 이벤트 6008은 비정상 종료(Dirty Shutdown) 시 기록됩니다.
  • 이벤트 6009는 부팅할 때마다 기록되며 운영 체제 버전, 빌드 번호, 서비스 팩 수준 및 기타 시스템 관련 정보를 표시합니다.
  •  

    '윈도우' 카테고리의 다른 글

    윈도우 필수 명령어 집합  (0) 2015.12.24
    블로그 이미지

    왕왕왕왕

    ,
    <script type="text/javascript">
    //check browser
    var isie=(/msie/i).test(navigator.userAgent); //ie
    var isie6=(/msie 6/i).test(navigator.userAgent); //ie 6
    var isie7=(/msie 7/i).test(navigator.userAgent); //ie 7
    var isie8=(/msie 8/i).test(navigator.userAgent); //ie 8
    var isie9=(/msie 9/i).test(navigator.userAgent); //ie 9
    var isfirefox=(/firefox/i).test(navigator.userAgent); //firefox
    var isapple=(/applewebkit/i).test(navigator.userAgent); //safari,chrome
    var isopera=(/opera/i).test(navigator.userAgent); //opera
    var isios=(/(ipod|iphone|ipad)/i).test(navigator.userAgent);//ios
    var isipad=(/(ipad)/i).test(navigator.userAgent);//ipad
    var isandroid=(/android/i).test(navigator.userAgent);//android
    var device;
    if(isie7 || isie8 || isie9){
     isie6=false;
    }
    if(isie9){
     isie=false;
    }
    if(isapple || isios || isipad || isandroid){
     alert("모바일기기로 접속하였습니다.");
     window.location = "../rs/main.jsp?dvType=m";
     
    }else{
     alert("PC로 접속하였습니다.");
     window.location = "../rs/main.jsp?dvType=p";
    }
    </script>


    블로그 이미지

    왕왕왕왕

    ,

    자바 오류

    JAVA/자바 2015. 11. 21. 14:52
    오류:java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM

    해결:32bit JVM을사용해야된다. 라이브러리가 32bit이기때문에

     

    오류:java.security.NoSuchProviderException No such provider: BC'

    해결:

    //bcprov-jdk jar 라이브러리를 찾아서 넣어주고 아래코드 작성하면된다.

    Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());


     

    'JAVA > 자바' 카테고리의 다른 글

    자바 POI라이브러리로 엑셀파일 읽고쓰기  (0) 2016.02.10
    자바 JFileChooser  (0) 2016.02.10
    자바 ARC4 암호화  (0) 2015.11.21
    자바 멀티파트  (0) 2015.11.02
    자바 스트림 종류  (0) 2015.10.29
    블로그 이미지

    왕왕왕왕

    ,

    자바 ARC4 암호화

    JAVA/자바 2015. 11. 21. 14:33

    package runtime;

    import java.security.Security;

    import javax.crypto.Cipher;
    import javax.crypto.spec.SecretKeySpec;

    public class RutimeTest {

     public static void main(String[] args) throws Exception{
      // TODO Auto-generated method stub

      byte[] input = "1234567890".getBytes();
      byte[] keyBytes = "input123".getBytes();

      
      SecretKeySpec key = new SecretKeySpec(keyBytes, "ARC4");
      Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
      Cipher cipher = Cipher.getInstance("ARC4", "BC");

      //인코딩
      byte[] cipherText = new byte[input.length];

      cipher.init(Cipher.ENCRYPT_MODE, key);

      int ctLength = cipher.update(input, 0, input.length, cipherText, 0);

      ctLength += cipher.doFinal(cipherText, ctLength);

      System.out.println("cipher text: " + new String(cipherText));
      
      //디코딩

      byte[] plainText = new byte[ctLength];

      cipher.init(Cipher.DECRYPT_MODE, key);

      int ptLength = cipher.update(cipherText, 0, ctLength, plainText, 0);

      ptLength += cipher.doFinal(plainText, ptLength);

      System.out.println("plain text : " + new String(plainText));

     }
    }

     

    라이브러리 다운받고해야됨


     

    bcprov/bcprov-jdk15on-1.52.jar.zip( 2,482 k)

     

    'JAVA > 자바' 카테고리의 다른 글

    자바 JFileChooser  (0) 2016.02.10
    자바 오류  (0) 2015.11.21
    자바 멀티파트  (0) 2015.11.02
    자바 스트림 종류  (0) 2015.10.29
    자바 이미지파일 전송 클라이언트쪽  (0) 2015.10.29
    블로그 이미지

    왕왕왕왕

    ,

    오류: INS-30131

    해결: PC 이름 한글,특수문자 때문에 생기는 오류

     

    오류: INS-13001

    헤결: 무시

     

    오류: oracle dataaccess 버전 2.121.2.0 어셈블리 로드 불가

    해결: .net에서 배포할때 잘못됨 (닷넷 재설치)

    블로그 이미지

    왕왕왕왕

    ,

    //recyclebin은 휴지통이라고 보면됨

    //뒤에 purge를 붙이면 recyclebin을 거치지않고 삭제된다.

    Drop table 테이블명 purge;

     

    //recyclebin에 있는 것들 확인

    show recyclebin;

     

    //테이블 복구

    //purge로 삭제한 테이블은 복구안됨

    Flashback table 테이블명 to before drop;

     

     

    //recyclebin 비우기

    purge recyclebin;

     

    '데이터베이스 > Oracle' 카테고리의 다른 글

    Oracle 스키마 확인  (0) 2015.12.04
    Oracle 오류  (0) 2015.11.20
    Oracle 현재 DB 테이블 확인  (0) 2015.11.13
    Oracle 설치없이 오라클 스터디 할 수 있는 웹사이트  (0) 2015.11.09
    Oracle Alias  (0) 2015.11.07
    블로그 이미지

    왕왕왕왕

    ,

    반복문

    for 인덱스 in 시작값..종료값 loop

    구문1

    구문2

    ...

    ...

    end loop;





    //밑에 예제는 10번 반복하면서 0~10까지 랜덤수를 뽑는 예제이다


    declare

    begin

    for cnt in 1..10  loop

    dbms_output.put_line(round(dbms_random.value(10,0),0));

    end loop;

    end;

    /

    '데이터베이스 > PL/SQL' 카테고리의 다른 글

    PL/SQL DBMS_RANDOM  (0) 2015.11.14
    PL/SQL View 생성  (0) 2015.11.14
    PL/SQL ROWID,ROWNUM  (0) 2015.11.14
    PL/SQL 아스키 <-> 문자  (0) 2015.11.13
    PL/SQL function 안에 변수를 이용해 리턴값 추가  (0) 2015.11.13
    블로그 이미지

    왕왕왕왕

    ,

    declare


    begin

    //dbms_random.value(max_value,min_value)

    //round(소수점 출력수);

    dbms_output.put_line(round(dbms_random.value(50,0),0));

    end;

    /

    '데이터베이스 > PL/SQL' 카테고리의 다른 글

    PL/SQL FOR문  (0) 2015.11.14
    PL/SQL View 생성  (0) 2015.11.14
    PL/SQL ROWID,ROWNUM  (0) 2015.11.14
    PL/SQL 아스키 <-> 문자  (0) 2015.11.13
    PL/SQL function 안에 변수를 이용해 리턴값 추가  (0) 2015.11.13
    블로그 이미지

    왕왕왕왕

    ,