SELECT  wr_no, wr_title, wr_writer, wr_passwd,wr_viewCnt,wr_content,to_char(WR_writeDate,'yyyy-MM-dd') wr_date ,
        WR_REPLYCNT, WR_GNO, WR_PARENT, WR_DEPTH,  WR_GORDER, WR_EMAIL, 
        WR_HOMEPAGE ,(SELECT COUNT(*)  FRoM WR_Notice_NOTICE) wrTotal ,
     subStr(TO_CHAR((sysdate-wr_writedate)*24),0,INSTR(TO_CHAR((sysdate-wr_writedate)*24),'.')-1)  NEWdate FROM WR_NOTICE_NOTICE
         ORDER BY wr_writedate DESC;
        

 

 

INSTR(TO_CHAR((sysdate-wr_writedate)*24),'.')-1

 

문자로만 가능 숫자 불가능 .. 문자안에 특정 문자의 위치를 리턴한다.

도저히 파일업로드가 안되서 이렇게 라도..음..링크가 제대로 가려나.. (오라클사이트입니다. 다운로드를 위해서는 다운로드 전에 가입하셔야 합니다)

 

제가 설명드릴거는 오라클 버전과 자바 버전에 따라 어떤 클래스 파일을 받는지에 대해서만 언급하고자 합니다.

 

현재 jdbc 드라이버 다운로드 페이지에 보이는 링크는 오라클 8/9/10 에 대해 보입니다.

 

그 안에 링크를 가시면 해당 오라클 버전에 대한 자바 버전에 따라 각각 또다른 드라이버 파일들이 있는 걸 보실 수 있습니다.

 

JDBC, SQLJ, and Oracle JPublisher

Oracle Database 10g Release 2 (10.2.0.2), (10.2.0.1.0) drivers
Oracle Database 10g (10.1.0.5), (10.1.0.4), (10.1.0.2.0) drivers
Oracle9i Release 2 (9.2.0.8), (9.2.0.5), (9.2.0.4), (9.2.0.3), & (9.2.0.1) drivers
Oracle9i Release 1 (9.0.1.4) & (9.0.1) drivers
Oracle8i Release 2 (8.1.7)

Oracle SQLJ Translator and Oracle JPublisher Downloads
JPublisher 10g Release 10.2
JPublisher 10g Release 10.1.0.3
Release 9.2.0.1.0
Release 8.1.7.0.0

 

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

아래는 오라클 10g release 2 (10.2.0.2) 의 JDBC 드라이버입니다.

보시면 오른쪽에 jdk 버전에 따른 파일들이 달리 제시되어 있습니다.

자바의 기초적인 JDBC 프로그래밍을 위해서라면 머 큰 차이가 없습니다만,

JDBC 1.0/2.0/3.0 의 각각 새로 구현된 내용이라던가(다이나믹커서) 오라클의 다이나믹 모니터링 서비스 등을 지원받고자 하신다면

역시 맞는 드라이버를 받으셔서 클래스패스로 인식 시키셔야 합니다.

 

 

Oracle Database 10g Release 2 (10.2.0.2) JDBC Drivers

JavaDoc (4,383,404 bytes)
  README
   
