有三种连接串的写法
1.使用SERVICE NAME连接:
jdbc:oracle:thin:@<host>:<port>/<service name>
如:jdbc:oracle:thin:@//123.123.123.1:8080/SN
2.使用SID来连接:
jdbc:oracle:thin:@<host>:<port>:<sid>
如:jdbc:oracle:thin:@127.0.0.1:1521:orcl
3.使用TNSName 来连接:
jdbc:oracle:thin:@<TNSName>
如:jdbc:oracle:thin:@TN