You are on page 1of 3

2.

1 Prerequisite Checks

2.1.1 Account on the SAP Cloud Platform

Please logon to the SAP Cloud Platform (henceforth, SCP) Neo account cockpit using the URL and User Id
provided in the Welcome mail.
Welcome Mail sample:

SAP Cloud Platform Cockpit:

Note: For initial setup of Subaccount please refer to Initial_Setup_Subaccount.pdf attached to Note 2460667

2.2 Setting up the Database

2.2.1 Create DB Users/Schemas


Create the following five Database Users/Schemas using the guidelines mentioned here.

5
The first step Create a Database Administrator User n SAP HANA
DB Administrator.

DB User/Schema Use Release Tag


GSTR1DB Database schema for the DCS GSTR1 Application #Initial

COMMDB Database schema for the DCS Communications Application #Initial

GSTR2DB Database schema for the DCS GSTR2 Application #Initial

GSTRMDCDB Database schema for the DCS Master Data and Configuration #DCS130
Application

ITC04DB Database schema for the DCS ITC-04 Application #DCS140

At the end of this step, there would be six DB users (Administrator, plus five application DB users listed in the
table above).

2.2.2 Change Initial Passwords

For each of the newly created DB users, change the initial password:
In the SAP Cloud Platform account cockpit, choose SAP HANA / SAP ASE -> Databases & Schemas.
Click on the DB/Schema ID column, Click on SAP HANA Web-based Development Workbench.
Login with the 5 database user credentials, one-by-one, and change the initial password.

Note on DB user passwords:


Please make a note of the DB user passwords. These are used to make data source bindings.

2.2.3 Define Lifetime Validity for DB Users

In the SAP Cloud Platform cockpit, choose SAP HANA / SAP ASE -> Databases & Schemas.
Click on the DB/Schema ID column, Click on SAP HANA Web-based Development Workbench.
Use the SAP HANA DB administrator user credentials to log in.
Choose the Catalog tab.
Click the Open SQL Console icon.
Run the following SQL statements:
ALTER USER COMMDB disable password lifetime;
ALTER USER GSTR1DB disable password lifetime;
ALTER USER GSTR2DB disable password lifetime;
ALTER USER GSTRMDCDB disable password lifetime;
ALTER USER ITC04DB disable password lifetime;

2.2.4 Give Authorization/Roles for DB Users

In the SAP Cloud Platform cockpit, choose SAP HANA / SAP ASE -> Databases & Schemas.
Click on the DB/Schema ID column, Click on SAP HANA Web-based Development Workbench.

6
1. #Initial Giving Access to GSTR1DB
For MDC DB User, Login as SYSTEM user. Choose the Catalog tab. Click the Open SQL Console icon.
Run the following SQL statements:
GRANT SELECT,UPDATE,EXECUTE ON SCHEMA _SYS_REPO TO "GSTR1DB";
GRANT MODELING TO GSTR1DB;
GRANT SELECT,UPDATE,EXECUTE ON SCHEMA _SYS_BIC TO "GSTR1DB" WITH GRANT OPTION;
GRANT EXECUTE ON REPOSITORY_REST TO GSTR1DB WITH GRANT OPTION;

2. #Initial Giving Access to GSTR2DB


For MDC DB User, Login as SYSTEM user. Choose the Catalog tab. Click the Open SQL Console icon.
Run the following SQL statements:
GRANT SELECT,UPDATE,EXECUTE ON SCHEMA _SYS_REPO TO "GSTR2DB";
GRANT MODELING TO GSTR2DB;
GRANT SELECT,UPDATE,EXECUTE ON SCHEMA _SYS_BIC TO "GSTR2DB" WITH GRANT OPTION;
GRANT EXECUTE ON REPOSITORY_REST TO GSTR2DB WITH GRANT OPTION;

3. #DCS130 : Data migration from ACRSCOREDB to GSTRMDCDB.

Important Note on data migration from ACRSCOREDB to GSTRMDCDB:


Master data before DCS 1.3.0 resided in ACRSCOREDB. This has been migrated to GSTRMDCDB. So only
customers upgrading from version 1.2.* should do this.
New Customers can ignore this step.

Login as ACRSCOREDB.
Choose the Catalog tab. Click the Open SQL Console icon.
Run the following SQL statements:

GRANT EXECUTE ON REPOSITORY_REST TO GSTRMDCDB WITH GRANT OPTION;


GRANT EXECUTE ON REPOSITORY_REST TO GSTR1DB WITH GRANT OPTION;
GRANT "EXECUTE","SELECT","UPDATE","INSERT" ON SCHEMA ACRSCOREDB TO GSTRMDCDB
WITH GRANT OPTION;
GRANT "EXECUTE" ,"SELECT","UPDATE","INSERT" ON SCHEMA ACRSCOREDB TO GSTR1DB WITH
GRANT OPTION;
GRANT SELECT ON SCHEMA _SYS_BIC TO "GSTRMDCDB";
GRANT UPDATE ON SCHEMA _SYS_BIC TO "GSTRMDCDB";
GRANT "EXECUTE" ,"SELECT","UPDATE","INSERT","SELECT METADATA","SELECT CDS METADATA"
ON SCHEMA ACRSCOREDB TO GSTR1DB WITH GRANT OPTION;

4. #DCS130 - Assigning Roles to GSTRMDCDB

Login as GSTR1DB
Choose the Catalog tab. Click the Open SQL Console icon.
Run the following SQL statements:

call _SYS_REPO.GRANT_ACTIVATED_ROLE ('sap.hana.xs.lm.roles::Administrator','GSTRMDCDB');

You might also like