<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – SET statements</title>
    <link>/en/sql-reference/statements/set-statements/</link>
    <description>Recent content in SET statements on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/sql-reference/statements/set-statements/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Sql-Reference: SET DATESTYLE</title>
      <link>/en/sql-reference/statements/set-statements/set-datestyle/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-datestyle/</guid>
      <description>
        
        
        &lt;p&gt;Specifies how to format date/time output for the current session. Use 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/show/#&#34;&gt;SHOW DATESTYLE&lt;/a&gt;&lt;/code&gt; to verify the current output settings.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET DATESTYLE TO { arg | &lt;span class=&#34;code-variable&#34;&gt;&#39;arg&#39;&lt;/span&gt; }[, arg | &lt;span class=&#34;code-variable&#34;&gt;&#39;arg&#39;&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;SET DATESTYLE&lt;/code&gt; has a single parameter, which can be set to one or two arguments that specify date ordering and style. Each argument can be specified singly or in combination with the other; if combined, they can be specified in any order.&lt;/p&gt;
&lt;p&gt;The following table describes each style and the date ordering arguments it supports:

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Date style arguments&lt;/th&gt; 

&lt;th &gt;
Order arguments&lt;/th&gt; 

&lt;th &gt;
Example&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;ISO&lt;/code&gt;&lt;br /&gt;(ISO 8601/SQL standard)&lt;/td&gt; 

&lt;td &gt;
n/a&lt;/td&gt; 

&lt;td &gt;


