Oracle Connection Errors
Oracle Connection Errors
The four common connection errors are: ORA-03113:end-of-file on communication channel ORA-12154: TNS: could not resolve the connect identifier specified HOST value incorrect or Global name incorrect or unknown ORA-12514: TNS listener does not currently know of service requested in connect descriptor SERVICE value incorrect ORA-12541: TNS: no listener PORT value incorrect
Page 1
Step 1
In the Tableau Data window, select Connect to Data.
Step 2
In the Connect to Data dialog box, select Oracle, and then click Next.
Page 2
Step 3
In the Oracle Connection dialog box, in the Step 1 text box, type the Oracle connection name. If you are not sure of the syntax of the connection name, click Advanced.
Step 4
In the Advanced Oracle Connection dialog box, in their respective boxes, type the Server Name, Service Name, and Port, and then click OK.
Step 5
In the Oracle Connection dialog box, under Step 2, provide the Username and Password.
Step 6
Under Step 3, click Test Connection.
Step 7
When a message box opens to notify you that the connection was successful, click OK.
Step 8
Under Step 4, select a schema from the list.
Step 9
Under Step 5, select a table or view from the schema, and then select Custom SQL.
Step 10
Copy the query that appears in the Step 5 text box.
Step 11
In a SQL session connected to this database, paste and run the query. The expected response is error ORA-7445: exception encountered: core dump, which confirms that the problem is ORA-3113, as expected.
Page 3
Page 4
Step 1
PREPARED BY RAVI KUMAR LANKE Page 5
Step 2
In the Connect to Data dialog box, select Oracle, and then click Next.
Step 3
In the Oracle Connection dialog box, click Advanced.
Step 4
In the Advanced Oracle Connection dialog box, in the Server Name text box, provide the HOST name from the TNSNames.ora file. Remember that the variables are case sensitive.
Step 5
In the Service Name text box, provide the SERVICE_NAME from the TNSNames.ora file, and in the Port box, provide the PORT number.
Step 6
When finished, click OK.
Step 7
In the Oracle Connection dialog box, under Step 2, provide the Username and Password.
Step 8
Under Step 3, click Test Connection.
Page 6
Step 9
When a message box opens to notify you that the connection was successful, click OK.
Step 10
Under Step 4, select a schema from the list.
Step 11
Under Step 5, keep the selection of Single Table, and select a table or view from the schema.
Step 12
Under Step 6, you have the option to edit the default connection name.
Page 7
Step 13
When finished, click OK.
Page 8
ORA-12514: TNS listener does not currently know of service requested in connect descriptor
Cause The SERVICE value is incorrect. Resolution To find out what the correct SERVICE value is, open the TNSNames.ora file located in your %ORACLE_HOME%\network\admin\ folder. Refer to the steps under ORA_12154 if necessary.
Page 9
Check the TNSNames.ora folder path used to create the TNS_ADMIN variable. Restart your machine to ensure that the TNS_ADMIN variable is recognized. Check that the Oracle connection name used in Tableau exactly matches the TNSNames.ora Net Service Name entry. This name is case sensitive. In some cases Windows will need to be restarted before the Oracle driver will pick up the TNS_ADMIN system variable Contact local IT to verify that the TNSNames.ora file is current. If the Oracle connection uses LDAP, make sure to include the SQLNet.ora file as well as the TNSNames.ora file.
Page 10