Problem Note 66250: The message "ERROR: General error ORA-12560: TNS:protocol adapter error" occurs for SAS® Viya® connections to Oracle that use TLS
In earlier SAS Viya releases than SAS® Viya® 4.0, additional configuration is required to enable connections to Oracle that use Transport Layer Security (TLS), also referred to as Secure Sockets Layer (SSL). If you do not do this configuration, you might see errors that are similar to the following:
ERROR: General error ORA-12560: TNS:protocol adapter error
ERROR: ORACLE connection error: ORA-12560: TNS:protocol adapter error.
ERROR: ORACLE connection error: ORA-12154: TNS:could not resolve the connect identifier specified.
ERROR: ORACLE connection error: ORA-12547: TNS:lost contact.
To configure SAS Viya as needed, follow these instructions:
- Ensure that your Oracle client supports TLS by connecting to Oracle via your Oracle client (for example, using sqlplus).
- Ensure that you complete the steps in Configure SAS/ACCESS Interface to Oracle in SAS® Viya® 3.5 for Linux: Deployment Guide. Refer to the SAS® Viya® 3.4 documentation, if appropriate.
For your SPRE host, take these steps:
- In the !SASHOME/spre/home/SASFoundation/sasexe directory, back up the existing sasora file with this command: mv sasora sasora.bak
- In the same location, create a symbolic link to the appropriate orlax* file for your Oracle client. For example, for Oracle 12.2 and later, use this command: ln -s orlax122 sasora
- In the !SASHOME/viya/home/SASFoundation/sasexe directory, back up the tkeora.so file with this command: mv tkeora.so tkeora.bak
- In the same location, create a symbolic link to the appropriate tkeora* file for your Oracle client. For example, for Oracle 12 and later, use this command: ln -s tkeora12.so tkeora.so
For each CAS node, take these steps:
- On each CAS node, go to the !SASHOME/spre/home/SASFoundation/sasexe directory and back up the tkeora.so file with this command: mv tkeora.so tkeora.bak
- In the same location, create a symbolic link to the appropriate tkeora* file for your Oracle client. For example, for Oracle 12 and later, use this command: ln -s tkeora12.so tkeora.so
If the problem is not resolved, open a track with SAS Technical Support. Include the outputs from the following commands, which assume that your SASHOME directory is /opt/sas and that your Oracle client is installed in /usr/lib/oracle/12.2/:
ldd /opt/sas/spre/home/SASFoundation/sasexe/sasora
ls -l /opt/sas/spre/home/SASFoundation/sasexe/sasora*
ls -l /opt/sas/spre/home/SASFoundation/sasexe/orlax*
ls -l /usr/lib/oracle/12.2/client64/lib/libclntsh*
For configuration information for SAS® Foundation, see SAS Note 60895, “Under Linux, an Oracle connection using the Oracle 12CR2 client fails with '..ERROR: Image SASORA found but not loadable.'”
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to Oracle | Linux for x64 | V.03.04 | | Viya | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
A libname assignment or using a caslib fails when you use TLS (SSL) to connect to Oracle.
| Type: | Problem Note |
| Priority: | medium |
| Topic: | Data Management ==> Data Sources ==> External Databases ==> Oracle
|
| Date Modified: | 2020-07-10 07:56:49 |
| Date Created: | 2020-07-07 05:39:27 |