Using MaxDB
Using MaxDB
Contents:
◼ Sources of information in the new Database Studio tool
◼ Users in the MaxDB environment
◼ How MaxDB is used and how to respond to specific exceptions that may occur
◼ MaxDB database parameters
© SAP 2008
© SAP 2008
© SAP 2008
© SAP 2008
Using MaxDB
Topic 1: Overview of Database Studio
Topic 2: Important Sources of Information in Database Studio
Topic 3: MaxDB Users in the SAP Environment
Topic 4: Disk Areas for Data and Logs
Topic 5: Configuration Changes
Topic 6: DB FULL and LOG FULL Situations
Topic 7: Parameters
Topic 8: Tools for Exercises
© SAP 2008
© SAP 2008
◼ The icons in the header of the "Administration" tab page allow you to change the operational state of
the database managed directly.
◼ You can access many important Database Studio functions via the hyperlinks on the "Overview" tab
page.
◼ When important warning messages are output, they are also displayed here with a hyperlink to the
relevant Wizard.
• These messages indicate problems such as:
- Incomplete data backups
- Defective or missing indexes
- and so on
◼ To display detailed capacity information, extend the screen area containing the bars by choosing the
button on the right.
◼ To hide the left-hand tree structure listing the servers and databases and display information across
the entire screen, double-click the "Administration" tab page, for example.
◼ You can display many additional special screen areas from the status bar area at the bottom right of
the screen. The screenshot shows the small screen area from which you can open a console window
listing the dbmcli commands used in Database Studio. For more information about how to activate
these special screen areas, see Unit 5.
◼ The various tab pages in the administration area are explained on the following slides.
© SAP 2008
◼ The "Task Manager" tab page provides an overview of all tasks currently running and all operational
states currently active in the database.
◼ This task list can be restricted; here, only active tasks are displayed.
◼ You can also display detailed information about the internal processes of the tasks; this is explained
in more detail on the next slide.
◼ To update the list, choose Refresh in the upper screen area.
◼ You can also activate detailed time measurement for the different internal database processes.
• Note that activating this detailed time measurement increases the load on the database instance
since the times must be determined and calculated. Depending on the general database load, this
may have a negative effect on system performance. The higher the load on the instance, the more
performance is affected. For this reason, time measurement should be activated only if required,
and should be used for longer periods in test and development systems only. In general, larger
systems are barely affected.
© SAP 2008
◼ In this screenshot, we see the results of active time measurement in the "Details for Task 554": The
average write time is 1.5 ms, which is an excellent value. Values below 10 ms usually ensure good
database performance. It is therefore important to calculate these values, especially when
performance problems exist.
◼ You can also display the thread layout here, as well as thread statistics.
© SAP 2008
◼ The "Activities" tab page lists a wide range of statistical operating data for MaxDB. Much of this
data is recorded only for logging purposes.
◼ More useful to us, is the lock escalation and log queue overflow data (Log I/O Queue Overflow).
• The value for Log I/O Queue Overflow should be zero, if possible. If this is not the case, the log
disks may not be performing adequately or the log may have an extremely high load for a short
period. In response, you can try to expand the buffer by increasing the LogQueueSize parameter
value, but this will not improve the poor COMMIT times.
© SAP 2008
◼ The "Caches" tab page shows the important cache areas of MaxDB and the corresponding hit rates.
◼ The hit rate for the data cache should preferably exceed 98%. The higher the value, the better.
◼ For the catalog cache, the recommended hit rate is 85% or higher, even though lower values do not
mean that more I/O is required (as with the data cache, for example). For this reason, the catalog
cache does not have a major impact on the overall performance of the database.
◼ The underlying values are calculated as soon as the database is started. Once the database has been
running for some time, the values are strongly averaged and may no longer reflect any temporary
changes in the database. To detect these, you have to use DBAnalyzer (see Unit 6).
© SAP 2008
◼ In Database Studio, you can also obtain more detailed information by executing the dbmcli console
commands directly.
◼ The INFO commands shown here provide additional information.
◼ You can also execute other dbmcli commands here, without having to enter passwords.
Using MaxDB
Topic 1: Overview of Database Studio
Topic 2: Important Sources of Information in Database Studio
Topic 3: MaxDB Users in the SAP Environment
Topic 4: Disk Areas for Data and Logs
Topic 5: Configuration Changes
Topic 6: DB FULL and LOG FULL Situations
Topic 7: Parameters
Topic 8: Tools for Exercises
© SAP 2008
© SAP 2008
◼ In addition to the data generally displayed in the administration area, you can access the raw data
using the commands listed under "Database Server".
◼ These are the same commands that you can execute on the console using x_cons or dbmcli.
◼ The screenshot above shows the output of the x_cons <SID> show dev_io command. The AvgRead
and AvgWrite columns are of most interest. Using this data, you can calculate device-related I/O
times and thus identify hardware problems with individual disks or disk areas. As of MaxDB 7.7.04
and higher, this command is available for both Unix and Windows (in earlier versions, it was not
available for Windows).
© SAP 2008
◼ All MaxDB diagnosis files are listed in the database tree below the administration user.
◼ The most important diagnosis file to point out here is "knlMsg", which is displayed under "Database
Messages".
◼ Errors are collected under "Database Errors".
© SAP 2008
◼ You can find SQL content of the database in the "Tables" folder under the respective owner of the
SQL table.
Using MaxDB
Topic 1: Overview of Database Studio
Topic 2: Important Sources of Information in Database Studio
Topic 3: MaxDB Users in the SAP Environment
Topic 4: Disk Areas for Data and Logs
Topic 5: Configuration Changes
Topic 6: DB FULL and LOG FULL Situations
Topic 7: Parameters
Topic 8: Tools for Exercises
© SAP 2008
© SAP 2008
◼ In an SAP NetWeaver system environment with MaxDB, the following operating system users are
important:
◼ The root user is required for SAP installation tools. Internally, these tools switch to the <sid>adm
or sdb users.
◼ The sdb user is the owner of the files in the "/sapdb" directory. This is not a logon user. In some
application areas (such as liveCache), the "<sid>adm" user has installation and administration rights.
◼ <sid>adm is the owner of all SAP NetWeaver program files. In the UNIX environment, all
activities at operating system level should be carried out with <sid>adm. Since this user is assigned
to the SDBA Unix group, MaxDB programs can executed by this user.
◼ In Windows, service administration starts the database and NetWeaver instances with the
SAPService<SID> user.
◼ The usual security guidelines apply for passwords.
© SAP 2008
Operating System
• root
• sdb
• <sid>adm
• SAPservice<SID>
Database Administration
• control
SQL User Area
• superdba • superdba
• domain • domain
Xuser • sap<sid>
data
© SAP 2008
Parameter Set 1
USER SESSION
of the OS user USERKEY DEFAULT Set 2
USERID sap<sid> c Set 3 …
dbmcli –U w PASSWORD *** CONTROL w
Repeat password *** ******** SUPERDBA
SERVERDB E20 ******** *****
SERVERNODE ws0815 E20 *****
User Parameter Sets
SQLMODE SAPR3 ws0815 E20
CACHELIMIT -1 INTERNAL ws0815
TIMEOUT 0 -1 INTERNAL
ISOLATION 0 0 -1
XUSER Data ENCRYPTION NO 0 0
NO 0
NO
Client
Co
Connect using hidden logon data. nn
Command is as follows: ec
t
dbmcli –d E20 –u SUPERDBA,<PWD> MaxDB Server
© SAP 2008
◼ Using the XUSER tool, you can store user data as parameter sets by specifying a user key
(USERKEY). You can use this key to access the user data when calling up the Database Manager
CLI, SQL Database Connectivity (SQLDBC), or when starting the SAP system or old C/C++
precompiler.
◼ The XUSER program manages up to 32 parameter sets for each operating system user.
◼ The parameter sets are stored in the .XUSER.62 file in the home directory of the operating system
user. In Windows, they are stored in the Windows Registry.
◼ The first parameter set is called DEFAULT and cannot be renamed. If you do not specify a key
when logging on to the database, the system uses this parameter set by default in the XUSER tool.
◼ For an SAP NetWeaver database, DEFAULT denotes the sap<sid> user. This means that the work
processes can log on to the database without an operator.
◼ The Computing Center Management System (CCMS) within SAP NetWeaver also requires the "w"
and "c" keys.
◼ SERVERDB is the name of the database instance (<SID>).
◼ SERVERNODE indicates the server on which the database instance is installed.
◼ As of MaxDB 7.6 and higher, you can also encrypt the network connection between the client
(application server, dbmcli, and so on) and the X Server of the database. To do so, you currently still
require additional SAP encryption libraries.
Options Actions
◼ -U User key ◼ list List
◼ -u User name ◼ set Set changes
◼ -d Database name ◼ clear Delete entry
◼ -n Server name
◼ -S SQL mode
◼ -t Timeout
◼ -I Isolation level
Example:
xuser –U DEFAULT –u sap<sid>,passwd –d <SID> -n <host> -S SAPR3 set
© SAP 2008
◼ The most important options of the XUSER tool are listed here.
◼ The example shows how to gain access without a complete set of data.
◼ INTERNAL
◼ ORACLE
◼ (SAPR3)
© SAP 2008
◼ MaxDB recognizes different SQL dialects. This is especially useful for porting existing, internally
developed software since it reduces the work involved in switching to MaxDB.
◼ Users can select the SQL mode (example: MaxDB database tool, Database Studio).
◼ The default SQL mode is INTERNAL (internal system definition).
◼ Standard language SQL92 is supported with MaxDB-specific enhancements.
◼ Other SQL modes receive only limited support with regard to DDL statements.
◼ The "SAPR3" SQL mode is a copy of the Oracle SQL mode, which the SAP NetWeaver system
uses to access MaxDB in almost all cases.
◼ As an alternative to the
traditional logon procedure, CREATE USER <sid>adm
an operating system user can IDENTIFIED EXTERNALLY AS ‘<sid>adm’
also be logged on to the sqlcli -d <SID> -u <sid>adm “select * from users”
database as a database user.
◼ In this way, users can log on
ALTER USER sap<sid>
to the database using the IDENTIFIED EXTERNALLY AS ‘<sid>adm’
operating system
authentication or the sqlcli -d <SID> -u sap<sid> “select * from users”
Kerberos and Secude
security protocols.
◼ Database users can also be
deactivated so that work in
the database is not disrupted.
ALTER USER sap<sid> DISABLE CONNECT
© SAP 2008
Using MaxDB
Topic 1: Overview of Database Studio
Topic 2: Important Sources of Information in Database Studio
Topic 3: MaxDB Users in the SAP Environment
Topic 4: Administration of Disk Areas for Data and Logs
Topic 5: Configuration Changes
Topic 6: DB FULL and LOG FULL Situations
Topic 7: Parameters
Topic 8: Tools for Exercises
© SAP 2008
© SAP 2008
◼ Before the database is next restarted, you can extend it by the number of data volumes displayed.
◼ The size of the data volumes is freely definable, but we recommend that you keep all volumes the
same size. If volume sizes vary, this can have a negative impact on the overall performance of the
database.
◼ You can extend the database by double-clicking the grayed-out entry in the volume list or choosing
"New".
◼ You can display the properties and settings of a volume by double-click it.
© SAP 2008
◼ You add log volumes in the same way as data volumes (double-click the grayed-out entry or choose
New).
◼ There are usually one or two log volumes. More volumes can be added but are not required.
◼ More information about the status of the log is listed on this screen. When you choose the
hyperlinks, you are often directed to the relevant Wizards for defining settings such as automatic log
backups.
◼ Be very careful when deactivating redo log management since business data can be lost
permanently.
Using MaxDB
Topic 1: Overview of Database Studio
Topic 2: Important Sources of Information in Database Studio
Topic 3: MaxDB Users in the SAP Environment
Topic 4: Administration of Disk Areas for Data and Logs
Topic 5: Configuration Changes
Topic 6: DB FULL and LOG FULL Situations
Topic 7: Parameters
Topic 8: Tools for Exercises
© SAP 2008
Change the path data for existing data and log OFFLINE
volumes
© SAP 2008
◼ Increasing the size of the data or log area: the relevant actions are available in Database Studio:
• You can perform these actions in both the ONLINE and ADMIN operational states.
• In the ONLINE operational state, you can only add a specific number of volumes. Database
Studio displays all available volumes as grayed-out entries.
◼ Changing the properties of existing volumes:
• You can edit the definitions of existing volumes in the OFFLINE operational state.
• In this way, for example, you can adjust the path of a volume accordingly after moving it from
one directory to another.
• You cannot change the size of existing volumes. The only way you can do this indirectly is by
separating and deleting the data volume and then creating it again in the size required.
dbmcli –U c …
db_deletevolume [DATA] [ NAME <vol_name> | [ID] <vol_no> ]
© SAP 2008
◼ This option enables you to change the size of data volumes indirectly: You first have to create the
larger data volumes required and then delete the existing smaller ones. In this way, you can
gradually adjust the size of all data volumes in the ONLINE operational state, by transferring the
data from the old volumes to the new volumes.
◼ Using the param_getvolsall and param_getvolume <vol_no> DATA commands, you can determine
the "vol_no" or "vol_name" of the volume to be deleted.
© SAP 2008
◼ Before you can separate and delete a volume, there must be enough space for this data in the other
data volumes.
◼ Moving large datasets obviously affects system performance, the extent to which depends on how
the underlying hardware handles the data streams.
◼ Furthermore, the data is still transferred through the data cache of the database, which can lead to
displacements. There are plans to used different memory structures outside the data cache for such
transfers in future.
◼ For this reason, actions of this kind in production systems should be carried out at times of lower
workload if possible.
© SAP 2008
◼ Setting the operational state of the database to OFFLINE enables you to move the data volumes.
◼ Before the database is next restarted from OFFLINE to ADMIN, the affected volumes must be
moved to their new positions manually.
© SAP 2008
◼ When you change the log mode from non-mirrored to mirrored and vice versa, the process is
similar. The mirrored log volumes are defined or deleted.
◼ Changing the log mode from non-mirrored to mirrored or vice versa does not interrupt the backup
history.
◼ The database is restarted during this process.
◼ The subsequent process of mirroring the logs can take a while, depending on the size of the log
volume to be formatted.
◼ The general recommendation is that you use log mirroring for smaller systems only.
© SAP 2008
◼ If installations are used for test purposes only, it is possible to set the log mode to overwrite mode.
In this mode, the log entries are not backed up before they are overwritten.
◼ You have to decide whether the loss of data in the development system is acceptable if logs are not
backed up. If not, you should also run these systems in normal log mode, with or without mirroring.
◼ Database instances that run in OVERWRITE log mode only use the entries in the log volume to roll
forward open transactions if a problem occurs and a restart is required.
◼ Therefore, the log area selected in OVERWRITE mode should also be large enough to
accommodate the log entries of open transactions. This applies especially to content server
installations for which the log area also has to log changes made to large (binary) objects. This
means that the log area must be at least the same size as the largest object to be changed in the
database. Otherwise, a LOG FULL situation occurs even though OVERWRITE mode is set. When
objects are changed, only the after images are written to the log area.
◼ You can change the log mode in Database Studio by choosing "Administration" and the Log Area
tab page. A Wizard helps you in this process.
◼ You can switch between overwrite mode and normal mode here. When you do this, the database is
restarted.
◼ This also affects the backup history since logs are no longer backed up in overwrite mode and the
only way to perform a recovery is a restore of an existing data backup.
© SAP 2008
◼ If you change the log mode to overwrite mode, logs can no longer be backed up and data can be
recovered up to the last completed transaction in exceptional cases only.
◼ For this reason, an additional line is entered in the backup history after every data backup to indicate
a break in the backup history (HISTLOST).
◼ Due to these HISTLOST entries, only complete backups are still possible when you start backups,
which ensures that a new backup history is started.
◼ For more information about the backup history, see Unit 4.
© SAP 2008
◼ You also have the option of deactivating log management completely; however, this must be used
with caution.
◼ Log information is no longer written to the log volume; only a small amount of snychronization
information is logged.
◼ Furthermore, time-controlled SAVEPOINTs are no longer executed.
◼ Also take into account that when the database is restarted after a crash, it returns to the status it had
at the last SAVEPOINT and all open transactions are also rolled back.
• It is no longer possible to roll transactions forward.
• This means that you lose information from completed transactions since their results are only
stored in the I/O buffer cache between the SAVEPOINTs and lost when the database crashes.
• Normally, a final SAVEPOINT is written during the database is shut down.
• If db_stop is executed using dbmcli, a SAVEPOINT is not executed.
• You activate and deactivate log management in the ADMIN operational state.
© SAP 2008
◼ After successful deactivation, the log status "Redo log management is deactivated" is displayed.
◼ Deactivating log management affects the backup history in the same way as automatically
overwriting the log. A Histlost entry is generated.
◼ Note the risks of deactivating log management, which are explained on the previous pages.
© SAP 2008
◼ The update tools of MaxDB (here SDBUPD) automatically carry out this important update of
system tables as a final activity. Only with SDBINST are the system tables not updated
automatically; in this case, a manual update is required.
◼ The system tables can be updated and loaded at any time when the database is ONLINE.
© SAP 2008
◼ You cannot transfer user information to the process using Database Studio. These entries are
determined internally.
Using MaxDB
Topic 1: Overview of Database Studio
Topic 2: Important Sources of Information in Database Studio
Topic 3: MaxDB Users in the SAP Environment
Topic 4: Administration of Disk Areas for Data and Logs
Topic 5: Configuration Changes
Topic 6: DB FULL and LOG FULL Situations
Topic 7: Parameters
Topic 8: Tools for Exercises
© SAP 2008
Data
Log
© SAP 2008
◼ FULL situations can occur in both the data and log areas.
◼ Important: With smaller database installations, DB FULL situations can already occur before
100% of the log is used since parts of the log and data areas are reserved and cannot be used by the
user tasks. The reserved areas ensure, for example, that the database can be still shut down if a LOG
FULL situation occurs.
◼ The tasks resume only after the DB FULL or LOG FULL situation has been rectified.
◼ The analysis is usually performed in Database Studio directly where the results are clearly
displayed. If this is not possible, the analysis can be performed using the process list and the
Database Messages file. These are shown on the following slide.
ACTIVE
TASKS
© SAP 2008
◼ In the process list of active tasks (ACTIVE), you can identify which tasks have stopped because the
log area is full and why.
◼ The process list (TASKS) shows which actions are being carried out in the database.
◼ In this example, the user process (T82: User) has stopped due to a DB FULL situation.
◼ Using APPL-pid, you can find out who caused this situation in the SAP NetWeaver system.
◼ It may have only been caused by the person who happened to request the last free database page.
ACTIVE
TASKS
© SAP 2008
◼ You can also display this data on the database server directly using
x_cons <SID> show tasks
or
x_cons <SID> show active
© SAP 2008
◼ You can also identify DB FULL and LOG FULL situations by searching for relevant messages in
Database Messages.
◼ Warnings of a DB FULL situation are already output here earlier.
© SAP 2008
© SAP 2008
◼ In the same way, you can display a list of suspend reasons using x_cons <SID> show SUSPENDS.
◼ The analysis shows the situations in which the kernel was suspended since it started and for how
long. The data is converted into a percentage.
◼ The database spent almost 28% of its short operating time waiting for entries to be written to the log
The remaining time was spent waiting for work and writing data.
The database instance simply waits for new disk space to be added.
© SAP 2008
LOGSAVE.001
LOGSAVE.002
LOGSAVE.003
BACKUP
Log 2 Log 1
◼ Frees the position in the existing log volume of log entries for
the new volume
© SAP 2008
◼ After learning about how you can add data volumes, you might think that adding an additional log
volume can rectify a LOG FULL situation.
◼ Unfortunately, this does not help: The current write position in the log volume is variable and
located anywhere in the used log volume when the LOG FULL occurs. The log entries are written
cyclically. This means that you cannot add the new log volume directly at the current write position
(physically or logically), but at the end or beginning of the cycle to continue writing seamlessly.
◼ The only way to rectify the LOG FULL situation is to perform an interactive log backup of the
entire log area. Only then can you integrate and use the new log volume.
◼ If no new log volume is to be integrated, you can also just reactivate the automatic log backup with
a functioning backup medium.
◼ To perform any of these backup actions, one prerequisite must be met: An intact backup history
is required with an initial, complete data backup and any subsequent incremental data backups.
◼ If you create a new database instance in test databases and fill the entire log area immediately, the
first solution described here may resolve the problem. In this case, the current write position is
exactly where the log volume is physically connected, which means the new log volume can be
integrated directly. However, this is a special case.
Using MaxDB
Topic 1: Overview of Database Studio
Topic 2: Important Sources of Information in Database Studio
Topic 3: MaxDB Users in the SAP Environment
Topic 4: Disk Areas for Data and Logs
Topic 5: Configuration Changes
Topic 6: DB FULL and LOG FULL Situations
Topic 7: Database Parameters
Topic 8: Tools for Exercises
© SAP 2008
◼ For more information, see SAP Note 1139904 (FAQ: MaxDB/liveCache kernel parameters).
◼ See also SAP Note 1004886 (MaxDB Version 7.7 parameter recommendations)
◼ SAP Notes with similar parameter recommendations are available for all MaxDB database releases;
for example, MaxDB 7.6: SAP Note 814704 (MaxDB Version 7.6 parameter settings for
OLTP/BW).
To reduce TCO, the number of parameters has been reduced and the related
functions automated.
© SAP 2008
◼ The software is shipped with the optimal values for the respective operating system platform.
◼ Sizes are specified in data pages or kilobytes. For more information about these units, see the
parameter descriptions, for example.
◼ Many of the existing parameters are calculated automatically based on predefined dependencies and
relationships between parameters, which means they do not have to be set explicitly.
© SAP 2008
© SAP 2008
© SAP 2008
◼ A useful way to find parameters is provided in the new View All area in combination with the Filter field. You
can enter fragments of parameter names and Database Studio then displays all parameters that contain this
fragment.
◼ Alternatively, you can obtain the new parameters names by executing the param_getfull dbmcli command with
the old parameter name from MaxDB <= 7.6:
dbmcli -U c param_getfull MAXLOCKS
OK
int
2500
4040
ID MaxSQLLocks
CHANGE OFFLINE
INTERN NO
MANDATORY YES
CLEAR NO
DYNAMIC NO
CASESENSITIVE NO
DEVSPACE NO
MODIFY YES
GROUP GENERAL
DISPLAYNAME
VALUESET
MAX
MIN
INSTANCES
SCOPE INSTANCE
DEPRECATEDID MAXLOCKS
USERDEFINED NO
CLASS GENERAL TRANSACTIONS SYNCHRONISATION
LASTKNOWNGOOD 4040
ACTIVEVALUE 4040
…
© SAP AG ADM515 3-52
Changing Parameters
© SAP 2008
◼ Database Studio allows you to read and change parameter values. Some changes take effect
immediately, while others are applied only after the database instance is restarted from the
OFFLINE operational state.
◼ With the Database Manager CLI, you can change parameters directly or in a parameter session. In a
parameter session, all changes are made valid with a COMMIT or invalid (reset) with an ABORT.
param_startsession Starts a parameter session
param_commitsession Ends the session and saves the new values
param_abortsession Terminates the session and discards the changes
param_getvalue Displays a parameter value
param_put Changes the value of a parameter
param_restore Resets the parameters to the previous values
help param Displays additional commands
• After making changes to parameters, you can check the new values using param_checkall. The
system recalculates dependent parameters at this point. If param_checkall was not executed, the
"Shareddynpool too small" error may be displayed when the database is next restarted.
◼ Database Studio performs this parameter check (param_checkall) automatically.
◼ The parameter file is stored in binary format: <independent_data_path>/config/<database>
◼ A backup is created every time a parameter is changed: <database>.<number>
◼ With the param_restore <generation number> dbmcli command, you can restore a parameter to
previous versions (generation numbers). Note that any volumes, for example, added in the meantime
must be then added manually.
© SAP 2008
dbmcli –U c …
param_put [<durability>] <parameter_name> <new_value> [<comment>]
© SAP 2008
© SAP 2008
◼ Ifrequired, you can check the current configuration of database parameters using
Database Analyzer.
◼ It displays a list of recommended parameter changes.
◼ For more information about checking parameters using DB Analyzer, see SAP Note
1111426.
◼ The "dbanalyzer.cfg" files in the SAP Note provide updated parameter
recommendations.
◼ The "param_getfull" dbmcli command displays the old and new parameter names.
© SAP 2008
◼ To display the old and new parameter names: dbmcli – U c param_getfull <parameter name>
◼ Example:
dbmcli – U c param_getfull CACHE_SIZE
…
ID CacheSizeMemory
…
DEPRECIATEDID CACHE_SIZE
…
Using MaxDB
Topic 1: Overview of Database Studio
Topic 2: Important Sources of Information in Database Studio
Topic 3: MaxDB Users in the SAP Environment
Topic 4: Disk Areas for Data and Logs
Topic 5: Configuration Changes
Topic 6: DB FULL and LOG FULL Situations
Topic 7: Database Parameters
Topic 8: Tools for Exercises
© SAP 2008
set PYTHONPATH=G:\sapdb\<SID>\db\lib\python2.3
cd \d %PYTHONPATH%
◼ Additional options:
© SAP 2008
© SAP 2008
Unit: 2
Topic: Using MaxDB
2-4 Test the XUSER function after changing the password of the “SAP<SID>” user.
2-4-1 In Database Studio, log on to the SQL Editor as the “SAP<SID>” user.
Change the password of the “SAP<SID>” user with the SQL command
alter password <current> to <new>.
2-4-2 Retest the automated logon procedure using
dbmcli -U c –USQL DEFAULT sql_execute “select * from users“.
2-4-3 Adjust the XUSER data to match the new password and test again.
2-6 Using Database Studio, check the configuration of the <SID> database.
2-6-1 Where are the data and log volumes located?
2-6-2 Where are the instance-dependent software for your instance and the
instance-independent software stored?
2-6-3 Where are the configuration and log files located?
2-10 Determine important installation data for the database instance using dbmcli.
2-10-1 Use dbmcli to determine the IndepDataPath and IndepProgPath paths.
2-10-2 What is the INSTROOT for your database instance (determine using
dbmcli)?
Unit: 2
Topic: Using MaxDB
2-4 Test the XUSER function after changing the password of the “SAP<SID>” user.
2-4-1 In Database Studio, open a new SQL Editor. With the new SQL Editor, you
can also specify a new connect user for logging on later. Use the
“sap<sid>” user here. With the SAP<SID> user, execute the command
alter password <current> to <new> SQL . Alternatively, you can also use
the dbmcli command:
dbmcli -U c –USQL DEFAULT sql_execute “alter password <current> to
<new>“.
2-4-2 It should no longer be possible to connect using the old XUSER data.
2-4-3 After you have made the modifications with the XUSER tool, as described
previously, the automated connection to the database functions again. You
have to adjust the XUSER data using the XUSER tool, so that the
DEFAULT entry includes the new “SAP<SID>” password.
2-6 Using Database Studio, check the configuration of the <SID> database.
2-6-1 Data volumes: G:\sapdb\<SID>\sapdata\...
Log volumes: G:\sapdb\<SID>\saplog\...
2-6-2 Instance-dependent software: G:\sapdb\<SID>\db\...
Instance-independent software: G:\sapdb\programs\...
2-6-3 Configuration files: G:\sapdb\data\config\...
Cross-instance logs: G:\sapdb\data\wrk\...
Instance-dependent logs: G:\sapdb\data\wrk\<SID>\...
2-10 Using dbmcli, collect important installation data for the database instance.
2-10-1 Use the following dbmcli commands:
dbmcli dbm_getpath IndepDataPath
and
dbmcli dbm_getpath IndepProgPath.
2-10-2 Command for collecting information:
dbmcli -U c dbm_version INSTROOT.
2-12-2 In Database Studio, go to the “Administration” tab page for your instance
and choose Data Area. Select an unused but prepared volume entry and
choose New. Set up this volume in the G:\sapdb\<SID>\sapdata\
subdirectory.
2-12-3 After the last reserved volume has been used, the value of the
MaxDataVolumes parameter automatically increases by one when the
volume is set up. However, this parameter change only takes effect when
the database is restarted. The same applies to MaxLogVolumes.
With MaxDB 7.7.04, however, memory performance is no longer affected
if a high value or the maximum value of 255 is set for this parameter.
2-12-4 To delete a volume, select it and choose Delete.
2-13 Fill the database and simulate a DB FULL situation.
To display additional options, use the x_python filldb.py –help command.
2-13-1 Perform the analysis in the instance tree of Database Studio by selecting
the CONTROL user and choosing
Database Server → ACTIVE.
Alternatively, you can use the console with
dbmcli -U c show active.