JDBC Thin for All Platforms
  classes12.jar (1,594,191 bytes) - for use with JDK 1.2 and JDK 1.3

  classes12_g.jar (2,038,127 bytes) - same as classes12.jar, except that classes were compiled with "javac -g" and contain some tracing information.

  classes12dms.jar (1,601,843 bytes) - same as classes12.jar, except that it contains additional code`to support Oracle Dynamic Monitoring Service.

  classes12dms_g.jar (2,046,467 bytes) - same as classes12dms.jar except that classes were compiled with "javac -g" and contain some tracing information.
  ojdbc14.jar (1,540,457 bytes) - classes for use with JDK 1.4 and 1.5
  ojdbc14_g.jar (1,932,834 bytes) - same as ojdbc14.jar, except that classes were compiled with "javac -g" and contain some tracing information.

  ojdbc14dms.jar (1,548,006 bytes) - same as ojdbc14.jar, except that it contains additional code`to support Oracle Dynamic Monitoring Service.

  ojdbc14dms_g.jar (1,940,478 bytes) - same as ojdbc14dms.jar, except that classes were compiled with "javac -g" and contain some tracing information.
  orai18n.jar (1,645,109 bytes) - NLS classes for use with JDK 1.2, 1.3, 1.4, and 1.5. This jar file replaces the old nls_charset jar/zip files.

  ons.jar (48,492 bytes) - for use by the pure Java client-side Oracle Notification Services (ONS) deamon.
  demo.tar (604,160 bytes) or demo.zip (529,267 bytes) - contains sample JDBC programs.
   
Note: For platform specific JDBC-OCI libraries See Instant Client


Oracle Database 10g Release 2 (10.2.0.1.0) JDBC Drivers

JavaDoc (4,383,404 bytes)
  README
   
JDBC Thin for All Platforms
  classes12.jar (1,590,491 bytes) - for use with JDK 1.2 and JDK 1.3

  classes12_g.jar (2,033,507 bytes) - same as classes12.jar, except that classes were compiled with "javac -g" and contain some tracing information.

  classes12dms.jar (1,598,183 bytes) - same as classes12.jar, except that it contains additional code`to support Oracle Dynamic Monitoring Service.

  classes12dms_g.jar (2,041,904 bytes) - same as classes12dms.jar except that classes were compiled with "javac -g" and contain some tracing information.
  ojdbc14.jar (1,536,979 bytes) - classes for use with JDK 1.4 and 1.5
  ojdbc14_g.jar (1,928,714 bytes) - same as ojdbc14.jar, except that classes were compiled with "javac -g" and contain some tracing information.

  ojdbc14dms.jar (1,544,468 bytes) - same as ojdbc14.jar, except that it contains additional code`to support Oracle Dynamic Monitoring Service.

  ojdbc14dms_g.jar (1,936,765 bytes) - same as ojdbc14dms.jar, except that classes were compiled with "javac -g" and contain some tracing information.
  orai18n.jar (1,551,155 bytes) - NLS classes for use with JDK 1.2, 1.3, 1.4, and 1.5. This jar file replaces the old nls_charset jar/zip files.

  ons.jar (48,492 bytes) - for use by the pure Java client-side Oracle Notification Services (ONS) deamon.
  demo.tar (604,160 bytes) or demo.zip (529,267 bytes) - contains sample JDBC programs.
   
Note: For platform specific JDBC-OCI libraries See Instant Client

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

오라클 8 대 버전일경우 자바 선택사항에 따른 드라이버들 소개입니다.

 

특히나 한국에서 오라클 7과 오라클 8은 큰 차이가 납니다. (8도 초기 버전인 경우에는 아래 사항을 꼭 참고하세요)

 

이유는 언어셋 때문입니다. (charset) 오라클 데이터베이스에서 한글의 데이터를 취급할 경우 종종 깨지는 상황이 발생하는데

 

이때 가장 먼저 점검 하셔야 할 사항은 오라클 데이터베이스의 버전입니다.

 

데이터베이스 버전 자체가 7 인 경우 모든 한글 데이터는 강제 변환 즉, 인코딩과 디코딩 절차를 거치셔야 합니다. (자세한 사항은 추후 설명드리겠습니다)

 

