Issue where Tableau could not connect to the Oracle data source from Tableau Desktop. The error message indicated a 'Bad Connection' with Error Code: 1CA83880, caused by an illegal character in the TNS_ADMIN path.
The error occurred due to a misconfigured TNS_ADMIN environment variable on the system. Specifically, two Oracle paths were concatenated without a proper separator, forming an invalid file path:
C:\oracle\product\11.2.0\client_1\network\AdminC:\Oracle\OraClient19Home1\Network\admin\ojdbc.properties
This caused Tableau’s Oracle JDBC driver to interpret the path as containing illegal characters, resulting in a failed connection attempt.
To resolve the issue, the TNS_ADMIN environment variable was corrected using the following steps:
Open Environment Variables:
Press Win + R, type sysdm.cpl, and press Enter.
Go to the Advanced tab and click Environment Variables…
Locate the TNS_ADMIN Variable:
Under User Variables or System Variables, find and select TNS_ADMIN.
Edit the Variable:
Remove the concatenated or incorrect path.
Ensure the value is set to a single valid Oracle network admin path, for example:
C:\oracle\product\11.2.0\client_1\network\Admin
Save and Apply:
Click OK on all dialog boxes to save changes.
Restart Tableau Desktop and attempt the Oracle connection again.
After applying the correct path, Tableau should successfully establish a connection to the Oracle data source.
TNS_ADMIN environment variable should point to the directory containing the tnsnames.ora file.Avoid concatenating multiple Oracle paths in a single environment variable value unless explicitly supported and separated properly.
If multiple Oracle clients are installed, ensure Tableau is using the correct one and that PATH and TNS_ADMIN variables are configured accordingly.
Common files inside the TNS_ADMIN directory
PROD_DB (Oracle service) into host, port, and service name.
005167028

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.