lsnrctl 命令未找到 oracle 企业数据库 11g ubuntu

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18993962/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 01:56:52  来源:igfitidea点击:

lsnrctl command not found oracle enterprise database 11g ubuntu

oracleubuntuoracle11glistener

提问by Marco Moderatto

i have an issue with the environment variables for oracle 11g enterprise edition on ubuntu. I tried this, but didn't work

我对 oracle 11g 企业版的环境变量有问题ubuntu。我试过这个,但没有用

Add the following lines to /etc/profile:

将以下行添加到 /etc/profile:

export ORACLE_HOME=/u01/app/oracle/product/11.X.Y/db_home1        
export PATH=$PATH:/u01/app/oracle/product/11.X.Y/db_home1/bin

Add the following environment variables:

添加以下环境变量:

export ORACLE_BASE=/u01/app/oracle        
export ORACLE_HOME=/u01/app/oracle/product/11.X.Y/db_home1        
export ORACLE_OWNR=oracle        
export PATH=$PATH:$ORACLE_HOME/bin

but the error persist.

但错误仍然存​​在。

回答by Ramya Gunashekar

$. oraenv
ORACLE_SID = [oracle] ?
Enter the Oracle SID and click enter
ORACLE_HOME will be displayed if it is already set, if not you can set it here
$lsnrctl status will now show you the status

$. oraenv
ORACLE_SID = [oracle] ?
输入 Oracle SID 并点击 enter
ORACLE_HOME 如果它已经设置将显示,如果没有你可以在这里设置它
$lsnrctl status 现在将显示你的状态