连接Oracle :
public static final String CLASSNAME = "oracle.jdbc.driver.OracleDriver" ;
public static final String URL = "jdbc:oracle:thin:@192.168.0.167:1521:orcl" ;
public static final String USERNAME = "scott" ;
public static final String PASSWORD = "tiger" ;
连接MySQL :
<property name="connection.url">jdbc:mysql://localhost:3306/etp</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>
本文提供了连接Oracle和MySQL数据库的具体配置示例,包括驱动类名、URL、用户名及密码等关键信息。
818

被折叠的 条评论
为什么被折叠?



