在默认目录下看不到oracle的监听文件,但是监听进程正常,怀疑是动态注册的问题,但是具体的知识点想不起来了,还是百度了测试后才想起来。再次记录下
查看监听的状态
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER

Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 18-SEP-2018 10:14:33
Uptime 175 days 3 hr. 44 min. 29 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /u01/app/oracle/diag/tnslsnr/xxx x/listener/alert/log.xml
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxx)(PORT=1521)))
Services Summary…
Service “xx” has 1 instance(s).
Instance “xx”, status READY, has 1 handler(s) for this service…
The command completed successfully
看到上面只有Listener Log File,没有Listener Parameter File
这种的是采用了动态注册到默认的监听上了,只要配置instance_name,service_name即可

注册到非默认的监听上需要配置local_listener参数