目录

8.14oracle支撑库url

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:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.35)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=his)))