Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- xargs
- import
- lsof
- port
- Windows
- IntelliJ
- plugin
- 단축키
- profile
- Windows 10
- context
- maVen
- resource
- Eclipse
- GIT
- vscode
- tomcat
- web.xml
- ssh
- grep
- 줄바꿈 문자
- Source
- JavaScript
- Quartz
- netsh
- find
- bash
- VirtualBox
- 네트워크
- Mac
Archives
- Today
- Total
develog
[oracle] SID / Service Name 접속시 차이 (sqlplus, jdbc) 본문
sqlplus 로 접속
# SID 로 접속 (:orcl)
sqlplus username/password@127.0.0.1:1521:orcl
# Service Name 으로 접속 (/orcl)
sqlplus username/password@127.0.0.1:1521/orcl
jdbc 로 연결
# SID 로 연결시 ( @hostname, :SID )
jdbc:oracle:thin:@hostname:port:SID
# ServiceName 으로 연결시 ( @//hostname, /ServiceName )
jdbc:oracle:thin:@//hostname:port/servicename
# SID 로 연결시
jdbc:oracle:thin:@127.0.0.1:1521:ORCL
# ServiceName 으로 연결시
jdbc:oracle:thin:@//127.0.0.1:1521/ORCL
Comments