Schneider Electric
Minimalist Database ION Enterprise 6.0 SP1 + Win2008R2/Win2008x64 + SQL2008 R2
Minimalist ION Enterprise 6 installation
- Database Server + Application Server
Windows 2008 R2 / SQL 2008 R2 Standard, or
Windows 2008 64bit / SQL 2008 R2 Standard
Table of Contents
Table of Contents .................................................................................................................................................................... 1
Introduction ............................................................................................................................................................................ 2
Distributed Architecture Overview ......................................................................................................................................... 3
Required Files / Media ............................................................................................................................................................ 4
Required Access ...................................................................................................................................................................... 4
1. Application Server Configuration – Phase 1.................................................................................................................... 5
1.1. Install Internet Information Services (IIS) ............................................................................................................... 5
1.2. Register 64 bit ASP.Net ........................................................................................................................................... 5
1.3. Allow 32-bit Applications to run on 64-bit Windows.............................................................................................. 5
1.4. Install SQL 2008 R2 Standard .................................................................................................................................. 6
1.5. Install SQL Server 2005 Feature Packs from Microsoft ........................................................................................... 6
1.6. Enable xp cmd_shell................................................................................................................................................ 6
1.7. Enable Execute Permissions for IIS ......................................................................................................................... 6
1.8. Install ION Enterprise 6.0 ........................................................................................................................................ 7
1.9. Run ION Enterprise 6 Service Pack 1 ....................................................................................................................... 7
1.10. Change the Start-up type of the ION Connection Manager ................................................................................... 7
1.11. Manual Configuration steps .................................................................................................................................... 7
1.12. Copy files ................................................................................................................................................................. 8
2. Database Server Configuration ....................................................................................................................................... 9
2.1. SQL Server checks and ION Instance Creation ........................................................................................................ 9
2.2. Install SQL Server 2005 Feature Packs from Microsoft ........................................................................................... 9
2.3. Create ION Logins.................................................................................................................................................... 9
2.4. Create Directory Structure ...................................................................................................................................... 9
2.5. Paste the Databases from the Application Server .................................................................................................. 9
2.6. Paste Files from the Application Server .................................................................................................................. 9
2.7. Register dll’s using regsvr32.................................................................................................................................. 10
2.8. Apply Registry Settings.......................................................................................................................................... 10
2.9. Attach Databases .................................................................................................................................................. 11
2.10. Run SQL Scripts ..................................................................................................................................................... 11
2.11. Create Archive and Maintenance Jobs ................................................................................................................. 11
3. Application Server Configuration – Phase 2.................................................................................................................. 12
3.1. Check IIS Virtual Roots .......................................................................................................................................... 12
3.2. Run RS2008WRConfigurationWizard.exe ............................................................................................................. 12
3.3. Copy PMLMSDEManager.dll to the Database Server ........................................................................................... 13
3.4. Starting ION Enterprise ......................................................................................................................................... 13
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 1
Schneider Electric
Minimalist Database ION Enterprise 6.0 SP1 + Win2008R2/Win2008x64 + SQL2008 R2
Introduction
This article describes how to do a new install of an ION Enterprise 6.0 SP1 system that requires a minimalist database
server, that is, the ION Enterprise 6.0 Database Setup Installer is not run on the database server. The minimalist
database approach is typically used to install ION Enterprise on a pre-existing database server where the customer is
highly concerned about maintaining server integrity. If the database server is not pre-existing and a new SQL Server
installation is required, it is recommended to use the regular install method described in
Win2008R2_SQL2008R2_Standard_64bit_Distributed_DB.doc.
This document describes the installation procedure of a new ION Enterprise 6 SP1 system with the following
parameters:
 Server Topology - Distributed system with a database server housing the ION database and an application server
housing the ION Enterprise application and Reporting Services.
 Operation Systems (assumed to be already installed):
- Windows 2008 Server R2 or
- Windows 2008 Server 64bit
 SQL Server Version - SQL Server 2008 R2 Standard (already installed on the database server)
Distributing the database functions to a separate SQL DB Server is beneficial when:




A SQL Server Database Server already exists and is available
There is a requirement to have IIS and SQL Server on separate servers
The ION Enterprise system will have many devices connected to it
There may be several people using the ION Enterprise system at the same time and performance is important.
(Dedicated server resources for SQL Server database functions is a powerful way to maximize ION Enterprise
performance).
NOTE: This procedure is only meant for those familiar with both ION Enterprise and SQL Server. It makes use of several
script/batch files that are included in .zip form as an attachment to this article.
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 2
Schneider Electric
Minimalist Database ION Enterprise 6.0 SP1 + Win2008R2/Win2008x64 + SQL2008 R2
Distributed Architecture Overview
ION Enterprise Primary Server:
 Windows 2008 Server R2
 SQL Server Reporting Services
 ION Files
 ION Services
 IIS 7.5 enabled