하지만 같은 상황이 8.1.7 이후 오라클 버전인 경우 한글 데이터 처리시 데이터베이스의 문자셋 설정에 따라 위와 같은 인코딩 디코딩 절차가 필요없는 경우도 있습니다. (쉽게 오라클을 한글로 설치하셔서 모든 명령어 결과가 한글로 나온다면.. 그건 이미 한글에 대한 문자셋이 설정되어 있기때문에 이때 데이터는 입력받아서 바로 저장하시면 한글 자체로 들어갑니다. 이걸 강제로 인코딩 해도 오히려 오류가 나죠.. 언어가 깨지는 경우 변수는 무한히(--;) 존재하기 때문에 나중에 설명하기로 하겠습니다.

 

아무튼.

 

해서 보시는 바처럼 언어셋에 대해 패치나 파일들이 준비되어 있는 겁니다.

 

항상 꼼꼼히 보시고 자신에게 맞는 드라이버를 선택 다운로드 받으시기 바랍니다.

 

Oracle8i 8.1.7.1JDBC Drivers
  See the JavaDoc (2.1 MB)
- Readme for NT
- Readme for Solaris
   
  The following files are all 100% pure Java and are used with both the Thin and OCI drivers. To use the OCI driver you must also download the appropriate shared library or DLL files.
   
  For use with JDK 1.2
 
classes12.zip - JDBC classes ( 1,892 kB)
 
- Oracle8i 8.1.7.1 Patch ( 3 kB)
This patch fixes the compatibility problem that shows up when using the 8.1.7.0 and 8.1.7.1 JDBC drivers to connect to a 9i database. Check Readme for more information.
 
nls_charset12.zip - Additional National Language character set support ( 11,814 kB)
  For use with JDK 1.1
 
classes111.zip - JDBC classes ( 1,741 kB)
 
- Oracle8i 8.1.7.1 Patch ( 2kB)
This patch fixes the compatibility problem that shows up when using the 8.1.7.0 and 8.1.7.1 JDBC drivers to connect to a 9i database. Check Readme for more information.
 
nls_charset11.zip - Additional National Language character set support (9,918 kB)
     
  The following shared library/DLL files are for use with the OCI driver only.
Disclaimer: For JDBC OCI drivers, downloading .dll and .so files on top of an existing Oracle Client install might not work because of dependency on OS shared library, we recommend a proper install of the corresponding Oracle Database Client, instead. In Oracle Database 10g, Instant Client will provide a downloadable, small footprint, and fast JDBC OCI drivers.
  OCI drivers for JDK 1.2.x
  jdbc817jdk12-nt.zip - Windows NT shared libraries (1,905 kb)
Note: Oracle 8.1.7 Client must be installed before the OCI driver can be used.
  jdbc8171jdk12x-sol.zip - Solaris shared libraries ( 712 kB)
  OCI drivers for JDK 1.1.x
 
jdbc817jdk11x-nt.zip - Windows NT shared libraries (1,754 kb)
Note: Oracle 8.1.7 Client must be installed before the OCI driver can be used.
  jdbc8171jdk11x-sol.zip - Solaris shared libraries ( 579 kB)


Oracle SQLJ Translators, Release 8.1.7.0.0
 

SQLJ requires an installation of JDK1.1 from JavaSoft. It must be installed and the Java interpreter must be available in your path. In the rest of this page we assumed that both the Java compiler (javac) and the Java interpreter (java) are installed correctly in your path.

  Since SQLJ runs on top of the JDBC API, a driver compliant with the database to be used must be installed in your system. The current version of SQLJ has been tested with the production release of Oracle's JDBC driver.
   
Download the translators
  SQLJ 8.1.7.0.0 Translator for Unix (2.74 MB) - See the Download instructions and Readme
  SQLJ 8.1.7.0.0 Translator for Windows NT (2.74 MB) - See the Download instructions and Readme
  Notes
  The GNU zip and WinZip distributions of SQLJ only differ in their compression format and in the line termination character(s) used for text-only files.)

 

일단 이정도로 마치겠습니다. ^^

출처 : Tong - BlueSky_07님의 Oracle통

출처 : Tong - 레몬가리비님의 [ ORACLE ]통

SELECT   - (5)

FROM      - (1)

WHERE    - (2)

GROUP BY - (3)

HAVING     - (4)

ORDER BY - (6)

SELECT * FROM V$LICENSE;

 

 

1234

+ Recent posts