说明:某些数据库参数的错误设置可能会导致数据库错误。
Note: Incorrect Settings for some database parameters can cause database failures.
本文主要关注建立数据库连接以及处理潜在的数据库错误和警告。
This article focuses on establishing the database connection and dealing with potential database errors and warnings.
由于在数据库中存储的信息的重要性,适当地处理数据库错误和警告对于业务是很重要的。
Given the importance of the information you're storing in your database, proper handling of both database errors and warnings can be vital to your business.
这些文件是样例XML文件,可用于测试我们的程序而无须强制数据库错误或使用Optim PerformanceManager。
These are sample XML files that can be used to test our program without having to force database errors or use Optim Performance Manager.
最可能的原因是使用了证书数据库中错误的证书。
The most probable cause is a wrong certificate being used in the certificate database.
这个脚本只处理一个可能的错误:数据库连接故障。
This script deals with only one possible error: a failure to connect to the database.
第一步是学习如何查看提供给应用程序的关于数据库遇到的错误的信息,见清单4。
The first step is to learn how to view the information provided to your application about the error encountered by the database, as shown in Listing 4.
斯科特·罗森博格,在像你这的一些人的帮助下,整理出了一个新闻错误数据库,还注明了这些错误是否得到修改,何时得到修改。
Scott Rosenberg, with the help of people like you, is compiling a database of journalistic errors, including notes on whether or when the mistakes are corrected.
将这些信息链接到玩家可以访问的问题数据库,让遇到错误的玩家可以快速轻松地了解是否有升级文件已经解决了这个问题。
Link this information to your gamer-accessible problem database so a gamer who receives an error can quickly and painlessly identify whether an available upgrade is known to fix his problem.
如果数据库出现了错误,您将得到DATABASE_ERROR的错误信息,如图7所示。
If there is something wrong with the database, you get the error message of DATABASE_ERROR, as shown in Figure 7.
当数据库连接失败时,会输出连接错误消息。
If the database connection fails, the connection error message may be output.
如果在连接数据库时发生错误,则将在另一个Web页面上显示一条消息。
If an error occurs connecting to the database, a message will be shown on another Web page.
在启动HADR时,如果主和备用数据库不相同,就会发生错误。
If the primary and standby databases are not identical when HADR is started, an error will occur.
在选择同步还是异步写日志时,要考虑的一个重要因素就是当数据库管理器发生错误时情况会怎样。
An important factor to take into account when selecting between synchronous or asynchronous log writing is what happens when a database manager error occurs.
MAXERRORS:设置数据库服务器停止加载之前允许的错误数量。
MAXERRORS: Sets the number of errors that are allowed before the database server stops the load.
查阅数据库手册,搜索异常中返回的错误码,从而判断失败的原因。
Identify cause of the failure by going through database manuals and searching for the error codes sent back in the exception.
采用这种方式设置该属性,应用程序中任何未绑定到数据库的sql语句都将产生SQL错误。
With the property set this way, any SQL statements from the application that are not bound to the database will result in an SQL error.
构造函数还将从数据库检索最大项目数,这将简化错误管理。
The constructor also retrieves the maximum item number from the database, which simplifies error management.
请自动化安装,以尽可能减少人为错误;请包含数据库更新、访问控制、皮肤、主题和页面更新。
Automate the installation to minimize human error; include database updates, access controls, skins, themes, and page updates.
所以,如果您肯定那个空数据库中存在数据,请检查是否有录入错误。
So, if you are sure there was data in that empty database, check for typing errors.
因为没有错误处理逻辑,必须依靠数据库的限制,以确保数据的语义完整性。
Because there is no error handling logic, you must rely on database constraints to ensure semantic integrity of the data.
清单9中的代码导致了错误,因为它试图使用数据库中已经存在的ID。
The code in Listing 9 causes an error because it tries to use an ID that already exists in the database.
另外,我们创建了相应的症状数据库来将诊断跟踪中的任何错误纪录匹配于可能的症状和改正方案。
In addition, we created a corresponding symptom database to match any error records in the diagnostic trace with possible symptoms and corrective solutions.
此功能还为您的数据库提供了更好的地址数据,因为它减少了键入错误的机会。
This feature also gives you better address data in your database, because you reduce the chances of typing errors.
另一种常见的错误是没有确保数据库和网站服务器兼容特定的框架。
Another somewhat common mistake is not ensuring your database and web server is compatible with the particular framework. For example, Seagull PHP framework recommends the following configuration.
SpringDAO:JDBC DAO抽象层提供了有意义的异常层次结构,可用该结构来管理异常处理和不同数据库供应商抛出的错误消息。
Spring DAO: the Spring JDBC DAO abstraction layer offers a meaningful exception hierarchy for managing the exception handling and error messages thrown by different database vendors.
重新引导Geronimo将更正一次错误,但随后再次访问数据库时又会生成异常。
Rebooting Geronimo will correct the error for one, but then generate the exception again when the database is accessed by the other.
如果处理不当的话,SQLRelay将在应用程序架构中引起新的单点故障弱连接,这将消耗更多CPU周期并在数据库检索中引入延迟和错误。
If mishandled, SQL Relay creates a new single-point-of-failure weak-link in an application architecture, one that consumes extra CPU cycles and introduces delays and errors in database retrieval.
生成数据库后将会显示一条消息,否则显示一个诊断错误。
A message will appear if the database was generated; otherwise a diagnostic error will be shown.
如果邮件数据库设置了警告门限,当用户打开数据库或者试图保存草稿或新的已发送消息时,会显示以下的错误。
When mail databases have a warning threshold set, the following error displays when the database is opened or the user tries to save a draft or new sent message.
应用推荐