我正在尝试将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
。