Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
User's Guide
Version 2013
March 2013
DSPI2-PE-200004B
Copyright
Copyright © 2002-2013 Intergraph® Corporation. All Rights Reserved. Intergraph is part of Hexagon.
Including software, file formats, and audiovisual displays; may be used pursuant to applicable software license agreement;
contains confidential and proprietary information of Intergraph and/or third parties which is protected by copyright law, trade
secret law, and international treaty, and may not be provided or otherwise made available without proper authorization from
Intergraph Corporation.
U.S. Government Restricted Rights Legend
Use, duplication, or disclosure by the government is subject to restrictions as set forth below. For civilian agencies: This was
developed at private expense and is "restricted computer software" submitted with restricted rights in accordance with
subparagraphs (a) through (d) of the Commercial Computer Software - Restricted Rights clause at 52.227-19 of the Federal
Acquisition Regulations ("FAR") and its successors, and is unpublished and all rights are reserved under the copyright laws of
the United States. For units of the Department of Defense ("DoD"): This is "commercial computer software" as defined at DFARS
252.227-7014 and the rights of the Government are as specified at DFARS 227.7202-3.
Unpublished - rights reserved under the copyright laws of the United States.
Intergraph Corporation
P.O. Box 240000
Huntsville, AL 35813
Terms of Use
Use of this software product is subject to the End User License Agreement ("EULA") delivered with this software product unless
the licensee has a valid signed license for this software product with Intergraph Corporation. If the licensee has a valid signed
license for this software product with Intergraph Corporation, the valid signed license shall take precedence and govern the use
of this software product. Subject to the terms contained within the applicable license agreement, Intergraph Corporation gives
licensee permission to print a reasonable number of copies of the documentation as defined in the applicable license agreement
and delivered with the software product for licensee's internal, non-commercial use. The documentation may not be printed for
resale or redistribution.
Warranties and Liabilities
All warranties given by Intergraph Corporation about equipment or software are set forth in the EULA provided with the software
or applicable license for the software product signed by Intergraph Corporation, and nothing stated in, or implied by, this
document or its contents shall be considered or deemed a modification or amendment of such warranties. Intergraph believes
the information in this publication is accurate as of its publication date.
The information and the software discussed in this document are subject to change without notice and are subject to applicable
technical product descriptions. Intergraph Corporation is not responsible for any error that may appear in this document.
The software discussed in this document is furnished under a license and may be used or copied only in accordance with the
terms of this license. No responsibility is assumed by Intergraph for the use or reliability of software on equipment that is not
supplied by Intergraph or its affiliated companies. THE USER OF THE SOFTWARE IS EXPECTED TO MAKE THE FINAL
EVALUATION AS TO THE USEFULNESS OF THE SOFTWARE IN HIS OWN ENVIRONMENT.
Intergraph is not responsible for the accuracy of delivered data including, but not limited to, catalog, reference and symbol data.
Users should verify for themselves that the data is accurate and suitable for their project work.
Trademarks
Intergraph, the Intergraph logo, PDS, SmartPlant, SmartMarine, FrameWorks, I-Convert, I-Export, I-Sketch, IntelliShip, INtools,
ISOGEN, MARIAN, SmartSketch, SPOOLGEN, SupportManager, and SupportModeler are trademarks or registered trademarks
of Intergraph Corporation or its subsidiaries in the United States and other countries. Microsoft and Windows are registered
trademarks of Microsoft Corporation. MicroStation is a registered trademark of Bentley Systems, Inc. Other brands and product
names are trademarks of their respective owners.
Contents
DBChecker Utility ........................................................................................................................................ 5
Log File Descriptions .............................................................................................................................. 7
Start the DBChecker Utility ..................................................................................................................... 9
Check the Database ............................................................................................................................... 9
Create a User Log File Without Implementing the Fixes ...................................................................... 10
Implement Fix Suggestions ................................................................................................................... 10
Exit the DBChecker Utility ..................................................................................................................... 10
Index ........................................................................................................................................................... 13
DBChecker Utility
The DBChecker Utility is used for maintenance and troubleshooting of the SmartPlant
Instrumentation database. The utility allows you to inspect and maintain data integrity, and to
troubleshoot and resolve various database problems. It is also used to fix inconsistencies that
can occur if enhanced data integrity rules or changes in the data model are applied to legacy
data before and after an upgrade. For example, legacy data may have an allowed NULL value
in a specific database column but an application improvement requires the column value to be
NOT NULL. The DBChecker Utility allows you to detect and fix this type of data integrity
problem. Ongoing improvements are made in the DBChecker Utility itself, just like the
enhancements and improvements in SmartPlant Instrumentation, and the DBChecker Utility of a
later version of SmartPlant Instrumentation can find data legacy problems that were not exposed
in previous versions.
In some cases, mass data transformation operations in SmartPlant Instrumentation require
extensive changes that bypass the business object processing. This is usually done in order to
significantly improve the performance of such data transformation operations, for example, when
running the Merger or Import utilities. Such operations involve record manipulation directly in
the database, rather than through the business objects wrapper and, therefore, might cause
data integrity problems. The DBChecker Utility allows you to troubleshoot these problems and
fix them on the fly.
Also, there are operations, carried out via the program interface, that are extremely sensitive to
the integrity and synchronization of the manipulated data. The DBChecker Utility assists in
preventing failure during such operations.
The DBChecker Utility enables you to predict or fix problems in your database by running
specific SQL commands without having to contact Intergraph Support. You can either fix the
problems on the fly or create a file that contains suggestions for fixing the selected
problems. The DBChecker Utility displays defective rows and problem descriptions so that you
can open SmartPlant Instrumentation and check the issues that the DBChecker Utility
found. Also, the DBChecker Utility allows you to select fixes that you want to implement.
When you start the DBChecker Utility, the software automatically connects to the Admin schema
of the user database defined in the INTOOLS.INI file. Then, you can select a target domain and
perform a database check for that domain. You can only perform a database check at the
domain level. If the domain type is Owner operator, As-Built and all existing projects are
included in a single database check.
When running the DBChecker Utility, if you suspect that execution of certain SQL
commands can damage valuable data, we recommend that you back up your database before
implementing fixes. This is because in certain cases, the SQL commands delete data based on
the known format of the SmartPlant Instrumentation data model and data. In most cases, the
changes are irreversible. If your database contains data that does not comply with the
SmartPlant Instrumentation data model, some changes may lead to unexpected results. The
DBChecker Utility scripts are tested by our certification team, but the tester or script designer
might not be aware of all possible data set combinations that are likely to cause database
problems.
You can check the structures and definitions of your database objects to identify invalid or
missing objects or data inconsistencies. Where problems occur, the DBChecker Utility can also
fix them. The software performs the check by automatically comparing the database objects
with the SmartPlant Instrumentation template database. After checking, the utility generates an
error report and prompts you to correct the errors.
After completion of the database check, the results are stored in the complog.txt file, whose
default location is the SmartPlant Instrumentation home folder. You can specify another
location as you require.
The DBChecker Utility is used by the SmartPlant Instrumentation certification
and development teams in the course of certifying a version release.
See Also
Check Results Dialog Box (on page 12)
Create a User Log File Without Implementing the Fixes (on page 10)
recreate_user.txt — Contains selected specific fix suggestions for the problems that you select
in the Check Results dialog box. The fix suggestions are represented as SQL
commands. The Check Results dialog box only opens if the software finds a database
problem. The software creates this file after you click Fix or Create Log in the Check Results
dialog box. If you click Fix to fix the database problems on the fly, some of the fixes that you
selected might not be implemented successfully. The software records information of such fixes
in the recreate_user.txt file. If you previously created the recreate_user.txt file, the software
appends new log data to the existing data. The records in the log file are separated by date and
time of log data creation. You can clear the log file manually.
See Also
The DBChecker Utility (see "DBChecker Utility" on page 5)
Check the Database (on page 9)
Create a User Log File Without Implementing the Fixes (on page 10)
On completion of the database check, the software creates the files complog.txt and
recreate.txt. If database problems are found, the software opens the Check Results
dialog box, where you can analyze the problems and fix suggestions, and select all or
specific problems which you want to fix on the fly or at a later stage. If you choose to
repair the database yourself, it is recommended that you run the DBChecker Utility once
more to verify that all the problems have been fixed.
If the DBChecker Utility generates corrective statements identical to the ones
successfully used before to resolve the problem the user can execute them at their own
discretion. When contacting Intergraph Support, make sure you forward to Intergraph
Support the three log files generated by the DBChecker Utility and await instructions on
how to execute them.
E W
errors • 7, 9 windows and dialog boxes • 11, 12
fixing on the fly • 9 Check Results • 12
log files • 7 DBChecker Utility • 11
Exit the DBChecker Utility • 9 Windows and Dialog Boxes • 11
exiting • 9
F
fix suggestions • 7, 9, 12
implementing • 9
log files • 7
SQL sentences • 12
I
Implement Fix Suggestions • 9
in_templ.db • 5
L
Log File Descriptions • 7
log files • 7, 9