Windows 2008 Server R2
ION Enterprise
Primary Server
Internet Information Services (IIS 7.5)
ION Services
SQL Reporting
Services
Substation 1
SQL Server Licence
required
ION Files
LAN
Substation 2
Database Server:
 Windows 2008 Server R2 or
Windows 2008 Server 64bit
 SQL Server
 ION Files
 ION Databases
 SQL Reporting Databases
 SQL Reporting Services must not
be installed
Database
Server
Windows 2008 Server R2
SQL Server Standard
or Enterprise
SQL Server Licence
required
ION Files
ION
Databases
SQL
Reporting
Databases
Note: When a separate SQL Server database server is
utilized in conjunction with an ION Enterprise Primary
Server, Microsoft requires SQL Server licences for
both the SQL Server Database Server as well as the
ION Enterprise Primary Server (because SQL Server
Reporting Services components are installed on both
computers).
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 3
Schneider Electric
Minimalist Database ION Enterprise 6.0 SP1 + Win2008R2/Win2008x64 + SQL2008 R2
Required Files / Media







SQL 2008 Server R2 installation CD
ION Enterprise 6.0.1 CD (build 1300 has Service Pack 1 included)
SQL Server 2005 Backward Compatibility package - Download from Microsoft (SQLServer2005_BC_x64.msi)
SQL Server 2005 Native Client - Download from Microsoft (sqlncli_x64.msi)
SQL Server 2005 Management Objects Collection - Download from Microsoft (SQLServer2005_XMO_x64.msi)
Reporting Services 2008 Configuration Wizard (RS2008WRConfigurationWizard.exe) – Available in RESL 203767
Obtain script_files.zip – Available in RESL 199346
o Script to create “ION” and “ReportSQL” logins (CreateIONlogin.sql)
o Batch file to create ION Enterprise folder structure (Folder.bat)
o Registry file to create necessary ION Enterprise regsigry keys (IONE_registry64bit.reg)
o Script to create ION Enterprise database maintenance jobs (jobs.vbs)
Required Access
Windows Administrator access is required for both the ION Enterprise Application Server and the SQL Server DB Server.
If direct access is not provided then arrangements must be made to share this procedure with the local IT professionals
who will be conducting the steps of this procedure on your behalf.
SQL Server Administrator access is required for the SQL Server instance running on the DB Server. If direct access is not
provided then arrangements must be made to share this procedure with the local IT professionals who will be
conducting the steps of this procedure on your behalf.
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 4
Schneider Electric
Minimalist Database ION Enterprise 6.0 SP1 + Win2008R2/Win2008x64 + SQL2008 R2
1. Application Server Configuration – Phase 1
1.1.
Install Internet Information Services (IIS)
-
Start > Administrative Tools > Server Manager
Under Roles Summary click Add Roles and check Web Server (IIS)
Expand each sub-folder and ensure the following IIS options are checked:

Web Server
 Common HTTP Features:
 Static Content
 Default Document
 Directory Browsing
 HTTP Errors
 Application Development Features:
 ASP.NET
 .NET Extensibility
 ASP
 ISAPI Extensions
 ISAPI Filters
 Health and Diagnostics:
 HTTP Logging
 Request Monitor
 Security:
 Request Filtering
 Performance Features:
 Static Content Compression
Management Tools:
 IIS Management Console
 IIS 6 Management Compatibility:
 IIS 6 Metabase Compatibility
 IIS 6 WMI Compatibility
 IIS 6 Scripting Tools

1.2.
-
Register 64 bit ASP.Net
Ensure you are logged in as THE administrator and not just a user with administrator privileges! Run the following
command:
%SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
1.3.
-
Allow 32-bit Applications to run on 64-bit Windows
Run the command:
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 5
Schneider Electric
-
Ensure IIS is working: In Internet Explorer type: http://localhost/
1.4.
-
-
-
ION Enterprise 6.0 SP1 + Windows 2008 R2 + SQL 2008 R2
Install SQL 2008 R2 Standard
Insert the SQL Server 2008R2 CD…
Click OK to install .NET
On the SQL Server Installation Center, select “Installation” on the left pane and select “New Installation or add
features to an existing installation” on the right pane
Product Key: enter product key > Next
License Terms: accept the license terms > Next
Setup Support Files: > Install
Setup Role: choose SQL Server Feature Installation > Next
Feature Selection: install
o Database Engine services
o Reporting Services
o Management Tools – Complete
> Next
Instance Configuration: create a Named Instance called ION
Server Configuration: click ‘use the same account for all SQL services’
Run all services under the local SYSTEM account. (May be listed as NT AUTHORITY\SYSTEM.) No need to specify
password.
Database Engine Configuration:
Mixed Mode – use “ION!Everywhere” for the sa password
Click “Add current user” to specify SQL Server administrators
Next > Install…
1.5.
Install SQL Server 2005 Feature Packs from Microsoft
Install the three packages in the order below…



