Home >Operation and Maintenance >Linux Operation and Maintenance >What should I do if linux lsnrctl is not an internal command?

What should I do if linux lsnrctl is not an internal command?

藏色散人
藏色散人Original
2023-03-16 09:46:562061browse

linux lsnrctl is not an internal command. Solution: 1. After logging in with the root user, execute the "su oracle" command; 2. Using the oracle user, the configuration parameter is "export PATH=/home/oracle/app /oracle/product/11.2.0/dbhome_1/bin:$PATH export ORACLE_HOME=/home/oracle/...".

What should I do if linux lsnrctl is not an internal command?

The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.

linux What should I do if lsnrctl is not an internal command? The lsnrctl start command cannot be found?

The command cannot be found. It must be that the environment variables are not configured correctly, or the database is not closed properly. .

My operation:

Under normal circumstances, after logging in as the root user, execute the su oracle command to bring the environment variables directly.

If you haven’t checked the environment variables yet For parameters, use the oracle user to configure the following three parameters and configure the correct path.

export PATH=/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin:$PATH
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1

export ORACLE_SID=orcl

Use the oracle user to temporarily configure these three environment variables, and you can start monitoring normally with lsnrctl start.

$ sqlplus /nolog  //登录sqlplus

SQL> connect /as sysdba  //连接oracle

SQL> startup //起动数据库

That’s it!

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of What should I do if linux lsnrctl is not an internal command?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:what is linux serverNext article:what is linux server