兼容性判定
公开资料依据 · 建议 PoC 复核支持度none
严重度major
置信度medium
依据规则ora.catalog.dictionary_views
怎么改
逐查询改 pg_catalog/information_schema
判定说明
core 无 USER_/ALL_/DBA_ Oracle 目录视图;列名和权限可见性均不同,建议 PoC 复核对象集合
库侧 / 应用侧路径
库侧改造
可行:按所用列和权限语义重写每条目录查询
应用侧改造
可行:运维/元数据查询可改目标驱动 DatabaseMetaData
推荐路线:case_by_case。验证建议:原账号可见对象集合、状态、owner 与类型数量核对
规则样例
SELECT table_name FROM USER_TABLES WHERE status='VALID'
SELECT owner, object_name FROM DBA_OBJECTS WHERE object_type='TABLE'
SELECT table_name FROM information_schema.tables
参考来源
- https://github.com/orafce/orafce/blob/841978f4ec493492bb57fd12415959695cae1b64/README.asciidoc#L786-L943
- https://www.postgresql.org/docs/16/catalogs.html
- https://www.postgresql.org/docs/16/datatype.html
- https://www.postgresql.org/docs/16/functions.html
- https://www.postgresql.org/docs/16/sql-commands.html
相关改造点
- ORACLE → postgresql 16 全部改造点
- postgresql 16 兼容性总览
- ORACLE 迁移国产库总览
- ORACLE ADD_MONTHS 函数 迁移 postgresql 16 怎么改
- ORACLE ALTER SESSION SET 会话参数 迁移 postgresql 16 怎么改
- ORACLE ANYDATA 动态类型列 迁移 postgresql 16 怎么改
- ORACLE ASCIISTR Unicode 转义函数 迁移 postgresql 16 怎么改
- ORACLE 关联数组(INDEX BY 表) 迁移 postgresql 16 怎么改
- ORACLE AT TIME ZONE 时区表达式 迁移 postgresql 16 怎么改