Configure a User Under the SRTAKEOVER Key
In preparation for maintenance tasks, you must configure a user in the local userstore under the SRTAKEOVER key.
Context
The SRTAKEOVER user requires the necessary privileges to import the repository content of the new version of the software during the takeover process.
Procedure
As <sid>adm configure a user in the local userstore under the SRTAKEOVER key. Use a public host name to access the corresponding SQL port of the System DB (<SystemDBsqlport>).
Execute this command on the primary and secondary systems:
hdbuserstore SET SRTAKEOVER <publichostname>:<SystemDBsqlport> <myrepouser> <myrepouser_password>
NoteThis configuration step should be performed only in the system database, not in every single tenant.
Create a <myrepouser> user with the necessary privileges to import the repository content as follows:
CREATE USER MY_REPO_IMPORT_USER PASSWORD MyRepoUserPW123;
GRANT EXECUTE ON SYS.REPOSITORY_REST TO MY_REPO_IMPORT_USER;
GRANT REPO.READ ON ".REPO_PACKAGE_ROOT" TO MY_REPO_IMPORT_USER;
GRANT REPO.IMPORT TO MY_REPO_IMPORT_USER;
GRANT SELECT ON _SYS_REPO.DELIVERY_UNITS TO MY_REPO_IMPORT_USER;
GRANT REPO.ACTIVATE_IMPORTED_OBJECTS ON ".REPO_PACKAGE_ROOT" TO MY_REPO_IMPORT_USER;
For example, for public host name "mypublichost" and system number "00", "MY_REPO_IMPORT_USER", and "MyRepoUserPW123" :
hdbuserstore SET SRTAKEOVER mypublichost:30013 MY_REPO_IMPORT_USER MyRepoUserPW123
The host name has to be the public host name of the host on which the command is executed and the port is the SQL port number of the system database.
For more information, see the Secure User Store (hdbuserstore) section in the SAP HANA Security Guide.
NoteIn a scale-out configuration, the command has to be executed on all hosts. If the password for the repository import user is changed, the password saved in the userstore also has to be changed.
설정 전/후 sr_takeover 수행 비교
[Before]
- Takeover finished successfully ~ done : 31초
- 6초 간격 * 5회 대기 후 진행
[After]
- Takeover finished successfully ~ done : 7초
※ Serviceguard에서 sr_takeover를 수행 후 수행 결과를 받아서 Log "(takeover_hdb): done." 출력하고 watchdog 이용해서 다음 단계로 진행 -> 즉, sr_takeover 수행 시간에 상기 SRTAKEOVER Key 적용이 영향을 줌
'Database' 카테고리의 다른 글
[HANA] Statistics server 관련 내용 (0) | 2020.06.23 |
---|---|
[HANA] Backlog관련 진행현황 조회 쿼리 작성 및 유의사항 (0) | 2020.06.15 |
[HANA] System Replication Parameter (0) | 2020.05.26 |
[HANA] Monitoring 시스템 - (수정) 실행하기 (0) | 2020.04.24 |
[HANA] Monitoring 시스템 - (수정) 구성하기 (0) | 2020.04.24 |