jdbc url
-
oracle jdbc url 설정JDBC 2016. 5. 10. 08:31
oracle DB를 이용하여 데이터베이스를 사용할 때 jdbc의 url은 jdbc:oracle:thin:@hostname:port:SID 와 같은 순으로 설정해야 한다. url은 실제 데이터베이스 파일의 위치를 지정해 주는 역할을 한다. hostname 은 oracle DB가 설치된 컴퓨터의 IP port는 포트 번호로 일반적인 방식으로 설치했을 때 1521이 기본이다. SID는 오라클 서버 전역 데이터 베이스의 이름으로 XE, ORCL 이 있다. 오라클 익스프레스 버전은 XE 이다. 포트번호와 전역 데이터 베이스의 이름을 모르는 경우 oracle DB가 설치된 위치에서 확인한다. oraclexe\app\oracle\product\11.2.0\server\network\ADMIN 대략적인 경로는 위와 같..