当前位置:网站首页>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 】
边栏推荐
- 中小企业数字化转型为什么这么难?
- Qt线程与界面
- 明朝的那些皇帝
- ava.lang.NoClassDefFoundError: org/apache/velocity/context/Context解决办法
- [论文阅读] BoostMIS: Boosting Medical Image Semi-supervised Learning with Adaptive Pseudo Labeling
- 团队管理|如何提高技术Leader的思考技巧?
- 记录oracle的几个参数 db_files,Cursor_sharing ,open_cursor
- SqlServer中的鎖
- 87. (leaflet house) leaflet military plotting - straight arrow modification
- UUID quick explanation
猜你喜欢

Wechat applet to realize OCR scanning recognition

"Past and present" of permission management

Using solrj to add, delete, modify, and query Solr is too simple

阿里云配置SLB(负载均衡)实例

About log traffic monitoring and early warning small project | Kafka vs redis
![[introduction to ROS] - 03 single chip microcomputer, PC host and ROS communication mechanism](/img/ad/d798284ceb370f7c68cbab755a11de.png)
[introduction to ROS] - 03 single chip microcomputer, PC host and ROS communication mechanism
[ROS tutorial] - 02 ROS installation
![[paper reading] fixmatch: simplifying semi supervised learning with consistency and confidence](/img/86/72726f933deef6944b62149759b7d5.png)
[paper reading] fixmatch: simplifying semi supervised learning with consistency and confidence

Small project on log traffic monitoring and early warning | environment foundation 2

Why web development with golang
随机推荐
【ROS入门教程】---- 03 ROS工作空间与功能包
最好的创意鼓工具:Groove Agent 5
What is MYCAT? Get to know you quickly
How to guarantee the quality of real-time data, the cornerstone of the 100 million level search system (Youku Video Search)? v2020
WSL 自动更新 ip hosts 文件
增额终身寿险产品都有哪些优势?门槛高吗?
Team management | how to improve the thinking skills of technical leaders?
Centos7 actual deployment mysql8 (binary mode)
CentOS实战部署redis
Wechat applet to realize OCR scanning recognition
Lucene mind map makes search engines no longer difficult to understand
table_exists_action=append和table_exists_action=truncate
NVIDIA Jetson之PWM风扇自定义控制
循环结构语句
DevOps到底是什么意思?
负载均衡策略图文详解
Non presented paper (no show) policy
zabbix离线安装
About log traffic monitoring and early warning small project | database management tool: migrate
Summary of pytorch classification problems