Skip to content

Commit

Permalink
Improve user monitoring role creation chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 authored and Dmitri Popov committed Jan 15, 2025
1 parent 5125071 commit 56771d0
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions xml/article_sap_monitoring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -518,11 +518,22 @@ as a value for the <literal>aws_secret_name</literal> entry.
<sect2 xml:id="create-a-new-user-with-monitoring-role">
<title>Create a new user with the monitoring role</title>
<para>
Run the following commands to create a user with the monitoring roles
(the commands must be executed in all the databases):
Run the following commands to create a user with the monitoring roles. These commands must be executed in all the databases that are monitored. This means that if <literal>multi_tenant</literal> option is used, the <literal>SYSTEMDB</literal> database and all the tenants must have this monitoring user created.
For example, in a <literal>multi_tenant</literal> environment with <literal>PRD</literal> tenant run the next commands:
</para>
<screen>su - prdadm
hdbsql -u SYSTEM -p pass -d SYSTEMDB #(PRD for the tenant in this example)
# SYSTEMDB database
hdbsql -u SYSTEM -p pass -d SYSTEMDB
CREATE USER HANADB_EXPORTER_USER PASSWORD MyExporterPassword NO FORCE_FIRST_PASSWORD_CHANGE;
CREATE ROLE HANADB_EXPORTER_ROLE;
GRANT MONITORING TO HANADB_EXPORTER_ROLE;
GRANT HANADB_EXPORTER_ROLE TO HANADB_EXPORTER_USER;

# Disconnect from SYSTEMDB database
\q

# PRD database
hdbsql -u SYSTEM -p pass -d PRD
CREATE USER HANADB_EXPORTER_USER PASSWORD MyExporterPassword NO FORCE_FIRST_PASSWORD_CHANGE;
CREATE ROLE HANADB_EXPORTER_ROLE;
GRANT MONITORING TO HANADB_EXPORTER_ROLE;
Expand Down

0 comments on commit 56771d0

Please sign in to comment.