TNS-12221: TNS illegal ADDRESS parameters

Hi,

Sometimes You can get “TNS-12221: TNS:illegal ADDRESS parameters  ” error.

 

Details of error are as follows.

TNS-12221: TNS:illegal ADDRESS parameters

Cause: An illegal set of protocol adapter parameters was specified. In some cases, this error is returned
when a connection cannot be made to the protocol transport.
Action: Verify that the destination can be reached using the specified protocol.
Check the parameters within the ADDRESS section of TNSNAMES.ORA or in the directory.
Legal ADDRESS parameter formats may be found in the Oracle operating system specific documentation
or the Oracle Net Administrator’s Guide. Protocols that resolve names at the transport layer are
vulnerable to this error if not properly configured or names are misspelled.
[oracle@msdbadm01 ~]$ tnsping MSDB

TNS Ping Utility for Linux: Version 12.1.0.2.0 - Production on 20-APR-2020 20:16:54

Copyright (c) 1997, 2011, Oracle. All rights reserved.

Used parameter files:

/opt/oracle/product/12.1.0.2/network/admin/sqlnet.ora

Used TNSNAMES adapter to resolve the alias

Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.63.34)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = MSDB))

TNS-12533: TNS:illegal ADDRESS parameters

 

This error is related with incorrect syntax or spaces or closing bracket.

 

Check and fix syntax and remove spaces as follows.

MSDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.63.34)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = MSDB)
(UR = A)
)
)

 

Try again.

 

[oracle@msdbadm01 ~]$ tnsping MSDB
TNS Ping Utility for Linux: Version 12.1.0.2.0 - Production on 20-APR-2020 21:33:13
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Used parameter files:
/opt/oracle/product/12.1.0.2/network/admin/sqlnet.ora

Used TNSNAMES adapter to resolve the alias

Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.63.34)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = MSDB)))
OK (0 msec)

 

Do you want to learn more details about RMAN, then read the following articles.

https://ittutorial.org/rman-backup-restore-and-recovery-tutorials-for-beginners-in-the-oracle-database/

 

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *