cancel
Showing results for 
Search instead for 
Did you mean: 

HANA DB Catalog vs Schema

philip0929
Active Participant
0 Kudos

Hi guys,

I just want to know, what is the difference between Catalog and Schema in HANA system.

We have 2 Datamart HANA and we need to connect to 1 HANA system. I want to know if I need to create new Tenant (Schema) or Catalog.

Please let me know.

Accepted Solutions (0)

Answers (1)

Answers (1)

Amin_Omidy
Active Participant
0 Kudos

Hi Phillip,

In SAP HANA, the terms "schema" and "catalog" have different meanings and uses:

A Catalog in SAP HANA is a container that holds a collection of schemas, tables, views, and other database objects. It provides a way to organize and manage these objects, and to set access privileges for different users and roles. Each catalog in SAP HANA corresponds to a separate namespace and is isolated from other catalogs.

A Schema in SAP HANA, on the other hand, is a namespace within a catalog that holds a collection of database objects such as tables, views, and procedures dedicated to a specific schema(owner). Each schema in SAP HANA can have its own set of tables, views, and procedures, and it provides a way to organize and manage these objects.

In your case, if you want to connect two data marts to a single SAP HANA system, you will need to create a new schema within the existing catalog in the HANA system. You can then create tables, views, and other database objects within the new schema, and use these objects to store and manage the data from the two data marts. This will allow you to access and manage the data from both data marts in a single HANA system, while keeping the data separated and organized by schema.

Hope this helps!

Thanks,