在检查listener_scan1时报TNS-01101: Could not find service name LISTENER_SCAN1
[oracle@rac-2 ~]$ lsnrctl status LISTENER_SCAN1
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 08-APR-2014 09:56:21
Copyright (c) 1991, 2011, Oracle. All rights reserved.
TNS-01101: Could not find service name LISTENER_SCAN1
该问题需要在配置环境中添加
export GRID_HOME=/u02/11.2.0/grid
export TNS_ADMIN=$GRID_HOME/network/admin
原因:
11gR2 Grid Infrastructure is installed as a user different from the existing oracle database user. TNS_ADMIN environment variable is unset and 3 SCAN Listeners are running out of GRID_HOME.
参考:
TNS-01101: Could not find service name for LISTENER_SCANx (文档 ID 1064628.1)