https://blog.naver.com/sohyeonit/222789570910
[Oracle] Mac OS에서 이클립스 MySQL JDBC 연동하기
시작 하기에 앞서 !!!! 짚고 넘어가야 할 부분이 있다 이클립스에서 오라클 데이터 베이스를 연결하려면 jd...
blog.naver.com
▲ 이클립스 자체에 연동
▼ 폴더에 연동
폴더 생성 -> 우클릭, Build Path -> Configure Build Path ->
Libraries -> Classpath -> Add External JARs... ->
(oracle 11g 버전일 때)
(ojdbc6.jar 다운받고 압축 풀어서 lib 파일에 복사 붙여넣기) -> 선택 후 Open -> Apply and close -> 끝!!
(command + shift + g >> Library > Java > JavaVirtualMachines > jdk-18.0.2.1.jdk (버전에 따라 다를 수 있음)
> Contents > Home > lib)
* Library 폴더 여는 다른 방법
macOS에서 숨겨진 Library 폴더에 액세스하는 방법
www.autodesk.co.kr
(*) 도커 오류 때문에 도커와 오라클을 지우고 다시 깔았더니
java.sql.SQLException: ORA-28040: No matching authentication protocol
오류가 떴다.
select * from v$version;
오라클에서 오라클 버전을 확인해봤더니
11g 버전이 아니라 21c 버전이었던 것.
https://www.oracle.com/database/technologies/faq-jdbc.html
Oracle JDBC Frequently Asked Questions
For byte data, there are three Oracle SQL types: VARCHAR2, LONG and CLOB. VARCHAR2 data is of limited length, is stored directly in a column, and is transmitted to the server in inline packets. LONG data has a much larger limit (2 Gigibytes), is stored via
www.oracle.com
오라클 홈페이지에 따르면 오라클 버전별로 필요한 Jar 파일이 다르다.
jar 파일은 여기서 다운받을 수 있다.
https://www.oracle.com/database/technologies/appdev/jdbc-downloads.html
JDBC and UCP Downloads page
We’re sorry. We could not find a match for your search. We suggest you try the following to help find what you’re looking for: Check the spelling of your keyword search. Use synonyms for the keyword you typed, for example, try "application" instead of
www.oracle.com
나는 ojdbc8.jar로 해결봤다.
- buildpath 로 넣던가,
- WEB-INF/lib 에 파일을 넣던가.