openBSD oracle thin test


openBSD oracle thin test

1. ojdbc버전.jar를 다운받는다. 2. classpath 등록 2.1 classpath 확인 # env 2.2 classpath 등록 # export set CLASSPATH=경로:경로 * 경로와 경로는 콜론(:)으로 구분하고, jar파일일 경우는 파일명까지 다 써준다. 3 테스트 파일 컴파일 후 실행 프로그램 소스 (table은 oracle 기본 table이기 때문에 그냥 쓰면 동작함) import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class test { public test() { super(); } public static void main(String[] args) { try { Class.forName("oracle.jdbc.driver.Oracle...


#IT·컴퓨터

원문링크 : openBSD oracle thin test