当前位置:网站首页>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 】
边栏推荐
- Network foundation (1) -- understanding the network
- Embedded learning materials and project summary
- Deep copy and shallow copy in golang
- Clean up the broken artifacts data (.lastUpdated files) and reload the project.问题解决办法
- Promise
- 网络基础(1)-----认识网络
- LeetCode 8. 字符串转换整数 (atoi)(中等、字符串)
- [论文翻译] Recent Advances in Open Set Recognition: A Survey
- 最好的創意鼓工具:Groove Agent 5
- 增额终身寿险产品都有哪些优势?门槛高吗?
猜你喜欢

Le meilleur outil de tambour créatif: Groove agent 5

DevOps到底是什么意思?
![[persistent problems of NVIDIA driver] - - /dev/sdax:clean, xxx/xxx files, xxx/xxx blocks - the most complete solution](/img/0e/8c79f7c77f61dfa9a155ab33b77081.png)
[persistent problems of NVIDIA driver] - - /dev/sdax:clean, xxx/xxx files, xxx/xxx blocks - the most complete solution
![[论文阅读] BoostMIS: Boosting Medical Image Semi-supervised Learning with Adaptive Pseudo Labeling](/img/10/a60cfe830e2238de00121d7bd95ad6.png)
[论文阅读] BoostMIS: Boosting Medical Image Semi-supervised Learning with Adaptive Pseudo Labeling

C language implementation setting desktop wallpaper

What exactly does Devops mean?

How to guarantee the quality of real-time data, the cornerstone of the 100 million level search system (Youku Video Search)? v2020

Load balancing strategy graphic explanation

Complete collection of MySQL exercises (with answers) - you will know everything after practice

Why is the digital transformation of small and medium-sized enterprises so difficult?
随机推荐
cosine 相似度计算总结
Promise
BlindWaterMar报错No module named cv2
Datatemplate in WPF
OTA upgrade
What is the difference between hubs, switches and routers?
Josephus problem_ Unidirectional circular linked list_ code implementation
The file "setup" does not exist. What should I do?
WPF basic controls
Load balancing strategy graphic explanation
Centos7 actual deployment mysql8 (binary mode)
最好的創意鼓工具:Groove Agent 5
ADB loop output memory information to folder
【原】expdp参数CONTENT
pytorch分类问题总结
[ROS tutorial] - 02 ROS installation
DeepStream系列之鱼眼相机测试
Serrures dans SQLSERVER
Solid basic knowledge + correct method is the key to quickly read the source code
day01