报错:
[oracle@itpux2:/home/oracle]$tnsping itpux1
TNS Ping Utility for Linux: Version 11.2.0.4.0 - Production on 21-DEC-2015 11:17:03
Copyright (c) 1997, 2013, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.131.6.203)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = itpux) (SID=itpux1)))
TNS-12533: TNS:illegal ADDRESS parameters
[oracle@itpux2:/home/oracle]$
错误原因:
tns文件配置错误,括号位置不对。
错误的配置和正确配置记录如下
错误的
itpux =
(DESCRIPTION =
(ADDRESS=(PROTOCOL = TCP)(HOST = itpuxscan)(PORT = 1521)
(CON