PREPARED BY RAVI KUMAR LANKE Page 1Oracle Connection ErrorsThe four common connection errors are:ORA-03113:end-of-file on communication channelORA-12154: TNS: could not resolve the connect identifier specifiedHOST value incorrect or Global name incorrect or unknownORA-12514: TNS listener does not currently know of service requested inconnect descriptorSERVICE value incorrectORA-12541: TNS: no listenerPORT value incorrect
PREPARED BY RAVI KUMAR LANKE Page 2ORA-03113:end-of-file on communicationchannelORA-03113 is a catch-all error for any problem interrupting an Oracle session. You may see this error whenconnecting to Oracle 22.214.171.124.CauseThe issue is caused by Oracle bug 3010227.ResolutionAsk your Oracle database administrator to apply Oracle patch 126.96.36.199orto set the Oracle initialization parameter STAR_TRANSFORMATION_ENABLED to FALSE.OtherIf you would like to test further (this is optional):Step 1In the Tableau Data window, select Connect to Data.Step 2In the Connect to Data dialog box, select Oracle, and then click Next.
PREPARED BY RAVI KUMAR LANKE Page 3Step 3In the Oracle Connection dialog box, in the Step 1 text box, type the Oracle connection name. If you are notsure of the syntax of the connection name, click Advanced.Step 4In the Advanced Oracle Connection dialog box, in their respective boxes, type the Server Name, ServiceName, and Port, and then click OK.Step 5In the Oracle Connection dialog box, under Step 2, provide the Username and Password.Step 6Under Step 3, click Test Connection.Step 7When a message box opens to notify you that the connection was successful, click OK.Step 8Under Step 4, select a schema from the list.Step 9Under Step 5, select a table or view from the schema, and then select Custom SQL.Step 10Copy the query that appears in the Step 5 text box.Step 11In 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 theproblem is ORA-3113, as expected.
PREPARED BY RAVI KUMAR LANKE Page 5ORA-12154: TNS: could not resolve theconnect identifier specifiedCauseORA-12154 occurs when the transparent network substrate (TNS) cannot resolve the service name. Most often,the SERVICE_NAME or HOST is incorrect.ResolutionFirst, try providing the full database name with the .WORLD extension in the Step 1 text box of the OracleConnection dialog box.If the full database name doesnt resolve the issue, check the information in the TNSNames.ora file, which islocated in your %ORACLE_HOME%networkadmin folder.An example of a TNSNames.ora file is shown here:QAORCL10.world =(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = MY_HOST_NAME)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = MY_SERVICE_NAME)))The three variables of interest in the file are HOST, PORT, and SERVICE_NAME. Copy these variables fromthe TNSNames.ora file and keep them available. Note that these variables are case sensitive.To provide these variables for your connection:Step 1
PREPARED BY RAVI KUMAR LANKE Page 6In the Tableau Data window, select Connect to Data.Step 2In the Connect to Data dialog box, select Oracle, and then click Next.Step 3In the Oracle Connection dialog box, click Advanced.Step 4In the Advanced Oracle Connection dialog box, in the Server Name text box, provide the HOST name fromthe TNSNames.ora file. Remember that the variables are case sensitive.Step 5In the Service Name text box, provide the SERVICE_NAME from the TNSNames.ora file, and inthe Port box, provide the PORT number.Step 6When finished, click OK.Step 7In the Oracle Connection dialog box, under Step 2, provide the Username and Password.Step 8Under Step 3, click Test Connection.
PREPARED BY RAVI KUMAR LANKE Page 7Step 9When a message box opens to notify you that the connection was successful, click OK.Step 10Under Step 4, select a schema from the list.Step 11Under Step 5, keep the selection of Single Table, and select a table or view from the schema.Step 12Under Step 6, you have the option to edit the default connection name.
PREPARED BY RAVI KUMAR LANKE Page 8Step 13When finished, click OK.
PREPARED BY RAVI KUMAR LANKE Page 9ORA-12514: TNS listener does not currentlyknow of service requested in connect descriptorCauseThe SERVICE value is incorrect.ResolutionTo find out what the correct SERVICE value is, open the TNSNames.ora file located in your%ORACLE_HOME%networkadmin folder. Refer to the steps under ORA_12154 if necessary.
PREPARED BY RAVI KUMAR LANKE Page 10ORA-12541: TNS: no listenerCauseThis error occurs when the PORT value is incorrect.ResolutionThe PORT is either 1521 or 1526. Try the one not currently in use.Additional Troubleshooting SuggestionsIf you do not have an Oracle Client installed on your machine, be sure to get the necessary files from yourdatabase administrator.If the Oracle data connection errors persist, do the following: 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 Nameentry. This name is case sensitive. In some cases Windows will need to be restarted before the Oracle driver will pick up the TNS_ADMIN systemvariable 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.