简体   繁体   English

expdp 命令在 Oracle 数据库的 Ubuntu 服务器上给出错误

[英]expdp command gives error on Ubuntu server for Oracle Database

I've been trying to export oracle datadump with "expdp" utility in Oracle 18c.我一直在尝试使用 Oracle 18c 中的“expdp”实用程序导出 oracle 数据转储。 I've set the environment variables under ~/.bashrc as following我在 ~/.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

When I enter the command "expdp" in terminal - it keep saying your ORACLE_HOME is not set当我在终端中输入命令“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

I'm new to Oracle Database at present.我目前是 Oracle 数据库的新手。 What could be the possible issue?可能的问题是什么? Do I need to set environment variables at some other places too?我是否也需要在其他一些地方设置环境变量?

Note that Oracle XE is not really supported on Ubuntu: if you really want to use Oracle, install it on Oracle Linux (freely available): you will never see Oracle Database running in real production on Debian or Ubuntu and you will need to use Oracle Linux or RedHat Linux or Suse Linux. Note that Oracle XE is not really supported on Ubuntu: if you really want to use Oracle, install it on Oracle Linux (freely available): you will never see Oracle Database running in real production on Debian or Ubuntu and you will need to use Oracle Linux 或 RedHat Linux 或 Suse Linux。

Do not run Oracle utilities as root: you don't need to and it is generally a bad practice on Linux to use root account when it is not needed.不要以 root 身份运行 Oracle 实用程序:您不需要,并且在 Linux 上,在不需要时使用 root 帐户通常是一种不好的做法。 Use a non privileged account to run Oracle utilities like SQL*Plus or Data Pump and make sure that your Oracle settings are run for each shell session: putting them in.bash_profile for the right account should be enough. Use a non privileged account to run Oracle utilities like SQL*Plus or Data Pump and make sure that your Oracle settings are run for each shell session: putting them in.bash_profile for the right account should be enough.

For this specific error message just make sure that ORACLE_HOME is correctly set: it is likely that your.bashrc has not been run.对于此特定错误消息,只需确保正确设置了 ORACLE_HOME:您的.bashrc 可能尚未运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM