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