Welcome to the Alteryx Knowledge Base
Created/Edited -
Error when attempting to establish an oracle OCI connection in server or designer. Uploads from designer to server(gallery) may also fail with the following errors.
ORA-12154: TNS: could not resolve the connect identifier specified
- Alteryx Designer
- All
- Alteryx Server
- All
This issue can occur if a new OCI instance client driver is installed with an existing OCI package. This may cause conflicts when referencing the tnsnames.ora file.
This has also been seen due to network connectivity such as not being on a required VPN to access the Oracle host.
This has also been seen for a 'Quick Connect' gallery data connection, when the sqlnet.ora file had a NAMES.DIRECTORY_PATH entry that didn't contain the EZCONNECT method e.g. NAMES.DIRECTORY_PATH=(TNSNAMES)
Check and confirm the environmental variables are correctly configured to use the new driver and specify an additional parameter TNS_ADMIN to ensure the tnsnames.ora file is read from the correct location
Update the environmental variable path (Please note: local administrator rights are required to access environmental variables)
- Open the Control Panel on the windows machine, then select System
- Click on Advanced System Settings then Environmental Variables
- Under System variables find the PATH, then click on Edit
- Click on New and enter the path of the new OCI instant client
- Move the new path above all other oracle paths, You can use the Move Up/Down buttons to do this (see screenshot below)
- Click Ok then enter click New under systems variables
- Enter TNS_ADMIN for the variable name
- Enter the location of the tnsnames.ora file under variable value (See screenshot below)
- Save the changes and restart the node
Check the parameter names.directory_path in the machine's Oracle Client directory \OracleHome\network\admin\SQLNet.ora file to see what is specified. If you are using a tnsnames.ora file (OCI connection method), move the TNSNAMES in the names.directory_path to the beginning of the parameter. If you are connecting using 'Quick Connect' then ensure EZCONNECT is the first entry.
Example:
Before: NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, HOSTNAME)
After: NAMES.DIRECTORY_PATH= (TNSNAMES, LDAP, HOSTNAME)
You can also uncomment out the names.directory_path.
If NAMES.DIRECTORY_PATH is commented out, or does not exist in the file, then this defaults to the following:
NAMES.DIRECTORY_PATH=(TNSNAMES,LDAP,EZCONNECT)
names.directory_path
Specifies the order of naming methods that are used when a client tries to connect to a database. Possible values: TNSNAMES, LDAP, ONAMES, HOSTNAME, EZCONNECT.
Please note:
- In some instances, user may not have access to modify system variables due to permissions. Please liaise with your IT department to make the above changes.
- If the above does not resolve your issue there are additional checks posted on the following site which may help to troubleshoot this further.dba.oracle.com
- Installation and configuration of oracle drivers is outside the Alteryx support scope.