You can perform various operations at the tenant level on the Tenants page of the MaxCompute console. For example, you can obtain the ID of the current tenant and enable the tenant-level schema syntax on this page. You can use the obtained tenant ID to perform resource-related authorization at the tenant level. After you enable the tenant-level schema syntax, the schema feature is automatically enabled for all projects in the tenant. After the schema feature is enabled for a project, all tables, resources, and functions in the project are organized and isolated by schema.
Precautions
The tenant-level schema syntax cannot be disabled after it is enabled. Before you enable the feature, make sure that the feature does not affect your business.
You can enable the tenant-level schema syntax only for a tenant in which no projects are created.
NoteTo enable the tenant-level schema syntax for a tenant in which projects are created, you can fill in an application for trial use. For more information, see Apply for trial use of new features.
Procedure
Log on to the MaxCompute console. In the top navigation bar, select a region.
In the left-side navigation pane, choose Tenants > Tenant Property.
On the Tenants page, perform the following operations based on your business requirements:
Turn on the Tenant-level Information Schema Syntax switch to enable the tenant-level schema syntax.
After the tenant-level schema syntax is enabled, the system identifies the content in the
a.b.c
format in SQL statements as acombination of a project name, a schema name, and a table name
and the content in thea.b
format as acombination of a schema name and a table name
. For information about schema-related operations, see Schema-related operations.NoteThe tenant-level schema syntax cannot be disabled after it is enabled. Before you enable the feature, make sure that the feature does not affect your business.
View the ID of the current tenant.