mysql项目更换数据源为oralce后项目调整

1、先把所有的表和数据换成oracle里

2、如果是maven项目,需要处理pom的依赖文件

<dependency>
      <groupId>com.oracle</groupId>
      <artifactId>ojdbc6</artifactId>
      <version>11.2.0.3</version>
    </dependency>

3、修改项目数据库源配置文件

jdbc.user=root
jdbc.password=root
jdbc.jdbcUrl=jdbc:oracle:thin:@127.0.0.1:1521/oatest
jdbc.driverClass=oracle.jdbc.OracleDriver

4、如果该项目的持久层用的mybatis框架,需要更改一下查询语句

<if test="identity!=null and identity!=''">
        and identity like concat(concat('%',#{identity}),'%')
      </if>

  备注:

如果还有问题,尝试百度解决,或者去某宝找我ID(沫沫加蛋糕)

原文地址:https://www.cnblogs.com/sjzxs/p/15726363.html