驱动程序类名: oracle.jdbc.driver.OracleDriver
jdbc:oracle:thin:@//<host>:<port>/ServiceName
( Oracle)
驱动程序类名: com.mysql.jdbc.Driver
jdbc:mysql://<host>:<port>/<database_name>
( mysql)
驱动程序类名: com.microsoft.jdbc.sqlserver.SQLServerDriver
jdbc:microsoft:sqlserver://<server_name>:<port>
( SQLServer)
jdbc:表示采用jdbc方式连接数据库
oracle:表示连接的是oracle数据库
thin:表示连接时采用thin模式(oracle中有两种模式)
<host>:数据库ip地址
<port>和ServiceName表示端口和数据库名
jdbc:oracle:thin:@//<host>:<port>/ServiceName
( Oracle)
驱动程序类名: com.mysql.jdbc.Driver
jdbc:mysql://<host>:<port>/<database_name>
( mysql)
驱动程序类名: com.microsoft.jdbc.sqlserver.SQLServerDriver
jdbc:microsoft:sqlserver://<server_name>:<port>
( SQLServer)
jdbc:表示采用jdbc方式连接数据库
oracle:表示连接的是oracle数据库
thin:表示连接时采用thin模式(oracle中有两种模式)
<host>:数据库ip地址
<port>和ServiceName表示端口和数据库名