Professional Documents
Culture Documents
Sap Hana Docs
Sap Hana Docs
Sap Hana Docs
HANA CLOUD
SAP HANA Cloud is a fully managed, cloud-based offering of the SAP HANA database platform.
It provides a high-performance, in-memory database that can be used for various purposes,
such as data processing, analytics, and application development.
3. In the Systems view, click [+] Add System... and choose Add System....
4. Type the details of the SAP HANA system in the following fields:
▪ Host Name:
The name of the server hosting the SAP HANA database instance, for
example, dev.host.acme.com
▪ Instance Number
▪ Description
A display name for the system you are adding. When you start working with a
lot of systems, you will need to label and recognize the systems in the SAP
HANA studio. Enter Development System.
5. Select Next.
6. Enter a user name and password for the connection, and select Finish.
Results
After adding the system, you will see the system in the Systems view.
Creating Schema
1. Start the SAP HANA studio.
Browse to the folder in your project workspace where you want to create the new
schema-definition file and perform the following tasks:
a. Right-click the folder where you want to save the schema-definition file and
choose New>Schema in the context-sensitive popup menu.
To edit the schema file, in the Project Explorer view double-click the schema file you
created in the previous step, for example, MYSCHEMA.hdbschema, and add the
schema-definition code to the file:
schema_name=”MYSCHEMA”;
a. Locate and right-click the new schema file in the Project Explorer view.
After activation in the repository, the schema object is only visible in the catalog to
the _SYS_REPO user. To enable other users, for example the schema owner, to view
the newly created schema in the SAP HANA studio's Modeler perspective, you must
grant the user the required SELECT privilege.
a. In the SAP HANA studio Systems view, right-click the SAP HANA system
hosting the repository where the schema was activated and choose SQL
Console in the context-sensitive popup menu.
b. In the SQL console, execute the statement illustrated in the following example,
where <SCHEMANAME> is the name of the newly activated schema,
and <username> is the database user ID of the schema owner:
Types of Schema
• System Schema: The system schema is the default schema in SAP HANA and contains
system-defined database objects. It includes system tables and views that store
metadata, system configurations, and other system-related information.
• Public Schema: The public schema is a special schema that is accessible to all users. It
is typically used for storing shared database objects that need to be accessed by
multiple users or roles.
• User Schema: Each user in SAP HANA can have their own user schema, which provides
a private namespace for their database objects. User schemas are used to organize
and separate objects specific to individual users, such as tables, views, procedures,
and functions.
• Package Schema: Package schemas are used to organize and group related database
objects. They provide a way to logically organize objects and enforce access control
based on packages. Objects within a package schema can be granted or restricted
access to specific users or roles.
• Temporary Schema: Temporary schemas are used to store temporary data during the
execution of queries or intermediate results of complex calculations. They are
automatically created and managed by the system and are automatically dropped
after their purpose is served.
• Schema Privileges: Apart from the above schema types, it is important to note that
SAP HANA also supports schema-level privileges. These privileges control access and
permissions at the schema level, allowing users or roles to perform specific actions
within a schema, such as creating or modifying objects.
• Install Eclipse: Download and install the Eclipse IDE for Java EE Developers from the
Eclipse website (https://www.eclipse.org/downloads/). Choose the appropriate
version based on your operating system.
• Install SAP HANA Development Tools (HDT) Plugin: Launch Eclipse and go to "Help" ->
"Eclipse Marketplace". In the Marketplace window, search for "SAP HANA" and install
the "SAP HANA Tools for Eclipse". Follow the on-screen instructions to complete the
installation.
• Configure SAP HANA Database Connection: Once the HDT plugin is installed, go to
"Window" -> "Show View" -> "Other" -> "SAP HANA" -> "SAP HANA Development" to
open the SAP HANA Development perspective.
• Configure HANA Database Connection: In the "SAP HANA Development" perspective,
click on the "SAP HANA Systems" view to open it. Right-click on the view and select
"Add System". Enter the connection details for your SAP HANA database, such as the
host, instance number, username, and password.
• Connect to HANA Database: Once the system is added, you can expand it in the "SAP
HANA Systems" view and navigate to different database objects such as schemas,
tables, views, procedures, etc. You can also execute SQL queries, create or modify
database objects, and perform various development tasks.