首页 > 解决方案 > ogr2ogr:无法打开数据源(OCI 驱动程序)

问题描述

使用 ogr2ogr 命令将数据从 oracle 数据库传输到 postgresql 数据库时,出现有关 OCI 驱动程序的错误。支持的驱动程序列表中没有:“OCI -vector- (rw +): Oracle Spatial”驱动程序(命令:)ogr2ogr --formats。操作系统是 Ubuntu 18.04.3 LTS。

命令语法:ogr2ogr -f "PostgreSQL" "PG:dbname=dbname host=xx.xx.xx.xx port=xxxx user=xxxx password=xxxx" "OCI:user/password@(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = xxxx)(PORT = xxxx)))(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = xxxx))):schema.table" -overwrite -progress -a_srs EPSG:32634 -lco "SCHEMA=schemaname"

如何在支持的驱动程序列表中添加 OCI 驱动程序。

标签: oraclepostgresqloracle-call-interfaceogr2ogr

解决方案


推荐阅读