When running the telemetry.sh utility on AutoSys 12.1.0.0, the script fails with the following errors in the logs:
SEVERE: SQLException: IO Error: The Network Adapter could not establish the connectionSEVERE: Exception in collecting and publishing telemetry data : Connection to Primary or Single event server Failedjava.sql.SQLException: Connection to Primary or Single event server FailedDespite these errors, the core AutoSys scheduler may be running without issue.
Autosys 12.1 , 24.x using Oracle
The root cause is a difference in how the core AutoSys scheduler and the Telemetry utility resolve database aliases:
sqlnet.ora).tnsnames.ora file containing the alias, it fails to resolve the host IPsTo resolve this, provide a localized tnsnames.ora file for the Telemetry script to bypass the LDAP resolution limitation.
Create a local TNS directory and file: Create a new folder and a tnsnames.ora file (e.g., in /tmp or the AutoSys user's home directory):
Insert the TNS configuration: Paste the resolved connection string (from tnsping) into this file using the following format:
Run the telemetry script: Set the $TNS_ADMIN environment variable to point to the new directory before executing the script: