레이블이 oracle인 게시물을 표시합니다. 모든 게시물 표시
레이블이 oracle인 게시물을 표시합니다. 모든 게시물 표시

2012년 7월 4일 수요일

oracle instant client


펌: http://www.leccionespracticas.com/uncategorized/how-to-install-oracle-instantclient-windows-xp-sp3-32bits/

1.  SET PATH=C:\Documents and Settings\miguel\Escritorio\instantclient10_1;%PATH%
       * This is obviously for finding the executables.
2. SET TNS_ADMIN=C:\Documents and Settings\miguel\Escritorio\instantclient10_1
       * This is only for finding the tnsnames.ora file. You do not have to have this in the Instant Client directory but if you were on a database box or one that already has the Oracle Client on it, where else would you put it?
3. SET LD_LIBRARY_PATH=C:\Documents and Settings\miguel\Escritorio\instantclient10_1
       * Obviously to find the shared libraries shipped with Instant Client.
4. SET SQLPATH=C:\Documents and Settings\miguel\Escritorio\instantclient10_1
       * If you use a glogin.sql file, you will need to set this to find it.

2011년 11월 22일 화요일

OracleDriver 에러

ojdbc14.jar
oracle.jdbc.driver.OracleDriver

ResultSetMetaData.getColumnType 이
java.sql.Types.DATE 값으로 나오지만

null 값 set 할 때
PreparedStatement.setNull(i, java.sql.Types.DATE) 하면
java.lang.NullPointerException 이 발생한다.

컬럼타입이 java.sql.Types.DATE 이라도
PreparedStatement.setTimestamp(i, null) 해준다.

최신 드라이버는 고쳐졌을 거라 의심치 않는다.