JDBC鏈接ORACLE的三種URL格式

格式一: Oracle JDBC Thin using an SID




jdbc:oracle:thin:@host:port:SID 例如: jdbc:oracle:thin:@localhost:1521:orcl

格式二: Oracle JDBC Thin using a ServiceName





jdbc:oracle:thin:@//host:port/service_name 例如: jdbc:oracle:thin:@//localhost:1521/orcl.city.com

格式三:Oracle JDBC Thin using a TNSName

jdbc:oracle:thin:@TNSName 例如: jdbc:oracle:thin:@TNS_ALIAS_NAME 
相關文章
相關標籤/搜索