简体   繁体   中英

lsnrctl not working on Oracle 19c Database

No matter how I edit, set and export my env variables, lsnrctl start won't work.

Have already double checked all sets for $ORACLE_HOME , $ORACLE_BASE and $ORACLE_SID , included home/oracle/bin in my $PATH , but listener keeps returning error messages....

My variables are set as follows:

export TMP=/tmp
export TMPDIR=$TMP

export ORACLE_HOSTNAME=dbserver
export ORACLE_UNQNAME=cdb1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1
export ORA_INVENTORY=/u01/app/oraInventory
export ORACLE_SID=cdb1
export PDB_NAME=pdb1
export DATA_DIR=/u02/oradata

export PATH=/usr/sbin:/usr/local/bin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export PATH=/home/oracle/bin:$PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

Error message:

LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 08-DEC-2020 14:06:27

Copyright (c) 1991, 2019, Oracle.  All rights reserved.

Message 1070 not found; No message file for product=network, facility=TNSTNS-12545: Message 12545 not found; No message file for product=network, facility=TNS
 TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
  TNS-00515: Message 515 not found; No message file for product=network, facility=TNS
   Linux Error: 2: No such file or directory

Any hint? Thank you.

echo $ORACLE_HOME followed by lsnrctl status :

在此处输入图像描述

Output for ls -l $ORACLE_HOME

[oracle@dbserver ~]$ ls -l $ORACLE_HOME
total 0
[oracle@dbserver ~]$ 

Output for ls -l $ORACLE_HOME/network/mesg

[oracle@dbserver ~]$ ls -l $ORACLE_HOME/network/mesg
ls: cannot access '/u01/app/oracle/product/19.0.0/dbhome_1/network/mesg': No such file or directory

SOLVED

I noticed a installation problem. The ORACLE_HOME directory didn't have all the expected files, directories and structure.

Eventhough, even making a clean new install, I still had to edit my listener.ora file and change the hostname for the server ip address.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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