EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB233155: How to execute Enterprise Manager Synchronization and Optimization tasks on a schedule in MicroStrategy 9.x


Community Admin

• Strategy


This Technical Note describes the steps to schedule periodic Enterprise maintenance tasks. This functionality is only available in Enterprise Manager Console, and requires that the Enterprise Manager Console be installed. These steps are limited to MicroStrategy 9.x.

KB233155
Summary:
This Technical Note describes the steps to schedule periodic Enterprise maintenance tasks. This functionality is only available in Enterprise Manager Console, and requires that the Enterprise Manager Console be installed. These steps are limited to Strategy 9.x.
 
Description:
Strategy’s Enterprise Manager Console offers a number of Optimization and Synchronization tasks that can be performed. These tasks keep your Enterprise Manager project and data loads performing efficiently. They can be performed during each data load, can be run immediately, or can be scheduled to run independently of the data load as outlined in this Technical Note.
Users with an actively evolving Schema may want to perform these tasks periodically, but would not like them to occur with every data load, as these maintenance tasks may significantly increase the load on your Intelligence Server.
 
Action:
Note: To avoid user permission conflicts, the following steps must be performed with highest privileges.
In order to schedule an Enterprise Manager maintenance task, the use must first create a batch file that calls the MAEMETL.exe executable file.

  1. In a text editor (such as Notepad), enter the command line statement that calls MAEMETL, followed by the arguments that specify which task you would like to perform: 

    MAEMETL [-COS][-EF][-OL][-REP][-UWTS][-USTS]

-COS      Close open sessions: This task closes all sessions that are listed as open in the statistics database. Using this task can avoid "orphan sessions," entries in the statistics database that indicate that a session was initiated in Intelligence Server, but no information was recorded when the session ended. Orphan sessions occur rarely, but they can affect the accuracy of Enterprise Manager reports that use Session Duration. For example, one long-running orphan session may skew the average time a session lasts by several days. The SQL script run for this option is em_close_orphan_sessions_DBname.sql.
-EF         Update object deletions: Information about deleted objects is retained in the Enterprise Manager lookup tables for historical analysis. This task synchronizes the existence property of an object in Enterprise Manager with its state in the metadata. A deleted object is marked with a Deleted flag in the corresponding lookup table.
-OL          Update folder paths: This task updates the location property of attributes such as Report, User, and so on. It synchronizes the Enterprise Manager warehouse lookup tables with the actual folder paths in the metadata.
-REP        Repopulate relate tables: This task synchronizes the relationship (relate) tables in the Enterprise Manager warehouse, such as IS_SCHED_RELATE or IS_USR_GP_USR, with the metadata.
-UWTS     Update Database Statistics for EM Warehouse Tables: This task executes SQL scripts that cause the Enterprise Manager warehouse to collect statistics on these warehouse tables. The database uses these statistics to improve response times for Enterprise Manager reports. This option is available for SQL Server, Oracle, Teradata, and DB2 version 8.2.2 or later. This task should be run frequently to improve the performance of Enterprise Manager reports. The SQL script that is run for this option is Upd_Fact_Table_Stats_DBname.sql
-USTS        Update Database Statistics for Intelligence Server Statistics: This task executes SQL scripts that cause the statistics database to collect statistics on these warehouse tables. The database uses these statistics to improve response times for Enterprise Manager reports. This option is available for SQL Server, Oracle, Teradata, and DB2 version 8.2.2 or later. This task should be run frequently to improve the performance of Enterprise Manager reports. The SQL script that is run for this option is Upd_Stat_Table_Stats_DBname.sql.
 

ka04W000000OainQAC_0EM440000002HFm.jpeg

In the example above, the MAEMETL executable will update the folder paths and repopulate the relate tables.
2. Save the file in .bat format.

  • To test the batch file, the user can execute the batch file by entering its file location in the command line as shown below.

ka04W000000OainQAC_0EM440000002HFk.jpeg
  • Schedule the batch file to execute at a given time using a third-party task scheduling tool. Windows Task Scheduler is a simple tool that is delivered with Windows. However, a number of task scheduling tools could be used for this step.

 

ka04W000000OainQAC_0EM440000002HFo.jpeg

 
WARNING:
The third-party product(s) discussed in this technical note is manufactured by vendors independent of Strategy. Strategy makes no warranty, express, implied or otherwise, regarding this product, including its performance or reliability.
233155


Comment

0 comments

Details

Knowledge Article

Published:

April 16, 2017

Last Updated:

November 14, 2018