兼容性判定
公开资料依据 · 建议 PoC 复核支持度partial
严重度major
置信度low
依据规则ora.func.harvest_orafce_plvdate_include_start
怎么改
PLVDATE.INCLUDE_START(...) -> plvdate.include_start(...)(orafce 4.16;openGauss/Kingbase 等原生兼容层按 capability 判定)
判定说明
6.0 Whale 文档列出 PLVDATE 包函数,但只在已加载扩展的 A 库可用;节假日状态、会话隔离和日期边界建议 PoC 复核
库侧 / 应用侧路径
库侧改造
可行:启用目标已批准的 Oracle 兼容层并改用 plvdate.include_start;固定 schema/search_path,逐个重载核对
应用侧改造
可行:将 PLVDATE.INCLUDE_START 行为移入应用工具函数;保留 Oracle 的 NULL、索引位置和异常契约
推荐路线:db_side。验证建议:建议 PoC 复核正常值、NULL、边界值、返回类型与异常行为,并与 Oracle 逐项比对
规则样例
BEGIN v_result := PLVDATE.INCLUDE_START(); END;
BEGIN PLVDATE.INCLUDE_START(TRUE); END;
SELECT APP_PLVDATE.INCLUDE_START() FROM dual
参考来源
- https://docs.opengauss.org/zh/docs/6.0.0-RC1/docs/ExtensionReference/whale%E6%A6%82%E8%BF%B0.html
- https://docs.opengauss.org/zh/docs/6.0.0-RC1/docs/ExtensionReference/whale%E5%AE%89%E8%A3%85.html
- https://docs.opengauss.org/zh/docs/6.0.0-RC1/docs/ExtensionReference/whale%E9%99%90%E5%88%B6.html
- https://docs.opengauss.org/zh/docs/6.0.0-RC1/docs/ExtensionReference/whale-%E6%95%B0%E5%AD%97%E6%93%8D%E4%BD%9C%E5%87%BD%E6%95%B0%E5%92%8C%E6%93%8D%E4%BD%9C%E7%AC%A6.html
- https://docs.opengauss.org/zh/docs/6.0.0-RC1/docs/ExtensionReference/whale-%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%A4%84%E7%90%86%E5%87%BD%E6%95%B0%E5%92%8C%E6%93%8D%E4%BD%9C%E7%AC%A6.html
- https://docs.opengauss.org/zh/docs/6.0.0-RC1/docs/ExtensionReference/whale-PLVCHR%E5%8C%85%E5%87%BD%E6%95%B0.html
- https://docs.opengauss.org/zh/docs/6.0.0-RC1/docs/ExtensionReference/whale-PLVDATE%E5%8C%85%E5%87%BD%E6%95%B0.html
- https://docs.opengauss.org/zh/docs/6.0.0-RC1/docs/ExtensionReference/whale-PLVSTR%E5%8C%85%E5%87%BD%E6%95%B0.html
- https://docs.opengauss.org/zh/docs/6.0.0-RC1/docs/ExtensionReference/whale-PLVSUBST%E5%8C%85%E5%87%BD%E6%95%B0.html
- https://github.com/orafce/orafce/blob/841978f4ec493492bb57fd12415959695cae1b64/README.asciidoc
- https://github.com/orafce/orafce/blob/841978f4ec493492bb57fd12415959695cae1b64/orafce--4.16.sql
相关改造点
- ORACLE → opengauss 6.0 A 模式 全部改造点
- opengauss 6.0 A 模式 兼容性总览
- ORACLE 迁移国产库总览
- ORACLE ALTER SESSION SET 会话参数 迁移 opengauss 6.0 A 模式 怎么改
- ORACLE 关联数组(INDEX BY 表) 迁移 opengauss 6.0 A 模式 怎么改
- ORACLE AT TIME ZONE 时区表达式 迁移 opengauss 6.0 A 模式 怎么改
- ORACLE 自治事务(PRAGMA AUTONOMOUS_TRANSACTION) 迁移 opengauss 6.0 A 模式 怎么改
- ORACLE 视图 BEQUEATH 子句 迁移 opengauss 6.0 A 模式 怎么改
- ORACLE BFILE 外部文件类型 迁移 opengauss 6.0 A 模式 怎么改