Introduction
The SAP HANA Multitenant Database Containers (MDC) feature enables hosting multiple SAP HANA databases on a single SAP HANA system. All tenant databases in the same system share the same system resources (memory and CPU cores) but each tenant database is fully isolated with its own database users, catalog, repository, persistence (data files and log files) and services. And now you can use all this on a trial landscape.
Reserve a tenant database on trial landscape
To be able to access a trial landscape, you need to have a developer account first. If you still need to create a developer account, you can start from here: Signing Up for a Developer Account.
To reserve and configure a trial tenant database, follow these steps:
- Log on to the SAP HANA Cloud Platform cockpit and select an account.
- Choose Databases & Schemas from the menu on the left. Choose New.
- In the Database System field select the HANA MDC (<trial>) option. Fill in the SYSTEM User Password field. Choose Save.
The Events page is displayed. It shows the progress of the database creation. - Wait until the tenant database is in state Started.
- Choose Overview from the menu on the left. In the overview of the new tenant database, open the link SAP HANA Cockpit.
- Enter SYSTEM in the Username field and the password you have set in the Password field. When you choose Log On, an Information dialog appears. It says you are not authorized to open the SAP HANA Cockpit and you will be assigned the necessary role. Just choose OK and proceed. Another dialog appears. Choose Continue.
- The SAP HANA Cockpit opens for the new tenant database.
- Go back to the SAP HANA Cloud Platform cockpit and then open the tenant database page in Databases & Schemas. Open the link SAP HANA Web-based Development Workbench.
- Choose the Security option. Add all the roles described here: Roles Required for Web-based Tools.
- Now you have your tenant database created and configured.
Web IDE scenario
In case you want to work with your tenant database from the Web IDE, you have to go to SAP HANA Web-based Development Workbench for this tenant database. Select the Editor option and now you have the Web IDE ready to work.
Eclipse scenario
If you want to use Eclipse to try out the tenant database on the trial landscape, we are providing a test application that you can import and use for test purposes. This is what you have to do:
- Install the SAP HANA Tools in the Eclipse IDE. If you haven’t done this already, read this procedure: Installing SAP HANA Tools for Eclipse.
- To download the test application delivery unit (DU), open this GitHub link.
- Click on the HCODEMOCONTENT.tgz file and then choose Raw to download the file.
- Go to Eclipse and open the SAP HANA Development perspective.
- In the System view, choose Add Cloud System.
- In the Account Information page, enter your developer account details. Choose Next.
- In the SAP HANA Schemas and Databases, enter the tenant database details you have set when you created it. Choose Finish.
- To import the test application DU, choose File and then Import.
- Expand SAP HANA Content and then choose Delivery Unit. Choose Next.
- The target system is your tenant database in the trial landscape. Choose Next.
- Browse to the HCODEMOCONTENT.tgz file you have downloaded in the File field and choose Finish.
- In the SAP HANA Web-based Development Workbench for this tenant database, assign the role sap.hana.democontent.epm.roles::Admin to the user SYSTEM.
- To start the test application, go to the Editor option.
- Open the index.html file and choose Run.
Summary
When you reserve a tenant database, you can use it for 12 hours. After that it will be automatically shut down to free resources. You can start it again from the SAP HANA Cloud Platform Cockpit. Have in mind that if you don’t use this tenant database for 30 days it will be automatically deleted.