ORA-12571: TNS:packet writer failure occur for Spotlight on Oracle connection.
Network failure
The ORA-12571 is usually an indication of the following:
Check for possible network or network related equipment problems, such a bad router card.
Check for any duplicate IP address in your configuration files, TNSNAMES.ORA and LISTENER.ORA
EDIT the SQLNET.ORA file on the client and server. Remove the following entry from the SQLNET.ORA file on both the client and
server:
SQLNET.EXPIRE_TIME=0