From b9442ae9e32cbc55212ba4344fd716879b92c0ee Mon Sep 17 00:00:00 2001 From: zcp100_zcp100 Date: Fri, 4 Aug 2023 14:47:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93openGaussMogDB=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E5=8D=87=E7=BA=A7=E5=90=8E=E6=9F=A5=E8=AF=A2oracle?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=A1=A8=E6=8A=A5=E9=94=99=E6=80=8E?= =?UTF-8?q?=E4=B9=88=E5=8A=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...31\346\200\216\344\271\210\345\212\236.md" | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 "content/zh/post/zhangcuiping/\345\275\223openGaussMogDB\346\225\260\346\215\256\345\272\223\345\215\207\347\272\247\345\220\216\346\237\245\350\257\242oracle\346\225\260\346\215\256\345\272\223\350\241\250\346\212\245\351\224\231\346\200\216\344\271\210\345\212\236.md" diff --git "a/content/zh/post/zhangcuiping/\345\275\223openGaussMogDB\346\225\260\346\215\256\345\272\223\345\215\207\347\272\247\345\220\216\346\237\245\350\257\242oracle\346\225\260\346\215\256\345\272\223\350\241\250\346\212\245\351\224\231\346\200\216\344\271\210\345\212\236.md" "b/content/zh/post/zhangcuiping/\345\275\223openGaussMogDB\346\225\260\346\215\256\345\272\223\345\215\207\347\272\247\345\220\216\346\237\245\350\257\242oracle\346\225\260\346\215\256\345\272\223\350\241\250\346\212\245\351\224\231\346\200\216\344\271\210\345\212\236.md" new file mode 100644 index 00000000..776f7b40 --- /dev/null +++ "b/content/zh/post/zhangcuiping/\345\275\223openGaussMogDB\346\225\260\346\215\256\345\272\223\345\215\207\347\272\247\345\220\216\346\237\245\350\257\242oracle\346\225\260\346\215\256\345\272\223\350\241\250\346\212\245\351\224\231\346\200\216\344\271\210\345\212\236.md" @@ -0,0 +1,45 @@ ++++ + +title = "当openGauss/MogDB数据库升级后查询oracle数据库表报错怎么办" + +date = "2023-08-04" + +tags = ["当openGauss/MogDB数据库升级后查询oracle数据库表报错怎么办"] + +archives = "2023-08" + +author = "张翠娉" + +summary = "当openGauss/MogDB数据库升级后查询oracle数据库表报错怎么办" + +img = "/zh/post/zhangcuiping/title/img.png" + +times = "14:20" + ++++ + +# 当openGauss/MogDB数据库升级后查询oracle数据库表报错怎么办? + +**背景介绍**: + +在3.0.5中创建oracle_fdw后,成功建立与oracle数据库的数据连接。当把3.0.5升级到5.0.0后,再次查询oracle数据库表时,报错。 + +**报错内容**: + +```sql +MogDB=> select * from employee1; +ERROR: Error: environment variable "$libdir/oracle_fdw" contain invaild symbol "$". +``` + +**报错原因**:发现数据库目录的/app/postgresql目录下无法找到oracle_fdw.so文件;/app/share/postgresql/extension目录下无法找到oracle_fdw.control以及oracle_fdw--1.1.sql文件,应该是个bug。 + +**解决办法**: + +下载5.0.0 oracle_fdw插件,将oracle_fdw.so、oracle_fdw.control、oracle_fdw--1.1.sql文件拷贝到对应的数据库目录,即可成功查询oracle表数据。 + + + + + + + -- Gitee