使用OceanBase 的 jdbc驱动经常会出现各种各样的错误

之前的钉钉群的问答, 备份到问答上

使用ob的jdbc驱动时,如果使用
“jdbcUrl”: “||dsc_ob10_dsc||obdemo:oboracle||dsc_ob10_dsc||jdbc:oceanbase://127.0.0.1:2883/tpcc?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true”
经常会出现各种各样的错误

“jdbcUrl”: “||dsc_ob10_dsc||obdemo:oboracle||dsc_ob10_dsc||jdbc:oceanbase://127.0.0.1:2883/tpcc?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true”
这个是对应商业版。而社区版有更简单的写法
“jdbcUrl”: “jdbc:mysql://127.0.0.1:2883/tpcc?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true”
也就是说社区版直接用mysql驱动就可以了,这样会避免一些错误。