测试环境11.2.0.4.0, os系统linux 5.6
单实例,监听文件,启动报错:
[oracle@adg1 admin]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 01-FEB-2019 21:01:10
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/dbhome_1//bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.4.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/adg1/listener/alert/log.xml
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.60.200)(PORT=1521)))
TNS-12560: TNS:protocol adapter error
TNS-00583: Valid node checking: unable to parse configuration parameters
Listener failed to start. See the error message(s) above...
cat /u01/app/oracle/diag/tnslsnr/adg1/listener/alert/log.xml
host_addr='192.168.60.200'>
host_addr='192.168.60.200'>
TNS-00583: Valid node checking: unable to parse configuration parameters
[oracle@adg1 admin]$ cat sqlnet.ora
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ADR_BASE = /u01/app/oracle
SQLNET.AUTHENTICATION_SERVICES(ALL)
修改sqlnet.ora文件,mv 或 注释SQLNET.AUTHENTICATION_SERVICES(ALL)即可
不理解为什么? 但是实际上操作是这样!!!
问题二:监听状态无法注册
The listener supports no services
The command completed successfully
SQL> alter system register;
无用:
SQL> show parameter local
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.200)(PORT=1521)
SQL>alter system set local_listener='';
SQL> alter system register; OK