oracle - 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 驱动程序。
解决方案
推荐阅读
- postgresql - 确定 PostgreSQL 转储是否是使用并行转储创建的
- .htaccess - 为什么 .htaccess 指向另一个目录?
- linux - 使用 echo 附加到文件时的奇怪行为
- visual-studio - Visual Studio:请求被服务器拒绝 - HTTP 400:错误请求
- javascript - 如果语句问题,当参数无效时仍然激活
- regex - 正则表达式通过字符匹配模式
- python - df 中的关键字计数:性能调整
- javascript - 如何以干净的方式将键值对的对象转换为具有单对JS的对象数组
- c++ - 两个背靠背的 printf 产生奇怪的结果?
- java - 加载启动数据和实现Android 12 Splash Screen的方法是什么?