Can we create multiple database in SAP HANA system?



In SAP HANA, you don’t have a concept of creating multiple databases in one container. To create a separate container for your database objects, you can create the schema in HANA db.

To create a schema, you can use below SQL query −

CREATE SCHEMA schema name

You can also define <user_name> as owner name while defining a schema.

CREATE SCHEMA <schema_name> [OWNED BY <user_name>]

If it is not defined, the system takes the current user as the owner of the schema.

Monica Mona
Monica Mona

Student of life, and a lifelong learner


Advertisements