兼容性判定
公开资料依据 · 建议 PoC 复核支持度partial
严重度critical
置信度medium
依据规则ora.pkg.utl_file
迁移建议
需按命中位置逐条评估改写
判定说明
Whale 脚本加载 UTL_FILE 兼容对象,但仅覆盖接口子集且受服务器路径和权限约束;结论为 doc_based 草案,建议文件边界做 PoC 复核
库侧 / 应用侧路径
库侧改造
可行:目标端有对应能力(如 openGauss DBE_FILE)时逐接口改写调用
应用侧改造
可行:文件读写外移到应用/调度平台,过程仅产出数据集
推荐路线:case_by_case。验证建议:文件产出路径与内容比对 + 目录权限验证
规则样例
参考来源
- 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%9D%A1%E4%BB%B6%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%87%BD%E6%95%B0.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://github.com/opengauss-mirror/Plugin/blob/e3a0cf2ae9bbcee1aa103497f6eca1b1152a4146/contrib/whale/sql_script/plugin_orafce_functions.sql
- https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/UTL_FILE.html
相关改造点
- UTL_FILE 服务器文件读写调用 的 21 目标横向专业场景
- 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 模式 适配说明