我一直在尝试使用 Oracle 18c 中的“expdp”实用程序导出 Oracle 数据转储。我在 ~/.bashrc 下设置了环境变量如下
export ORACLE_HOME=/home/ubuntu/oracle-database-xe-18c-1.0/opt/oracle/product/18c/dbhomeXE
export ORACLE_SID=ORCL
export ORACLE_BASE=/home/ubuntu/oracle-database-xe-18c-1.0/opt/oracle/product
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export TNS_ADMIN=$ORACLE_HOME/network/admin
当我在终端中输入命令“expdp”时 - 它一直说您的 ORACLE_HOME 未设置
root@ip-172-30-xx-xxx:~# expdp
UDE-00013: Message 13 not found; No message file for product=RDBMS, facility=UDE
UDE-00019: You may need to set ORACLE_HOME to your Oracle software directory
我目前是 Oracle 数据库的新手。可能是什么问题?我还需要在其他一些地方设置环境变量吗?