Manual de AMC Substituir Cockpit
Manual de AMC Substituir Cockpit
PUBLIC
Warning
This document has been generated from the SAP Help Portal and is an incomplete version of the official SAP product
documentation. The information included in custom documentation may not re ect the arrangement of topics in the SAP Help
Portal, and may be missing important aspects and/or correlations to other topics. For this reason, it is not for productive use.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c2970… 1/27
1/19/2021
Document History
Introduction
This guide describes the Administration and Management Console (AMC) for SAP Adaptive Server Enterprise (SAP ASE). It is a
Web-based tool that provides a graphical user interface for the administration and management options of your SAP ASE servers.
About AMC
The Administration and Management Console (AMC) for SAP Adaptive Server Enterprise (SAP ASE) is a Web-based tool for
managing and administering your SAP ASE servers. The AMC is supported as of SAP ASE version 16.0 SP04. While the AMC is
primarily designed to run on desktop devices, you can also access it on tablets.
AMC provides a graphical user interface for displaying and changing the database server con guration, managing the databases
of an SAP ASE database server, and controlling the use of main memory.
Use AMC to set up and use the SAP ASE Workload Analyzer. With the Workload Analyzer, you can capture workloads on your SAP
database server, replay them on other servers, and compare the results to analyze the impact of different con gurations.
In addition, the AMC is closely integrated with the Built-In ASE Longterm Data Repository (BALDR), which provides access to
historical performance data for your SAP ASE database server and provides functionality to automate table reorganizations and
statistical updates with Automated Table Maintenance (ATM).
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c2970… 2/27
1/19/2021
Related Information
Time Selection
Table Controls
Error Messages
Accessibility Information
Time Selection
For screens in AMC that display historical information, you can set a time frame. Only data from this time frame is then displayed.
There are multiple prede ned time frames that can be selected from a dropdown menu (for example, Last 24 Hours or Last 7
Days). You can also choose Custom Selection and specify the time stamps for both the start and end date. After selecting the
time frame, you can choose Go to apply the current settings and refresh the displayed data.
At the top of the topic screen, you will be shown when you have the option to make a time selection. After you have made your
settings, you can collapse the time selection to free space up on your display and see more results. If you always want to see the
current time selection when you scroll through the results, you can also mark it as sticky.
Table Controls
Many of the AMC topic screens contain tables to display data. At the top right of the table you can see the controls available for
this speci c table.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c2970… 3/27
1/19/2021
From left to right:
Sort Dialog
Settings/Columns Dialog
Export
Related Information
Sort Dialog
Columns Dialog
Export Popup
Sort Dialog
The Sort dialog allows you to specify a custom sort order for the data of a table.
Columns Dialog
In the Columns dialog, you can de ne which data columns should be displayed and in which order they should be displayed on the
screen. As some of the topic screens provide access to many columns, not all columns are active on all screens by default.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c2970… 4/27
1/19/2021
Export Popup
The Export control starts a download of the table data to your device. A dialog box is displayed while the process is running. The
data can then be analyzed with other software or stored for later use.
Error Messages
In case of errors or warnings these are displayed in a small popup on the screen.
Accessibility Information
AMC uses the SAPUI5 technology and makes use of its accessibility offerings. With SAPUI5, you get the up-to-date SAP user
interface (UI) technology, which is based on HTML5. The screens are built according to SAP Fiori design principles, with a focus on
usability and responsive design.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c2970… 5/27
1/19/2021
Related Information
Components of AMC
Components of AMC
The following picture shows the main components of AMC:
Related Information
AMC.jar
AMC.properties
Scripts Directory
Built-In ASE Longterm Data Repository (BALDR)
AMC.jar
The core component of AMC is a Java archive named AMC.jar. It runs on the same host as the SAP ASE database server and can
be accessed by the end user through a Web browser. AMC.jar is the only component of AMC that must be accessible from the
end user device. All communication with the front-end is via http on a con gurable port.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c2970… 6/27
1/19/2021
The AMC.jar component serves the user interface to the browser, processes user requests, and communicates with SAP ASE via
JDBC. This component can also execute scripts from the AMC script directory.
Since AMC.jar contains all necessary UI libraries, it is not necessary for the end user device to be connected to the public
internet. The only exceptions to this are the following features
1. The SAP WebAssistant, which provides integrated documentation, requires access to the public internet
2. The links on the Important Links screen only work if the user's device has access to the internet.
In any case, the database server does not need access to the public internet.
AMC.properties
The AMC.properties le contains all information to con gure AMC. For more information, see Con guring the AMC.
Scripts Directory
The AMC scripts directory contains a set of scripts required to prepare SAP ASE for providing all the data required for AMC.
Scripts are also required to start and stop your SAP ASE database server from AMC.
BALDR can be installed as part of the SAP ASE installation, by AMC, or by manually running the instbaldr.sql script from the
SAP ASE scripts directory.
Note
You need a sapsa user before you can run the instbaldr.sql script. For more information, see sapsa login
Installation
AMC is installed as part of an SAP ASE server installation. It is licensed free of charge to customers who have a paid license for
SAP ASE. For detailed information about installation, see the documentation Installation Guide for SAP Adaptive Server
Enterprise.
There are several ways to install and con gure the AMC component.
1. GUI Installation
If you use the SAP ASE installer, you can choose between
Typical mode
Full mode
Customer mode
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c2970… 7/27
1/19/2021
In Typical mode AMC is not installed. In Full mode, AMC is installed automatically, and using Custom mode, you have
to select Administration and Management Console and check the box as next step on the second con guration
screen.
The AMC installation via the console is similar to the GUI installation. You can choose again between Typical, Full, and
Custom mode. Using the Custom mode, you have to select Administration and Management Console under
SAP Adaptive Server Enterprise. As next step you are asked to enable AMC. The AMC Server Port is 8080 per default, but if
needed you can change to another usable port.
You can also install the AMC component via silent installation. To do this, you should add the following variables in the
response le:
SY_CFG_ASE_AMC_ENABLE=true
SY_CFG_ASE_AMC_PORT_NUMBER=8081
If you don’t want to install AMC, just leave SY_CFG_ASE_AMC_ENABLE as false or blank. A usable port can be set as
SY_CFG_ASE_AMC_PORT_NUMBER.
Related Information
Starting and Stopping the AMC
Con guring the AMC
Logging in to AMC
Logging out of AMC
Logging
Lines starting with a # character contain comments, properties are set in the format property=value.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c2970… 8/27
1/19/2021
DEBUG
INFO
WARN
ERROR
FATAL
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c2970… 9/27
1/19/2021
During installation, the properties are lled with default values. In most cases there is no need to change the values but depending
on your setup you may want to enable HTTPS or use a custom port for AMC.
Logging in to AMC
Open a Web browser on your device and enter the URL to access AMC. For information about supported browsers and platforms,
see SAPUI5 - Browser and Platform Support.
The URL for accessing the AMC consists of the database host name and the port to which the AMC listens. Both parameters can
be con gured in the AMC.properties le, as described in Con guring the AMC. A typical URL for accessing AMC is
http://dbhostname:8080/.
Your browser loads the AMC login screen. Enter a database username and the password for this user. Continue with Log In to
access the AMC. You will be directed to the At a Glance screen.
Logging
AMC writes a log of its operation. This log can be especially helpful in analyzing issues with AMC and SAP Support can ask you to
provide the AMC log in support cases. In some cases, it will be necessary to increase the log level to get a more detailed
application log.
The log le name, location, and log level are con gured in the AMC.properties le, as described in Con guring the AMC.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 10/27
1/19/2021
Related Information
At a Glance
Space
Con guration
Backup and Recovery
Diagnostics
At a Glance
Related Information
Server Overview
Server Overview
Get detailed information about the SAP ASE server being administered. It also allows you to start, shutdown, and restart the SAP
ASE server.
Space
Related Information
Databases
Create Databases
Databases
Get detailed information about the data and log space, the available free space, and the durability level of all databases of your
SAP ASE database server.
Monitoring the space that is consumed by the database requires you not only to check the current space consumption, but also
consider the progress of the space growth.
To display detailed information, select the entry you want to analyze in the overview table.
The section Status displays all database options for each selected database. These options are retrieved from the status column
of the sp_helpdb command. If you change database options with the sp_dboption command, the changes are re ected here.
You can create a new SAP ASE device and database and expand the storage space of the existing database using the Create
wizard.
Related Information
Durability Level
Space Usage
Durability Level
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 11/27
1/19/2021
The Durability Level can have one of the following values:
Full All transactions are written to disk. This is the default if you do not
specify a durability level when you create the database and ensures
full recovery from a server failure. All system databases use this
durability level (the traditional durability level for disk-resident
databases).
Note
It is of high importance that the <SID> database of an SAP
installation has this durability level.
no_recovery Transactions are not durable to disk and all changes are lost if the
server fails or is shut down. For disk-based databases, Adaptive
Server periodically writes data to the disk devices at runtime, but in
an uncontrolled manner. After any shutdown (polite, impolite, or
server failure and restart) a database created with no_recovery is
not recovered but is re-created from the model or template
database.
at_shutdown Transactions are durable while the server is running and after a
polite shutdown. All durability is lost if the server fails.
Space Usage
With the AMC UI you can monitor the space usage of your database, including database objects such as tables and indexes. You
can analyze space allocation and perform administration activities to change the storage layout of your database.
If you neglect space management, normal database growth can cause downtime when database objects ll up. In this case,
applications cannot write to the database, and you need to make more storage space available quickly. Therefore, it is much better
to anticipate the problem by monitoring and proactively managing the disk space in your database.
The following example shows how disk space can be allocated on different devices and explains the terms Assigned, Free, and
Used. This helps you to understand how to monitor memory usage in the AMC user interface.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 12/27
1/19/2021
Create Databases
You can access the Create Database wizard using the add (create) button. This guided procedure allows you to create a device and
then create and assign a database to the device. The created database will be inserted into the master.sysdatabases table.
Your rst step is Create Device and it includes the following input parameters:
Device name
Path
Size
Next, you will be directed to the nal step Create Database, where the inputs include:
Database name
Size
Compression level
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 13/27
1/19/2021
In addition, the databases list provides a delete button which allows you to drop a chosen database. Not all databases have this
option available, as the following applies:
You cannot drop a database that is open for reading or writing by a user.
Con guration
Related Information
ATM
Memory Management
Server Con guration
BALDR
Workload Analyzer
ATM
Learn more about the Maintenance Windows, Pro les for Automatic Statistics Updates, Pro les for Automatic Table
Reorganization, and more.
The following sections provide detailed information about Automatic Table Maintenance:
ATM Windows
Related Information
The ATM Framework
Setup and Maintenance of the ATM Framework
ATM Pro les
ATM Windows
The SAP AMC for SAP ASE introduces a exible framework that allows you to set up and control automatic table maintenance (in
the following referred to as ATM). Considering the thousands of tables and indexes a typical SAP system creates on the database,
this framework dramatically reduces manual administrative activities and thus signi cantly reduces the TCO of the SAP on SAP
ASE solution.
Term Description
ATM pro le An ATM pro le de nes the objects that ATM should monitor as well as the maintenance activities that
should be executed once de ned thresholds are violated.
ATM window An ATM window de nes a time frame within which ATM can evaluate and maintain objects. ATM pro les
are assigned to ATM windows to control which objects are to be maintained in a certain time window and
which are not.
ATM queue Objects that require maintenance are stored in the ATM queue. ATM might not be able to maintain all
identi ed objects before an ATM window expires. In this case, ATM will continue to process queued
objects during the next ATM window.
ATM history Objects that were maintained by ATM are dropped from the ATM queue, but, at the same time activities
are logged in the ATM history. Thus, the ATM history allows monitoring of past ATM activities.
Job Scheduler ATM makes use of the job scheduler that is built into the SAP ASE DBMS.
The following graph provides a general overview of how ATM operates on an SAP ASE DBMS:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 15/27
1/19/2021
Set up ATM on SAP ASE DBMS
All objects of the ATM framework are thereby created in a private database named saptools.
The job scheduler (JS) executes a stored procedure that is created and scheduled by the SAP AMC, as de ned by ATM windows.
This stored procedure evaluates maintenance requirements that are de ned by ATM pro les, and, in a second step, it also
executes maintenance commands on identi ed objects.
Note
ATM is not supported for SAP ASE releases older than 15.5. In addition, system and proxy tables are excluded from automatic
maintenance.
Related Information
Default ATM Con guration
Default ATM Pro les
Default ATM Windows
Miscellaneous Settings
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 16/27
1/19/2021
Commands are executed with low priority
Note
If an SAP application database is found on the DBMS, special objects in that database are excluded from getting updated
statistics as known from best practices through additional exclusion pro les.
Triggers reorganization using sub-command compact if the percentage of forwarded rows exceeds 10%
Triggers reorganization with sub-command compact if the space utilization falls below 90%
Triggers rebuild of all indexes that have an index page cluster ratio below 90%
ATM pro les are applied repeatedly on an hourly basis until the ATM window expires.
ATM pro les are applied only once or until the ATM window expires.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 17/27
1/19/2021
Reorganization pro le All Tables – Remove Row Forwarding
Miscellaneous Settings
In the Miscellaneous tab of the ATM Con guration screen, you can con gure options such as the number of days the ATM history
should span, or you can set the log level.
Related Information
ATM Pro le Types
Maintaining ATM Pro les
Creating ATM Pro les
Note
A single object can qualify for multiple ATM pro les of the same type. You may for example want to de ne an ATM pro le that
initiates sampled statistics with low priority if data change exceeds 20%. But for the same set of objects, you can de ne
another ATM pro le that initiates full statistics with high priority if data change exceeds 50%.
2. Enter values for Pro le Metadata, Object Selection, and Maintenance Options.
Example
Choose the following values, if you want to initiate sampled update statistics on all index columns once data change of a table has
exceeded a value of 5 %:
Threshold Value 5%
Number of Consumers 1
There are two types of priorities that can be con gured for an ATM pro le. With the so-called maintenance priority, you de ne the
importance the requested maintenance operation has compared to maintenance operations de ned by other ATM pro les. With
the so-called SAP ASE execution priority, you specify the amount of CPU resources that should be assigned to the maintenance
operations while they are being executed.
Some applications, especially data warehouse applications, make use of SAP ASE’s partitioning feature. Depending on the
dimensions used to partition the data, some data partitions may undergo heavy data changes, while some other data partitions
may remain mostly or completely unchanged. In such cases, it does not make sense to update statistics on all partitions or to
reorganize the whole object. If you check Evaluate Threshold per Data Partition, ATM evaluates thresholds for each data and
index partition individually, and maintenance operations are also executed individually, as required by an individual data or index
partition
ATM Windows
With ATM windows, you de ne what type of table maintenance requirements and operations are evaluated and executed on
certain objects within a de ned time frame. You may, for example, want to ensure accurate optimizer statistics on certain objects
during regular business time, while update statistics on other, usually very large objects, should be maintained outside regular
business time. You may also want to move table or index reorganization into the weekend, while wanting to run update statistics at
any time.
Related Information
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 19/27
1/19/2021
Maintaining ATM Windows
Processing ATM Windows and Assigned ATM Pro les
Preparation Phase
Evaluation Phase
Execution Phase
Cleanup Phase
Assign ATM pro les to an ATM window or remove assigned ATM pro les from an ATM window
ATM windows are scheduled jobs in the SAP ASE job scheduler. Deactivation of an ATM window will unschedule the job for further
executions and, if appropriate, cancel current executions. Changing an ATM window will reschedule the respective job.
ATM windows can be con gured to repeatedly apply ATM pro les until the window expires. In this case, the ATM job will not
complete execution after the evaluation of maintenance requirements has nished and no objects remain in the ATM queue.
Instead, the ATM job will go into sleep mode and wake up once every hour to re-evaluate and re-execute maintenance
requirements continuously until the ATM window nally expires.
Temporary overlapping between ATM windows is permitted. In addition, a single ATM pro le can be assigned to multiple ATM
windows. Details on how ATM windows and assigned ATM pro les are processed are given in the section Processing ATM Windows
and Assigned ATM Pro les.
Note
ATM pro les of type ATM Pro les for Excluding Objects from ATM cannot be assigned to speci c ATM windows. Those ATM
pro les are valid for all ATM windows by de nition.
Preparation Phase
During this initial phase of an ATM window, ATM checks whether all con guration prerequisites are ful lled and whether ATM
pro les assigned to the ATM window are valid. In addition, con guration options are read for the ATM window (like, for example, its
expiration time or whether the evaluation and cleanup phase are going to be executed with low execution priority).
Evaluation Phase
A standard installation of SAP ERP 6 including Enhancement Package 5 creates around 75000 tables and around 90000 indexes
on the database. Nevertheless, as usually only certain scenarios of the SAP ERP are exploited in a speci c installation, only a small
amount of these objects is accessed.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 20/27
1/19/2021
The rst thing ATM does is to restrict the number of tables, indexes, and partitions that are going to be evaluated for maintenance.
This is done in the following way:
1. Determination of the minimum of all timestamps any assigned ATM pro le has been evaluated the last time.
2. Creation of a temporary table containing all user tables of any user database that were either touched since that time
(according systabstats), or that are currently opened by SAP ASE and have undergone at least one write operation.
3. Creation of additional temporary tables containing all indexes and data partitions of the tables that have been determined.
This mechanism will greatly restrict the number of objects that are evaluated in an SAP environment. The only exception here are
new ATM pro les and newly con gured systems, where ATM needs to initially evaluate all objects.
After the number of objects has been restricted, ATM reads all ATM pro les of type ATM Pro le to Exclude Objects from ATM and
type ATM Pro le for Special Objects and ags matching objects for either no maintenance or special maintenance.
The selection of objects for ATM pro les of type Standard ATM pro le is done by specifying a range of either row count or size.
Therefore, for all objects that are neither agged for no maintenance nor special maintenance, ATM determines the current row
count and size.
Up to now, the number of objects that ATM looks at has been reduced to a level where maintenance evaluation is reasonable. In
addition, all remaining objects have been agged according to the assigned ATM pro les for either no maintenance, special
maintenance, or standard maintenance.
ATM then processes all assigned ATM pro les of type Standard ATM pro le or ATM Pro le for Special Objects. Each object that
is agged for the respective type of ATM pro le and that matches the pro le object selection conditions is evaluated according to
the ATM pro le’s threshold conditions. Depending on the exact de nition of the ATM pro le, evaluation may happen on individual
data partitions and/or indexes instead of on the object as a whole. If de ned threshold are violated, maintenance for the object (or
one or more of its data partition or indexes) is initiated by generating a corresponding maintenance command and inserting it into
the ATM queue.
While ATM creates new entries in the ATM queue, it may happen that the same object or some of its data partitions or indexes are
already contained in the ATM queue. Such cases are handled as follows:
Drop entries from ATM queue that have a lower maintenance priority than the newly identi ed requirement
(including individual data partitions of the table).
Drop entries from ATM queue that have an equal maintenance priority, but whose planned maintenance operation is
less weighty* than the newly identi ed requirement (including individual data partitions of the table).
Drop individual data partitions from ATM queue that have a completely identical maintenance requirement than just
identi ed for the complete table.
The table is not already contained in the ATM queue with higher maintenance priority.
The table is not already contained in the ATM queue with equal maintenance priority but higher or equal
command weight*.
Note
Data partitions with higher maintenance priority (or identical maintenance priority but higher command weight) will
stay queued in parallel.
Drop entries from ATM queue that have a lower maintenance priority than the newly identi ed requirement
(including individual index partitions).
Drop entries from ATM queue that have an equal maintenance priority, but whose planned maintenance operation is
less weighty* than the newly identi ed requirement (including individual index partitions).
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 21/27
1/19/2021
Drop individual index partitions from ATM queue that have a completely identical maintenance requirement than
just identi ed for the complete index.
The index is not already contained in the ATM queue with higher maintenance priority.
The index is not already contained in the ATM queue with equal maintenance priority but higher or equal
command weight*.
Note
Index partitions with higher maintenance priority (or identical maintenance priority but higher command weight) will
stay queued in parallel.
Drop entries from ATM queue that have a lower maintenance priority than the newly identi ed requirement
(excluding other data partitions or the table itself).
Drop entries from ATM queue that have an equal maintenance priority, but whose planned maintenance operation is
less weighty* than the newly identi ed requirement (excluding other data partitions or the table itself).
The data partition or table is not already contained in the ATM queue with higher maintenance priority.
The data partition or table is not already contained in the ATM queue with equal maintenance priority but
higher or equal command weight*.
Drop entries from ATM queue that have a lower maintenance priority than the newly identi ed requirement
(excluding other index partitions or the index itself).
Drop entries from ATM queue that have an equal maintenance priority, but whose planned maintenance operation is
less weighty* than the newly identi ed requirement (excluding other index partitions or the index itself).
The index partition or index is not already contained in the ATM queue with higher maintenance priority.
The index partition or index is not already contained in the ATM queue with equal maintenance priority but
higher or equal command weight*.
Update statistics with sampling of 50% or full update statistics has more weight than update statistics with sampling of
20%.
reorg compact has more weight than reorg reclaim_space or reorg forwarded_rows.
reorg rebuild has more weight than reorg compact or reorg rebuild for an individual index.
Execution Phase
Execution of maintenance is now purely based on entries found in the ATM queue. If the ATM window has not yet expired and as
long as there are still entries remaining in the ATM queue, required maintenance operations are read from the ATM queue
according their maintenance priority and are being executed using the requested SAP ASE execution priority.
After maintenance has been executed on a certain object, it gets moved from the ATM queue into the ATM history. Runtime
measurements and the exact maintenance command are recorded in the ATM history for later analysis.
If no objects are remaining in the ATM queue, but the ATM window is con gured to repeatedly apply ATM pro les and the ATM
window has not yet expired, the ATM window will go into sleep mode until exactly one hour has elapsed since the last evaluation.
Cleanup Phase
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 22/27
1/19/2021
Before an ATM window completes execution, old data is deleted from the ATM history and ATM log as con gured through the SAP
AMC.
Memory Management
Memory Management allows you to monitor and con gure server parameters associated with Memory Usage. When you open the
functionality, you see an interactive chart representation of the parameters that contribute to the total logical memory of the
server. You can then switch to the table representation of the parameters by either switching tabs or selecting the parameter from
the chart.
By specifying the unit of the parameter, you get a range (maximum and minimum) and a short description of the parameter, which
helps you to decide on a valid new value.
Depending on the type of parameter (static, dynamic, read-only), the newly con gured values may not be displayed until you
restart your server.
Prerequisites
The functionality performs a check to see if stored procedure sp_con gure_amc exists on saptools database. If the stored
procedure is missing, it attempts at installing it.
To change the database server con guration, you need a database user with sufficient privileges. While most database
con guration parameters require an sa role, some require an sso role. For more information, see section Required Authorizations.
Get an overview of the con guration parameters by group, their current values, their non-default value settings, the value to which
they have most recently been set, and the amount of memory used by this setting. It only displays the parameters whose display
level is equal to or lower than yours.
By specifying the unit of the parameter, you get a range (maximum and minimum) and a short description of the parameter, which
helps you to decide on a valid new value.
Depending on the type of parameter (static, dynamic, read-only), the newly con gured values may not be displayed until you
restart your server.
Prerequisites
Depending on your role you are authorized to view or change different con guration parameters. For more information see
Required Authorizations.
Furthermore, the Server Con guration also performs a check to see if stored procedures sp_con gure_amc, amc_con g exists on
saptools database. If the stored procedure is missing, it attempts at installing it.
Related Information
Required Authorizations
Required Authorizations
To change the database server con guration, you need enough privileges. While most database con guration parameters require
sa role for System Administrators, some require sso role for System Security Officers.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 23/27
1/19/2021
Display information about parameters and their current values can be viewed by all users. While con guration parameters can
only be modi ed by System Administrators (sa role) and System Security Officers (sso role). All other parameters can be modi ed
by the System Administrators (sa role).
auditing No Yes
BALDR
BALDR is the monitoring system for AMC. It creates the saptools database in which the monitoring data is stored.
The saptools database requires 2 GB data memory and 200 MB memory log, which should be available on your SAP ASE
server. The standard SAP ASE data cache should also be more than 20 MB. The maximum nesting level should be more than 100.
Apart from this, you must have the Job Scheduler installed.
If this prerequisites are met, you can start installing BALDR using AMC. To do this, navigate to the topicscreen BALDR, which is
part of the Con guration menu and use the Setup BALDR button to install the instbaldr.sql script. You can view the
installation log in the Installation Log tab, located next to the Data Collector and Admin Procedure tab. After successful
installation, you can see the BALDR properties such as BALDR version, status, and con guration owner.
Below the BALDR properties you can also start the Job Scheduler, setup message log level, and Transfer Ownership.
Workload Analyzer
Workload analyzer option for the SAP Adaptive Server Enterprise allows you to capture, analyze, and replay a production workload
non-disruptively. You can then use the captured workload to diagnose problems, and understand and manage con guration
changes. Workload analyzer also allows you to replay captured workloads to measure and analyze application performance under
different conditions.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 24/27
1/19/2021
Identify client activity patterns, such as the number of requests per IP address.
Compare query and overall workload performance between different server con gurations.
Evaluate database upgrades and understand the bene ts from new options.
Pinpoint potential issues such as why certain queries are running slowly.
Test new features and run them against a captured workload to verify performance.
Capture the workload on the target server that is running the replay to compare performance against its original replay.
Prerequisites
To use the workload analyzer feature, make sure you have sa/sso role and meet these requirements:
Requirement Description
enable workload analyzer con guration parameter After obtaining the ASE_WORKLOADANALYZER license, enable the
feature by setting the enable workload analyzer con guration
parameter to 1 (on).
Repository server In addition to the SAP ASE server with the workload you plan to
analyze, install an additional server from which to perform your
workload replay and analysis. Having a separate nonproduction
server helps to avoid performance contention issues. The license for
the Workload Analyzer feature includes entitlement to use an
additional SAP ASE server for the purpose of hosting the Workload
Analyzer repository database. The SAP ASE server license provided
with the Workload Analyzer feature includes all the capabilities
required to support the Workload Analyzer repository database.
Semantic partitioning The sybcatdb database that is installed on the repository server
requires semanticsbased partitioning, a licensed feature.
Synchronizing SUIDs As part of the overall server and database environment, the replay
server and the copy of the application database on that server —
that is, the database used by the operations contained in the
captured workload that will be replayed, and not system databases
such as master or model, or from other databases that might reside
on your SAP ASE server that you have loaded the application
database onto — should have the same characteristics as on the
source production server. The application login must be a user in
the application database, and the SUID for that user must be the
same in the master and application databases. This requirement is
not unique to replay. Synchronizing SUIDs is a common
administrative requirement that our customers often encounter any
time a databases is restored to a new server.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 25/27
1/19/2021
Requirement Description
Operating system logins Whenever you use this option, make sure to start both SAP ASE and
AMC using the same operating system login. AMC must be able to
read the pcap les that SAP ASE generates, and AMC creates the
output directories for the pcap les and SAP ASE must be able to
write to those directories. Because access to the directories and
les are automatically restricted to the operating system login that
creates them, AMC cannot perform a workload analysis unless
cockpit is running under the same operating system login as the
SAP ASE server.
Setting login default database Make sure to con gure the attributes of all logins that use the
application to explicitly be able to use the application database.
Furthermore, the Workload Analyzer tool also performs a check to see if table AMC_REPO_SERVER exists on saptools
database. If the table is missing, it asks to run Setup BALDR.
Note
For the process of setting up sybcatdb database for the rst time using the repository server wizard, the repository server
user must be the system administrator.
Using the Add button in the Repository Server tab, system administrators (sa/sso) can install the repository server if it is missing
in SAP ASE systems.
This wizard allows for database/transaction dump using either a manual or a pre-existing dump con guration. You can also save a
manual con guration and use that as a template for later dumps. The creation of the dump is handled by the Job Scheduler using
an immediate scheduled job.
Other options which are also provided include, cumulative (database) or standby access (transaction) checkboxes, as well as
compression level, number of stripes and veri cation method.
Prerequisites
The dump process is handled by two stored procedures which are delivered as part of BALDR. These are SP_ADM_DUMPDB and
SP_ADM_DUMPTXN.
In order to schedule a dump, this functionality requires an up and running Job Scheduler (JS Agent), as the dump procedure is
scheduled as a job.
Diagnostics
Related Information
ATM History
ATM Log
ATM Queue
ATM History
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 26/27
1/19/2021
Get an overview of all Automatic Table Maintenance (ATM) operations that have been executed by ATM in the past days and
weeks. This information allows you to ne tune your ATM con guration and to ensure proper behavior of ATM in the respective
application environment.
By selecting one of the records shown, the maintenance command that was executed is shown in the details page, as well as the
ATM pro le that initiated maintenance of the object.
By default, the ATM history spans 8 weeks. A different ATM history size can be con gured in the Miscellaneous tab of the
Con guration -> ATM Con guration screen.
Prerequisites
In order to see data on the ATM History screen, Automatic Table Maintenance must have been run.
ATM Log
ATM writes its own message log while evaluating maintenance requirements and nally executing maintenance operations. While
its main target group is SAP support, this message log can also help DBAs understand error conditions and performance related
issues.
By default, ATM logs for the last 14 days are kept. This number of days as well as the number of messages being written into the
ATM log can be con gured in the Miscellaneous tab of the Con guration -> ATM Con guration screen.
Prerequisites
In order to see data on the ATM Log screen, Automatic Table Maintenance must have been run.
ATM Queue
Automatic Table Maintenance (ATM) is executed in two phases. Phase 1 identi es objects that require maintenance according to
the de ned ATM pro le and put those objects into an ATM queue. Phase 2 nally execute maintenance, as de ned in the ATM
queue until the ATM window has expired or no entry can be found in the ATM queue.
If the ATM windows are too short to process all identi ed maintenance requirement, the ATM queue lls up and the required
maintenance operations are not executed. The Diagnostics -> ATM Queue screen allows you to monitor the current ATM queue.
By selecting one of the records shown, the maintenance command that is going to be executed is shown in the details page, as
well as the ATM pro le that initiated maintenance of the object.
Prerequisites
In order to see data on the ATM Queue screen, Automatic Table Maintenance must have been run.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=23374454&topics=144a0c46823749dca380f3c297… 27/27