当前位置:网站首页>Oracle relational tables with XY field values are synchronized to PG database and converted to geometric fields
Oracle relational tables with XY field values are synchronized to PG database and converted to geometric fields
2022-06-11 01:12:00 【50. Proud and heroic】
1. download oracle_fdw
https://github.com/laurenz/oracle_fdw/releases
2. Move files to pg Under installation path
The download will complete zip Package decompression , hold 【lib】 The folder oracle_fdw.dll and 【share/extension】 The three files in the directory are copied to PostgreSQL Install under directory 【lib】 The folder and 【share/extension】 In the catalog .
-- establish oracle_fdw
create extension oracle_fdw;
-- Statement can query oracle_fdw extension,
select * from pg_available_extensions;
3. adopt oracle_fdw visit oracle
-- Create access oracle The connection of
create server oracle foreign data wrapper oracle_fdw options(dbserver '127.0.0.1:1521/orcl');
-- grant postgres User access rights
grant usage on foreign server oracle to postgres;
-- Create to oracle Mapping
create user mapping for postgres server oracle options(user 'gis',password 'gis');
create foreign table point(
tp_guid uuid,
x numeric,
y numeric,
lng numeric,
lat numeric,
remarks varchar(150)
) server oracle options(schema 'GIS',table 'POINT'); //scheme table The name must be capitalized
-- stay pg Medium visit oracle Table of
select st_geomfromtext('POINT('||X||' '||Y||')',4550) from point
【 In addition :oracle Data addition and deletion pg The data will change , Keep it in real time 】
边栏推荐
- DeepStream系列之鱼眼相机测试
- 为什么使用 Golang 进行 Web 开发
- About log traffic monitoring and early warning small project | flask
- [introduction to ROS] - 03 ROS workspace and function pack
- STM32 cannot download again after downloading the code
- OTA升级
- 【NVIDIA驱动的顽固问题】---- /dev/sdax:clean,xxx/xxx files,xxx/xxx blocks ---- 最全解决方法
- 手把手教你前后分离架构(五) 系统身份验证实现
- The file "setup" does not exist. What should I do?
- Wechat applet to realize OCR scanning recognition
猜你喜欢

网络基础(1)-----认识网络

文件“Setup”不存在,怎么办?

Why is the digital transformation of small and medium-sized enterprises so difficult?

Teach you the front and back separation architecture (V) system authentication implementation

zabbix离线安装
WSL automatically updates the IP hosts file

【VBA脚本】提取word文档中所有批注的信息和待解决状态

About the log traffic monitoring and early warning small project | standardized return of interaction with the database in flask

NVIDIA Jetson之PWM风扇自定义控制

Adapter mode
随机推荐
day01
文件“Setup”不存在,怎么办?
STM32下载代码后出现无法再次下载的问题
Summary of pytorch classification problems
适配器模式
Embedded learning materials and project summary
[paper reading] tganet: text guided attention for improved polyp segmentation
【ROS入门教程】---- 02 ROS安装
SqlServer中的锁
CentOS actual deployment redis
手把手教你前后分离架构(五) 系统身份验证实现
CentOS实战部署redis
BlindWaterMar报错No module named cv2
Datatemplate in WPF
Why is the digital transformation of small and medium-sized enterprises so difficult?
ion_mmap
最好的創意鼓工具:Groove Agent 5
What exactly does Devops mean?
Using solrj to add, delete, modify, and query Solr is too simple
[论文阅读] BoostMIS: Boosting Medical Image Semi-supervised Learning with Adaptive Pseudo Labeling