• OceanBase Developer Center 阿里数据使用的坑,由Mysql转为oceanBase注意避坑


    说明:最近项目上说使用新的数据阿里的oceanBase,结果一步一个坑;

    因为这个oceanBase在Navicat 上使用不了,无法操作表设计,所以只能下载OceanBase Developer Center  工具;

    使用文档:https://www.oceanbase.com/docs/community-observer-cn-10000000000901363

    目前主要遇到以下问题:

    1、不能直接在建表的时候点一下创建主健;

    2、字段类型错了,修改超级麻烦,如以下示例,创建字段的时候是字符串类型想改为bigint类型,改不了,工具改不了,sql改不了,只能删了重建;

    执行以下 SQL 失败

    ALTER TABLE t_voice MODIFY device_imei BIGINT(20)

    失败原因:

    ErrorCode = 1235, SQLState = 0A000, Details = Alter non string type not supported

    3、oceanBase没有主健索引一说,反正在说明文档上没有找到,工具上也没有

    4、2023.9.1 使用版本是5.7.25-OceanBase_CE-v4.2.0.0

    OceanBase数据库 使用mybatisplus的updateBatchById方法报错;Not supported feature or function

    控制台打印:

    报错异常如下:

    Error flushing statements. Cause: java.sql.SQLException: Not supported feature or function

    Cause: java.sql.SQLException: Not supported feature or function

    ; uncategorized SQLException; SQL state [0A000]; error code [1235]; Not supported feature or function; nested exception is java.sql.SQLException: Not supported feature or function

    这个问题已经找到解决方案:

    在Jdbc url配置上,加上 &rewriteBatchedStatements=true&allowMultiQueries=true
    之前只配置了前面那个

    其他的坑遇到了接着补充完善.

  • 相关阅读:
    告诉你如何从keil工程知道使用了多少RAM和ROM空间
    制作甘特图
    K210基础实验——点亮LED灯
    go的slice学习
    c++习题02-浮点数求余
    「数据结构详解·三」栈
    milvus测试
    音视频会议需要哪些设备配置
    创新案例|鞋服巨头Nike如何以DTC战略实现可持续增长
    视频模糊如何转高清?
  • 原文地址:https://blog.csdn.net/qq_43384381/article/details/127660120