補充:JDBC連接Oracle數據庫時,jdbc.properties常用配置:
如下
bme.driver=oracle.jdbc.driver.OracleDriver
bme.url=jdbc:oracle:thin:@10.166.37.16:1521:ora11g
bme.username=sdu
bme.password=2J3VOd8/5+VzWR+LOPYXjA==
但是在67環境配置時,出現出現的ORA-12505錯誤
通過另一種配置,可以解決,
如下:
bme.driver=oracle.jdbc.driver.OracleDriver
bme.url=jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.166.46.67)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ora11g)))
bme.username=sdu
bme.password=2J3VOd8/5+VzWR+LOPYXjA==
