sa26-00

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sa26-00 [2018/07/14 00:10] – [Narrowing the likely causes] Justin Willeysa26-00 [2018/07/17 08:23] (current) – [Database connection error] sean
Line 22: Line 22:
 **Password** is the case sensitive password associated with the User in IQX. **Password** is the case sensitive password associated with the User in IQX.
  
-===== Identifying the reasons for login failure ===== +===== Narrowing Down the Likely Causes of Connection Failure =====
-<panel type="primary"> +
-<panel-body>The reasons that a login fails will be one of the following</panel-body> +
-|1|The user name is incorrect or not authorised to connect to the requested database| +
-|2|The wrong password has been supplied| +
-|3|The requested database is incorrect or not defined| +
-|4|The database server is not running| +
-|5|There are network connectivity issues| +
-|6|The necessary SQL Anywhere driver files are not installed or registered on the client computer| +
-|7|The requested database is incorrectly defined|  +
-</panel> +
-This guide is designed to help identify which of these possibilities is the likely culprit. +
-===== Narrowing the likely causes ===== +
- +
-  * Are other users currently connected to the same database? If so, 4 cannot be the issue. +
-  * Are other uses on the same Local Area Network (ie the same office) connected to the database? If so, 4 & probably 5 are eliminated. (it is possible, but unlikely that a network problem is effecting the single computer). +
-  * Can the user having the problem login from another computer in the same office, with their credentials? If so then 1, 2, 4 & probably 5 are ruled out. +
-  * Can other users that share the same iqx.ini file (on a network share or mapped drive) connect? If so then 3 & 7 are not the problem. +
 <html> <html>
 +<head>
 +<style>
 +.col0 {font-size: 14px; }
 +.col1 {color: #4CAF50;
 +      font-size: 14px; }
 +.button {}
 +.button1 {
 +            font-size: 14px;    
 +            background-color: #4CAF50 !important; /* Green */
 +            border-radius: 12px;
 +            display: inline-block;
 +            padding: 5px 5px
 +            }
 +.button1:hover {background-color: #3e8e41}
 +.button1:active {
 +  background-color: #3e8e41;
 +  box-shadow: 0 5px #666;
 +  transform: translateY(4px);
 +}
 +</style>
 +</head>
 +<div class="level2">
 +<ul class=" fix-media-list-overlap">
 +<li class="level1"><div class="li"> Are other users currently connected to the same database? If so, 4 cannot be the issue. <button type="button" class="button button1" onclick="document.getElementById('4').style.color='lightgrey'">Yes</button></div>
 +</li>
 +<li class="level1"><div class="li"> Are other uses on the same Local Area Network (ie the same office) connected to the database? If so, 4 &amp; probably 5 are eliminated. (it is possible, but unlikely that a network problem is effecting the single computer).<button type="button" class="button button1" onclick="document.getElementById('4').style.color='lightgrey'; document.getElementById('5').style.color='grey'">Yes</button></div>
 +</li>
 +<li class="level1"><div class="li"> Can the user having the problem login from another computer in the same office, with their credentials? If so then 1, 2, 4 &amp; probably 5 are ruled out.<button type="button" class="button button1" onclick="document.getElementById('1').style.color='lightgrey'; document.getElementById('2').style.color='lightgrey'; document.getElementById('4').style.color='lightgrey'; document.getElementById('5').style.color='grey'">Yes</button></div>
 +</li>
 +<li class="level1"><div class="li"> Can other users that share the same iqx.ini file (on a network share or mapped drive) connect? If so then 3 &amp; 7 are not the problem.<button type="button" class="button button1" onclick="document.getElementById('3').style.color='lightgrey'; document.getElementById('7').style.color='lightgrey'">Yes</button></div>
 +</li>
 +<li class="level1"><div class="li">Does the problem affect all users in one office (who have connected in the past) while other offices can connect alright. If so, then 5 is almost certainly the problem, unless there have been changes made to all the computers' iqx.ini files (or a shared iqx.ini).<button type="button" class="button button1" onclick="document.getElementById('1').style.color='lightgrey'; document.getElementById('2').style.color='lightgrey'; document.getElementById('3').style.color='lightgrey'; document.getElementById('4').style.color='lightgrey'; document.getElementById('5').style.color='#4CAF50'; document.getElementById('6').style.color='lightgrey'; document.getElementById('7').style.color='gray';">Yes</button></div>
 +</li>
 +<li class="level1"><div class="li"><button type="button" class="button button1" onclick="document.getElementById('1').style.color='#4CAF50'; document.getElementById('2').style.color='#4CAF50'; document.getElementById('3').style.color='#4CAF50'; document.getElementById('4').style.color='#4CAF50'; document.getElementById('5').style.color='#4CAF50'; document.getElementById('6').style.color='#4CAF50'; document.getElementById('7').style.color='#4CAF50';">Reset Choices</button></div>
 +</li></div>
 +</ul>
 <div class="level2"> <div class="level2">
-<div class="bs-wrap bs-wrap-panel panel panel-primary"><div class="panel-body"><div class="bs-wrap bs-wrap-panel-body panel-body">The reasons that a login fails will be one of the following</div><div class="table-responsive"><table class="inline table table-striped table-condensed">+<div class="bs-wrap bs-wrap-panel panel panel-primary"><div class="panel-body"><div class="bs-wrap bs-wrap-panel-body panel-body">The reasons that a login fails is likely to be one of the following:</div><div class="table-responsive"><table class="inline table table-striped table-condensed">
  <tr class="row0">  <tr class="row0">
- <td class="col0">1</td><td class="col1">The user name is incorrect or not authorised to connect to the requested database</td>+ <td class="col0">1</td><td class="col1" id="1">The user name is incorrect or not authorised to connect to the requested database</td>
  </tr>  </tr>
  <tr class="row1">  <tr class="row1">
- <td class="col0">2</td><td class="col1">The wrong password has been supplied</td>+ <td class="col0">2</td><td class="col1" id="2">The wrong password has been supplied</td>
  </tr>  </tr>
  <tr class="row2">  <tr class="row2">
- <td class="col0">3</td><td class="col1">The requested database is incorrect or not defined</td>+ <td class="col0">3</td><td class="col1" id="3">The requested database is incorrect or not defined</td>
  </tr>  </tr>
  <tr class="row3">  <tr class="row3">
- <td class="col0">4</td><td class="col1">The database server is not running</td>+ <td class="col0">4</td><td class="col1" id="4">The database server is not running</td>
  </tr>  </tr>
  <tr class="row4">  <tr class="row4">
- <td class="col0">5</td><td class="col1">There are network connectivity issues</td>+ <td class="col0">5</td><td class="col1" id="5">There are network connectivity issues</td>
  </tr>  </tr>
  <tr class="row5">  <tr class="row5">
- <td class="col0">6</td><td class="col1">The necessary SQL Anywhere driver files are not installed or registered on the client computer</td>+ <td class="col0">6</td><td class="col1" id="6">The necessary SQL Anywhere driver files are not installed or registered on the client computer</td>
  </tr>  </tr>
  <tr class="row6">  <tr class="row6">
- <td class="col0">7</td><td class="col1">The requested database is incorrectly defined</td>+ <td class="col0">7</td><td class="col1" id="7">The requested database is incorrectly defined</td>
  </tr>  </tr>
 </table></div> </table></div>
Line 78: Line 96:
   * the user was defined but was marked as Not in Use in Maintenance | Users - **User 'Not In Use'**   * the user was defined but was marked as Not in Use in Maintenance | Users - **User 'Not In Use'**
  
-The relevant record in Connections can be found using IP address of the computer that is attempting to connect and the time of the attempted connection. If there is no corresponding record, then then IQX has not been able to connect to the database.+The relevant record in Connections can be found using IP address of the computer that is attempting to connect and the time of the attempted connection. If there is no corresponding record, then then IQX has not been able to connect to the database.\\ \\  
 + 
 +This is an example of Reasons 1 or 2 in the [[#narrowing_down_the_likely_causes_of_connection_failure|list]] above.
  
 ====Database name incorrect or not set up==== ====Database name incorrect or not set up====
Line 86: Line 106:
     - Setup the database details in the [Databases] section of iqx.ini     - Setup the database details in the [Databases] section of iqx.ini
  
-This is an example of Reason 3 in the [[#Identifying the reasons for login failure|list]] above.+This is an example of Reason 3 in the [[##narrowing_down_the_likely_causes_of_connection_failure|list]] above.
 ====Database connection error==== ====Database connection error====
 {{ ::databaseconnectionerror.jpg |}} {{ ::databaseconnectionerror.jpg |}}
 This message indicates that while connection settings have been identified for the requested database, a successful connection could not be established. To get more information, press the <key>Details</key> button. This results in a detailed and somewhat technical error log, which can be copied to the Windows clipboard. The following sections give guidance for the possible different error messages: This message indicates that while connection settings have been identified for the requested database, a successful connection could not be established. To get more information, press the <key>Details</key> button. This results in a detailed and somewhat technical error log, which can be copied to the Windows clipboard. The following sections give guidance for the possible different error messages:
-<accordion>+\\
 <panel title="Data source name not found and no default driver specified"> <panel title="Data source name not found and no default driver specified">
 {{ :nodefaultdriverspecified.jpg? |}}This is a rather misleading error message from the Microsoft ODBC driver manager that indicates that the ODBC driver requested is not installed. The driver version required is specified in the connection string in iqx.ini. In the example above the setting in the ini file was:<code>[Databases] {{ :nodefaultdriverspecified.jpg? |}}This is a rather misleading error message from the Microsoft ODBC driver manager that indicates that the ODBC driver requested is not installed. The driver version required is specified in the connection string in iqx.ini. In the example above the setting in the ini file was:<code>[Databases]
Line 96: Line 116:
 The =asa19 part tells the system to connect using a SQL Anywhere v19 driver. \\ \\  The =asa19 part tells the system to connect using a SQL Anywhere v19 driver. \\ \\ 
 The action to be taken is: either that ODBC driver needs to be installed on the client computer (using the IQX Client Installer) or the iqx.ini file needs to be corrected to use the installed ODBC driver. The action to be taken is: either that ODBC driver needs to be installed on the client computer (using the IQX Client Installer) or the iqx.ini file needs to be corrected to use the installed ODBC driver.
-\\ \\ This is an example of Reason 6 in the [[#Identifying the reasons for login failure|list]] above. "asa" stands for "Adaptive Server Anywhere" the former name of "SQL Anywhere".+\\ \\ This is an example of Reason 6 in the [[##narrowing_down_the_likely_causes_of_connection_failure|list]] above. "asa" stands for "Adaptive Server Anywhere" the former name of "SQL Anywhere".
 </panel> </panel>
  
 <panel title="Unsupported database protocol">{{ ::unsupporteddatabaseprotocol.jpg? |}}This indicates that a non-SQL Anywhere driver has been requested. The specified drives for IQX connections must be in the format asaNN, where NN is the major version number e.g. asa11 for SQL Anywhere 11, asa16 for SQL Anywhere 16 etc. In this example the setting in the iqx.ini file was:<code>[Databases] <panel title="Unsupported database protocol">{{ ::unsupporteddatabaseprotocol.jpg? |}}This indicates that a non-SQL Anywhere driver has been requested. The specified drives for IQX connections must be in the format asaNN, where NN is the major version number e.g. asa11 for SQL Anywhere 11, asa16 for SQL Anywhere 16 etc. In this example the setting in the iqx.ini file was:<code>[Databases]
 v16test=qasa16;eng=Chill;dbn=v16Test;links=tcpip(host=192.168.1.138:2638);prows=1000;pbuf=81920;comp=YES;</code> The action to be taken is that the iqx.ini file needs to be corrected.\\ \\  v16test=qasa16;eng=Chill;dbn=v16Test;links=tcpip(host=192.168.1.138:2638);prows=1000;pbuf=81920;comp=YES;</code> The action to be taken is that the iqx.ini file needs to be corrected.\\ \\ 
-This is an example of Reason 7 in the [[#Identifying the reasons for login failure|list]] above.+This is an example of Reason 7 in the [[##narrowing_down_the_likely_causes_of_connection_failure|list]] above.
 </panel> </panel>
 <panel title="Database server not found"> <panel title="Database server not found">
Line 109: Line 129:
 {{ :databaseservernotfound.jpg |}}   {{ :databaseservernotfound.jpg |}}  
 In this case there is no error with the drivers, but IQX has been unable to connect to the requested database server. The database server ChillXX has been specified, and a network address and port given (host=). A database server has been found at that network address, but the name is wrong, so the connection fails. This indicates that either the requested name is wrong or an incorrect network address has been specified. The required action is to correct whichever of these settings in the iqx.ini file is wrong.\\ \\  In this case there is no error with the drivers, but IQX has been unable to connect to the requested database server. The database server ChillXX has been specified, and a network address and port given (host=). A database server has been found at that network address, but the name is wrong, so the connection fails. This indicates that either the requested name is wrong or an incorrect network address has been specified. The required action is to correct whichever of these settings in the iqx.ini file is wrong.\\ \\ 
-This is an example of Reason 7 in the [[#Identifying the reasons for login failure|list]] above.+This is an example of Reason 7 in the [[##narrowing_down_the_likely_causes_of_connection_failure|list]] above.
 </callout> </callout>
 <callout type="primary">  <callout type="primary"> 
Line 116: Line 136:
 Again the reported error is "Database server not found" however the TCPIP error 10061 is reported. This means that the target computer actively refused the connection, in order to do so there must be a running computer at the address specified, so either the address is wrong, or most likely the incorrect TCPIP port has been specified. \\ \\ Again the reported error is "Database server not found" however the TCPIP error 10061 is reported. This means that the target computer actively refused the connection, in order to do so there must be a running computer at the address specified, so either the address is wrong, or most likely the incorrect TCPIP port has been specified. \\ \\
 The required action is to correct the settings in the iqx.ini file.\\ \\  The required action is to correct the settings in the iqx.ini file.\\ \\ 
-This is an example of Reason 7 in the [[#Identifying the reasons for login failure|list]] above. </callout>+This is an example of Reason 7 in the [[##narrowing_down_the_likely_causes_of_connection_failure|list]] above. </callout>
 <callout type="primary">  <callout type="primary"> 
 ===Database server not found, but no other indication=== ===Database server not found, but no other indication===
 {{ :databaseservernotfoundwithoutotherindication.jpg |}} {{ :databaseservernotfoundwithoutotherindication.jpg |}}
-This indicates that IQX can get no response from the given network address nor by trying to find the database engine by name. Either the address is wrong, or the database server is not running, or there is a network problem (which could include a firewall blocking traffic). If other users **can** connect, then check that the iqx.ini setting are the same and that a firewall is not blocking traffic.\\  +This indicates that IQX can get no response from the given network address nor by trying to find the database engine by name. Either the address is wrong, or the database server is not running, or there is a network problem (which could include a firewall blocking traffic). If it is a firewall issue on a central/hosted server then it is likely that no one at all will be able to connect If it is a firewall or antivirus issue on the local pc then you may find that some others can connect when one user can't.  It is best to check the other things first before investigating a port blocking issue.  If there is an IT department or hosted IT company that manages the client's IT then any network or server changes should be carried out by them. \\  
-This is an example of either Reason 4, 5 or 7 in the [[#Identifying the reasons for login failure|list]] above. </callout>+This is an example of either Reason 4, 5 or 7 in the [[##narrowing_down_the_likely_causes_of_connection_failure|list]] above.  
 +<callout type="primary">  
 +</callout>
 </panel> </panel>
 <panel title="Specified database not found"> <panel title="Specified database not found">
 {{ ::specifieddatabasenotfound.jpg |}} {{ ::specifieddatabasenotfound.jpg |}}
-This error indicates that IQX has been able to connect to the database server specified in the iqx.ini file, but it has not found a database of the name specified in the dbn= setting. The most likely cause is that the database name in iqx.ini is wrong, there is a possibility that an administrator has temporary stopped the individual database while leaving the database engine running on the server. In the cas of a live database this latter reason is highly unlikely, but is possible for a training or test database.\\ \\ The required action in most cases is to correct the dbn= setting in iqx.ini. \\ \\ This is an example of Reason 7 in the [[#Identifying the reasons for login failure|list]] above.+This error indicates that IQX has been able to connect to the database server specified in the iqx.ini file, but it has not found a database of the name specified in the dbn= setting. The most likely cause is that the database name in iqx.ini is wrong, there is a possibility that an administrator has temporary stopped the individual database while leaving the database engine running on the server. In the case of a live database this latter reason is highly unlikely, but is possible for a training or test database.\\ \\ The required action in most cases is to correct the dbn= setting in iqx.ini. \\ \\ This is an example of Reason 7 in the [[##narrowing_down_the_likely_causes_of_connection_failure|list]] above.
 </panel> </panel>
-</accordion>+
 The guidance above assumes that iqx.ini rather than the ODBC administrator is being used to manage database connection details. For help with the ODBC administrator, refer to [[DeguggingBDEConnectionFailures#issues_with_the_odbc_dsn_or_the_network|Issues With the ODBC DSN]] in the BDE troubleshoot guide.  The guidance above assumes that iqx.ini rather than the ODBC administrator is being used to manage database connection details. For help with the ODBC administrator, refer to [[DeguggingBDEConnectionFailures#issues_with_the_odbc_dsn_or_the_network|Issues With the ODBC DSN]] in the BDE troubleshoot guide. 
  • sa26-00.1531527021.txt.gz
  • Last modified: 2018/07/14 00:10
  • by Justin Willey