oracle的三種連接方式


1.通過sid

jdbc:oracle:thin:@host:port:SID 
Example: jdbc:oracle:thin:@localhost:1521:sid_test

 

2.通過serviceName

jdbc:oracle:thin:@host:port/service_name 或 jdbc:oracle:thin:@//host:port/service_name 

Example:jdbc:oracle:thin:@localhost:1521/serviceName_test 或 jdbc:oracle:thin:@//localhost:1521/serviceName_test

 

3.通過TNSName 

dbc:oracle:thin:@TNSName 
Example: jdbc:oracle:thin:@TNSName_test


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM