jdbc 드라이버는 4가지 타입이 있는데 그중 type 4 가 pure java로 구현한 드라이버 타입입니다.
현재 에러메세지를 보니 타입2인 native client 라이브러리을 wrapping 한 드라이버를 사용한 듯 싶습니다.
이 경우 클라이언트 라이브러리를 요구하게 됩니다.
드라이버 타입을 확인해보시기 바랍니다.
김상윤 님이 쓰신 글 :
: 자바에서 FireBird 연결하려고 아래와 같이 코딩했습니다.
:
: 1. 코딩
: public Connection getCon(){
: Connection con = null;
: String driver = "org.firebirdsql.jdbc.FBDriver";
: String url = "jdbc:firebirdsql:local:e:/Bin/SYSTEMDZ.GDB";
: String user = "ID";
: String pwd = "Pass";
:
: try{
: Class.forName(driver);
: con = java.sql.DriverManager.getConnection(url, user, pwd);
: System.out.println("DB 연결완료");
: } catch (Exception e) {
: e.printStackTrace();
: }
: return con;
:
: 2. 문제점
: org.firebirdsql.gds.impl.jni.InternalError: FirebirdApiBinding::Initialize - Could not find or load the client library / embeded server. Error [126].
: at org.firebirdsql.gds.impl.jni.JniGDSImpl.nativeInitilize(Native Method)
: at org.firebirdsql.gds.impl.jni.JniGDSImpl.attemptToLoadAClientLibraryFromList(JniGDSImpl.java:92)
: at org.firebirdsql.gds.impl.jni.LocalGDSImpl.<init>(LocalGDSImpl.java:29)
: ... 이하 생략
:
: 3. 시도
: 3.1. url 변수의 local 부분을 embedded 변경해도 안됨
: 3.2. JayBird FireBird 2.5를 지원하는 다른 버전으로 모두 변경해도 안됨
:
: 저의 검색실력이 미천한지 아무리 구글링해도 안나오네요.
: 해결방법에 대한 조언 좀 부탁드립니다.
: 감사합니다.
|