Resolving Process Historian 2014 SP2 Stuck in Idle Status After Update 3

Resolving Process Historian 2014 SP2 Stuck in Idle Status After Update 3

Process Historian 2014 SP2 remaining stuck in 'Idle' status (unable to transition to 'Active' / 'Started' with connected OS Servers showing missing data sources) after applying Update 3 occurs when the mandatory Microsoft SQL Server database schema migration step fails to complete. PH updates modify internal schema structures, and the server intentionally locks in Idle/Maintenance mode until database maintenance scripts successfully update the HistorianStorage database. To resolve this, launch the Process Historian Management Console as Administrator, execute the Database Installation and Maintenance Wizard to upgrade the SQL schema, and restart the 'Siemens Process Historian' service.

Table of Contents

Process Historian State Machine: Idle, Starting, and Active States

SIMATIC Process Historian (PH) serves as the central, high-capacity long-term archive server for SIMATIC PCS 7 and WinCC. Operating on an enterprise Microsoft SQL Server foundation, the Process Historian server daemon manages an internal state machine:

  • IDLE (Maintenance Mode): The server service is running, but real-time data ingestion is suspended. Database maintenance, segment swaps, or schema upgrades occur in this state.
  • STARTING: The engine verifies database consistency, validates connected OS Server certificates, and prepares ingestion queues.
  • ACTIVE (Operational): The server actively receives, compresses, and archives process tags and alarm events forwarded by WinCC OS Servers across the plant terminal bus.

Root Cause Analysis - Database Schema Migration Lockout

When an engineering team applies an update—such as updating Process Historian 2014 SP2 from Update 1 to Update 3—the installer updates Windows system services, DLL binaries, and the Management Console. However, updates frequently introduce structural changes to the underlying SQL Server database (HistorianStorage).

If the automatic database migration script fails to trigger during update setup (due to insufficient SQL administrative rights, active connection locks, or low disk space), the Process Historian runtime detects a schema version mismatch between the newly installed binaries and the older database tables. To prevent permanent database corruption, the safety interlock clamps the server in IDLE status. In this state, the Management Console disables the Start button, and all connected OS Servers report disconnected data sources.

Diagnostic Matrix for Process Historian Status and Services

The table below details service states, database indicators, and diagnostic checkpoints for Process Historian:

Service / ComponentExpected Normal StateFault Indicator in Idle StateRemediation ActionProcess Historian StateACTIVEStuck in IDLE / LockedRun Database Maintenance Wizard to complete schema upgrade.HistorianStorage DBONLINE (SQL Server)RECOVERY_PENDING or Schema mismatchCheck SQL Server error log in SQL Management Studio.ProcessHistorian.logRecords cyclic archivingSchema version mismatch detectedExecute PHDBSetup.exe to update database tables.OS Server Data SourcesConnected (Green)Disconnected / MissingRestores automatically once PH state transitions to ACTIVE.Siemens Process HistorianRunning (services.msc)Running but idleRestart service following database migration.

Step-by-Step Schema Upgrade and Server Activation Procedure

  1. Inspect Diagnostic Log Files:
    - Navigate to C:\ProgramData\Siemens\Logs\ProcessHistorian\.
    - Open ProcessHistorian.log in a text editor: search for ERROR entries. Confirm the presence of 'Database schema version does not match binary version'.
  2. Verify SQL Server Instance Health:
    - Open SQL Server Management Studio (SSMS) and connect to (local)\HISTORIAN as Windows Administrator.
    - Expand Databases: verify that HistorianStorage and SysStorage are marked ONLINE (not SUSPECT or RECOVERY).
  3. Execute Process Historian Database Maintenance Wizard:
    - Open Windows Start Menu -> navigate to Siemens Automation -> Process Historian Database Installation (or run C:\Program Files\Siemens\ProcessHistorian\bin\PHDBSetup.exe as Administrator).
    - Select Upgrade existing database schema.
    - Proceed through the wizard: the script applies database indexes, stored procedure updates, and version stamps.
  4. Restart Process Historian Services:
    - Open Windows Services (services.msc).
    - Restart Siemens Process Historian and Siemens Process Historian Discovery Service.
  5. Transition Server to Active State:
    - Open Process Historian Management Console as Administrator.
    - Under the Dashboard, select Start Process Historian (or verify that the state transitions automatically from Starting to Active).
    - Verify that connected OS Server data sources transition from grey to green.

Verification

Verify system restoration through the following milestones:
1. In Process Historian Management Console Dashboard, confirm that the Operational State displays solid green ACTIVE.
2. Check the Data Sources view: verify that all configured WinCC OS Servers report status Connected and Archiving.
3. In SIMATIC Information Server, run a quick historical report: confirm that recent process trend data and alarms populate successfully.

Limitations and Operational Precautions

Before applying any Update or Service Pack to Process Historian, always perform a full database backup of HistorianStorage using SQL Server Management Studio. Schema upgrade operations alter database system tables permanently; if an upgrade is interrupted by power failure or system reboot, the database cannot be rolled back without a full backup. Furthermore, ensure that all connected OS Servers have the corresponding WinCC Process Historian client updates installed to maintain protocol alignment.

Engineer FAQ

Technical References

Related Articles

Related Tags

  • Process Historian
  • PH 2014 SP2
  • Idle Status
  • Database Schema
  • SQL Server
  • Archive Restoration
6 respuestas