SQLServer2005_BC_x64.msi (SQLServer2005_BC_x64.msi)
sqlncli_x64.msi (sqlncli_x64.msi)
SQLServer2005_XMO_64.msi (SQLServer2005_XMO_x64.msi)
1.6.
-
Open SQL Server Management Studio. Connect to the SQL Server 2008 instance just installed.
In the Object Explorer window, right-click on the server. In the pop-up menu, click Facets.
In the Facets dialog box, in the “Facet:” drop-down list, choose Surface Area Configuration.
The last item in the list in XPCommandShellEnabled. Change it to True and click OK.
1.7.
-
Enable xp cmd_shell
Enable Execute Permissions for IIS
Start > Run > inetmgr
In the left pane select Default Web Site
In the middle pane double click and open Handler Mappings…
In the right pane, select Edit Feature Permissions… as shown below:
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 6
Schneider Electric
-
Ensure the IIS Default Web Site has Read, Script and Execute permissions.
1.8.
-
Run ION Enterprise 6 Service Pack 1
Double click ServicePack1.exe > Next > Finish
1.10.
-
Install ION Enterprise 6.0
Insert the ION Enterprise CD…
Click Run Setup > Install Server > Primary Server > SQL Instance
Install ION Enterprise, selecting the local SQL Server instance (ION)
1.9.
-
ION Enterprise 6.0 SP1 + Windows 2008 R2 + SQL 2008 R2
Change the Start-up type of the ION Connection Manager
Use the Services Control Panel applet to change the Startup type of the ION Connection Manager Service from
Automatic to Manual.
At this point the application server should function normally on its own. WebReporter is not yet working.
1.11.
-
Manual Configuration steps
Shut down all ION Enterprise services starting with the ION Network Router Service
Delete the Log Inserter and Query Server configuration files (just the .cfg files, not the directories). They will both be
in config\cfg\Logsrv directory in their own subdirectories.
Start Database Manager from the system\bin folder
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 7
Schneider Electric
-
ION Enterprise 6.0 SP1 + Windows 2008 R2 + SQL 2008 R2
Detach the ION databases (you will not need the Reporting Services since this is a new install)
Change ION Enterprise Database Registry settings to point to the SQL instance on the database (we have not yet
created this instance, it will be called <dbserver name>\ION) server by navigating to:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Schneider Electric\ION Enterprise\6.0\Databases. Change
the Database key values to reference dataserver as shown below:
1.12.
Copy files
Copy the following files to either an external storage device or a network location that will be accessible from the
database server.
-
Copy the entire Database folder and contents (ION Enterprise\Database)
-
Copy the following sql script files from the \system\scripts directory:
 NOM12_changeDBOwner.sql
 NOM12_set_trustworthy.sql
 ION_DBMaintenance.sql
-
Copy the following files from the \system\etc directory (they are used by the archive dts package):
 ION_Data.mdf
 ION_Data.ldf
-
Copy the following files from the \system\bin directory:
 PMLMSDEManager.dll - used to create the SQL jobs and can be deleted afterwards
 ProductInfo.dll
 PMLTimezone.dll
 ProductInfo.xml
 ION_DBArchiver.dts
 ION_DbBackup.dts
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 8
Schneider Electric
ION Enterprise 6.0 SP1 + Windows 2008 R2 + SQL 2008 R2
2. Database Server Configuration
2.1.
-
-
On a pre-existing SQL 2008 Server R2, ensure that SQL Reporting Services is not installed. If Reporting Services is
installed, it must be removed or ION Enterprise cannot be installed on this server in a distributed database
architecture!
Ensure the local administrator has access to run all SQL services.
Ensure Mixed Mode authentication is enabled with the “sa” password set to “ION!Everywhere”.
Create the ION instance.
2.2.



2.3.
-
SQLServer2005_BC_x64.msi (SQLServer2005_BC_x64.msi)
sqlncli_x64.msi (sqlncli_x64.msi)
SQLServer2005_XMO_64.msi (SQLServer2005_XMO_x64.msi)
Create ION Logins
Create Directory Structure
Create directory structure by running folder.bat, being sure to copy this file into the directory in which you want to
create this directory structure.
2.5.
-
Install SQL Server 2005 Feature Packs from Microsoft
Run CreateIONlogin.sql
2.4.
-
SQL Server checks and ION Instance Creation
Paste the Databases from the Application Server
Paste the entire Database directory that was copied from the application server earlier to the database server
(overwrite the Database directory created by folder.bat). The Database folder should contain the three ION
Enterprise databases.
2.6.
Paste Files from the Application Server
-
Paste the following sql script files copied from the \system\scripts directory on the application server to the
\system\scripts directory on the database server:
 NOM12_changeDBOwner.sql
 NOM12_set_trustworthy.sql
 ION_DBMaintenance.sql
