解决方案 »

  1.   

    http://blog.csdn.net/moneyshi/article/details/42527471看看这个
      

  2.   

    新建一程序编写与Oracle连接的代码
        步骤如下:
                1.实例话驱动类
              class.forName("Oracle.jdbc.driver.OracleDriver");
                2.建立到数据库的连接
              Connection conn = DriverManager.getConnection("jdbc:oracle:thin:
                                @192.168.8.1:1521:yuewei","scott","tiger");
    一般jdbc:oracle:thin后边就接IP了,你试试别加账号密码
      

  3.   

    Oracle url:
    <property name="connection.url">
    jdbc:oracle:thin:@localhost:1521:xe
    </property>
    <property name="connection.username">root</property>
    <property name="connection.password">000000</property>
    <property name="connection.driver_class">
    oracle.jdbc.OracleDriver
    </property>