ALL: Tracing Orpak applications on SQL 2008, using SQL Profiler

ALL: Tracing Orpak applications on SQL 2008, using SQL Profiler

Tracing Orpak applications on SQL 2008 using SQL Profiler

SQL Server Profiler is a rich interface to create and manage traces and analyze and replay trace results. The events are saved in a trace file that can later be analyzed or used to replay a specific series of steps when trying to diagnose a problem. It will generally be used by support teams as additional information to service requests towards Orpak Level 3 Support team. 

The flow to successfully acquire the needed information is described in the following sections, and contained in the following list:

Processes that can be submitted to SQL Profiler are:

  1. Benzin.exe(BOS application), located on BOS/remote machine(station manager PC)
  2. FCCsrv.exe(Forecourt-Controller),  located on BOS machine
  3. PrxFPU.exe(Fuel Price Update), located on BOS machine
  4. P_Replicate.exe(Replication), located on BOS machine
  5. PrxSetailSale.exe(Isle/attendant sales), located on BOS machine
  6. PrxCstore.exe (POS application), located on POS machine
  7. PrxValueTickets.exe (handles value tickets)

Identifying the process ID of the faulty application

The process identifier of the target/faulty application is available in Windows Task Manager. First step is to open  Task Manager, on Processes tab. Open “Select Columns…” option under View menu 

 

Enable PID (Process Identifier) and press OK. 


PID column will be added to Processes tab. In case of remote applications, the PID will be enabled on the remote machine that is hosting the application. For example, the following figure targets Benzin.exe and the PID in this case is 12696


Establishing a trace.

  Open SQL Profiler on the BOS machine using start menu. StartMicrosoft SQL Server 2008 R2Performance ToolsSQL Server Profiler


Select New Trace Icon (or use File menu) and enter your credentials


Select Events Selection tab and open Column Filters…


Select ClientProcessID criteria and write the process ID , obtained in the previous steps, inside Equals field


After the filter has been applied on the PID, press run and the trace will be started


Replicating the error

Follow the steps that conduct the system to behave in a non-standard way. The steps are described by the end user (station employee), customer head-office administration, or identified during testing activities. It is important not to perform any unnecessary steps that might overcrowd the trace file, making it harder to interpret by the support and development teams. 


Saving the trace

After the trace has been captured, it has to be saved.  The trace will be saved as Trace File. As shown below


    • Related Articles

    • How to make a trace file on Passport Alpha applications.

      1. Open SQL Profiler application 2. Connect to SQL server on the machine 3. Events selection tab and press Column filters: 4. Here you have 3 columns that needs to be checked: a. Application name b. Binary Data c. ClientProcessID After you check the ...
    • ALL: How to backup/restore a database in SQL Server Management Studio

      Backup a database 1. Open SQL Server Management Tools, navigate to the database which will be backed up, right click on it and select Tasks -> Back up: 2. On General tab, remove the previously used backup location by pressing 1 Remove and then 2 Add ...
    • PAIS: Procedure to disable Orpak StoriX Pais Service (ShvaEPS)

      Orpak StoriX Pais Service Removal procedure Errors found in Comserver log Example: 2026/02/10 07:22:00.089|ERROR|[47]|00005574-0000-0000-0000-000000000000|||ComServer.WcfService.WcfCommunicationService - System.ComponentModel.Win32Exception: The ...
    • Using new printer in BSM

      Image for POS contain installed printer drivers. If replace POS and keep existing printer, will work without any action. For new station installation or replace broken printer, when use the new printer, is mandatory to update printer firmware.
    • ALL: Adding recipients for Replication email alerts

      Go to the Database Server, navigate to Jobs, select Replication_EmailAlert Click on Properties -> Steps -> Edit: In the command window, add or remove emails by maintaining the correct punctuation: each email is separated by semicolon ; all the ...