-
Paste the following files copied from the \system\etc directory on the Primary into the \system\etc directory (they
are used by the archive dts package)
 ION_Data.mdf
 ION_Data.ldf
-
Paste the following files copied from the \system\bin directory on the application server into the \system\bin
directory on the database server:
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 9
Schneider Electric






ION Enterprise 6.0 SP1 + Windows 2008 R2 + SQL 2008 R2
PMLMSDEManager.dll - used to create the SQL jobs and can be deleted afterwards
ProductInfo.dll
PMLTimezone.dll
ProductInfo.xml
ION_DBArchiver.dts
ION_DbBackup.dts
2.7.
Register dll’s using regsvr32
Start a command prompt and register the following using regsvr32 (%systemroot%\SysWoW64\regsvr32
“<path>\PMLMSDEManager.dll”)
 PMLMSDEManager.dll - used to create the SQL jobs and can be deleted afterwards
 ProductInfo.dll
 PMLTimezone.dll
2.8.
-
Apply Registry Settings
Double click the included IONE_registry64bit.reg file for Server 2008 R2
Start > run > type: regedit
Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Schneider Electric\ION Enterprise\6.0\Databases
Change the database server name to reflect the instance name on the database server
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 10
Schneider Electric
-
ION Enterprise 6.0 SP1 + Windows 2008 R2 + SQL 2008 R2
Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Schneider Electric\ION Enterprise\6.0
Change the Root1 and Root2 locations to reflect the config and system directory locations on the database server
2.9.
-
Use SQL Server Management Studio to attach the three database files copied over in one of the steps above.
(ION_Data, ION_Network, and ION_SystemLog)
2.10.
-
Attach Databases
Run SQL Scripts
Run the .sql scripts in the following order (they can be deleted from the database server once they have been run)
1. NOM12_ChangeDBOwner.sql - run this against all three ION E databases
2. NOM12_set_trustworthy.sql - edit the file to replace [--name--] with ION_Network
3. ION_DBMaintenance.sql - this will add some objects to the master database that are used by the ION E database
maintenance jobs, in particular, tracking and warning about database size
-
Delete the RPT_ table entries by running the following SQL queries against ION_Network (not necessary on a new
install)
1.
2.
3.
4.
DELETE FROM RPT_ReportPack
DELETE FROM RPT_ReportTemplateReportMap
DELETE FROM RPT_ReportTemplate
DELETE FROM RPT_Report
2.11.
-
Create Archive and Maintenance Jobs
Run jobs.vbs to create the jobs (ensure you use wscript in C:\Windows\SysWOW64 to run jobs.vbs)
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 11
Schneider Electric
ION Enterprise 6.0 SP1 + Windows 2008 R2 + SQL 2008 R2
3. Application Server Configuration – Phase 2
3.1.
-
Delete the two Reporting Services virtual directories using IIS Manager if they exist. IIS should look like this:
3.2.
-
Check IIS Virtual Roots
Run RS2008WRConfigurationWizard.exe
Copy the RS2008WRConfigurationWizard.exe into the system\bin folder, double click to run…
Report Server Information: Report Server should be the local machine name > Next
Click Force
Reporting Services Deployment: Choose the second option to install RS on a different Machine > Next
Choose the ION instance on the database server > Next
- Authentication: enter username “sa”, pw=ION!Everywhere
Next
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 12
Schneider Electric
ION Enterprise 6.0 SP1 + Windows 2008 R2 + SQL 2008 R2
Click OK to test authentication > Next > Next
Yes
Yes
OK > Next
Next > Finish
3.3.
-
Manually copy PMLMSDEManager.dll (system\bin) to the same location on the database server.
3.4.
-
Copy PMLMSDEManager.dll to the Database Server
Starting ION Enterprise
Open Management Console and make sure the application server shows up under Servers – add the application
server name if necessary.
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 13
Schneider Electric
-
ION Enterprise 6.0 SP1 + Windows 2008 R2 + SQL 2008 R2
Update license key – the license key may have to be updated otherwise you will get a
“ManagementConsoleExeption” error when you try to add a meter.
This can be accomplished in Management Console > tools > License Manager.
-
Start ION services.
-
Run a browser on either machine, log in to Web Reporter and run a System Configuration report to verify correct
functioning of Web Reporter.
-
Once it has been confirmed that everything is working as expected, shut down and disable SQL Server on the
Primary server.
© 2011 Schneider Electric. All rights reserved.
CONTROLLED DISTRIBUTION
Page | 14