<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Database users</title>
    <link>/en/admin/db-users-and-privileges/db-users/</link>
    <description>Recent content in Database users on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/db-users-and-privileges/db-users/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: Types of database users</title>
      <link>/en/admin/db-users-and-privileges/db-users/types-of-db-users/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/db-users-and-privileges/db-users/types-of-db-users/</guid>
      <description>
        
        
        &lt;p&gt;There are three types of users in an OpenText™ Analytics Database:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Database administrator (DBADMIN)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Object owner&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Everyone else (PUBLIC)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

External to the database, an MC administrator can create users through the Management Console and grant them database access. See &lt;a href=&#34;../../../../en/mc/users-roles-and-privileges/user-admin-mc/#&#34;&gt;User administration in MC&lt;/a&gt; for details.

&lt;/div&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Creating a database user</title>
      <link>/en/admin/db-users-and-privileges/db-users/creating-db-user/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/db-users-and-privileges/db-users/creating-db-user/</guid>
      <description>
        
        
        &lt;p&gt;To create a database user:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;From &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/vsql/&#34; title=&#34;For more information, see Installing the vsql Client and the more general topic, Using vsql.&#34;&gt;vsql&lt;/a&gt;, connect to the database as a superuser.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Issue the 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-user/#&#34;&gt;CREATE USER&lt;/a&gt;&lt;/code&gt; statement with optional parameters.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run a series of &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/#&#34;&gt;GRANT statements&lt;/a&gt; to grant the new user privileges.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To create a user on MC, see &lt;a href=&#34;../../../../en/mc/users-roles-and-privileges/user-admin-mc/#&#34;&gt;User administration in MC&lt;/a&gt; in Management Console.&lt;/p&gt;
&lt;h2 id=&#34;new-user-privileges&#34;&gt;New user privileges&lt;/h2&gt;
&lt;p&gt;By default, new database users have the right to create temporary tables in the database.&lt;/p&gt;
&lt;p&gt;New users do not have access to schema &lt;code&gt;PUBLIC&lt;/code&gt; by default. Be sure to call &lt;code&gt;GRANT USAGE ON SCHEMA PUBLIC&lt;/code&gt; to all users you create.&lt;/p&gt;
&lt;h2 id=&#34;modifying-users&#34;&gt;Modifying users&lt;/h2&gt;
&lt;p&gt;You can change information about a user, such as his or her password, by using the 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-user/#&#34;&gt;ALTER USER&lt;/a&gt;&lt;/code&gt; statement. If you want to configure a user to not have any password authentication, you can set the empty password ‘’ in &lt;code&gt;CREATE USER&lt;/code&gt; or &lt;code&gt;ALTER USER&lt;/code&gt; statements, or omit the &lt;code&gt;IDENTIFIED BY&lt;/code&gt; parameter in &lt;code&gt;CREATE USER&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;example&#34;&gt;Example&lt;/h2&gt;
&lt;p&gt;The following series of commands add user Fred to a database with password &#39;password&#39;. The second command grants USAGE privileges to Fred on the public schema:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE USER Fred IDENTIFIED BY &amp;#39;password&amp;#39;;
=&amp;gt; GRANT USAGE ON SCHEMA PUBLIC to Fred;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-privileges/granting-and-revoking-privileges/#&#34;&gt;Granting and revoking privileges&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-roles/granting-db-roles/#&#34;&gt;Granting database roles&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: User-level configuration parameters</title>
      <link>/en/admin/db-users-and-privileges/db-users/user-level-config-parameters/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/db-users-and-privileges/db-users/user-level-config-parameters/</guid>
      <description>
        
        
        &lt;p&gt;ALTER USER lets you set user-level configuration parameters on individual users. These settings override database- or session-level settings on the same parameters. For example, the following ALTER USER statement sets DepotOperationsForQuery for users Yvonne and Ahmed to FETCHES, thus overriding the default setting of ALL:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT user_name, parameter_name, current_value, default_value FROM user_configuration_parameters
   WHERE user_name IN(&amp;#39;Ahmed&amp;#39;, &amp;#39;Yvonne&amp;#39;) AND parameter_name = &amp;#39;DepotOperationsForQuery&amp;#39;;
 user_name |     parameter_name      | current_value | default_value
-----------+-------------------------+---------------+---------------
 Ahmed     | DepotOperationsForQuery | ALL           | ALL
 Yvonne    | DepotOperationsForQuery | ALL           | ALL
(2 rows)

=&amp;gt; ALTER USER Ahmed SET DepotOperationsForQuery=&amp;#39;FETCHES&amp;#39;;
ALTER USER
=&amp;gt; ALTER USER Yvonne SET DepotOperationsForQuery=&amp;#39;FETCHES&amp;#39;;
ALTER USER
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;identifying-user-level-parameters&#34;&gt;Identifying user-level parameters&lt;/h2&gt;
&lt;p&gt;To identify user-level configuration parameters, query the &lt;code&gt;allowed_levels&lt;/code&gt; column of system table CONFIGURATION_PARAMETERS. For example, the following query identifies user-level parameters that affect depot usage:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;n=&amp;gt; SELECT parameter_name, allowed_levels, default_value, current_level, current_value
    FROM configuration_parameters WHERE allowed_levels ilike &amp;#39;%USER%&amp;#39; AND parameter_name ilike &amp;#39;%depot%&amp;#39;;
     parameter_name      |     allowed_levels      | default_value | current_level | current_value
-------------------------+-------------------------+---------------+---------------+---------------
 UseDepotForReads        | SESSION, USER, DATABASE | 1             | DEFAULT       | 1
 DepotOperationsForQuery | SESSION, USER, DATABASE | ALL           | DEFAULT       | ALL
 UseDepotForWrites       | SESSION, USER, DATABASE | 1             | DEFAULT       | 1
(3 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;viewing-user-parameter-settings&#34;&gt;Viewing user parameter settings&lt;/h2&gt;
&lt;p&gt;You can obtain user settings in two ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Query system table &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/user-config-parameters/#&#34;&gt;USER_CONFIGURATION_PARAMETERS&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM user_configuration_parameters;
 user_name |      parameter_name       | current_value | default_value
-----------+---------------------------+---------------+---------------
 Ahmed     | DepotOperationsForQuery   | FETCHES       | ALL
 Yvonne    | DepotOperationsForQuery   | FETCHES       | ALL
 Yvonne    | LoadSourceStatisticsLimit | 512           | 256
(3 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use &lt;a href=&#34;../../../../en/sql-reference/statements/show-user/#&#34;&gt;SHOW USER&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SHOW USER Yvonne PARAMETER ALL;
  user  |         parameter         | setting
--------+---------------------------+---------
 Yvonne | DepotOperationsForQuery   | FETCHES
 Yvonne | LoadSourceStatisticsLimit | 512
(2 rows)

=&amp;gt; SHOW USER ALL PARAMETER ALL;
  user  |         parameter         | setting
--------+---------------------------+---------
 Yvonne | DepotOperationsForQuery   | FETCHES
 Yvonne | LoadSourceStatisticsLimit | 512
 Ahmed  | DepotOperationsForQuery   | FETCHES
(3 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Locking user accounts</title>
      <link>/en/admin/db-users-and-privileges/db-users/locking-user-accounts/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/db-users-and-privileges/db-users/locking-user-accounts/</guid>
      <description>
        
        
        &lt;p&gt;As a superuser, you can manually lock and unlock a database user account with &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-user/&#34;&gt;ALTER USER...ACCOUNT LOCK&lt;/a&gt; and &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-user/&#34;&gt;ALTER USER...ACCOUNT UNLOCK&lt;/a&gt;, respectively. For example, the following command prevents user Fred from logging in to the database:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER USER Fred ACCOUNT LOCK;
=&amp;gt; \c - Fred
FATAL 4974: The user account &amp;#34;Fred&amp;#34; is locked
HINT: Please contact the database administrator
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example unlocks access to Fred&#39;s user account:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER USER Fred ACCOUNT UNLOCK;|
=&amp;gt; \c - Fred
You are now connected as user &amp;#34;Fred&amp;#34;.
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;locking-new-accounts&#34;&gt;Locking new accounts&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-user/#&#34;&gt;CREATE USER&lt;/a&gt; can specify to lock a new account. Like any locked account, it can be unlocked with &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-user/&#34;&gt;ALTER USER...ACCOUNT UNLOCK&lt;/a&gt;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE USER Bob ACCOUNT LOCK;
CREATE USER
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;locking-accounts-for-failed-login-attempts&#34;&gt;Locking accounts for failed login attempts&lt;/h2&gt;
&lt;p&gt;A user&#39;s &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/hash-authentication/passwords/profiles/&#34;&gt;profile&lt;/a&gt; can specify to lock an account after a certain number of failed login attempts.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Setting and changing user passwords</title>
      <link>/en/admin/db-users-and-privileges/db-users/setting-and-changing-user-passwords/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/db-users-and-privileges/db-users/setting-and-changing-user-passwords/</guid>
      <description>
        
        
        &lt;p&gt;As a superuser, you can set any user&#39;s password when you create that user with &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-user/#&#34;&gt;CREATE USER&lt;/a&gt;, or later with &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-user/#&#34;&gt;ALTER USER&lt;/a&gt;. Non-superusers can also change their own passwords with &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-user/#&#34;&gt;ALTER USER&lt;/a&gt;. One exception applies: users who are added to the database with the LDAPLink service cannot change their passwords with &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-user/#&#34;&gt;ALTER USER&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can also give a user a pre-hashed password if you provide its associated salt. The salt must be a hex string. This method bypasses &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/hash-authentication/passwords/profiles/&#34;&gt;password complexity requirements&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To view password hashes and salts of existing users, see the &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/passwords/#&#34;&gt;PASSWORDS&lt;/a&gt; system table.&lt;/p&gt;
&lt;p&gt;Changing a user&#39;s password has no effect on their current session.&lt;/p&gt;
&lt;h2 id=&#34;setting-user-passwords-in-vsql&#34;&gt;Setting user passwords in VSQL&lt;/h2&gt;
&lt;p&gt;In this example, the user &#39;Bob&#39; is created with the password &#39;mypassword.&#39;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE USER Bob IDENTIFIED BY &amp;#39;mypassword&amp;#39;;
CREATE USER
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The password is then changed to &#39;Orca.&#39;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER USER Bob IDENTIFIED BY &amp;#39;Orca&amp;#39; REPLACE &amp;#39;mypassword&amp;#39;;
ALTER USER
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In this example, the user &#39;Alice&#39; is created with a pre-hashed password and salt.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE USER Alice IDENTIFIED BY
&amp;#39;sha512e0299de83ecfaa0b6c9cbb1feabfbe0b3c82a1495875cd9ec1c4b09016f09b42c1&amp;#39;
SALT &amp;#39;465a4aec38a85d6ecea5a0ac8f2d36d8&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;setting-user-passwords-in-management-console&#34;&gt;Setting user passwords in Management Console&lt;/h2&gt;
&lt;p&gt;On Management Console, users with ADMIN or IT privileges can reset a user&#39;s non-LDAP password:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Sign in to Management Console and navigate to &lt;strong&gt;MC Settings&lt;/strong&gt; &amp;gt; &lt;strong&gt;User management&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click to select the user to modify and click &lt;strong&gt;Edit&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Edit password&lt;/strong&gt; and enter the new password twice.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;OK&lt;/strong&gt; and then &lt;strong&gt;Save&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
  </channel>
</rss>
