我正在尝试将 oracle 数据库迁移到 postgresql,我运行 ora2pg 命令并收到以下错误:
root@ubuntu:~# ora2pg
DBI connect('host=localhost;sid=XE;port=1521','HR',...)
failed: ERROR OCIEnvNlsCreate. Check ORACLE_HOME (Linux) env var or PATH (Windows)
and or NLS settings, permissions, etc. at /usr/local/share/perl/5.24.1/Ora2Pg.pm
line 1491.
FATAL: -1 ... ERROR OCIEnvNlsCreate. Check ORACLE_HOME (Linux) env var or PATH
(Windows) and or NLS settings, permissions, etc.
Aborting export...
这一步对于开始迁移数据库很重要,因为我知道我配置了ORACLE_HOME
变量,例如LD_LIBRARY_PATH
.