forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
32 lines
3.7 KiB
HTML
32 lines
3.7 KiB
HTML
<a name="EN-US_TOPIC_0000001813598668"></a><a name="EN-US_TOPIC_0000001813598668"></a>
|
|
|
|
<h1 class="topictitle1">Users/Roles</h1>
|
|
<div id="body1584526252529"><div class="section" id="EN-US_TOPIC_0000001813598668__section5783182373617"><h4 class="sectiontitle">Creating a User/Role</h4><p id="EN-US_TOPIC_0000001813598668__en-us_topic_0185264337_p158414053416">A database is used by many users, and the users are grouped for management convenience. A database role represents a database user or a group of database users.</p>
|
|
<p id="EN-US_TOPIC_0000001813598668__en-us_topic_0185264337_p65702525297">Users and roles have similar concepts in databases. In practice, you are advised to use a role to manage permissions rather than to access databases.</p>
|
|
<ul id="EN-US_TOPIC_0000001813598668__ul125888196539"><li id="EN-US_TOPIC_0000001813598668__li85881919155319"><strong id="EN-US_TOPIC_0000001813598668__b10165182119375">Users</strong>: They are set of database users. These users are different from operating system users. These users can assign permissions to other users to access database objects.</li><li id="EN-US_TOPIC_0000001813598668__li1758871945315"><strong id="EN-US_TOPIC_0000001813598668__b59311222143720">Role</strong>: This can be considered as a user or group based on the usage. Roles are at cluster level, and hence applicable to all databases in the cluster. A role is a cluster-level definition and applies to all databases in a cluster.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001813598668__section2647133113718"><h4 class="sectiontitle">Dropping a User/Role</h4><p id="EN-US_TOPIC_0000001813598668__p1218572117381">Right-click the selected user/role and select <strong id="EN-US_TOPIC_0000001813598668__b919317915381">Drop User/Role</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001813598668__p1464713320377"><span><img id="EN-US_TOPIC_0000001813598668__image1474019171397" src="figure/en-us_image_0000001813599128.png"></span></p>
|
|
<p id="EN-US_TOPIC_0000001813598668__p1364783353718"></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001813598668__section1482154623720"><h4 class="sectiontitle">Viewing/Editing User/Role Properties</h4><p id="EN-US_TOPIC_0000001813598668__p156391962116">Right-click the selected user/role and select <strong id="EN-US_TOPIC_0000001813598668__b19723534104011">Properties</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001813598668__p482184619375">Data Studio displays the properties (General, Privilege, and Membership) of the selected user/role in different tabs. Editing of properties can be performed. OID is a non-editable field.</p>
|
|
<p id="EN-US_TOPIC_0000001813598668__p8292151910131"><span><img id="EN-US_TOPIC_0000001813598668__image208616229155" src="figure/en-us_image_0000001860319045.png" width="492.1" height="136.5777" title="Click to enlarge" class="imgResize"></span></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001813598668__section10263757193713"><h4 class="sectiontitle">Viewing the User/Role DDL</h4><p id="EN-US_TOPIC_0000001813598668__p1926581851619">Right-click the selected user/role and select <strong id="EN-US_TOPIC_0000001813598668__b69132049164113">Show DDL</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001813598668__p12627576373">The user/role DDL is displayed in a new <strong id="EN-US_TOPIC_0000001813598668__b627182794217">SQL Terminal</strong> tab. You must refresh the <strong id="EN-US_TOPIC_0000001813598668__b18720151317421">Object Browser</strong> to view the latest DDL.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="DWS_DS_012.html">Database Management</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |