角色创建

dbschema -ss 命令会生成有关角色创建的信息。

以下语法图显示角色的创建。

角色
元素 用途 重要注意事项
-r role 显示复制和授权指定角色所需的 CREATE ROLE 和 GRANT 语句。 不能使用-r 选项指定用户或角色的列表。您可指定一个角色或所有角色。SE 不支持 -r 选项。
-r all 显示复制和授权所有角色所需的所有 CREATE ROLE 和 GRANT 语句。
以下 dbschema 命令和输出显示创建了角色 calen 并被授予 cathljudithsallyc
sharky% dbschema -r calen -d stores_demo

DBSCHEMA Schema 实用程序
软件序列号 RDS#N000000
create role calen;

grant calen to cathl with grant option;
grant calen to judith ;
grant calen to sallyc ;