Before you begin, verify that a copy of TNSNames.ora exists on the machine. The TNSNames.ora file contains the specific information required to connect to the Oracle instance. By default, the TNSNames.ora file resides in {oracle home directory}\network\admin. For example, C:\Oracle_Client\network\admin
Create a Windows Environment variable that directs Oracle connections to use the information in the TNSNames.ora file. Then you can use the Oracle Net Service Names in Tableau data connections without needing to know the port, service, or SID specifics for each Oracle connection.
Note: If you do not have an Oracle client installed on your computer, get the necessary files from your database administrator.
Step 1
Determine the folder path for TNSNames.
Step 2
Select Start > Control Panel > System.
Step 3
In Windows 7, in the System window, select Advanced system settings.

Or
In Windows XP, in Classic View, double-click System
Or
In Windows XP, in the default view, under Pick a category, select Performance and Maintenance, and then under or pick a Control Panel icon, click System.
Step 4
In the System Properties dialog box, on the Advanced tab, select Environment Variables.

Step 5
In the Environment Variables dialog box, under System variables, click New.

Step 6
In the New System Variable dialog box, in the Variable name text box, type TNS_ADMIN.
Step 7
In the text box, type the location of the TNSNames.ora file.

Step 8
Click OK to add this variable.
The new variable now appears in the list in the dialog box.

Step 9
Click OK in the Environment Variables dialog box and the System Properties dialog box.