&lt;code&gt;2016-03-16 00:00:00&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;GERMAN&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
n/a&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;16.03.2016 00:00:00&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td  rowspan=&#34;2&#34; &gt;
&lt;code&gt;SQL&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;MDY&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;03/16/2016 00:00:00&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;DMY&lt;/code&gt; (default)&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;16/03/2016 00:00:00&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td  rowspan=&#34;2&#34; &gt;
&lt;code&gt;POSTGRES&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;MDY&lt;/code&gt; (default)&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;Wed Mar 16 00:00:00 2016&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;DMY&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;Wed 16 Mar 00:00:00 2016&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;
&lt;p&gt;OpenText™ Analytics Database ignores the order argument for date styles &lt;code&gt;ISO&lt;/code&gt; and &lt;code&gt;GERMAN&lt;/code&gt;. If the date style is &lt;code&gt;SQL&lt;/code&gt; or &lt;code&gt;POSTGRES&lt;/code&gt;, the order setting determines whether dates are output in &lt;code&gt;MDY&lt;/code&gt; or &lt;code&gt;DMY&lt;/code&gt; order. Neither &lt;code&gt;SQL&lt;/code&gt; nor &lt;code&gt;POSTGRES&lt;/code&gt; support &lt;code&gt;YMD&lt;/code&gt; order. If you specify &lt;code&gt;YMD&lt;/code&gt; for &lt;code&gt;SQL&lt;/code&gt; or &lt;code&gt;POSTGRES&lt;/code&gt;, the database ignores it and uses their default &lt;code&gt;MDY&lt;/code&gt; order.&lt;/p&gt;
&lt;p&gt;Date styles and ordering can also affect how the database interprets input values. For more information, see &lt;a href=&#34;../../../../en/sql-reference/language-elements/literals/datetime-literals/#&#34;&gt;Date/time literals&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;input-dependencies&#34;&gt;Input dependencies&lt;/h2&gt;
&lt;p&gt;In some cases, input format can determine output, regardless of date style and order settings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The ISO output for &lt;code&gt;DATESTYLE&lt;/code&gt; is ISO long form, but several input styles are accepted. If the year appears first in the input, &lt;code&gt;YMD&lt;/code&gt; is used for input and output, regardless of the &lt;code&gt;DATESTYLE&lt;/code&gt; value.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/data-types/datetime-data-types/interval/#&#34;&gt;INTERVAL&lt;/a&gt;&lt;/code&gt; input and output share the same format, with the following exceptions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Units like &lt;code&gt;CENTURY&lt;/code&gt; or &lt;code&gt;WEEK&lt;/code&gt; are converted to years and days.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;AGO&lt;/code&gt; is converted to the appropriate sign.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the date style is set to ISO, output follows this format:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[ &lt;span class=&#34;code-variable&#34;&gt;quantity&lt;/span&gt; &lt;span class=&#34;code-variable&#34;&gt;unit&lt;/span&gt; [...] ] [ &lt;span class=&#34;code-variable&#34;&gt;days&lt;/span&gt; ] [ &lt;span class=&#34;code-variable&#34;&gt;hours&lt;/span&gt;:&lt;span class=&#34;code-variable&#34;&gt;minutes&lt;/span&gt;:&lt;span class=&#34;code-variable&#34;&gt;seconds&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE t(a DATETIME);
CREATE TABLE
=&amp;gt; INSERT INTO t values (&amp;#39;3/16/2016&amp;#39;);
 OUTPUT
--------
      1
(1 row)

=&amp;gt; SHOW DATESTYLE;
   name    | setting
-----------+----------
 datestyle | ISO, MDY
(1 row)

=&amp;gt; SELECT * FROM t;
          a
---------------------
 2016-03-16 00:00:00
(1 row)

=&amp;gt; SET DATESTYLE TO German;
SET
=&amp;gt; SHOW DATESTYLE;
   name    |   setting
-----------+-------------
 datestyle | German, DMY
(1 row)

=&amp;gt; SELECT * FROM t;
          a
---------------------
 16.03.2016 00:00:00
(1 row)

=&amp;gt; SET DATESTYLE TO SQL;
SET
=&amp;gt; SHOW DATESTYLE;
   name    | setting
-----------+----------
 datestyle | SQL, DMY
(1 row)

=&amp;gt; SELECT * FROM t;
          a
---------------------
 16/03/2016 00:00:00
(1 row)

=&amp;gt; SET DATESTYLE TO Postgres, MDY;
SET
=&amp;gt; SHOW DATESTYLE;
   name    |    setting
-----------+---------------
 datestyle | Postgres, MDY
(1 row)

=&amp;gt; SELECT * FROM t;
            a
--------------------------
 Wed Mar 16 00:00:00 2016
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET ESCAPE_STRING_WARNING</title>
      <link>/en/sql-reference/statements/set-statements/set-escape-string-warning/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-escape-string-warning/</guid>
      <description>
        
        
        &lt;p&gt;Issues a warning when a backslash is used in a string literal during the current &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/session/&#34; title=&#34;An occurrence of a user interacting with a database through the use of SQL statements.&#34;&gt;session&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET ESCAPE_STRING_WARNING TO { ON | OFF }
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;ON&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;[Default] Issues a warning when a back slash is used in a string literal.
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Organizations that have upgraded from earlier versions of OpenText™ Analytics Database can use this as a debugging tool for locating backslashes that used to be treated as escape characters, but are now treated as literals.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;OFF&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Ignores back slashes within string literals.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;notes&#34;&gt;Notes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;This statement works under vsql only.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Turn off standard conforming strings before you turn on this parameter.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

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

To set escape string warnings across all sessions, use the EscapeStringWarnings configuration parameter. See the &lt;a href=&#34;../../../../en/sql-reference/config-parameters/internationalization-parameters/#&#34;&gt;Internationalization parameters&lt;/a&gt;.

&lt;/div&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example shows how to turn OFF escape string warnings for the session.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET ESCAPE_STRING_WARNING TO OFF;
&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/sql-reference/statements/set-statements/set-standard-conforming-strings/#&#34;&gt;SET STANDARD_CONFORMING_STRINGS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET INTERVALSTYLE</title>
      <link>/en/sql-reference/statements/set-statements/set-intervalstyle/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-intervalstyle/</guid>
      <description>
        
        
        &lt;p&gt;Specifies whether to include units in interval output for the current &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/session/&#34; title=&#34;An occurrence of a user interacting with a database through the use of SQL statements.&#34;&gt;session&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET INTERVALSTYLE TO [ plain | units ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;plain&lt;/dt&gt;
&lt;dd&gt;(default) Sets the default interval output to omit units.&lt;/dd&gt;
&lt;dt&gt;units&lt;/dt&gt;
&lt;dd&gt;Enables interval output to include &lt;a href=&#34;../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/interval-subtype-units/&#34;&gt;subtype unit identifiers&lt;/a&gt;. When &lt;code&gt;INTERVALSTYLE&lt;/code&gt; is set to units, the &lt;a href=&#34;../../../../en/sql-reference/statements/set-statements/set-datestyle/&#34;&gt;DATESTYLE&lt;/a&gt; parameter controls output. If you enable units and they do not display in the output, check the &lt;a href=&#34;../../../../en/sql-reference/statements/set-statements/set-datestyle/&#34;&gt;DATESTYLE&lt;/a&gt; parameter value, which must be set to &lt;code&gt;ISO&lt;/code&gt; or &lt;code&gt;POSTGRES&lt;/code&gt; for interval units to display.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/sql-reference/data-types/datetime-data-types/interval/setting-interval-unit-display/#&#34;&gt;Setting interval unit display&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET LOCALE</title>
      <link>/en/sql-reference/statements/set-statements/set-locale/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-locale/</guid>
      <description>
        
        
        &lt;p&gt;Specifies locale for the current &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/session/&#34; title=&#34;An occurrence of a user interacting with a database through the use of SQL statements.&#34;&gt;session&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can also set the current locale with the vsql command 
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/locale/#&#34;&gt;\locale&lt;/a&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET LOCALE TO &lt;span class=&#34;code-variable&#34;&gt;ICU-locale-identifier&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;locale-identifier &lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the ICU locale identifier to use, by default set to:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;en_US@collation=binary
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If set to an empty string, OpenText™ Analytics Database sets locale to &lt;code&gt;en_US_POSIX&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The following requirements apply:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The database only supports the &lt;code&gt;COLLATION&lt;/code&gt; keyword.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Single quotes are mandatory to specify collation.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;commonly-used-locales&#34;&gt;Commonly used locales&lt;/h2&gt;
&lt;p&gt;For details on identifier options, see &lt;a href=&#34;../../../../en/admin/about-locale/#&#34;&gt;About locale&lt;/a&gt;. For a complete list of locale identifiers, see the &lt;a href=&#34;http://userguide.icu-project.org/locale&#34;&gt;ICU Project&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;de_DE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;German (Germany)&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;en_GB&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;English (Great Britain)&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;es_ES&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Spanish (Spain)&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;fr_FR&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;French (France)&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;pt_BR&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Portuguese (Brazil)&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;pt_PT&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Portuguese (Portugal)&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ru_RU&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Russian (Russia)&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ja_JP&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Japanese (Japan)&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;zh_CN&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Chinese (China, simplified Han)&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;zh_Hant_TW&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Chinese (Taiwan, traditional Han)&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Set session locale to &lt;code&gt;en_GB&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET LOCALE TO en_GB;
INFO 2567:  Canonical locale: &amp;#39;en_GB&amp;#39;
Standard collation: &amp;#39;LEN&amp;#39;
English (United Kingdom)
SET
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Use the short form of a locale:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET LOCALE TO LEN;
INFO 2567:  Canonical locale: &amp;#39;en&amp;#39;
Standard collation: &amp;#39;LEN&amp;#39;
English
SET
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Specify collation:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET LOCALE TO &amp;#39;tr_tr@collation=standard&amp;#39;;
INFO 2567:  Canonical locale: &amp;#39;tr_TR@collation=standard&amp;#39;
Standard collation: &amp;#39;LTR&amp;#39;
Turkish (Turkey, collation=standard)  Türkçe (Türkiye, Sıralama=standard)
SET
&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/configuring-db/config-procedure/implement-locales-international-data-sets/#&#34;&gt;Implement locales for international data sets&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/about-locale/#&#34;&gt;About locale&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET ROLE</title>
      <link>/en/sql-reference/statements/set-statements/set-role/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-role/</guid>
      <description>
        
        
        &lt;p&gt;Enables a role for the user&#39;s current session. The user can access privileges that have been granted to the role. Enabling a role has no effect on roles that are currently enabled.

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

Use &lt;a href=&#34;../../../../en/sql-reference/statements/show/&#34;&gt;SHOW AVAILABLE ROLES&lt;/a&gt; to list granted roles.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET ROLE &lt;span class=&#34;code-variable&#34;&gt;roles-expression&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;
&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;span class=&#34;code-variable&#34;&gt;roles-expression&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies what roles are the default roles for this user, with one of the following expressions:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (default): Disables all roles.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;roles-list&lt;/code&gt;&lt;/em&gt;: A comma-delimited list of roles to enable. You can only set roles that are currently granted to you.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ALL [EXCEPT &lt;/code&gt;&lt;em&gt;&lt;code&gt;roles-list&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;: Enables all roles currently granted to this user, excluding any comma-delimited roles specified in the optional &lt;code&gt;EXCEPT&lt;/code&gt; clause.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;DEFAULT&lt;/code&gt;: Enables all &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-roles/enabling-roles-automatically/&#34;&gt;default roles&lt;/a&gt;. Default roles are, by definition, enabled automatically, but this option might be useful for re-enabling them if they are disabled with SET ROLE NONE.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;This example shows the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;SHOW AVAILABLE_ROLES; lists the roles available to the user, but not enabled.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SET ROLE applogs; enables the applogs role for the user.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SHOW ENABLED_ROLES; lists the applogs role as enabled (SET) for the user.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SET ROLE appuser; enables the appuser role for the user.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SHOW ENABLED_ROLES now lists both applogs and appuser as enabled roles for the user.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SET ROLE NONE disables all the users&#39; enabled roles .&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SHOW ENABLED_ROLES shows that no roles are enabled for the user.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
=&amp;gt; SHOW AVAILABLE_ROLES;
      name       |          setting
-----------------+----------------------------
 available roles | applogs, appadmin, appuser
(1 row)

=&amp;gt; SET ROLE applogs;
SET
=&amp;gt; SHOW ENABLED_ROLES;
     name      | setting
---------------+---------
 enabled roles | applogs
(1 row)

=&amp;gt; SET ROLE appuser;
SET
=&amp;gt; SHOW ENABLED_ROLES;
     name      |     setting
---------------+------------------
 enabled roles | applogs, appuser
(1 row)

=&amp;gt; SET ROLE NONE;
SET


=&amp;gt; SHOW ENABLED_ROLES;
     name      | setting
---------------+---------
 enabled roles |
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Set User Default Roles&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Though the DBADMIN user is normally responsible for setting a user&#39;s default roles, as a user you can set your own role. For example, if you run SET ROLE NONE all of your enabled roles are disabled. Then it was determined you need access to role1 as a default role. The DBADMIN uses &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-user/#&#34;&gt;ALTER USER&lt;/a&gt; to assign you a default role:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER USER user1 default role role1;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This example sets role1 as user1&#39;s default role because the DBADMIN assigned this default role using ALTER USER.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;user1 =&amp;gt; SET ROLE default;
user1 =&amp;gt; SHOW ENABLED_ROLES;
    name      | setting
-----------------------
enabled roles |   role1
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Set All Roles as Default&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This example makes all roles granted to user1 default roles:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;user1 =&amp;gt; SET ROLE all;
user1 =&amp;gt; show enabled roles;
    name      |   setting
----------------------------------
enabled roles | role1, role2, role3
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Set All Roles as Default With EXCEPT&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This example makes all the roles granted to the user default roles with the exception of role1.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;user1 =&amp;gt; set role all except role1;
user1 =&amp;gt; SHOW ENABLED_ROLES
     name     | setting
----------------------------
enabled roles | role2, role3
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SEARCH_PATH</title>
      <link>/en/sql-reference/statements/set-statements/set-search-path/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-search-path/</guid>
      <description>
        
        
        &lt;p&gt;Specifies the order in which OpenText™ Analytics Database searches schemas when a SQL statement specifies a table name that is unqualified by a schema name. &lt;code&gt;SET SEARCH_PATH&lt;/code&gt; overrides the current session&#39;s search path, which is initially set from the user profile. This search path remains in effect until the next &lt;code&gt;SET SEARCH_PATH&lt;/code&gt; statement, or the session ends. For details, see &lt;a href=&#34;../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/#&#34;&gt;Setting search paths&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To view the current search path, use 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/show/#&#34;&gt;SHOW SEARCH_PATH&lt;/a&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SEARCH_PATH { TO | = } { &lt;span class=&#34;code-variable&#34;&gt;schema-list&lt;/span&gt; | DEFAULT }
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;schema-list&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A comma-delimited list of schemas that indicates the order in which the database searches schemas for a table whose name is unqualified by a schema name.
&lt;p&gt;If the search path includes a schema that does not exist, or for which the user lacks access privileges, the database silently skips over that schema.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;DEFAULT&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Sets the search path to the database default:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;#34;$user&amp;#34;, public, v_catalog, v_monitor, v_internal
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Show the current search path:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SHOW SEARCH_PATH;
    name     |                      setting
-------------+---------------------------------------------------
 search_path | &amp;#34;$user&amp;#34;, public, v_catalog, v_monitor, v_internal
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Reset the search path to schemas &lt;code&gt;store&lt;/code&gt; and &lt;code&gt;public&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SEARCH_PATH TO store, public;
=&amp;gt; SHOW SEARCH_PATH;
    name     |                     setting
-------------+-------------------------------------------------
 search_path | store, public, v_catalog, v_monitor, v_internal
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Reset the search path to the database default settings:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SEARCH_PATH TO DEFAULT;
SET
=&amp;gt; SHOW SEARCH_PATH;
    name     |                      setting
-------------+---------------------------------------------------
 search_path | &amp;#34;$user&amp;#34;, public, v_catalog, v_monitor, v_internal
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SESSION AUTHORIZATION</title>
      <link>/en/sql-reference/statements/set-statements/set-session-authorization/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-session-authorization/</guid>
      <description>
        
        
        &lt;p&gt;Sets the current and session user for the current database connection. You can change session authorization to execute queries as another user for testing or debugging purposes, or to limit query access.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION AUTHORIZATION { &lt;span class=&#34;code-variable&#34;&gt;username&lt;/span&gt; | DEFAULT }
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;username&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the user that you want to authorize for the current SQL session.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;DEFAULT&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Sets session authorization to the &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-users/types-of-db-users/db-admin-user/&#34;&gt;dbadmin&lt;/a&gt; user.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;In the following example, the &lt;code&gt;dbadmin&lt;/code&gt; gives the &lt;code&gt;debuguser&lt;/code&gt; user session authorization, and then changes the session authorization back to the &lt;code&gt;dbadmin&lt;/code&gt; user.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Verify the current user and session user:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SELECT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CURRENT_USER&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(),&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SESSION_USER&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;();&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;current_user&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;session_user&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;c1&#34;&gt;--------------+--------------
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;dbadmin&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;dbadmin&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;row&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set authorization for the current session to &lt;code&gt;debuguser&lt;/code&gt;, and verify the changes:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SET&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SESSION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;AUTHORIZATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;debuguser&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SET&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SELECT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CURRENT_USER&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(),&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SESSION_USER&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;();&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;current_user&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;session_user&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;c1&#34;&gt;--------------+--------------
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;debuguser&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;debuguser&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;row&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;After you complete debugging tasks, set the session authorization to &lt;code&gt;DEFAULT&lt;/code&gt; to set the current and session user back to &lt;code&gt;dbadmin&lt;/code&gt; user, and verify the changes:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SET&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SESSION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;AUTHORIZATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;DEFAULT&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SET&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SELECT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CURRENT_USER&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(),&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SESSION_USER&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;();&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;current_user&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;session_user&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;c1&#34;&gt;--------------+--------------
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;dbadmin&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;&lt;span class=&#34;o&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;dbadmin&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;row&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SESSION AUTOCOMMIT</title>
      <link>/en/sql-reference/statements/set-statements/set-session-autocommit/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-session-autocommit/</guid>
      <description>
        
        
        &lt;p&gt;Sets whether statements automatically commit their transactions on completion. This statement is primarily used by the client drivers to enable and disable autocommit, you should never have to directly call it.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION AUTOCOMMIT TO { ON | OFF }
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;ON&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Enable autocommit. Statements automatically commit their transactions when they complete. This is the default setting for connections made using the OpenText™ Analytics Database client libraries.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;OFF&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Disable autocommit. Transactions are not automatically committed. This is the default for interactive sessions (connections made through &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;).&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;This examples show how to set AUTOCOMMIT to &#39;on&#39; and then to &#39;off&#39;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SESSION AUTOCOMMIT TO on;
SET
=&amp;gt; SET SESSION AUTOCOMMIT TO off;
SET
&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/connecting-to/client-libraries/#&#34;&gt;Client libraries&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SESSION CHARACTERISTICS AS TRANSACTION</title>
      <link>/en/sql-reference/statements/set-statements/set-session-characteristics-as-transaction/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-session-characteristics-as-transaction/</guid>
      <description>
        
        
        &lt;p&gt;Sets the isolation level and access mode of all transactions that start after this statement is issued.&lt;/p&gt;
&lt;p&gt;A transaction retains its isolation level until it completes, even if the session&#39;s isolation level changes during the transaction. OpenText™ Analytics Database internal processes (such as the &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/tuple-mover-tm/&#34; title=&#34;The Tuple Mover manages ROS data storage.&#34;&gt;Tuple Mover&lt;/a&gt; and &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/refresh-projections/&#34; title=&#34;Ensures that all projections on a node are up-to-date (can participate in query execution).&#34;&gt;refresh&lt;/a&gt; operations) and DDL operations always run at the SERIALIZABLE isolation level to ensure consistency.&lt;/p&gt;

&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION CHARACTERISTICS AS TRANSACTION &lt;span class=&#34;code-variable&#34;&gt;settings&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;settings&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;One or both of the following:
&lt;ul&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;&lt;code&gt;ISOLATION LEVEL &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;#IsolationArgs&#34;&gt;argument&lt;/a&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#ReadWrite&#34;&gt;READ ONLY | READ WRITE&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a name=&#34;IsolationArgs&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;isolation-level-arguments&#34;&gt;ISOLATION LEVEL arguments&lt;/h2&gt;
&lt;p&gt;The ISOLATION LEVEL clause determines what data the transaction can access when other transactions run concurrently. You cannot change the isolation level after the first query (SELECT) or DML statement (INSERT, DELETE, UPDATE) if a transaction has run.&lt;/p&gt;
&lt;p&gt;Set ISOLATION LEVEL to one of the following arguments:&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;SERIALIZABLE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Sets the strictest level of SQL transaction isolation. This level emulates transactions serially, rather than concurrently. It holds locks and blocks write operations until the transaction completes.
&lt;p&gt;Applications that use &lt;code&gt;SERIALIZABLE&lt;/code&gt; must be prepared to retry transactions in the event of serialization failures. This isolation level is not recommended for normal query operations.&lt;/p&gt;
&lt;p&gt;Setting the transaction isolation level to &lt;code&gt;SERIALIZABLE&lt;/code&gt; does not apply to temporary tables. Temporary tables are isolated by their transaction scope.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;REPEATABLE READ&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Automatically converted to &lt;code&gt;SERIALIZABLE&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;READ COMMITTED&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Default, allows concurrent transactions.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;READ UNCOMMITTED&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Automatically converted to &lt;code&gt;READ COMMITTED&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;&lt;a name=&#34;ReadWrite&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;read-writeread-only&#34;&gt;READ WRITE/READ ONLY&lt;/h2&gt;
&lt;p&gt;You can set the transaction access mode with one of the following:&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;READ WRITE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Default, allows read/write access to SQL statements.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;READ ONLY&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Disallows SQL statements that require write access:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;INSERT, UPDATE, DELETE, and COPY operations on any non-temporary table.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;CREATE, ALTER, and DROP&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;GRANT, REVOKE&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;EXPLAIN if the SQL statement to explain requires write access.&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;

Setting the transaction session mode to read-only does not prevent all write operations.

&lt;/div&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;viewing-session-transaction-characteristics&#34;&gt;Viewing session transaction characteristics&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/show/#ShowTransactionIsolation&#34;&gt;SHOW TRANSACTION_ISOLATION&lt;/a&gt; and &lt;a href=&#34;../../../../en/sql-reference/statements/show/#ShowTransactionReadOnly&#34;&gt;SHOW TRANSACTION_READ_ONLY&lt;/a&gt; show the transaction settings for the current session:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SHOW TRANSACTION_ISOLATION;
         name          |   setting
-----------------------+--------------
 transaction_isolation | SERIALIZABLE
(1 row)

=&amp;gt; SHOW TRANSACTION_READ_ONLY;
         name          | setting
-----------------------+---------
 transaction_read_only | true
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SESSION GRACEPERIOD</title>
      <link>/en/sql-reference/statements/set-statements/set-session-graceperiod/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-session-graceperiod/</guid>
      <description>
        
        
        &lt;p&gt;Sets how long a session socket remains blocked while awaiting client input or output for a given query. If the socket is blocked for a continuous period that exceeds the grace period setting, the server shuts down the socket and throws a fatal error. The session is then terminated. If no grace period is set, the query can maintain its block on the socket indefinitely.&lt;/p&gt;
&lt;p&gt;OpenText™ Analytics Database applies a session&#39;s grace period and 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/set-statements/set-session-runtimecap/#&#34;&gt;RUNTIMECAP&lt;/a&gt;&lt;/code&gt; settings independently. If no grace period is set, a query can continue to block indefinitely on a session socket, regardless of the query&#39;s &lt;code&gt;RUNTIMECAP&lt;/code&gt; setting.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION GRACEPERIOD &lt;span class=&#34;code-variable&#34;&gt;duration&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;duration&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies how long a query can block on any session socket, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;interval&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;: Specifies as an &lt;a href=&#34;../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/&#34;&gt;interval&lt;/a&gt; the maximum grace period for current session queries, up to 20 days.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;=DEFAULT&lt;/code&gt;: Sets the grace period for queries in this session to the user&#39;s &lt;code&gt;GRACEPERIOD&lt;/code&gt; value. A new session is initially set to this value.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt;: Valid only for superusers, removes any grace period previously set on session queries.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Superusers&lt;/a&gt; can increase session grace period to any value, regardless of database or node settings.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Non-superusers can only set the session grace period to a value equal to or lower than their own user setting. If no grace period is explicitly set for a user, the grace period for that user is inherited from the node or database settings.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/workload-best-practices/handling-session-socket-blocking/#&#34;&gt;Handling session socket blocking&lt;/a&gt; in the Administrator&#39;s Guide.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SESSION IDLESESSIONTIMEOUT</title>
      <link>/en/sql-reference/statements/set-statements/set-session-idlesessiontimeout/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-session-idlesessiontimeout/</guid>
      <description>
        
        
        &lt;p&gt;Sets the maximum amount of time that a session can remain idle before it exits.

&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;

An idle session has no queries running.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION IDLESESSIONTIMEOUT &lt;span class=&#34;code-variable&#34;&gt;duration&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;duration&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the amount of time a session can remain idle before it exits:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (default): No idle timeout set on the session.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;interval&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;: Specifies as an &lt;a href=&#34;../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/&#34;&gt;interval&lt;/a&gt; the maximum amount of time a session can remain idle.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;=DEFAULT&lt;/code&gt;: Sets the idle timeout period for this session to the user&#39;s &lt;code&gt;IDLESESSIONTIMEOUT&lt;/code&gt; value.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Superusers&lt;/a&gt; can increase the time a session can remain idle to any value, regardless of database or node settings.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Non-superusers can only set the session idle time to a value equal to or lower than their own user setting. If no session idle time is explicitly set for a user, the session idle time for that user is inherited from the node or database settings.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/admin/managing-client-connections/#&#34;&gt;Managing client connections&lt;/a&gt; in the Administrator&#39;s Guide.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SESSION MEMORYCAP</title>
      <link>/en/sql-reference/statements/set-statements/set-session-memorycap/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-session-memorycap/</guid>
      <description>
        
        
        &lt;p&gt;Limits how much memory can be allocated to any request in the current &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/session/&#34; title=&#34;An occurrence of a user interacting with a database through the use of SQL statements.&#34;&gt;session&lt;/a&gt;. This limit only applies to the current session; it does not limit the total amount of memory used by multiple sessions.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION MEMORYCAP &lt;span class=&#34;code-variable&#34;&gt;limit&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;limit&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;One of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&#39;&lt;em&gt;&lt;code&gt;max-expression&lt;/code&gt;&lt;/em&gt;&#39;: A string value that specifies the memory limit, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;int&lt;/code&gt;&lt;/em&gt;&lt;code&gt;%&lt;/code&gt; — Expresses the maximum as a percentage of total memory available to the &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/resource-manager/&#34; title=&#34;In a single-user environment, the system can devote all resources to a single query and get the most efficient execution for that one query.&#34;&gt;Resource manager&lt;/a&gt;, where &lt;em&gt;&lt;code&gt;int&lt;/code&gt;&lt;/em&gt; is an integer value between 0 and 100.For example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;MEMORYCAP &#39;40%&#39;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;int&lt;/code&gt;&lt;/em&gt;&lt;code&gt;{K|M|G|T}&lt;/code&gt; — Expresses memory allocation in kilobytes, megabytes, gigabytes, or terabytes. For example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;MEMORYCAP &#39;10G&#39;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;=DEFAULT&lt;/code&gt;: Sets the memory cap for queries in this session to the user&#39;s &lt;code&gt;MEMORYCAP&lt;/code&gt; value.A new session is initially set to this value.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt;: Removes the memory cap for this session.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Superusers&lt;/a&gt; can increase session memory cap to any value.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Non-superusers can only set the session memory cap to a value equal to or lower than their own user setting.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Set the session memory cap to 2 gigabytes:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SESSION MEMORYCAP &amp;#39;2G&amp;#39;;
SET
=&amp;gt; SHOW MEMORYCAP;
   name    | setting
-----------+---------
 memorycap | 2097152
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Revert the memory cap to the default setting as specified in the user profile:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
=&amp;gt; SET MEMORYCAP=DEFAULT;
SET
=&amp;gt; SHOW MEMORYCAP;
   name    | setting
-----------+---------
 memorycap | 2013336
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/#&#34;&gt;Managing workloads&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SESSION MULTIPLEACTIVERESULTSETS</title>
      <link>/en/sql-reference/statements/set-statements/set-session-multipleactiveresultsets/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-session-multipleactiveresultsets/</guid>
      <description>
        
        
        &lt;p&gt;Enables or disable the execution of multiple active result sets (MARS) on a single JDBC connection. Using this option requires an active JDBC connection.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION MULTIPLEACTIVERESULTSETS TO { ON | OFF }
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;ON&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Enable MultipleActiveResultSets.Allows you to execute multiple result sets on a single connection.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;OFF&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Disable MultipleActiveResultSets. Allows only one active result set per connection.(Default value.)&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;This example shows how you can set MultipleActiveResultSets to on and then to off:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SESSION MULTIPLEACTIVERESULTSETS TO on;
SET
=&amp;gt; SET SESSION MULTIPLEACTIVERESULTSETS TO off;
SET
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SESSION RESOURCE_POOL</title>
      <link>/en/sql-reference/statements/set-statements/set-session-resource-pool/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-session-resource-pool/</guid>
      <description>
        
        
        &lt;p&gt;Associates the user &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/session/&#34; title=&#34;An occurrence of a user interacting with a database through the use of SQL statements.&#34;&gt;session&lt;/a&gt; with the specified resource pool.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION RESOURCE_POOL = { &lt;span class=&#34;code-variable&#34;&gt;pool-name &lt;/span&gt;| DEFAULT }
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;pool-name &lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of an existing resource pool to associate with the current session. Non-superusers must have USAGE privileges on the specified resource pool.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;DEFAULT&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Sets the session&#39;s resource pool to the resource pool &lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/user-resource-allocation/#UIserResourcePoolPrecedence&#34;&gt;assigned to this user&lt;/a&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;This example sets &lt;code&gt;ceo_pool&lt;/code&gt; as the session resource pool:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SESSION RESOURCE_POOL = ceo_pool;
SET
&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/sql-reference/statements/alter-statements/alter-resource-pool/#&#34;&gt;ALTER RESOURCE POOL&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-resource-pool/#&#34;&gt;CREATE RESOURCE POOL&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-user/#&#34;&gt;CREATE USER&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-resource-pool/#&#34;&gt;DROP RESOURCE POOL&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-resource-pool/#&#34;&gt;GRANT (Resource pool)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/set-statements/set-session-memorycap/#&#34;&gt;SET SESSION MEMORYCAP&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/#&#34;&gt;Managing workloads&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SESSION RUNTIMECAP</title>
      <link>/en/sql-reference/statements/set-statements/set-session-runtimecap/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-session-runtimecap/</guid>
      <description>
        
        
        &lt;p&gt;Sets the maximum amount of time queries and &lt;a href=&#34;../../../../en/extending/stored-procedures/&#34;&gt;stored procedures&lt;/a&gt; can run in a given session. If a query or stored procedure exceeds its session&#39;s &lt;code&gt;RUNTIMECAP&lt;/code&gt;, OpenText™ Analytics Database terminates it and returns an error. You cannot increase the &lt;code&gt;RUNTIMECAP&lt;/code&gt; beyond the limit that is set in your &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-user/&#34;&gt;user profile&lt;/a&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;

The database does not strictly enforce session &lt;code&gt;RUNTIMECAP&lt;/code&gt; settings. If you time a query or stored procedure, you might discover that it runs longer than the &lt;code&gt;RUNTIMECAP&lt;/code&gt; setting.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION RUNTIMECAP &lt;span class=&#34;code-variable&#34;&gt;duration&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;duration&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies how long a given query can run in the current session, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (default): Removes a runtime limit for all current session queries.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;interval&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;: Specifies as an &lt;a href=&#34;../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/&#34;&gt;interval&lt;/a&gt; the maximum runtime for current session queries, up to one year—for example, &lt;code&gt;1 minute&lt;/code&gt; or &lt;code&gt;100 seconds&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;=DEFAULT&lt;/code&gt;: Sets maximum runtime for queries in this session to the user&#39;s &lt;code&gt;RUNTIMECAP&lt;/code&gt; value.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Superusers&lt;/a&gt; can increase session &lt;code&gt;RUNTIMECAP&lt;/code&gt; to any value.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Non-superusers can only set the session &lt;code&gt;RUNTIMECAP&lt;/code&gt; to a value equal to or lower than their own user &lt;code&gt;RUNTIMECAP&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Set the maximum query runtime for the current session to 10 minutes:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SESSION RUNTIMECAP &amp;#39;10 minutes&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Revert the session &lt;code&gt;RUNTIMECAP&lt;/code&gt; to your user default setting:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SESSION RUNTIMECAP =DEFAULT;
SET
=&amp;gt; SHOW RUNTIMECAP;
    name    |  setting
------------+-----------
 runtimecap | UNLIMITED
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Set the RUNTIMECAP to &lt;code&gt;1 SECOND&lt;/code&gt; and run an &lt;a href=&#34;../../../../en/sql-reference/statements/do/&#34;&gt;anonymous procedure&lt;/a&gt; with an &lt;a href=&#34;../../../../en/extending/stored-procedures/plvsql/control-flow/#loop&#34;&gt;infinite loop&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SESSION RUNTIMECAP &amp;#39;1 SECOND&amp;#39;;
SET

=&amp;gt; DO $$
BEGIN
    LOOP
    END LOOP;
END;
$$;

ERROR 0:  Query exceeded maximum runtime
HINT:  Change the maximum runtime using SET SESSION RUNTIMECAP
&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/managing-db/managing-workloads/workload-best-practices/setting-runtime-limit-queries/#&#34;&gt;Setting a runtime limit for queries&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/#&#34;&gt;Managing workloads&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SESSION TEMPSPACECAP</title>
      <link>/en/sql-reference/statements/set-statements/set-session-tempspacecap/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-session-tempspacecap/</guid>
      <description>
        
        
        &lt;p&gt;Sets the maximum amount of temporary file storage that any request issued by the &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/session/&#34; title=&#34;An occurrence of a user interacting with a database through the use of SQL statements.&#34;&gt;session&lt;/a&gt; can consume. If a query&#39;s execution plan requires more storage space than the session TEMPSPACECAP, it returns an error.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION TEMPSPACECAP &lt;span class=&#34;code-variable&#34;&gt;limit&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;limit &lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The maximum amount of temporary file storage to allocate to the current session, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (default): Unlimited temporary storage&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;= DEFAULT&lt;/code&gt;: Session TEMPSPACECAP is set to the user&#39;s &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-user/#TEMPSPACECAP&#34;&gt;TEMPSPACECAP&lt;/a&gt; value.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;String that specifies the storage limit, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;int&lt;/code&gt;&lt;/em&gt;&lt;code&gt;%&lt;/code&gt; expresses the maximum as a percentage of total temporary storage available to the Resource Manager, where &lt;em&gt;&lt;code&gt;int&lt;/code&gt;&lt;/em&gt; is an integer value between 0 and 100. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION TEMPSPACECAP &amp;#39;40%&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;int&lt;/code&gt;&lt;/em&gt;&lt;code&gt;{K|M|G|T}&lt;/code&gt; expresses storage allocation in kilobytes, megabytes, gigabytes, or terabytes. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION TEMPSPACECAP &amp;#39;10G&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Non-superusers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Restricted to setting only their own sessions&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Session TEMPSPACECAP cannot be greater than their own &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-user/#TEMPSPACECAP&#34;&gt;TEMPSPACECAP&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Set the session TEMPSPACECAP to 20 gigabytes:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SESSION TEMPSPACECAP &amp;#39;20G&amp;#39;;
SET
=&amp;gt; SHOW TEMPSPACECAP;
     name     | setting
--------------+----------
 tempspacecap | 20971520
(1 row)
&lt;/code&gt;&lt;/pre&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;

SHOW displays the TEMPSPACECAP in kilobytes.

&lt;/div&gt;
&lt;p&gt;Set the session TEMPSPACECAP to unlimited:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SESSION TEMPSPACECAP NONE;
SET
=&amp;gt; SHOW TEMPSPACECAP;
     name     |  setting
--------------+-----------
 tempspacecap | UNLIMITED
(1 row)
&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/sql-reference/statements/alter-statements/alter-user/#&#34;&gt;ALTER USER&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-user/#&#34;&gt;CREATE USER&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/#&#34;&gt;Managing workloads&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET SESSION WORKLOAD</title>
      <link>/en/sql-reference/statements/set-statements/set-session-workload/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-session-workload/</guid>
      <description>
        
        
        &lt;p&gt;Sets the &lt;a href=&#34;../../../../en/admin/managing-client-connections/connection-load-balancing/workload-routing/&#34;&gt;workload&lt;/a&gt; for the current session.&lt;/p&gt;
&lt;p&gt;For details on this and other session parameters, see &lt;a href=&#34;../../../../en/sql-reference/statements/show/#&#34;&gt;SHOW&lt;/a&gt;:&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET SESSION WORKLOAD TO { &lt;span class=&#34;code-variable&#34;&gt;workload_name&lt;/span&gt; | DEFAULT | NONE }
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;workload_name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The workload to use for the current session. The specified workload must be associated with a &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-routing-rule/#&#34;&gt;workload routing rule&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;DEFAULT&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Sets the workload to the workload &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-workload/&#34;&gt;granted&lt;/a&gt; to the &lt;a href=&#34;../../../../en/admin/managing-client-connections/connection-load-balancing/workload-routing/#user--and-role-based-routing&#34;&gt;current user or their roles&lt;/a&gt;. If they have more than one workload, the one with the &lt;a href=&#34;../../../../en/admin/managing-client-connections/connection-load-balancing/workload-routing/#priorities&#34;&gt;highest priority&lt;/a&gt; is used.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;NONE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Removes the workload for the current session.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example sets &lt;code&gt;analytics&lt;/code&gt; as the &lt;a href=&#34;../../../../en/admin/managing-client-connections/connection-load-balancing/workload-routing/&#34;&gt;workload&lt;/a&gt; for the current session:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ROUTING&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;RULE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;analytic_rule&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ROUTE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;WORKLOAD&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;analytics&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TO&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;SUBCLUSTER&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;my_subcluster&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SET&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SESSION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;WORKLOAD&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;analytics&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET STANDARD_CONFORMING_STRINGS</title>
      <link>/en/sql-reference/statements/set-statements/set-standard-conforming-strings/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-standard-conforming-strings/</guid>
      <description>
        
        
        &lt;p&gt;Specifies whether to treat backslashes as escape characters for the current session. By default, OpenText™ Analytics Database conforms to the SQL standard and supports SQL:2008 string literals within Unicode escapes.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET STANDARD_CONFORMING_STRINGS TO { ON | OFF }
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;ON&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;(Default) Treat ordinary string literals (&#39;...&#39;) as backslashes () literally. This means that backslashes are treated as string literals and not as escape characters.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;OFF&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Treat backslashes as escape characters.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;requirements&#34;&gt;Requirements&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;This statement works under vsql only.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Standard-conforming strings must be ON to use Unicode-style string literals (&lt;code&gt;U&amp;amp;&#39;\nnnn&#39;&lt;/code&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

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

You can set conforming strings across all sessions by setting the configuration parameter &lt;a href=&#34;../../../../en/sql-reference/config-parameters/internationalization-parameters/#StandardConformingStrings&#34;&gt;StandardConformingStrings&lt;/a&gt; with &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-db/&#34;&gt;ALTER DATABASE...SET PARAMETER&lt;/a&gt;.

&lt;/div&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Turn off conforming strings for the session:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET STANDARD_CONFORMING_STRINGS TO OFF;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Verify the current setting:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SHOW STANDARD_CONFORMING_STRINGS;
            name             | setting
-----------------------------+---------
 standard_conforming_strings | off
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Turn on conforming strings for the session:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET STANDARD_CONFORMING_STRINGS TO ON;
&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/sql-reference/statements/set-statements/set-escape-string-warning/#&#34;&gt;SET ESCAPE_STRING_WARNING&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/sql-reference/language-elements/literals/string-literals/character-string-literals/#Standard&#34;&gt;Standard-Conforming Strings and Escape Characters&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET TIME ZONE</title>
      <link>/en/sql-reference/statements/set-statements/set-time-zone/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/set-statements/set-time-zone/</guid>
      <description>
        
        
        &lt;p&gt;Changes the TIME ZONE run-time parameter for the current &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/session/&#34; title=&#34;An occurrence of a user interacting with a database through the use of SQL statements.&#34;&gt;session&lt;/a&gt;. Use 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/show/#&#34;&gt;SHOW TIMEZONE&lt;/a&gt;&lt;/code&gt; to show the session&#39;s current time zone.&lt;/p&gt;
&lt;p&gt;If you set the timezone using POSIX format, the timezone abbreviation you use overrides the default timezone abbreviation. If the &lt;a href=&#34;../../../../en/sql-reference/statements/set-statements/set-datestyle/&#34;&gt;date style&lt;/a&gt; is set to POSTGRES, the timezone abbreviation you use is also used when converting a timestamp to a string.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET TIME ZONE [TO] { &lt;span class=&#34;code-variable&#34;&gt;value &lt;/span&gt;| &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;value&lt;/span&gt;&amp;#39; }
&lt;/code&gt;&lt;/pre&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;

OpenText™ Analytics Database treats literals &lt;code&gt;TIME ZONE&lt;/code&gt; and &lt;code&gt;TIMEZONE&lt;/code&gt; as synonyms.

&lt;/div&gt;
&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;value&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;One of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A time zone literal supported by the database. To view the default list of valid literals, see the files in the following directory:&lt;br /&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/opt/vertica/share/timezonesets
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A signed integer representing an offset from UTC in hours&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A time zone literal with a signed integer offset. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET TIME ZONE TO &amp;#39;America/New York -3&amp;#39;; -- equivalent to Pacific time
&lt;/code&gt;&lt;/pre&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;

Only valid timezone+offset combinations are meaningful as arguments to SET TIME ZONE. However, the database does not return an error for meaningless combinations—for example, &lt;code&gt;America/NewYork + 150&lt;/code&gt;.

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;An &lt;a href=&#34;../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/&#34;&gt;interval value&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Constants &lt;code&gt;LOCAL&lt;/code&gt; and &lt;code&gt;DEFAULT&lt;/code&gt;, which respectively set the time zone to the one specified in environment variable &lt;code&gt;TZ&lt;/code&gt;, or if &lt;code&gt;TZ&lt;/code&gt; is undefined, to the operating system time zone.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Only valid (timezone+offset) combination are acceptable as parameter for this function.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET TIME ZONE TO DEFAULT;
=&amp;gt; SET TIME ZONE TO &amp;#39;PST8PDT&amp;#39;; -- Berkeley, California
=&amp;gt; SET TIME ZONE TO &amp;#39;Europe/Rome&amp;#39;; -- Italy
=&amp;gt; SET TIME ZONE TO &amp;#39;-7&amp;#39;; -- UDT offset equivalent to PDT
=&amp;gt; SET TIME ZONE TO INTERVAL &amp;#39;-08:00 HOURS&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/using-time-zones-with/#&#34;&gt;Using time zones&lt;/a&gt;

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