There is a default oracle 12c installation done in RHEL 7.5. This is a single instance database. When i issue lsnrctl status command i am able to see below output.
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 25-SEP-2023 15:05:00
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the LISTENER
Alias LISTENER Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production Start Date 08-NOV-2022 12:20:15 Uptime 321 days 2 hr. 44 min. 44 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Log File /home/oracle/app/oracle/diag/tnslsnr/cgsl-orcldb/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cgsl-orcldb.cgsl.com)(PORT=1521))) Services Summary... Service "UATCHL" has 1 instance(s). Instance "UATCHL", status READY, has 1 handler(s) for this service... Service "UATCHLXDB" has 1 instance(s). Instance "UATCHL", status READY, has 1 handler(s) for this service... The command completed successfully
But, I am unable to see the physical file location. I checked in $ORACLE_HOME/network/admin. But, listener.ora file is not exists. Please let me know how to find the correct location of the file.
NOTE : $ORACLE_HOME/network/admin/sample --> In this location tnsnames.ora, listener.ora, sqlnet.ora files exists. But, all the details are commented and not related to existing connection details.
I want to know the physical file location of listener.ora in oracle 12c
ORACLE_HOMEdirectory, or 2) your listener is using an alternate location for the network configuration files, identified by theTNS_ADMINenvironment variable.findcommand:find / -name "listener.ora" -print