Installation
Installation
Installation Guide
Version 6.0
June, 2018
© 2018 AVEVA Group plc or its subsidiaries. All rights reserved.
The Schneider Electric industrial soft ware business and AVEVA have merged to trade as AVEVA Group
plc, a UK listed company. The Schneider Electric and Life is On trademarks are owned by Schneider
Electric and are being licensed to AVEVA by Schneider Electric.
No part of this documentation shall be reproduced, stored in a ret rieval system, or transmitted by any
means, electronic, mechanical, photocopying, rec ording, or otherwise, without the prior written
permission of AVEVA. No liability is assumed with respect to the use of the information contained herein.
Although precaution has been taken in the preparation of this documentation, AV EVA assumes no
responsibility for errors or omissions. The information in this documentation is subject to change without
notice and does not represent a commitment on the part of AVEVA. The soft ware described in this
documentation is furnished under a license agreement. This soft ware may be used or copied only in
accordance with the terms of such license agreement.
ArchestrA, Aquis, Avantis, DYNS IM, eDNA, EYESIM, InBatch, InduSoft, InStep, IntelaTrac, InTouch,
PIPEPHASE, PRiSM, PRO/II, PROV IS ION, ROMeo, SIM4ME, SimCentral, SimSci, Skelta,
SmartGlance, Spiral Software, Termis, WindowMaker, WindowViewer, and Wonderware are trademarks
of AVEVA and/or its subsidiaries. An extensive listing of AVEVA trademarks can be found at:
https://sw.aveva.com/legal. All other brands may be trademarks of their respective owners.
Publication date: 6/29/2018
Contact Information
AVEVA Group plc
High Cross
Madingley Road
Cambridge
CB3 OHB. UK
https://sw.aveva.com/
For information on how to cont act sales, customer training, and technical support, see
https://sw.aveva.com/contact.
MES Installation Guide
Contents
Chapter 1 Preparing to Install MES .................................................................................... 7
Introduction .............................................................................................................................. 7
Hardware and Software Requirements ....................................................................................... 7
Notes About Security and Permissions ....................................................................................... 7
MES Components ..................................................................................................................... 8
Server Components ............................................................................................................ 8
Client Components .............................................................................................................. 9
Application Objects ...................................................................................................... 11
Reports Components......................................................................................................... 12
Development Library (AP I DLLs) ........................................................................................ 12
PDF Doc ument ation .......................................................................................................... 13
MES Web Access ............................................................................................................. 14
Intelligence and Licensing Components .................................................................................... 14
MES Role-B ased Installation ................................................................................................... 15
MES Prerequisite Software ...................................................................................................... 17
Running MES in a 2-Node Failover Cluster Environment ........................................................... 18
Installation and Setup Requirements for the Cluster Nodes .................................................. 18
Cluster Environment Considerations During MES Server Component Installation .................. 18
Version 6.0 3
MES Installation Guide Contents
4 Version 6.0
Contents MES Installation Guide
Version 6.0 5
MES Installation Guide Contents
6 Version 6.0
MES Installation Guide
C HAPTER 1
Preparing to Install MES
In This Chapter
Introduction .................................................................................................................................... 7
Hardware and Software Requirements ............................................................................................. 7
Notes About Security and Permissions ............................................................................................. 7
MES Components........................................................................................................................... 8
Intelligence and Licensing Components ......................................................................................... 14
MES Role-B ased Installation ......................................................................................................... 15
MES Prerequisite Software............................................................................................................ 17
Running MES in a 2-Node Failover Cluster Environment ................................................................. 18
Introduction
Before you begin the installation, you should:
Make sure that the nodes on which MES will be installed meet the hardware and soft ware
requirements.
Understand user security and permissions that are related to the installation. See Notes About
Security and Permissions on page 7.
Identify which MES products and components will be installed on each node in the system. For
assistance with this task, see MES Components on page 8, the MES Deployment Guide, and the
MES Virtual Environment Implementation Guide.
With the products and components to be installed on the nodes identified, determine which MES
role-based installation groups will be installed on each node. See MES Role-Based Installation on
page 15.
Make sure that the prerequisite soft ware for the planned products and components is installed on
each node. See MES Prerequisite Soft ware on page 17.
Version 6.0 7
MES Installation Guide Preparing to Install MES
Beginning with the MES 2014 R3 (version 5.3) release, MES no longer uses the ArchestrA Us er
Account (also known as Admin User) for its inter-node communication. Instead, during the
installation, a services account named WCFHostService for the MES middleware service is
created. When configuring the MES DB/MW Communications component, you can select an option
that will provide the necessary permissions to the MES database server for this service account. See
Configuring the MES Middleware's User Account Acces s to MES Databases on page 80.
When installing in a workgroup environment, permissions to access the MES database must be
granted manually to the MES middleware service's user account.
MES Components
The following topics describe the components that can be installed or added during the MES installation.
Server Components
Database
The MES database is a centralized repository for the MES data.
The Database component also includes the OS Group S ID utility, which is used to import Windows
Active Directory group S IDs into the MES dat abas e.
Middleware
The MES middleware enables communication between the client components and the MES database. It
also allows the node to support executing archive, purge, and restore (APR) jobs for MES dat abas e
maintenance.
The Middleware component also includes:
The Service Monitor utility, which is used to start, stop, and restart the MES middleware host servic e
and the MES Service from the Service Monitor icon in the Windows system tray
The MES Clear Parameter Cache utility, which is used to clear the middleware stored procedure
parameter cache
A License Client API for accessing the License Server
It is recommended to have a dedicated MES middleware service running on the same node as the MES
Service.
MES Service
The MES Service runs middleware activities that occur on a schedule, such as:
Changing shifts
Generating and changing the status of quality samples
Cleaning up stale sessions
Running schedules of Supply Chain Connector
The MES Service component also includes the Service Monit or utility, which is used to start, stop, and
restart the MES middleware service and the MES Service from the Service Monitor ic on in the Windows
system tray.
There should be only one MES Service service running in a system. Also, it is recommended to have a
dedicated MES middleware service running on the same node as the MES Service.
MES Web Portal
MES Web Portal is a web application that provides web-based access to MES.
8 Version 6.0
Preparing to Install MES MES Installation Guide
Client Components
The client components can run on non-server nodes and interact with the server components on the
server nodes.
MES Client
MES Client is used to configure almost all aspects of the MES system, and interact with operational
information. You can:
Configure system utilization states, reason groups, and reason codes
Configure users, user groups, privileges, and entity access
Configure languages
Configure physical entities
Configure shifts and assign shifts to entities
Configure General Paramet ers
Configure items, BOMs, operations, and processes
Configure archive, purge, and restore (AP R) jobs for database maintenance
Configure quality specifications, sample plans, and characteristics
Create and manage work orders and jobs
For more information, see the MES Client User Guide or online help.
Application Objects
The Application Objects components include:
The Operations Capability Object (OCO), which extends the ArchestrA IDE equipment mo del to
trigger production events and log associated production data in the MES database.
The Utilization Capability Object (UCO), which extends the ArchestrA IDE equipment model to
monitor machine performance.
The Sample Recording Object (SRO), which extends the ArchestrA IDE equipment model to monitor
quality samples for an entity.
For more information about these objects, see Application Objects on page 11.
Entity Model Builder
Entity Model Builder is an ArchestrA IDE extension. Therefore, the ArchestrA IDE must be installed
before attempting to install Entity Model Builder.
You can use Entity Model Builder to perform the following tasks:
Creating entities from your Arc hestrA eq uipment model that use the UCO for configuring
utilization/OEE support, the OCO for configuring production related entity support, and/or the SRO
for capturing quality data.
Exporting the existing ArchestrA users and roles to MES to create corresponding ME S users and
groups.
If you install Entity Model Builder, you must also install the MES Application Objects component and
import at least one of these objects into an ArchestrA galaxy. Running Entity Model Builder without
having an MES application object installed and imported is not a supported scenario.
For more information, see the MES Entity Model Builder User Guide.
Version 6.0 9
MES Installation Guide Preparing to Install MES
Configurator
You can use MES Configurator to customize and maintain your MES system, such as:
Setting up system-wide values such as job states, tools, document types, defaults for file extensions,
labor departments, and labor categories
Managing user certifications
Managing plant information such as physical entities
For more information, see the MES Configurator User Guide or the MES Help online help.
Supervisor
You can use MES Supervisor to c oordinate and oversee t he daily activities of your MES system, such as:
Defining and maintaining folders of related dat a
Tracking inventory levels and storage location data
Setting-up data collection
Storing customer information and proc essing sales orders
Setting-up Supply Chain Connector imports and exports and define shift exceptions
For more information, see the MES Supervisor User Guide or the MES Help online help.
Data Editor
You can use MES Data Editor to filter, insert, and modify historical dat a from the MES database, such as:
Item production and consumption
Labor use and entity use
Step data
Lot information
For more information, see the MES Data Edit or User Guide or the MES Help online help.
Operator
You can use MES Operator to control processes as an operator on the factory floor, such as:
Executing jobs
Claiming produced quantities and reporting consumption
Entering data for steps, specifications, and the data logger
Capt uring machine utilization and labor data
For more information, see the MES Operator User Guide or the MES Help online help.
.NET Controls
The .NE T controls are part of the client components’ user interface. You can us e these controls as
building blocks for ArchestrA graphical interfaces.
When the .NET Controls component is installed, the .NET control files and the MES Control s.aaPKG file
are installed in the <MES program files path>\Wonderware\MES\Control s folder. The
MES Control s.aaPKG file, which contains all of the DLLs, can be imported into the Arc hestrA IDE.
10 Version 6.0
Preparing to Install MES MES Installation Guide
Middleware Proxy
The MES middleware proxy is required by client components installed on remote nodes to access the
MES middleware service. These include, for example, nodes that have an applicatio n object (that is, a
OCO, UCO, or SRO) deployed on them.
Application Objects
Operations Capability Object (OCO)
The OCO extends the ArchestrA IDE equipment model to trigger production events and log associated
production data in the MES dat abas e.
Once you have deployed the OCO, you can:
Create jobs running on the entity
Start, pause, and end jobs on the entity
Add production and consumption for jobs running on the associated entity.
A single instance of the OCO supports the following Production E vents Module (PEM) events of the
associated equipment in the equipment model:
Material events relat ed to consumption, production, and movement
Status events related to equipment, production dat a and operators
The Entity Model Builder (EMB ) uses the information that is configured in the OCO to create entities in
the MES database.
You must import the OCO extension that is provided with this version of MES after you complete the
installation. The previous version of OCO will not work correctly with this version of MES. For more
information about how to install the OCO, see the Operations Capability Object User Guide.
Utilization Capability Object (UCO)
The UCO extends the ArchestrA IDE equipment model to monitor machine performance. The
information that is configured in the UCO is used to configure entities using the Entity Model Builder.
Once you have deployed the UCO, you can:
Monitor machine performance and log utilization events on entities associated with it
Set production attributes for jobs running on the associated entities
You must import the UCO extension that is provided with this version of MES after you complete the
installation. The previous version of UCO will not work correctly with this version of MES. For more
information about how to install the UCO, see the Utilization Capability Object User Guide.
Sample Recording Object (SRO)
The SRO extends the ArchestrA IDE equipment model to monit or quality samples for the entity. Once
you have deploy ed the SRO, you can:
Monitor samples and characteristics within the samples
Update sample information
Update sample characteristic information
Record sample characteristic result data
You must import the S RO extension that is provided with this version of MES after you complete the
installation. The previous version of SRO will not work correctly with this version of MES. For more
information about how to install the SRO, see the Sample Recording Object User Guide.
Version 6.0 11
MES Installation Guide Preparing to Install MES
Reports Components
MES Intelligence Reports Components
If the system includes Intelligence, you can install the MES Intelligence Reports component.
If the system does not include Intelligence but you want to use MES Intelligence Reports, you can also
install the Intelligenc e Server and Intelligence Dat a Adapt ers components to support those reports.
Note: During the installation, selecting the Report Server role option will install only the MES Intelligence
Reports component. To install the Intelligence Server and Int elligence Data Adapters components as
part of the MES installation, you have to choose the Customize Installation option in the Setup tool and
then manually select these components.
For information about using the MES Intelligence Reports, see the MES Intelligence Reports User
Guide.
Information Server Components
If the system includes an Information Server, the following Reports components can be selected and
installed on the node where the Information Server is installed by choosing the Customize Installation
option in the Setup tool and then manually selecting them:
Table Weaver Reports
This option adds the search and list functions to the Information Server Table Weaver.
Reporting Service s Reports
This option adds sample MES reports based on Reporting Services to the Information Server
Reporting Services feature.
Before you install an Information Server MES Reports component, make sure that:
SQL Server Reporting Services (MSS QLSERVE R) is running
The http://localhost/reports (on the Installation Server node) page displays/refreshes without any
errors.
MES reports for Installation Server must be deployed after installation of the Reports component. See
the MES Reports in Information Server Us er Guide or MES Help online help.
12 Version 6.0
Preparing to Install MES MES Installation Guide
FactMES.API.Prod.dll
FactMES.API.Quality.dll
FactMES.API.SPC.dll
FactMES.API.Util.dll
FactMES.Client.COM. dll
FactMES.Client.Common. dll
FactMES.Client.Int erfaces.dll
FactMES.Client.MiddlewareAccess.dll
For more information about using these DLLs in scripts, see the MES Stateless and Stateful API
Referenc e online help files.
PDF Documentation
The PDF Documentation component installs the MES user documentation PDFs and online help files.
MES Deployment Guide
Provides guidance on deploying a MES solution.
MES Virtual Environment Implementation Guide
Provides information to assist with implementing MES in a virt ualized environment.
ReadMe
Provides information about soft ware and hardware requirements, known issues, licensing, and
documentation.
MES Installation Guide and online help
Provides information about installing MES applications.
MES Client Guide and online help
Provides information about customizing and maint aining the plant floor information.
MES Configurator Guide
Provides information about customizing and maint aining the MES system.
MES Dynamic Routing Guide
Provides information required to set up dynamic routing of operations through a process defined in
MES.
MES Middleware Extensibility Hooks Reference
Provides information about how to use middleware extensibility hooks to perform custom actions
before or after a specific middleware event is executed.
MES .NET Control s Developer Guide
Provides information about the properties and methods of the MES .NET controls for use in custom
applications and Arc hestrA graphics.
MES Application Object (OCO, UCO, SRO) Help
Provides information about run-time behavior, configuration, and run-time attributes of UCO, OCO,
and SRO application objects. This help is accessed from the Object Editor Help menu in the
ArchestrA IDE.
Operation Capability Object (OCO) Guide
Provides information about installing, configuring, and using the Operations Capability Object to
track production transactions against equipment.
Sample Recording Object (SRO) Guide
Provides information about installing, configuring, and using the Sample Recording Object to collect
and store values for samples.
Version 6.0 13
MES Installation Guide Preparing to Install MES
14 Version 6.0
Preparing to Install MES MES Installation Guide
Intelligence, which must be installed if MES Intelligence Reports are going to be used.
Note: Int elligence and t he MES Intelligence Reports component must be installed on the same node
as SQL Server Reporting Services (SSRS ). Otherwise, the Quality Characteristic Detail report SPC
Chart will not work.
The License Server and Manager. The licensing components must be installed so that MES product
licenses can be added to the system.
It is possible that these components have already been installed in the system. However, if they are not
installed, then they can be selected during the MES installation using the custom installation feature.
In addition to these two licensing components, there is also a Licensing API that is aut omatically installed
when the MES Middleware or Web Portal components are installed. The licensing API can also be
installed during an MES command line (silent) installation by specifying LicAPI32 in the response file.
Version 6.0 15
MES Installation Guide Preparing to Install MES
Web Portal
Select this role to install the MES Web Portal web application on the node.
This role includes the following components:
MES Web Portal
MES Middleware Proxy
Report Server
Select this role to install support for deploying MES Intelligence Reports.
This role includes the following component:
MES Intelligence Reports
If you want to deploy MES Intelligence Reports but Intelligence has not been installed on the network,
you can customize the installation to include the Intelligence Server and Intelligence Data Adapters.
If you want to install the MES Reports for Information Server, you can customize the installation to
include it.
MES Middleware/DB Maintenance Server
Select this role to install the MES middleware service on the node, or to support executing
Archive/P urge/Restore jobs to maintain the MES database.
This role includes the following components:
MES Middleware
License Client API for accessing the License Server
To distribute the client load, a system can have multiple MES Middleware components installed. All
five-equipment licenses include t wo MES Middleware components. All larger equipment licenses include
six MES Middleware components. Additional MES Middleware components can be purchased
separately. Dedicated MES Middleware components are recommended for the MES Service, enterprise
integration, MES Application object/scripting servers, Skelta BPM .NET workflow integration, and nodes
making heavy us e of the MES API through custom applications.
Configuration Client
Select this role if MES administrators, supervisors, or developers will be performing configuration or
supervisory tasks from the node.
This role includes the following components:
MES Client
MES Supervisor
MES Configurat or
MES Data Editor
MES Middleware Proxy
ArchestrA Development
Select this role if MES developers will be using ArchestrA and MES application objects to develop or run
MES applications on the node.
This role includes the following components:
Application Objects (OCO, SRO, UCO)
MES .NET Controls
16 Version 6.0
Preparing to Install MES MES Installation Guide
Version 6.0 17
MES Installation Guide Preparing to Install MES
18 Version 6.0
MES Installation Guide
C HAPTER 2
Preparing to Upgrade MES
In This Chapter
Upgrade Requirements ................................................................................................................. 19
Migrating an MES Database to the Current Release ....................................................................... 19
Migrating an MES Database from Oracle to SQL Server .................................................................. 20
Upgrade Requirements
Observe the following requirements when upgrading MES:
You cannot upgrade to the current version of MES from a version older than 3.5. To upgrade from a
version older than 3.5 to the current version, you must first unins tall the previous version, and then
install the new version.
If you are upgrading from version 3.5 or older, it is recommended that you change all passwords,
since the encryption scheme used in the older versions is not as secure as the newer encryption
scheme.
If your organization is using MES .NE T controls in ArchestrA, you have to first remove the previous
version of the MES .NE T controls before upgrading to the current version of the controls. For the
procedure, see Upgrading MES .NET Controls in ArchestrA on page 158.
Any deployed ArchestrA platforms using MES (for example, MES application objects, API scripting,
.NET controls) should be undeployed from the node prior to upgrading.
Version 6.0 19
MES Installation Guide Preparing to Upgrade MES
Custom modifications to any version of the MES database might not be supported by the post -install
Configurator and might prevent migration. For more information on migrating an existing MES
database, see the procedure in Migrating or Overwriting an Existing MES Database on page 68.
If you are migrating an MES database from a release prior to version 5.0, it will not have index
optimization that was available starting with the version 5.0. To apply this index optimization to the
migrated MES database, see MES Dat abase Index Optimization Script on page 73.
If you are migrating an MES database from version 5.3 or earlier, the migration of the utilization t able
structure to the new structure can take a long time. A rough estimate is provided prior to migrating it.
As a precaution, all the original data remains in the database in tables labeled
tablename_deprecated. Once you are satisfied that the migration was successful, these tables can
be deleted.
Pre-Migration Tasks
Prior to migrating the Oracle MES database to SQL Server, you have to:
Create the SQL Server MES database
Prepare the Oracle database for the migration
Note: In t he following statements, the SQL schema is assumed t o be the default dbo schema. If the MES
database is contained in a different schema, then substitute that schema's name for dbo in these
statements.
20 Version 6.0
Preparing to Upgrade MES MES Installation Guide
Version 6.0 21
MES Installation Guide Preparing to Upgrade MES
Migrating the Oracle MES Database to the SQL Server MES Database
You use the SQL Server Import and Export wizard to migrat e the Oracle MES database to the SQL
Server MES dat abase. The following topics describe how to go through the wizard to perform the
migration.
2. Click Next.
The Choose a Data Source page appears.
3. On the Data source list, select .NET Framework Data Provider for Oracle.
22 Version 6.0
Preparing to Upgrade MES MES Installation Guide
Security: Pa ssword
If using native Oracle security, enter the user password.
Security: Persi st Security Info
Set this setting to True; otherwise, the migration will fail.
Security: User I D
If using native Oracle security, enter the user ID.
Source: Data Source
Enter the name of the Oracle MES dat abase.
Version 6.0 23
MES Installation Guide Preparing to Upgrade MES
As you complete the settings on this page, the ConnectorString field populates with the connection
string.
5. Click Next.
The Choose a Destination page appears.
6. On the De stination list, choose .NET Framework Data Provider for SqlServer.
24 Version 6.0
Preparing to Upgrade MES MES Installation Guide
7. Complete the following settings (scroll to the bottom of the settings list to see them).
Security: Integrated Security
Select how user access to the SQL database has been implemented:
o If using Windows integrated security, select True. Your current Windows login will be used to
access the database.
o If using native SQL security, select False. You will also have to enter the user ID and password.
Security: Pa ssword
If using native SQL security, enter the user password.
Security: User I D
If using native SQL security, enter the user ID.
Source: Data Source
Enter the name of the SQL Server.
Source: User Instance
Enter the name of the SQL MES database.
Version 6.0 25
MES Installation Guide Preparing to Upgrade MES
If Integrated Security is set to True, as you complete the settings on this page, the Data:
ConnectorString field populates with the connection string.
8. Click Next.
26 Version 6.0
Preparing to Upgrade MES MES Installation Guide
Version 6.0 27
MES Installation Guide Preparing to Upgrade MES
1. Select all of the tables in the Source column that begin with the Oracle user ID (in the example
above, MES DB), except the tables listed below. None of these tables except the Labor_Usage table
exist in the SQL Server database, so they should not be migrated. The Labor_Usage table requires
special handling to migrate its data to SQL Server; see Migrating the Labor_Usage Table on page
36.
o Admin_Work_Area
o Arch_Tab_List
o Audit_Groups
o Audit_Tables
o Audit_Trigger_Lib
o Audit_Trigger_Template
o Defcon
o DNC_Exec
o DNC_Log
o DNC_P rotocol
o Emailatt
o FC_B ridge
o FC_Ext_Driver_Status
28 Version 6.0
Preparing to Upgrade MES MES Installation Guide
o FC_Log
o FC_Namesp_Node
o FC_Namesp_Tag
o Fileque
o Hub
o Hub_Dev
o Labor_Usage
o Message
o Mail_Grp
o Mail_Grp_Member
o Plan_Table
o Pred_Msg
o Process_Itemclass_Link
o Quest_Sl_Temp_Explain1
o Str_Long
o Tpm_Dlgol
o Any table beginning TT_
If there are any tables in your Oracle database that you know do not have data in them, you can skip
those tables as well. However, be very careful if you decide to do this so that you do not accidentally
skip a table that does have data in it.
Version 6.0 29
MES Installation Guide Preparing to Upgrade MES
As you select each table, the source table name will appear in the De stination column.
2. For each of the selected tables, in the De stination column change the Oracle user ID to the name of
the SQL Server schema that contains the table. The default SQL schema is dbo.
a. Click the destination table name.
b. Change the Oracle user ID to the schema name.
30 Version 6.0
Preparing to Upgrade MES MES Installation Guide
5. Click OK.
6. After setting the edit mappings for all of the tables, on the Select Source Tables and Views page
click Next.
The Review Data Type Mapping page appears.
Version 6.0 31
MES Installation Guide Preparing to Upgrade MES
Bom_Item_Oper_S pec
Bom_Item_Oper_Step_Link
Bom_Ver
Cust
Cust_Contact
Data_Log_Grp
Data_Log_V alue
Folder
Folder_Distr
Folder_File
Item_Attr
Item_File
Item_P rocess_Link
Item_Transfer
Job_Attr
Job_Bom
Job_Bom_Step
Job_Rout e
Job_Spec
Labor_Usage
Lot_Attr
Oper
Oper_Attr
Oper_Ent _Link
Oper_Ent _Route
Oper_Ent _Spec
Oper_Spec_Ver
Oper_Step
Oper_Step_Ent_Exc
Oper_Type
Process
Process_Attr
Res
Res_Exc
Res_Job_Link
Res_Oper_Link
32 Version 6.0
Preparing to Upgrade MES MES Installation Guide
Shift_Exc
Shipment
Shipment_Lot
SO
SO_Line
SO_WO_Link
Temp_Shift_Exc
User_Name
WO
WO_Attr
WO_File
1. Scroll through the entire Table list at the top of the page to see if there are any table errors.
o Green check mark icons indicat e no problems.
o Yellow icons indicate a problem that can be ignored. Nearly all of these are indicating truncation
conditions, which are actually not an issue during the migration.
Version 6.0 33
MES Installation Guide Preparing to Upgrade MES
These will us ually be because a table’s MOD_ID column has not been set to be ignored. Click
the Back button, fix the error, and then click Next to return to this page.
If that is not the problem, then you have a data mapping problem bet ween Oracle and SQL
Server that will need to be handled with a custom query. Click the Back button, clear the
selection of this table, and then click Next to return to this page. To migrate this table after the
standard MES table migration has finished, see Migrating Custom Tables on page 39.
2. When there are no errors indicated by red icons on the Review Data Type Mapping page, click
Next.
34 Version 6.0
Preparing to Upgrade MES MES Installation Guide
Version 6.0 35
MES Installation Guide Preparing to Upgrade MES
While the migration process is running, the Performing Operation page appears, indicating that
status of the migration.
If an error occurs:
a. Use the commands on the Report button menu to view the log and determine which table has
the error.
b. Go back in the wizard and fix the table.
c. After you have fixed the error, go back to the Select Source Tables and Views page and clear
the selection of all tables prior to the table on which the error was reported (as these tables have
already been migrated).
d. Proceed forward through the wizard to the Complete the Wizard page and click Finish to
resume the migration.
5. When the migration has finished successfully, click Close to close the wizard.
36 Version 6.0
Preparing to Upgrade MES MES Installation Guide
4. Click Next.
5. On the Select Source Tables and Views page, select the Labor_Usage table's check box to select
it for migration.
Version 6.0 37
MES Installation Guide Preparing to Upgrade MES
7. Make sure that the correct SQL schema is entered for the Labor_Us age table entry.
8. Click the Edit Mappings button.
38 Version 6.0
Preparing to Upgrade MES MES Installation Guide
9. Select the Enable identity insert check box and click OK.
10. Proceed forward through the wizard to the Complete the Wizard page and click Finish to start the
migration.
Version 6.0 39
MES Installation Guide
C HAPTER 3
Installing MES
Note the following before starting the installation:
To install MES, you must have administrat or privileges for the Windows operating system on the
node on which the software is being installed.
It is recommended that you install the required Microsoft .NE T Framework release:
o Version 4.5. 1 if you are not installing MES Int elligence Reports
o Version 4.5. 2 if you are installing MES Intelligence Reports; this version is required by
Intelligence
It is recommended that you install all MES product and component prerequisite software before
starting the installation. For more information, see MES Prerequisite Software on page 17.
To install MES products and components
1. Locate the installation folder on the MES installation media that has been loaded or copied to the
local node.
2. Run the Setup.exe file in the root directory of the installation folder.
If a previous release of MES is already installed on the node, a message appears that identifies the
version and that the product will be updated.
3. Click OK.
If the required release of .NE T Framework is not installed, the following message appears.
Click Yes to install the required release of .NE T Framework. At the conclusion of the .NE T
Framework installation, you might be prompted to restart the system. If so, restart the system and
then rerun the MES Setup tool to continue with the MES installation.
Otherwise, the Setup tool opens and the Welcome to MES Setup message appears.
4. Click Next.
The End User License Agreement (EULA) appears.
Version 6.0 41
MES Installation Guide Installing MES
5. Use the options to read the general E ULA content and the specific schedules for each of the
software components available in the installation software.
You can use the controls above the license agreement box to print the agreement or adjust how it is
displayed.
6. To continue with the installation, select the I accept the License Agreement check box and click
Next.
The roles by which the MES components are grouped appears. Information about the highlighted
role appears in the description box on the right. For more information about these roles and which
products and components are installed wit h them, refer to MES Role-Based Installation on page 15.
7. Select the roles whose products and components you want to install on the local node and click
Next.
42 Version 6.0
Installing MES MES Installation Guide
8. Do one of the following, depending on whether you want to customize which products and
components will be installed or change the destination install folder:
To install the default sets of products and components for the roles you selected and us e the
default install destination folder (C:\Program Files (x86)), leave the Customize Installation
check box cleared and click Next.
A list of the prerequisite software that must be installed on the node prior to performing the MES
installation appears. Go to step 11.
To customize the sets of products and components for the roles you selected, or to change the
install destination folder, select the Customize Installation check box and click Next.
Version 6.0 43
MES Installation Guide Installing MES
The list of products and components appears. The products and components are selected
based on the roles selected in step 7. Information about the selected component appears in the
description box on the right. Go to step 9.
Note: To install the Schneider Electric License Server and Manager components, the Intelligence
Server and Intelligence Data Adapters components, or t he Information Server components as part of
the MES installation, you have to choose the Customize Installation option and then manually
select these components.
Note: Int elligence and t he MES Intelligence Reports component must be installed on the same node
as SQL Server Reporting Services (SSRS ). Otherwise, the Quality Characteristic Detail report SPC
Chart will not work.
9. To change the install destination folder, click the Brow se button and then navigate to and select the
desired folder.
10. To change t he products or components to be installed, select the check boxes of only those products
or components that you want to install and click Next.
Note: If any prerequisite soft ware cannot be installed by the MES installation, it will be identified in a
message. Install this software before proc eeding.
44 Version 6.0
Installing MES MES Installation Guide
MES is ready to be installed. A list of the products and components that will be installed appears.
Also, any prerequisite software that the MES installation can install is listed under Prerequisite s:.
Version 6.0 45
MES Installation Guide Installing MES
If any applications that might conflict with the installation are running, a list of them appears.
46 Version 6.0
Installing MES MES Installation Guide
When the installation is finished, you are prompted to configure products and components that
require configuration before they can be used.
Version 6.0 47
MES Installation Guide Installing MES
14. Install the MES product licenses. See Activating the MES Product Licenses on page 49.
If the MES Service or MES Middleware component was installed on the node, the MES Service Monitor
is installed. For more information, see MES Service Monitor on page 127.
MES Shortcuts in the Startup Menu
In the Start menu, MES application shortcuts will appear in the Manufacturing Execution System group.
MES user documentation shortcuts will ap pear in the Wonderware Documentation group. If you do not
see these groups in the Start menu, they should appear after restarting the node.
48 Version 6.0
MES Installation Guide
C HAPTER 4
Activating the MES Product Licenses
In This Chapter
Introduction to MES Product Licens es ............................................................................................ 49
Configuring the License Server Component .................................................................................... 50
Activating the Product Licenses ..................................................................................................... 51
How MES Product Licenses Are Man aged ..................................................................................... 53
Viewing MES Product License Information ..................................................................................... 55
Reserving Licenses When Multiple MES Systems Are Deployed ..................................................... 57
Deactivating MES Product Licenses ............................................................................................... 58
Version 6.0 49
MES Installation Guide Acti vating the MES Product Licenses
3. Enter the server name of the node and click the Test Connection button to verify connectivity to the
server.
4. If the test was successful, click the Configure button.
50 Version 6.0
Acti vating the MES Product Licenses MES Installation Guide
If the License Server was properly configured, a success message appears in the Configuration
Message s box. Also, the License Server status indicator changes to a green check mark.
Version 6.0 51
MES Installation Guide Acti vating the MES Product Licenses
The server's license page appears with the License Summary tab selected.
4. Click the Brow se license file browse button and then navigate to and select an MES product
license.
The license file would have been emailed once an order was placed for the MES product.
The license appears in the license grid.
52 Version 6.0
Acti vating the MES Product Licenses MES Installation Guide
The dialog closes and the licences are listed on the License Summary tab.
Version 6.0 53
MES Installation Guide Acti vating the MES Product Licenses
2. If the License Server is found, the middleware attempts to acquire an MES middleware license.
o If a middleware license is not found, the middleware stops.
o If a middleware license has been obtained, then the middleware attempts to acquire licenses for
Operations, Performance, and Quality. If no such licenses are found, the middleware stops.
3. The middleware requests the License Server for an MES middleware cou nt by node name.
4. The middleware requests all entity counts by a name built from the MES database server name and
MES databas e name.
For example, it might request 20 Operations entities, 10 Performanc e entities, 5 Quality entities, 35
Production entities, and 205 Storage entities (Inventory).
Note that the name can be altered to remove any characters that are not allowed in the naming of
Windows files and directories, since the License Server uses the name to create a directory on the
server itself.
o If any counts cannot be acquired, the middleware reports warnings but still starts.
o If anot her MES middleware already has these licenses but by a different name, there will be an
error and the middleware will not start.
o If anot her MES middleware already has these licenses using the same name (that is, both are
configured against the same database Server/database name), then the middleware will start
with the same counts as the already running middleware.
5. If using Enterprise Integration, the Enterprise Integration service first attempts to acquire the
professional feature and then the standard feature. Either feature enables MES Supply Chain
Connector functionality
Note: Do not attempt to restart the middleware without a connection to the License Server as the
middleware will not start.
If a license expires, the middleware will log a warning wit hin one day of ex piration and then every day
for two weeks before no longer allowing calls to pass through.
When a middleware shuts down, it releases the Middleware count feat ure. If it is the last middleware
to shut down (that is, no other middleware features are in the acquired state), then the middleware
also releases the Operations, Performanc e, Quality, Production, and Inventory features. This
behavior is relevant only if the middleware is sharing licenses with other MES m iddlewares. Note that
sharing means that the various middleware instances are configured to use the same database
server node and database.
54 Version 6.0
Acti vating the MES Product Licenses MES Installation Guide
The Features Summary tab shows the combined count of a specific feature. In this example the license
server has a 5-equipment count license for Operations, Performance, and Quality. Each of thes e provide
6 middleware counts for a total of 18. Each of these provide a count of 5 production entities that can run
jobs for a total of 15. The Operations license provides for 500 inventory entities an d the Quality license
provides for 5 for a total of 505. In this example, there are no licenses reserved and no licenses currently
in use.
Detail Information on the License Details Panel
You can view details about a product license, such as the quantities available for each feat ure included in
the license, from the License Summary tab.
1. On the License Summary tab, select the check box of the product license.
2. Click Details.
Version 6.0 55
MES Installation Guide Acti vating the MES Product Licenses
You can also view det ails about MES product license feature usage on the Licens e Manager Usage tab.
The features that are available from the activated product licenses are listed. Included in the information
is to what device they are currently assigned and the In Use/ Total counts.
56 Version 6.0
Acti vating the MES Product Licenses MES Installation Guide
Version 6.0 57
MES Installation Guide Acti vating the MES Product Licenses
2. Click Deactivate.
The product licenses are now available for use on another deployment.
58 Version 6.0
MES Installation Guide
C HAPTER 5
Configuring MES Components
In This Chapter
Introduction .................................................................................................................................. 59
About Configurat or........................................................................................................................ 59
Specifying SQL Server User Authentication .................................................................................... 63
Closing Configurator ..................................................................................................................... 63
Post-Configuration Tasks .............................................................................................................. 64
Introduction
MES configuration is performed by configuring the MES components in the post -install Configurator
application.
The topics in this section:
Describe the Configurat or
Explain how to specify SQL Server user authentication in Configurator, which is required for several
of the MES components
Explain closing Configurator and whether the node needs to be restarted to complete the
configuration
Discuss post-configuration tasks
Details about how to configure the MES components are described in the following sections. The
sections are in the recommended order for configuring them.
Creating or Migrating MES Databases on page 65
Configuring MES Middleware Communication wit h MES Databases on page 75
Configuring the MES Middleware Proxy on page 95
Configuring MES Web Portal on page 97
Configuring and Deploying MES Intelligence Reports on page 109
About Configurator
MES configuration is performed using the same Configurator application that is used by other AVEVA
software components that are installed with the common installation mechanism.
The post-install Configurator application should not be confused with the MES Configurator application.
The MES Configurator application allows you to define certain aspects of the MES solution such as
labor, documentation types, and certific ations. For more information, see the MES Configurator User
Guide or the MES Help online help.
To run the Configurator, you must have Windows administrator privileges on the node.
Version 6.0 59
MES Installation Guide Configuring MES Components
Launch the Configurator application file from Windows Explorer. The default path is:
C:\Program Files (x86)\Common Files\ Arche strA\ Configurator.exe
Product Tree
The Configurator includes a product tree that lists the components for each of the products that require
post-installation configuration.
If Configurator has been launched from the Configure button on the last page of the MES Setup tool,
then only the MES-related components are listed in the product tree. Otherwise, all products and
components that can be configured are listed.
The MES components are listed in the order in which they are recommended to be configured. This
starts with creating or migrating the MES database, configuring the MES middleware and security
settings to access the MES database, and finishing with the Middleware Proxy, W eb Portal, and
Intelligence Reports components.
Configuration Status
The status of each product or feature configuration is indicated by the following icons.
60 Version 6.0
Configuring MES Components MES Installation Guide
Configuration Messages
As you perform configuration tasks, messages appear in the Configuration Me ssage s box. Messages
indicating errors are highlighted in red.
Version 6.0 61
MES Installation Guide Configuring MES Components
62 Version 6.0
Configuring MES Components MES Installation Guide
To save the list of messages in the Configurator Messages Lists window to a text file
Click the Export to file button.
To use SQL Server Authentication, clear the the Use Windows integrated security option. Enter
the appropriate SQL Server Authentication user name and password.
If using this option, make sure that the SQL user account has been created. If the user account is
being used to access the MES production or restore databas e, make sure that it is assigned the
appropriate database roles. See Assigning SQL Server Database Roles to the MES Middleware
Service User Account on page 84.
Closing Configurator
After completing the configuration tasks in Configurator, you can close it. Depending on what
components were configured, you might have to restart the node to finalize the configuration and start
the required services at startup.
To close Configurator
1. Click the Close button.
If configured components require a node restart, you are prompt ed to restart the computer.
Version 6.0 63
MES Installation Guide Configuring MES Components
If you click the Restart Later button, you will have to restart the node before attempting to use MES
on it.
Post-Configuration Tasks
After you have configured the MES components, depending on which components were installed and
configured you might have to perform the following tasks:
If the Application Objects component was installed, you will have to import the updated objects into
the ArchestrA IDE. For more information, refer to the object guides.
If the Development Library was installed and a previous version of the MES Client AP I script libraries
was on the Application S erver, you will have to upgrade them. See Upgrading the MES Client API
Script Libraries on page 157.
If t he MES .NE T Controls component was installed and a previous version of them was being used in
the ArchestrA IDE, you will have to upgrade them in the ArchestrA IDE. See Upgrading MES .NET
Cont rols in ArchestrA on page 158.
If MES Intelligence Reports were installed, they must be deployed. See Configuring and Deploying
MES Intelligence Reports on page 109.
If MES reports for Information Server were installed, they must be deployed. See Deploying MES
Reports in Information Server on page 121.
64 Version 6.0
MES Installation Guide
C HAPTER 6
Creating or Migrating MES Databases
In This Chapter
Introduction .................................................................................................................................. 65
Fixing Database Table Fragmentation ............................................................................................ 65
Creating an MES Database ........................................................................................................... 65
Migrating or Overwriting an Existing MES Database ........................................................................ 68
Creating a Customized MES Database Using Modified Database Scripts ......................................... 71
Importing Windows Active Directory Group S IDs into the MES Database ......................................... 72
Recommendations for Optimizing the MES Database ..................................................................... 73
Introduction
The first step in configuring a new MES system is to create the MES database. This step requires a SQL
Server database server to be available on the network or local node. A Windows or SQL Server user
account with access to the server and rights to create a database must be known to successfully
configure the Database Setup component.
The MES Database Set up component settings in the Configurator allow you to:
Create the MES production dat abas e, and optionally a restore database, for a new installation
Migrate an existing MES database to the current MES version
Dump the MES database scripts to disk, so they can be customized and used to create a custom
MES databas e
Version 6.0 65
MES Installation Guide Creating or Migrating MES Databases
The initial MES Dat abas e Setup component settings and controls are shown in the following figure.
66 Version 6.0
Creating or Migrating MES Databases MES Installation Guide
If the validation is successful and the named database does not exist, the New Database settings
appear.
If the named database exists but is not an MES database, an error message appears.
4. Optionally, to set the path, initial size, or percent age growth of either the MES database's data file or
log file, click the Advanced settings title to expand the settings.
Path
The path of the data or log file.
Initial Size
The initial size, in MB, of the data or log file.
Percent Growth
The percent by which to limit the percent growth of the data or log file.
When you have complet ed validating the SQL Server connection and optionally ent ering any
advanced dat abase settings, you are ready to create the MES database.
5. Click Configure.
Version 6.0 67
MES Installation Guide Creating or Migrating MES Databases
The SQL scripts that creat e the database run. A message appears, asking to wait while the database
configuration is performed.
Progress information and any errors, if they occur, appear in the Configuration Message s box.
If the database creation completes successfully, a success message appears in the Configuration
Message s box. Also, the MES Database Setup status indicator changes to a green check mark.
If errors are enc ount ered, check the ArchestrA Log Viewer for details. To enable additional details,
enable the Log Script Execution log flag in the Log Viewer and run the Configure operation again.
68 Version 6.0
Creating or Migrating MES Databases MES Installation Guide
As part of the validation, as estimate is calculated for how long upgrading the existing database will
take. If the estimate is more than 10 minutes, the estimated time is displayed in a message box.
If the specified database is not found, then the settings for creating a new database appear. Try
entering the correct name for the existing database and clicking t he Validate button again.
4. Do one of the following:
To migrate the existing dat abas e to the new release, select the Overwrite and Migrate data
options. Then go to step 6.
To overwrite the existing database with a new MES database, select the Overwrite option but
clear the Migrate data option. Then go to step 5.
Version 6.0 69
MES Installation Guide Creating or Migrating MES Databases
When the Overwrite option is selected and the Migrate data option is cleared, the Advanced
settings title appears with the settings collapsed.
To keep the existing database and not run the Data base Setup configuration, select the Keep
option.
Note: If you choose to overwrite or migrat e the existing MES database, it is strongly recommended
that you back up the existing database before proceeding in case you need to recover its content.
You can back up the database from SQL Server Management Studio.
5. Optionally, to set the path, initial size, or percentage growth of either the new MES dat abas e's data
file or log file, click the Advanced settings title to expand the settings and enter them. Then go to
step 7.
Path
The path of the data or log file.
Initial Size
The initial size, in MB, of the data or log file.
Percent growth
The percent by which to limit the percent growth of the data or log file.
6. If the existing MES database that you are migrating has the system parameters for recording distinct
production records set but instead you want to aggregate these records into hourly records and
disable distinct production records, select the Aggregate existing item production records option.
If the existing MES database already has the system parameters for recording distinct production
records set to False, then the setting of this option has no effect.
It is recommended to aggregate production records into hourly buckets, as this will improve the
overall system performance for recording production and reporting on production data. In versions
prior to MES version 4.5, recording distinct production records was required for reporting hourly
KPIs, but this is no longer the case. You might still want distinct production rec ords for other reasons,
in which case do not select this option.
7. To migrate or overwrite the existing MES databas e, click Configure.
CAUTION: While the database is being migrated from a prior version, the Configurator application
cannot be closed or switched to a different component's configuration. If the Configurator application
is stopped prematurely (such as closing the application or shutting down the computer), the MES
database will be in an inconsistent state and might not function correctly.
The SQL scripts that migrate or create the database run. A message appears, asking to wait while
the database configuration is performed.
70 Version 6.0
Creating or Migrating MES Databases MES Installation Guide
Progress information and any error messages appear in the Configuration Me ssage s box.
If the database migration or creation completes successfully, a success message appears in the
Configuration Message s box. Also, the MES Database Setup status indicator changes to a green
check mark.
During migration, if the database is configured to use OS Gr oup security and does not already have the
OS Group S IDs in the MES database, the configure operation will attempt to create them. If the domain is
not available, then use the OS Group SID Utility to update them later when the domain is available. See
Importing Windows Active Directory Group S IDs into the MES Database.
If migrating from MES 2014 R3 (version 5. 3) or earlier, the migration process creates new tables for
tracking utilization data and moves the existing data into these new tables. The origi nal tables still remain
in the database but have been renamed to util_log_deprecated, job_util_log_link_deprecated, and
tpm_stat_deprecated. These deprecated tables can be deleted once the migration is deemed to have
completed successfully. New views are created with the original table names of util_log,
job_util_log_link, and tpm_stat to ensure any existing queries or reports continue to function aft er
migration.
Note: You cannot run the scripts manually to create an MES database. You must configure the MES
Database Setup component in the Configurator to create the database, which will run the scripts in the
FactDbRe sources folder by default.
The databas e scripts are dumped to the folder FactDBRe source s\v.v.v, where v.v. v is the MES
version (for example, 5.03.0001). This folder is located in the installed MES Database folder, whose
default path is C:\Program Files (x86)\Wonderware\MES\Database.
Also, the button label changes to Overwrite Scripts on Di sk. Clicking this button causes the scripts
in the FactDbRe source s folder to be overwritten with the default scripts.
To create a customized MES database using modified database scripts
1. Modify the scripts as needed.
2. In the MES Database Setup component settings, enter the server and database names and then
click the Validate button.
The Configurator checks for access to SQL Server and the existence of the specified database to
see if the database will be created or migrated.
Version 6.0 71
MES Installation Guide Creating or Migrating MES Databases
2. Click Start.
72 Version 6.0
Creating or Migrating MES Databases MES Installation Guide
The SID import progress appears. During the import process, the Start button becomes a Stop
button to allow you to stop the import. The utility will retrieve only the SIDs for any group that does not
have a SID in the database. This might happen so quickly that you cannot detect the button label
transitioning from Start to Stop and back to Start.
When the import is complete, the completion status appears in the window.
3. Check the status messages to see if any groups have errors. These errors will have to be addressed
and the utility run again to correct the errors.
4. Click the window's Close button to close the utility.
Version 6.0 73
MES Installation Guide Creating or Migrating MES Databases
Changed
Read
Delet ed or moved to offline storage (and thus in conjunction with the how frequently data is added,
how big various tables can become)
So actual statistics about the usage of the dat abas e should drive the choice of index es.
Be careful to collect statistics during a wide enough period of time so that the results are represent ative of
the way the system operates as a whole. Traffic at a shift change, for ex ample, might be very different
from that in the middle of a shift. Also, be sure to catch the generation of any large sets of
periodically-generated reports.
Monitoring system activity should be an ongoing database administration task. As the system grows and
its usage changes over time, new statistics should be obtained and indexes should be re -examined.
Additional Assistance
There are automated tools available to help you find missing indexes that ought to be added, as well as
identifying unused index es that can be dropped. A web search on "SQL Server index optimization" will
result in numerous links to such tools.
You can also consult web resources for SQL Server database maint enance for specific information
about those databases. For more information, see the Microsoft SQL Server web site.
74 Version 6.0
MES Installation Guide
C HAPTER 7
Configuring MES Middleware
Communication with MES Databases
In This Chapter
Introduction .................................................................................................................................. 75
Specifying the MES Production Database Connection String ........................................................... 77
Specifying the MES Restore Database Connection String ............................................................... 78
Configuring the MES Middleware's User Account Access to MES Databases ................................... 80
Testing and Saving the Database Connection Settings .................................................................... 83
Responding to MES Middleware Configuration Issues ..................................................................... 84
Assigning SQL Server Database Roles to the MES Middleware Service User Account ...................... 84
Adding MSDTC Firewall Exception for Remote MES Middleware to Dat abase Communication .......... 89
Configuring the MS DTC Component Services ................................................................................ 92
Introduction
The DB/MW Communication component is used to create the database connection strings that the MES
middleware service uses to access MES databases. It can also be used to assign the minimal SQL
permissions required to access and query an MES database to the MES middleware service's Windows
user account. Otherwise, the SQL permissions have to be assigned manually.
If the MES middleware and the MES database are on separate nodes, t he Microsoft Distributed
Trans action Coordinator service (MS DTC) must be added to the Windows Firewall exception list on both
nodes to allow them to communicat e.
Version 6.0 75
MES Installation Guide Configuring MES Middleware Communication with MES Databases
The Security and Production tab, and optionally the Re store tab if the Enable Restore Database
option is selected, need to be completed before clicking the Configure button to configure the
component. The order in which they are completed does not matter. The next few topics describe the
Production and Re store tabs first, and then the Security tab.
Database connection string information is entered on the Production and Re store tabs.
The options to set the SQL database permissions for the MES middleware service's Windows user
account are on the Security tab.
The following topics describe the DB/MW Communication component configuration, the manual
configuration of SQL Server roles/permissions, and the manual configuration of MS DTC.
76 Version 6.0
Configuring MES Middleware Communication with MES Databases MES Installation Guide
Version 6.0 77
MES Installation Guide Configuring MES Middleware Communication with MES Databases
If the Use Windows integrated security option is selected, then the MES middleware will us e the
MES Middleware Host user account that appears on the Security tab. Otherwise, the MES
middleware will use the SQL Authentication user account entered here.
When using SQL Server credentials, the user specified must have appropriate rights and access to
the MES database. This configuration component will not grant pri vileges to a SQL Server account.
See Assigning SQL Server Dat abase Roles to the MES Middleware Service Us er Account on page
84.
For more information about entering a user account, see Specifying S QL Server User Authentication
on page 63.
3. Optionally, configure the connection string's Advanced Settings.
The advanced settings allow you to set properties that affect the database connection behavior, such
as tuning the connection to your environment or setting up database mirroring. For example,
entering Connect Timeout=300 would cause the connection to attempt to connect to the database
for up to 300 seconds.
For a list of the SQL database connection properties that can be set, see the Microsoft MS DN
SqlConnectionStringBuilder Class
https://msdn.microsoft.com/en-us/library/s ystem.data.sqlclient.sqlconnectionstringbuilder(v= vs.110
).aspx topic.
Any advanced settings will be appended to the database connection string.
Next:
If using an MES restore database, you are ready to specify the MES rest ore database connection
string. See Specifying the MES Restore Database Connection String on page 78.
If not using an MES restore database, you are ready to configure the MES middleware user
account's access to the database. See Configuring the MES Middleware's User Account Access to
MES Databases on page 80.
78 Version 6.0
Configuring MES Middleware Communication with MES Databases MES Installation Guide
During an MES upgrade, if a restore database was previously configured, the Enable Restore
Database option will be selected by default, even if the restore database no longer exists.
2. Complete the database server and MES database name settings:
Server Name
The name of the server that is hosting the MES restore database. The server name defaults to the
node name if a connection string was not previously saved or to the server name entered for the
previously saved connection string. Supported server names include IP names (IP v4 and IP v6), SQL
server named instance conventions, cluster names, and SQL Server A vailability Groups.
When using a Failover or A vailability Group naming convention, the configuration must be performed
when the primary node is active.
Database Name
The name of the MES restore databas e.
If this is a new installation and the restore database connection string has not been created yet, the
name defaults to RestoreDB. If a restore database connection string has been previously created or
the database was migrated from a previous release, the actual database name appears.
3. Specify the user account that the MES middleware service will use to access the restore database.
If the Use Windows integrated security option is selected, then the MES middleware will us e the
MES Middleware Host user account that appears on the Security tab. Otherwise, the MES
middleware will use the SQL Server Authentication user account entered here.
Version 6.0 79
MES Installation Guide Configuring MES Middleware Communication with MES Databases
When using SQL Server credentials, the user specified must have appropriate rights and access to
the MES database. This configuration component will not grant privileges to a SQL Server account.
See Assigning SQL Server Dat abase Roles to the MES Middleware Service Us er Account on page
84.
For more information about entering a user account, see Specifying S QL Server User Authentication
on page 63.
4. Optionally, configure the connection string's Advanced Settings.
The advanced settings allow you to set properties that affect the database connection behavior, such
as tuning the connection to your environment or setting up database mirroring. For example,
entering Connect Timeout=300 would cause the connection to attempt to connect to the database
for up to 300 seconds.
For a list of the SQL database connection properties that can be set, see the Microsoft MS DN
SqlConnectionStringBuilder Class
https://msdn.microsoft.com/en-us/library/s ystem.data.sqlclient.sqlconnectionstringbuilder(v= vs.110
).aspx topic.
Any advanced settings will be appended to the database connection string.
Next, you are ready to configure the MES middleware user account's access to the database. See
Configuring the MES Middleware's User Account Access to MES Databases on page 80.
80 Version 6.0
Configuring MES Middleware Communication with MES Databases MES Installation Guide
The Security tab's initial settings and controls are shown in the following figure, with the Enable Restore
Database option selected.
To have the MES middleware's Windows user account SQL database permissions set
automatically
Configure the settings as described below.
Account Name
A read-only box in which the Windows user account assigned to the MES middleware service
appears. The default is NT Service\WCFHostService, which is created during the MES Middleware
component installation.
If you want to change the service's Windows user account, the change should be performed prior to
the MES DB/MW Communication component configurati on. (Modific ations to services, such as
changing their user account, can be performed using the Services control panel applet.) If you
change the Windows user account for the MES middleware service after the MES DB/MW
Communication component has been configured, perform the configuration again. For additional
information about changing the service's Windows user account if the MES middleware and
database are on different server nodes, see Guidelines for MES Service Windows User Accounts on
page 82.
Set the minimal SQL permissions on the database for the service account
Select this option to have the configure operation set the minimal SQL permissions for the MES
middleware service Windows user account. Thes e permissions will allow the MES middleware
service to connect to and perform operations on the MES database.
Version 6.0 81
MES Installation Guide Configuring MES Middleware Communication with MES Databases
If this option is not selected, then you will have to manually set up the SQL permissions for the user
accounts specified in the MES production and restore dat abase connection strings using the SQL
Server Management Studio. Also, if the configuration is run without a domain account and the
production or restore database is on a different node, you will have to manually set up the SQL
permissions. This is because the SQL permissions cannot be set on remote databases. See
Assigning SQL Server Database Roles to the MES Middleware Service User Account on page 84.
Production Database Admin Credentials for setting permissi ons
Appears only if the Set the minimal SQL permissions option is selected.
To use the currently logged-in Windows user account to set the SQL permissions, select this option.
To use a specific SQL S erver A uthentication user account to set the SQL permissions, clear this
option.
For more information about specifying the user account to access SQL Server, see Specifying SQL
Server User Authentication on page 63.
Note that the user account specified here must have the administrator privileges that are needed to
set SQL permissions for a database. If a SQL Server user account is provided for this option, the
account information is not persisted by the Configurat or.
Use Production Database Credentials for Re store Database
Appears only if the Enable Restore Database option is selected.
Select this option to use the same user account to set the MES middleware service us er account
SQL permissions for the MES restore dat abas e as the one being used for the production database.
If not selected, the Re store Database Admin Credentials for setting permissi ons option
appears.
Restore Database Admin Credentials for setting permi ssions
Appears only if the Set the minimal SQL permissions option is selected and the Use Production
Database Credentials for Restore Database option is not selected.
To use the currently logged-in Windows user account to set the SQL permissions, select this option.
To use a specific SQL S erver A uthentication user account to set the SQL permissions, clear this
option.
For more information about specifying the user account to access SQL Server, see Specifying SQL
Server User Authentication on page 63.
Note that the user account specified here must have the administrator privileges that are needed to
set SQL permissions for a database.
You are ready to test the database connection settings and save them. See Testing and Saving the
Database Connection Settings on page 83.
82 Version 6.0
Configuring MES Middleware Communication with MES Databases MES Installation Guide
Version 6.0 83
MES Installation Guide Configuring MES Middleware Communication with MES Databases
Please remember to restart your middleware service to utilize new connection strings
If the message Please remember to restart your middleware service to utilize new connection strings
appears in the Configuration Me ssage s box, the middleware failed to restart. You will have to start the
middleware manually for the database connection setting changes to t ake effect. See Starting, Stopping,
and Restarting the MES Middleware Host and MES Service on page 127.
Database Connection Fails
If any of the database connections fail, correct the settings that caused the failure and click the
Configure button again. Once the connections are successful, the MES middleware service is started
(or restarted) so that it is using the most recent settings. The success or failure of the restore database
connection does not affect the starting of the MES middlewa re service.
84 Version 6.0
Configuring MES Middleware Communication with MES Databases MES Installation Guide
If access to the production and restore dat abas es is configured for Windows integrated security, then the
Windows user account assigned to the MES middleware service is used. Otherwise, a SQ L Server user
account will be used.
On the DB/MW Communication component's Security tab, if the logged-in user does not have rights to
add users and permissions to the SQL Server database and does not know a SQL S erver user credential
with administrator rights, then a database administrator will need to grant the roles and minimal
permissions described in this topic to the appropriate user account. Otherwise, the DB/MW
Communication component will grant these roles and minimal permissions when the Set the minimal
SQL permissions option on the Security tab is selected.
Note: The user account that the MES middleware servic e uses to access the MES database does not
have to have administrator-level privileges for the MES system to work.
Proper permissions are granted by assigning the following SQL Server databas e roles to the user
account.
Alter
Required to add attributes that will be seen in the work queue and the inventory grid, which alters
tables in the MES database.
Connect
Required to connect to the MES database.
Delete
Required to be able to delete records from the MES database.
Execute
Required to execute SQL commands on tables in the MES database.
Insert
Required to be able to insert records into the MES dat abase.
Select
Required to be able to do selections on the MES database.
Update
Required to be able to update records in the MES dat abas e.
It is important that you do not grant these database roles to the SQL Public server role. Instead, they
should be granted to the user account that will be used by the MES middleware service to access the
MES databas e. This user account should be assigned the Public server role, as described in the
following procedure.
The screen shots in this procedure are based on SQL Server 2012 Management Studio. Depending on
what version you are using, the steps and screens might be different.
To assign the required database roles to the user account being used by the MES
middleware
1. If the MES database has not been creat ed yet, run the MES installation and configure the MES
Database Setup component in the Configurator to create it.
Version 6.0 85
MES Installation Guide Configuring MES Middleware Communication with MES Databases
2. In SQL Server Management Studio, create a SQL Server login for the MES middleware service user
account using the Security Logins function.
If you created a Windows AD user account for the MES middleware service, in the General settings
on the Login Propertie s window you can select the Windows authentication option and then select
the Windows middleware user account. The MES middleware service Windows user ID and
password will be used to access the MES database.
If you are using SQL Server authentication, then you can enter the SQL server username and
password that the MES middleware service will use to access the MES database.
86 Version 6.0
Configuring MES Middleware Communication with MES Databases MES Installation Guide
3. In the Server Roles settings on the Login Propertie s window, assign the MES middleware service
user account only the Public server role, as shown below.
Version 6.0 87
MES Installation Guide Configuring MES Middleware Communication with MES Databases
4. In the User Mappings settings, select the MES database and any other database to which the MES
middleware service requires access, as shown below.
5. Click OK to save the SQL login for the MES middleware service.
6. In the Database s list on the main navigation pane, right-click the MES database and click
Properties.
The Databa se Properties window displays.
7. In the Permi ssions settings, select the MES middleware service user account in the User or role s
list.
88 Version 6.0
Configuring MES Middleware Communication with MES Databases MES Installation Guide
8. Select the Grant check box for each of the required database roles: Alter, Connect, Delete, Execute,
Insert, Select, and Update.
Version 6.0 89
MES Installation Guide Configuring MES Middleware Communication with MES Databases
90 Version 6.0
Configuring MES Middleware Communication with MES Databases MES Installation Guide
5. Click the Brow se button, select the msdtc.exe file in the folder C:\WINDOWS\ system32, and click
Open.
The MSDTC service is added to the apps list.
6. Select the MSDTC service and click Add.
Version 6.0 91
MES Installation Guide Configuring MES Middleware Communication with MES Databases
7. Click OK to close the Allow Apps settings and controls and save the addition of the MS DTC service
to the exceptions list.
92 Version 6.0
Configuring MES Middleware Communication with MES Databases MES Installation Guide
2. In the left pane, expand Component Service s, Computers, My Computer, and Di stributed
Transaction Coordinator.
Version 6.0 93
MES Installation Guide
C HAPTER 8
Configuring the MES Middleware Proxy
You can access the MES middleware server from remote nodes on which MES client products or
components are running by configuring the MES middleware proxy on the remote nodes.
You must install the MES middleware proxy on all remote nodes on which OCOs, UCOs, or SROs
are configured (e.g., using ArchestrA Object Editor or through GR -Access) or deployed to run. For
active MES objects, it is recommended that a full MES Middleware component be installed on the
node hosting MES objects.
If you are configuring the MES middleware proxy on a node, make sure that you have installed,
configured, and started the MES middleware service on the remote server before configuring the
MES middleware proxy.
The MES Middleware Proxy component is shown in the following figure.
Version 6.0 95
MES Installation Guide Configuring the MES Middleware Proxy
Middleware Host
The host name or IP address of the node on which the middleware service is running. IP v4 and IP v6
addressing are supported.
Http Port
The HTTP port number to reach the configuration endpoint.
The default value is 80. The HTTP port is always used to retrieve the configuration settings
regardless of the Protocol setting. You must change this value only when you cannot access port 80
through the firewall.
Protocol
The communication prot ocol, TCP or HTTP, to use for communications with the MES middleware
service. The default is Tcp.
The default proxy connection information is used by all client applications running on the computer.
An individual application can override the information with its own connection information.
2. Click Configure.
If the middleware proxy can communicate with the remote middleware service successfully using the
entered settings, a success message appears in the Configuration Me ssages box. Also, the MES
Middleware Proxy status indicator changes to a green check mark.
Client applications on the node can now communicate with the middleware service.
96 Version 6.0
MES Installation Guide
C HAPTER 9
Configuring MES Web Portal
In This Chapter
Introduction .................................................................................................................................. 97
Configuring the MES Web Portal Component ................................................................................. 98
Setting the Web Port al User Session Cache Refresh Rate ............................................................ 101
Implementing SSL for MES Web Port al ........................................................................................ 101
Disabling HTTPS on the MES Web Portal Web Site ...................................................................... 106
What Happens to MES Web Portal Customization Files During an Uninstall ................................... 107
Introduction
MES Web Portal configuration includes the following:
To set up MES Web Portal, you must configure t he MES Web Port al component in Configurator. The
configuration process installs the MES Web Portal web site in Internet Information S ervices (IIS) and
creates the required directories and files on the server no de. See Configuring the MES Web Portal
Component on page 98.
Once the component is configured, you can change the Web Portal user session cache refresh rate.
See Setting the Web Portal User Session Cache Refresh Rat e on page 101.
By default HTTPS is enabled for MES Web Portal. This prot ocol supports secure transactions
between MES Web Portal and browser clients. To complete the HTTPS configuration, you have to:
o Install an SSL (S ecure Sockets Layer) certificate
o Enable HTTPS binding on the MES Web Portal web site
See Implementing SSL for MES Web Portal on page 101.
If your organization chooses not to use HTTPS, you have to disable it. See Disabling HTTPS on the
MES Web Portal Web Site on page 106.
Version 6.0 97
MES Installation Guide Configuring MES Web Portal
98 Version 6.0
Configuring MES Web Portal MES Installation Guide
If some of the web feature delegation settings are locked in IIS (that is, their delegation is set to Read
Only), then MES Web Port al cannot automatically include those configuration settings in the MES Web
Portal web.config file. Instead, an Update option appears on the MES Web Portal Configurator and a
message is logged indicating that fe ature delegations must be added to the IIS configuration to support
MES Web Portal.
Version 6.0 99
MES Installation Guide Configuring MES Web Portal
Authentication – Anonymous
Conflicts with web.config section:
<security>
<authentication>
<anonymousAuthentication enabled ="false">
</anonymousAuthentication>
</authentication>
</security>
Authentication – Windows
Conflicts with web.config section:
<authentication mode="Windows"></authentication>
MIME Types
Conflicts with web.config section:
<staticContent>
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
Handler Mappings
Conflicts with web.config section:
<handlers>
<remove name="WebDAV" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
</handlers>
Modules
Conflicts with web.config section:
<modules runAllManagedModulesForAllRequests="true"
runManagedModulesForWebDavRequests="true">
<remove name="RoleManager" />
<remove name="WebDAVModule" />
</modules>
Default Document
Conflicts with web.config section:
<defaultDocument>
<files>
<remove value="default.aspx" />
<remove value="iisstart.htm" />
<remove value="index.htm" />
<remove value="Default.asp" />
<remove value="index.html" />
<remove value="Default.htm" />
<remove value="index.cshtml" />
<add value="MES.cshtml" />
</files>
</defaultDocument>
Error Pages
<httpErrors>
<clear/>
</httpErrors>
SSL Overview
SSL protocol uses a key that is passed between the web server and browser client to allow encrypted
data trans fers between the two parties. A browser client requires that the web server present a valid SSL
certificate before beginning an HTTPS session.
When the browser is able to successfully begin an HTTPS session, a padlock icon is typically displayed
in the browser’s address bar. The location of the padlock icon is specific to the browser type.
Configuring a Public SSL Certificate for the MES Web Portal Web Site
1. Start the IIS Manager tool.
2. Select the MES Web Portal web site in the navigation pane.
3. Double-click the Server Certificates icon. The available certificate functions appear in the Actions
pane.
4. Refer to the Microsoft technical information regarding how to request and install an Internet server
certificate in IIS.
For example, instructions for requesting and installing an Int ernet server certificat e using IIS 7 can be
found at Configuring Internet Server Certificates (IIS 7)
https://technet.microsoft.com/en-us/library/cc731977.aspx on the Microsoft TechNet web site.
Once you have configured the SSL certificate for the MES Web Port al web site, you have to enable the
HTTPS binding on the web site.
Note: If HTTPS binding is not enabled on the MES Web Portal web site, unless you disable HTTPS, the
web site will not function properly and web pages for the site will not load in client web browsers.
Configuring a Self-Signed SSL Certificate for the MES Web Portal Web
Site
1. Start the IIS Manager tool.
2. Select the MES Web Portal web site in the navigation pane.
3. Double-click the Server Certificates icon. The available certificate functions appear in the Actions
pane.
5. Type a name for the certificate and click OK. IIS creates the self-signed certificate and registers it on
the server node.
Once you have configured the SSL certificate for the MES Web Port al web site, you have to enable the
HTTPS binding on the web site.
Note: If HTTPS binding is not enabled on the MES Web Portal web site, unless you disable HTTPS, the
web site will not function properly and web pages for the site will not load in client web browsers.
4. In the Actions pane, click Bindings. The Site Bindings dialog box appears. It includes a list of all
binding rules that direct traffic to the selected web site.
C HAPTER 10
Configuring and Deploying MES
Intelligence Reports
In This Chapter
Introduction to Configuring and Deploying MES Intelligence Reports .............................................. 109
Configuring Intelligence and MES Database Setup Components ................................................... 110
Applying Intelligence 2014 R3 Hot Fix L00148071 ........................................................................ 111
Updating the Int elligence Database with MES Tables .................................................................... 111
Deploying the SSRS MES Reports Against the Intelligence Database ............................................ 115
Configuring Security Policies for the Quality Characteristic Detail Report ........................................ 119
Note: Intelligence and the MES Intelligence Reports component mus t be installed on the same node as
SSRS. Otherwise, the Quality Characteristic Detail report SPC Chart will not work.
The configuration and deployment of the MES Intelligence reports includes the following procedures:
1. If not already performed, configuring the Int elligence components and MES Dat abas e Setup
component.
2. Applying Intelligence 2014 R3 Hot Fix L00148071 to properly support the MES Intelligence reports.
3. Updating the Int elligence dat abase with the required tables to extract the dat a from the MES
database by deploying the MES Intelligenc e model.
4. Deploying the SSRS MES reports against the Intelligence database.
The procedures in this section assume that SSRS is installed and available for deploying the MES
reports.
For more information about the Intelligence components, see the Intelligence Soft ware Installation
Guide.
2. On the node on which the MES Dat abase Server component was installed, use Configurator to
configure the MES Database Setup component and create the MES database or migrate an existing
one to the current version.
See Creating or Migrating MES Databases on page 65.
5. On the General tab, specify on what date to start collecting MES data for the reports.
6. On the Data Adapter Service tab, you can use the default entries for MES reports.
The list of MES tables that were added to the Intelligence database appears.
In SQL Server Management Studio, open the list of the Intelligence database tables, as shown
below.
Note: During the deployment of the MES Intelligence Report model, there might be a warning in the SMC
Logger that states "Execution of link update failed for dimension ... ." This is a known issue and will be
corrected in the next version of Intelligence and MES Intelligence Reports. You do not need to take any
corrective action.
1. In the Windows Services tool on the node on which SS RS and Intelligence is installed, make sure the
SSRS service is running.
4. Click Configure.
The data source to connect to the Intelligence dat abas e, the MES reports folder, and the MES
Intelligence reports are created on the SSRS server.
5. From the Reporting Services Configuration Manager application, verify that the MES Reports have
been deployed and that their links are accessible from the MES Reports - Report Manager web
page.
6. Verify that the following views, stored proc edures, and functions were created in the Intelligence
database:
C HAPTER 11
Deploying MES Reports in Information
Server
In This Chapter
Introduction to Deploying MES Reports in Information Server ........................................................ 121
Adding the MES Database as a Data Source for Information Server .............................................. 121
Deploying the MES Reports ........................................................................................................ 123
Configuring Security Policies for the Quality Characteristic Detail Report ........................................ 125
Provider
The name of the provider, based on the SQL Server version. For example, for SQL Server version
2012 and 2014, the provider is SQLNCLI11.
6. After you configure the data source information, click Test Connection to test the connection to the
MES databas e using your setting entries.
The test results appear at the bottom of the web page.
7. Click Save to save the data source.
5. Click the Configuration File text box's Browse button, and then navigate to and open the
RptService sConfig.xml file.
This file is stored in the Reporting Service folder of the MES application folder.
6. When you have selected the MES dat a source and configuration file, click Deploy.
Status messages about the MES reports deployment appear. When all of the reports have been
deployed, a Success message appears.
7. Close the message.
8. On the Information S erver web application, refresh the web page.
9. In the System access panel, expand Reports and then expand MES.
The MES reports are listed in the panel.
For information about running MES reports, refer to the MES Reports in Information Server Guide or in
the MES Help.
C HAPTER 12
MES Service Monitor
In This Chapter
Starting and Exiting the Service Monitor ....................................................................................... 127
Starting, Stopping, and Restarting the MES Middleware Host and MES Service ............................. 127
The Service Monitor allows users to start, stop, and restart the MES middleware host and the MES
Service. See Starting, Stopping, and Restarting the MES Middleware Host and MES Service on page
127.
To exit the Service Monitor and remove it from the system tray
Right -click the Service Monitor icon and click Exit.
Note that exiting the Service Monit or does not affect the state of the MES Service or the MES
middleware host.
To start the Service Monitor and add it to the system tray
On the Start menu, click either the Service Monitor tile (shown below).
2. Click MES Middleware Host or MES Service and then click Start, Stop, or Restart.
C HAPTER 13
Running MES Install and Configurator from
a Command Line
In This Chapter
Introduction ................................................................................................................................ 129
Prerequisite Software.................................................................................................................. 129
Command List File ...................................................................................................................... 130
MES Install Command ................................................................................................................ 130
MES Uninstall Command ............................................................................................................ 132
Configurator Command ............................................................................................................... 133
Introduction
The MES install and Configurator commands allow you to install MES and configure the installed
components from a command line. Installation and configuration settings are passed to the commands
using XML-formatted response files. The uninstall command allows you to uninstall MES from a
command line.
To understand how these commands work, it is recommended that you read Installing MES on page 41
and Configuring MES Components on page 59 to see how the MES installation and configuration is
performed from a us er interface.
Note the following about the MES install, Configurator, and uninstall commands:
The commands must be run by a user with a Windows Administrator us er account.
Only a new MES install, an upgrade from a previous version, or an uninstall can be run from a
command line. To modify or repair MES software, you must use either the Cont rol Panel Programs
and Features applet or the MES Setup tool.
If you are upgrading MES using the install command, any MES applications that are currently
running will be stopped before the installation is performed. Also, see the topics in Preparing to
Upgrade MES on page 19.
Localization of the response files used with the install and Configurator commands is not supported.
Prerequisite Software
During the installation process, the MES installation analyzes the software installed on the node. The
installation will attempt to install missing prerequisite soft ware, but some missing software might have to
be installed manually. Any issues with prereq uisite software will be entered in the ArchestrA Logger file
for the MES product. See Check ing Installation Results in the ArchestrA Logger File on page 132.
To avoid issues with missing prerequisite software during a command line installation, it is recommended
that you install all prerequisite soft ware before running the MES installation. For more information, see
MES Prerequisite Soft ware on page 17.
LicAPI32
The Licensing API.
Licensing.S ELicenseServer
The License Server.
Licensing.S ELicenseManager
The License Manager.
Note: Uninstalling MES from the command line will uninstall Int elligence if the limi ted version of
Intelligence was installed as part of the MES installation. However, it does not uninstall License
Manager. If you want to uninstall License Manager, it has to be uninstalled separately.
Configurator Command
The Configurator command format is:
Configurator. exe /silent=true /action=add /feature=<component_list>
/respons e=Configurator_response_file
where
Configurator.exe is the post-install Configurator executable file. The default path for this file is:
C:\Program Files (x86)\ Common Files\ArchestrA.
/action=add is the switch that causes the components to be configured.
/feature=component_list is the switch that specifies which components are being configured.
/response=Configurator_res pons e_file is the switch that specifies the file pat h (if needed) and file
name of the response file that specifies the settings for the c omponents being configured.
For example:
C:\Program Files (x86)\Common Files\ArchestrA>Configurator.exe /silent=true
/action=add /feature=MES:WebPortal,MES:MiddlewareProxy /response=C:\response.txt
The command must be run by a user with a Windows Administ rator user account.
Upgrading Properties
These properties apply only when upgrading to a new version of MES.
MES.FactDB.Overwrite
Values are:
o True: If the MigrateData property is set to True, migrate the existing MES database to the new
release.
If the MigrateData property is set to False, overwrite the existing database with a new MES
database.
o False: Keep the existing MES databas e with no changes. You might use this setting in case, for
example, the named MES database already exists but was not expected to be there. The
database would not be overwritten, but the upgraded MES would not be usable until a new MES
database was created or the existing one was migrated.
MES.FactMiddle.ProductionDatabaseName
The name of the MES production database.
If this property is not specified:
o If this is a new installation and the connection string has not been created yet, the name defaults
to MESDB.
o If the connection string has been previously created or the database was migrated from a
previous release, the actual database name is used.
MES.FactMiddle.ProductionUseIntegratedSecurity
Specifies which security method should be us ed to connect to the production database.
Values are:
o True: Use Windows Int egrated Security. The currently logged -in Windows user account will be
used to connect to SQL Server and the MES database. No us er name or password has to be
specified in the respons e file.
o False: Use SQL Server Authentication. Specify the appropriate SQL Server Authentication user
name and password wit h the ProductionUserName and ProductionDatabas ePassword
properties.
When False, the ProductionUseInt egratedS ecurity property must always precede the
ProductionUserName and P roductionDatabasePassword properties. Otherwise, the False
setting of this property will cause the values of the ProductionUs erName and
ProductionDatabasePassword properties to be cleared.
MES.FactMiddle.RestoreServerName
The name of the server that is hosting the MES restore database.
If this property is not specified, the server name defaults to the node name if a connec tion string was
not previously saved or to the server name entered for the previously saved connection string.
MES.FactMiddle.RestoreDataba seName
The name of the MES restore databas e.
If this property is not specified:
o If this is a new installation and the connection string has not been created yet, the name defaults
to RestoreDB.
o If the connection string has been previously created or the database was migrated from a
previous release, the actual database name is used.
MES.FactMiddle.RestoreUseIntegratedSecurity
Specifies which security method should be us ed to connect to the restore database
Values are:
o True: Use Windows Int egrated Security. The currently logged -in Windows user account will be
used to connect to SQL Server and the MES database. No us er name or password has to be
specified in the respons e file.
o False: Use SQL Server Authentication. Specify the appropriate SQL Server Authentication user
name and password wit h the RestoreUserName and RestoreDat abaseP assword properties.
When False, the RestoreUseInt egratedS ecurity property must always precede the
RestoreUserName and RestoreDatabasePassword properties. Otherwise, the False setting of
this property will cause the values of the RestoreUserName and RestoreDatabasePassword
properties to be cleared.
If permissions will be set automatically, the admin user accounts that are authorized to set the
permissions on the MES databases
MES.FactMiddle.SetMinimalSqlPermissions
Set this property to True to have the minimal SQL permissions set to allow the MES middleware
service user account to perform the required operations on the MES databases.
If set to False, then you will have to manually set up the SQL permissions and assign them to the
MES middleware service user account using the SQL Server Management Studio. For more
information about the minimal SQL permissions that are needed, see Assigning SQL Server
Database Roles to the MES Middleware Service User Account on page 84.
The default value True is used if this property is not specified.
MES.FactMiddle.ProductionAdminUseIntegratedSecurity
Applies only if the SetMinimalS qlPermissions property is set to True.
Values are:
o True: Use Windows Int egrated Security. The currently logged -in Windows user account will be
used to set the MES middleware service user account SQL permissions for the MES production
database. The us er must have administrat or privileges to set SQL permissions.
o False: Use SQL Server Authentication. Specify the appropriate SQL Server Authentication user
name and password wit h the ProductionS ecuritySqlUserName and
ProductionSecuritySqlPassword properties.
When False, the ProductionAdminUseIntegratedS ecurity property must always precede the
ProductionSecuritySqlUserName and ProductionS ecuritySqlPassword properties. Otherwise,
the False setting of this property will cause the values of the ProductionS ecuritySqlUserName
and ProductionSecuritySqlPassword properties to be clea red.
o True: Use Windows Int egrated Security. The currently logged -in Windows user account will be
used to set the MES middleware service user account SQL permissions for the MES restore
database. The us er must have administrat or privileges to set SQL permissions.
o False: Use SQL Server Authentication. Specify the appropriate SQL Server Authentication user
name and password wit h the RestoreS ecuritySqlUserName and RestoreSecuritySqlPassword
properties.
When False, the RestoreAdminUseIntegratedSec urity property must always precede the
RestoreSecuritySqlUserName and RestoreS ecuritySqlPassword properties. Otherwise, the
False setting of this property will cause the values of the RestoreSec uritySqlUserName and
RestoreSecuritySqlPassword properties to be cleared.
C HAPTER 14
Customizing the MES Middleware
In This Chapter
Introduction to MES Middleware Customization ............................................................................ 143
Opening the Middleware Configuration Editor ............................................................................... 143
Middleware Settings Tab ............................................................................................................. 145
Command (SP) Timeouts Tab ..................................................................................................... 148
Custom DB SP Mappings Tab ..................................................................................................... 149
Custom Batch SP Mappings Tab ................................................................................................. 149
Extensibility Hooks Tab ............................................................................................................... 150
Clearing the Middleware Stored Procedure Parameter Cache ........................................................ 152
Log Flags for Troubleshooting the MES Middleware ...................................................................... 153
MES Middleware Performance Count ers ...................................................................................... 154
See the following topics for descriptions of what settings can be configured on each tab.
You can view a description of the selected option at the bottom of the window.
You can configure client, database, service, and tracing settings on the middleware.
Note: When any changes are made to the Client Settings, all running clients must be restarted before
they detect the changes. Also, changes to the HTTP or TCP Ports requires all running clients to be
restarted.
This tab shows the stored procedures or methods and the corresponding timeout values under the
Method Name and Timeout value columns respectively.
A method name is a two-part object.command name that the middleware maps to a stored procedure
name. The method name is derived from the Object/Cmd/MsgType elements in the XML message sent
to the middleware. If t he MsgTy pe is exec or getspec, then the method name is created by combining the
Object and Cmd with a period (for example, ent.add). If the MsgType is getall, getbyk ey, or some other
value, then the method name is created by combining the Object and the MsgTy pe with a period (for
example, ent.getbykey).
This automatic mapping rule also applies to Custom DB and Custom Batch SP Mappings.
To configure the Command (SP) Timeouts
1. Double-click and type the method name you want to configure in the Method Name column.
2. Type the timeout value (in seconds) in the Timeout value column.
3. Click Save.
This tab shows the met hod names and the corres ponding stored procedure names in the Custom
Method Name and Custom Stored Procedure Name columns respectively.
To configure the Custom DB SP Mappings
1. Click and type the method name you want to configure in the Custom Method Name column.
2. Type the stored procedure name in the Custom Stored Procedure Name column.
3. Click Save.
You can redirect only custom method names to a different stored procedure, and not standard
middleware met hods.
These custom stored procedures accept XML as their first parameter and process the XML internally.
The stored procedures process the XML commands in batches.
This tab lists the method names and the corresponding stored procedure names in the Custom Method
Name and Custom Stored Procedure Name columns respectively.
Custom code can be executed before or after a method with middleware c ode. Extensibility hooks can be
.NET assemblies or stored procedures. You can configure extensibility hooks as a part of a custom
mapping file that the middleware uses while processing c ommands. You can configure the following
extensibility hooks:
Pre hook - Calls custom code to execute before executing a middleware stored procedure.
Post hook - Calls custom code to execute after executing a middleware stored proc edure.
You can configure one pre hook and one post hook for a middleware stored procedure. You can also
configure the flow of the middleware aft er execution of configured hooks.
A middleware flow specifies the status of the middleware after executing a hook.
Middleware Flow
The required middleware flow for the post hook: STOP ON ERROR or CONTI NUE EV EN ON
ERROR.
The following topics provide an overview for configuring a pre hook and post hook. For detailed
examples, see the MES Middleware Extensibility Hook s Reference.
Configuring a Pre Hook
The pre hook is configured for the specified middleware method.
When you c onfigure a pre hook, the pre hook is mapped to the middleware. The pre hook is called before
executing the middleware code. If the pre hook is of type SP, then the same parameter list from the
middleware SP is passed to the custom SP.
The middleware flow after executing the pre hook can be one of the following:
The flow stops when the pre hook is called. A value is returned to the calling method and any
changes or updates made with the transaction are not committed. The middleware does not call t he
current method or any other post hooks. The pre hook replaces the current middleware method in
this case.
The flow stops in case of any error and an error message is returned to the calling method. The
middleware does not call the current middleware met hod or any post hooks.
The flow always continues to the middleware code irrespective of any errors. A warning message is
returned to the calling method in case of any error.
Configuring a Post Hook
The post hook is configured for the specified middleware method.
When you configure a post hook, the post hook is mapped to the middleware. The post hook is called
after executing the middleware code. If the post hook is of type SP, then the same parameter list from the
middleware SP is passed to the custom SP.
The middleware flow after executing the post hook can be one of the following:
The flow stops in case of any error. No changes are saved and no information is returned to the
calling method except a generat ed error message.
The flow always continues to the middleware code irrespective of any errors. A transaction is
committed irrespective of any error and a warning message is returned to the calling method.
The procedure described here clears the parameter cache for all stored procedures (custom and
MES-specific stored procedures). To clear the parameter cache for a specific custom stored procedure,
the ClearSpParameterCache(string) API method must be used.
To clear the middleware stored procedure parameter cache
1. Make sure the MES middleware service is running.
2. On the Start menu, click either the MES Clear Parameter Cache tile (shown below).
3. Close the message and the MES Clear Parameter Cache window.
LogErrorStackTrace
A commonly used flag. Logs a verbose stack trace for each error.
LogErrorXML
A commonly used flag. Logs the offending messages XML.
FactMES.Server.Communication Assembly
LogTrace
Shows miscellaneous events during message processing.
LogExtraXmlElements
Logs a message when an element exists in the source XML that was not needed by the stored
procedure. Setting this flag helps to detect messages if problems exist because the XML and the
stored procedure do not match as expected.
LogSPandSQLCalls
Logs every stored procedure or SQL call in a format compatible with the current database. You can
often cut and paste this log content into a query window and execute the SQL command outside of
the middleware. This is similar to using SQL P rofiler to capt ure SQ L statements.
Note: To use the LogSPandSQLCalls flag you must also use the Middleware Configuration Editor to
set the Trace MES MW Calls paramet er (in the Middleware Tracing Settings group on the
Middleware Tracing Settings tab) to True. After changing the setting, restart the middleware (see
Starting, Stopping, and Restarting the MES Middleware Host and MES Service on page 127). The
Middleware Tracing settings can provide more powerful tracing capabilities than the Logger. For
more information about thes e settings, see Middleware Tracing Settings on page 147.
C HAPTER 15
Upgrading MES Development Components
In This Chapter
Upgrading the MES Client API Script Libraries .............................................................................. 157
Upgrading MES .NET Cont rols in ArchestrA ................................................................................. 158
Note: Importing the new Stateless API Wrapper into a Galaxy with the old 3.4/3.5 Stateful API Wrapper
prevents the old Stateful API Wrapper from working.
C HAPTER 16
Modifying, Repairing, and Uninstalling MES
In This Chapter
Modifying What MES Products or Components Are Installed ......................................................... 159
Repairing the Installation ............................................................................................................. 166
Uninstalling MES ........................................................................................................................ 169
Tasks to Perform After MES Components Have Been Removed .................................................... 172
The list of MES products and components appears. The check boxes of products and components
that are currently installed are selected by default. For example, the figure below indicat es that only
the Operator role components are currently installed.
3. Select the check boxes of only those products and components that you want to have installed at the
conclusion of the Modify operation.
Only those products and components that have been selected will be installed. If a product or
component was previously installed but you have cleared its check box here, that product or
component will be uninstalled. Following the example provided in the previous step, the figure below
indicates that the Operator role components will be uninstalled while components related to the
Configuration Client role will be installed.
4. When you have finis hed selecting the products and components to be installed or remain installed,
click Next.
A list of the prerequisite software that must be installed on the node prior to performing the MES
installation modification appears.
6. If any of the required software is not installed on the local node, click the Install Prerequisites button
to install them.
If you have not installed the prerequisite soft ware for cert ain MES features that the S etup tool cannot
install automatically for you, a message appears to indicate this condition. You must click Cancel to
exit the MES Setup tool and install the prerequisite software before modifying the MES software. For
more information about prerequisite software, see MES Prerequisite Soft ware on page 17.
7. If all prerequisite soft ware is installed on the local node, click Next.
If any applications that might conflict with the installation are running, a list of them appears.
8. Close the applications, then click the Try Again button to see if there are still any conflicts.
If there are still conflicting applications running, close them and click the Try Again button.
If there are no conflicting applications, click Next.
The installation modification begins. The following screen appears when it completes successfully.
MES Database
MES Middleware
MES Middleware Proxy
MES Web Portal
Report Server components
For information about how to configure the MES components, refer to the appropriate topics in
Configuring MES Components on page 59.
Post-Uninstall Tasks
For possible post-uninstall tasks you might have to pe rform, see Task s to Perform After MES
Components Have B een Removed on page 172.
Note: If you have installed Intelligence from the MES Setup tool, you must run the Repair operation
from the Control Panel P rograms and Features applet. Running the Repair operation from the
Setup.exe file will not successfully repair the installation.
3. Click Repair.
If any applications that might conflict with the installation repair are running, a list of them appears.
4. Close the applications, then click the Try Again button to see if there are still any conflicts.
If there are still conflicting applications running, close them and click the Try Again button.
If there are no conflicting applications, click Next.
The installation repair begins. The following screen appears when it completes successfully.
Uninstalling MES
You can remove all the MES products and components installed on a node.
To remove only certain products or components on the node, see Modif ying What MES Products or
Components Are Installed on page 159.
Note: Uninstalling MES from the Control Panel or using the Setup tool does not uninstall License
Manager or Intelligence. If you want to uninstall those products, they have to be uninstalled separately.
If any applications that might conflict with the uninstall are running, a list of them appears.
4. Close the applications, then click the Try Again button to see if there are still any conflicts.
If there are still conflicting applications running, close them and click the Try Again button.
If there are no conflicting applications, click Next.
The uninstall begins. The following screen appears when it completes successfully.
Index
introduction • 129
. uninstall command syntax • 132
.NET Controls Configuration Client installation role • 15
upgrading • 158 prerequisite soft ware • 17
.NET Development installation role • 15 Configurator, post-install • 59
prerequisite soft ware • 17 closing • 63
.NET Framework required version • 17, 41
command line, running from • 133
component configuration status • 59
A Configurator command syntax • 133
Admin User • 7
entries, required or invalid • 59
Application Objects
messages, configuration • 59
client component • 11
ArchestrA Development installation role • 15 product tree • 59
creating • 65
I migrating • 65, 68
Information Server overwriting • 68
MES data source, adding • 121 removing • 172
MES reports, deploying • 121, 123 table fragmentation, fixing • 65
Quality Characteristic Detail report, MES Development Library
configuring sec urity policies for [5.3 WIS] • Development Library component • 12
125 MES API DLLs • 12
Reporting Servic es Reports component • 12 MES Intelligence Reports
Table Weaver Reports component • 12 configuring and deploying • 109
installation deploying • 115
cluster environment • 18 hot fix for Intelligence, applying • 111
command line, running from • 129, 130 installing and configuring • 109
introduction • 7 Intelligence Data Adapters component • 12,
prerequisite soft ware • 17 110
procedure • 41 Intelligence S erver component • 12, 110
requirements, hardware and soft ware • 7 MES Intelligence Reports component • 12
role-based • 15 MES report model file • 111
security and permissions when performing • MES tables added to Intelligence database
7 • 111
MES views added to Intelligence database •
L 115
licences, installing for MES products • 49 properties in Configurator response file •
log flags, troubleshooting MES middleware • 140
153 Quality Characteristic Details report,
configuring security policies for • 119
M removing • 172
MES .NET Controls, upgrading • 158 updating Intelligence database with MES
MES configuration • 59 tables and data • 111
post-configuration tasks • 64 MES Middleware Proxy
MES databas e optimization component, configuring • 95
assistance with • 74 properties in Configurator response file •
index optimization script • 73 139
MES middleware service
index rebuild and reorganize frequency • 74
ArchestrA User Account • 7
indexes, number to use • 74
batch-oriented stored procedures, custom
reindexing during database creation and
mapping • 149
migration • 65
client settings • 145
system usage, monitoring • 73
communication with database, configuring •
what to index • 74
75
MES databas es
log flags for troubles hooting • 153 implementing SSL for • 101
mappings, reviewing • 33
migration, initiating • 33 W
table and dat a mappings • 28 WCFHostService • 7
table column mapping settings • 31 Web Portal installation role • 15
P
performance counters • 83, 154
permissions when running installation • 7
post-configuration tasks • 64
prerequisite soft ware • 17, 129
R
removing the MES soft ware • 172
Report Server installation role • 15
prerequisite soft ware • 17
reports components • 12
requirements, hardware and soft ware • 7
role-based installation • 15
S
Sample Recording Object (SRO)
description • 11
security when running installation • 7
server components • 8
software requirements • 7
SQL Server
database permissions required • 84
user aut hentication, specifying in
Configurator • 63
stored procedures, clearing parameter cache •
152
U
uninstalling MES software
command line, running from • 129
uninstall command syntax • 132
upgrade requirements • 19
Utilization Capability Object (UCO)
description • 11