<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Session functions</title>
    <link>/en/sql-reference/functions/management-functions/session-functions/</link>
    <description>Recent content in Session functions on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/sql-reference/functions/management-functions/session-functions/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Sql-Reference: CANCEL_REFRESH</title>
      <link>/en/sql-reference/functions/management-functions/session-functions/cancel-refresh/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/session-functions/cancel-refresh/</guid>
      <description>
        
        
        &lt;p&gt;Cancels refresh-related internal operations initiated by &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/projection-functions/start-refresh/#&#34;&gt;START_REFRESH&lt;/a&gt; and &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/projection-functions/refresh/#&#34;&gt;REFRESH&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CANCEL_REFRESH()
&lt;/code&gt;&lt;/pre&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;Refresh tasks run in a background thread in an internal session, so you cannot use &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/session-functions/interrupt-statement/#&#34;&gt;INTERRUPT_STATEMENT&lt;/a&gt; to cancel those statements. Instead, use CANCEL_REFRESH to cancel statements that are run by refresh-related internal sessions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run CANCEL_REFRESH() on the same node on which START_REFRESH() was initiated.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;CANCEL_REFRESH() cancels the refresh operation running on a node, waits for the cancelation to complete, and returns SUCCESS.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Only one set of refresh operations runs on a node at any time.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Cancel a refresh operation executing in the background.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT START_REFRESH();
             START_REFRESH
----------------------------------------
Starting refresh background process.
(1 row)
=&amp;gt; SELECT CANCEL_REFRESH();
              CANCEL_REFRESH
----------------------------------------
Stopping background refresh process.
(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/functions/management-functions/session-functions/interrupt-statement/#&#34;&gt;INTERRUPT_STATEMENT&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/sessions/#&#34;&gt;SESSIONS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/projection-functions/start-refresh/#&#34;&gt;START_REFRESH&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/projection-refreshes/#&#34;&gt;PROJECTION_REFRESHES&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CLOSE_ALL_SESSIONS</title>
      <link>/en/sql-reference/functions/management-functions/session-functions/close-all-sessions/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/session-functions/close-all-sessions/</guid>
      <description>
        
        
        &lt;p&gt;Closes all external sessions except the one that issues this function. Call this function before &lt;a href=&#34;../../../../../en/admin/operating-db/stopping-db/&#34;&gt;shutting down&lt;/a&gt; the OpenText™ Analytics Database.&lt;/p&gt;
&lt;p&gt;The database closes sessions asynchronously, so another session can open before this function returns. In this case, reissue this function. To view the status of all open sessions, query system table 
&lt;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/sessions/#&#34;&gt;SESSIONS&lt;/a&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CLOSE_ALL_SESSIONS()
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Non-superuser: None to close your own session&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Two user sessions are open on separate nodes:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM sessions;
-[ RECORD 1 ]--------------+----------------------------------------------------
node_name                  | v_vmartdb_node0001
user_name                  | dbadmin
client_hostname            | 127.0.0.1:52110
client_pid                 | 4554
login_timestamp            | 2011-01-03 14:05:40.252625-05
session_id                 | stress04-4325:0x14
client_label               |
transaction_start          | 2011-01-03 14:05:44.325781
transaction_id             | 45035996273728326
transaction_description    | user dbadmin (select * from sessions;)
statement_start            | 2011-01-03 15:36:13.896288
statement_id               | 10
last_statement_duration_us | 14978
current_statement          | select * from sessions;
ssl_state                  | None
authentication_method      | Trust
-[ RECORD 2 ]--------------+----------------------------------------------------
node_name                  | v_vmartdb_node0002
user_name                  | dbadmin
client_hostname            | 127.0.0.1:57174
client_pid                 | 30117
login_timestamp            | 2011-01-03 15:33:00.842021-05
session_id                 | stress05-27944:0xc1a
client_label               |
transaction_start          | 2011-01-03 15:34:46.538102
transaction_id             | -1
transaction_description    | user dbadmin (COPY Mart_Fact FROM &amp;#39;/data/mart_Fact.tbl&amp;#39;
                             DELIMITER &amp;#39;|&amp;#39; NULL &amp;#39;\\n&amp;#39;;)
statement_start            | 2011-01-03 15:34:46.538862
statement_id               |
last_statement_duration_us | 26250
current_statement          | COPY Mart_Fact FROM &amp;#39;/data/Mart_Fact.tbl&amp;#39; DELIMITER &amp;#39;|&amp;#39;
                             NULL &amp;#39;\\n&amp;#39;;
ssl_state                  | None
authentication_method      | Trust
-[ RECORD 3 ]--------------+----------------------------------------------------
node_name                  | v_vmartdb_node0003
user_name                  | dbadmin
client_hostname            | 127.0.0.1:56367
client_pid                 | 1191
login_timestamp            | 2011-01-03 15:31:44.939302-05
session_id                 | stress06-25663:0xbec
client_label               |
transaction_start          | 2011-01-03 15:34:51.05939
transaction_id             | 54043195528458775
transaction_description    | user dbadmin (COPY Mart_Fact FROM &amp;#39;/data/Mart_Fact.tbl&amp;#39;
                             DELIMITER &amp;#39;|&amp;#39; NULL &amp;#39;\\n&amp;#39; DIRECT;)
statement_start            | 2011-01-03 15:35:46.436748
statement_id               |
last_statement_duration_us | 1591403
current_statement          | COPY Mart_Fact FROM &amp;#39;/data/Mart_Fact.tbl&amp;#39; DELIMITER &amp;#39;|&amp;#39;
                             NULL &amp;#39;\\n&amp;#39; DIRECT;
ssl_state                  | None
authentication_method      | Trust
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Close all sessions:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \x
Expanded display is off.
=&amp;gt; SELECT CLOSE_ALL_SESSIONS();
                           CLOSE_ALL_SESSIONS
-------------------------------------------------------------------------
 Close all sessions command sent. Check v_monitor.sessions for progress.
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Session contents after issuing &lt;code&gt;CLOSE_ALL_SESSIONS&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM SESSIONS;
-[ RECORD 1 ]--------------+----------------------------------------
node_name                  | v_vmartdb_node0001
user_name                  | dbadmin
client_hostname            | 127.0.0.1:52110
client_pid                 | 4554
login_timestamp            | 2011-01-03 14:05:40.252625-05
session_id                 | stress04-4325:0x14
client_label               |
transaction_start          | 2011-01-03 14:05:44.325781
transaction_id             | 45035996273728326
transaction_description    | user dbadmin (SELECT * FROM sessions;)
statement_start            | 2011-01-03 16:19:56.720071
statement_id               | 25
last_statement_duration_us | 15605
current_statement          | SELECT * FROM SESSIONS;
ssl_state                  | None
authentication_method      | Trust
&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;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/session-functions/close-session/#&#34;&gt;CLOSE_SESSION&lt;/a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;

&lt;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/session-functions/close-user-sessions/#&#34;&gt;CLOSE_USER_SESSIONS&lt;/a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;

&lt;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/db-functions/shutdown/#&#34;&gt;SHUTDOWN&lt;/a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/managing-db/managing-workloads/managing-system-resource-usage/managing-sessions/#&#34;&gt;Managing sessions&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CLOSE_SESSION</title>
      <link>/en/sql-reference/functions/management-functions/session-functions/close-session/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/session-functions/close-session/</guid>
      <description>
        
        
        &lt;p&gt;Interrupts the specified external session, rolls back the current transaction if any, and closes the socket. You can only close your own session.&lt;/p&gt;
&lt;p&gt;It might take some time before a session is closed. To view the status of all open sessions, query the system table 
&lt;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/sessions/#&#34;&gt;SESSIONS&lt;/a&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;For detailed information about session management options, see &lt;a href=&#34;../../../../../en/admin/managing-db/managing-workloads/managing-system-resource-usage/managing-sessions/#&#34;&gt;Managing sessions&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CLOSE_SESSION ( &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;sessionid&lt;/span&gt;&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;&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;sessionid &lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A string that specifies the session to close. This identifier is unique within the cluster at any point in time but can be reused when the session closes.&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;User session opened. Record 2 shows the user session running a &lt;code&gt;COPY DIRECT&lt;/code&gt; statement.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM sessions;
-[ RECORD 1 ]--------------+-----------------------------------------------
node_name                  | v_vmartdb_node0001
user_name                  | dbadmin
client_hostname            | 127.0.0.1:52110
client_pid                 | 4554
login_timestamp            | 2011-01-03 14:05:40.252625-05
session_id                 | stress04-4325:0x14
client_label               |
transaction_start          | 2011-01-03 14:05:44.325781
transaction_id             | 45035996273728326
transaction_description    | user dbadmin (SELECT * FROM sessions;)
statement_start            | 2011-01-03 15:36:13.896288
statement_id               | 10
last_statement_duration_us | 14978
current_statement          | select * from sessions;
ssl_state                  | None
authentication_method      | Trust
-[ RECORD 2 ]--------------+-----------------------------------------------
node_name                  | v_vmartdb_node0002
user_name                  | dbadmin
client_hostname            | 127.0.0.1:57174
client_pid                 | 30117
login_timestamp            | 2011-01-03 15:33:00.842021-05
session_id                 | stress05-27944:0xc1a
client_label               |
transaction_start          | 2011-01-03 15:34:46.538102
transaction_id             | -1
transaction_description    | user dbadmin (COPY ClickStream_Fact FROM
                             &amp;#39;/data/clickstream/1g/ClickStream_Fact.tbl&amp;#39;
                             DELIMITER &amp;#39;|&amp;#39; NULL &amp;#39;\\n&amp;#39; DIRECT;)
statement_start            | 2011-01-03 15:34:46.538862
statement_id               |
last_statement_duration_us | 26250
current_statement          | COPY ClickStream_Fact FROM &amp;#39;/data/clickstream
                             /1g/ClickStream_Fact.tbl&amp;#39; DELIMITER &amp;#39;|&amp;#39; NULL
                             &amp;#39;\\n&amp;#39; DIRECT;
ssl_state                  | None
authentication_method      | Trust
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Close user session &lt;code&gt;stress05-27944:0xc1a&lt;/code&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \x
Expanded display is off.
=&amp;gt; SELECT CLOSE_SESSION(&amp;#39;stress05-27944:0xc1a&amp;#39;);
                           CLOSE_SESSION
--------------------------------------------------------------------
 Session close command sent. Check v_monitor.sessions for progress.
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Query the sessions table again for current status, and you can see that the second session has been closed:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM SESSIONS;
-[ RECORD 1 ]--------------+--------------------------------------------
node_name                  | v_vmartdb_node0001
user_name                  | dbadmin
client_hostname            | 127.0.0.1:52110
client_pid                 | 4554
login_timestamp            | 2011-01-03 14:05:40.252625-05
session_id                 | stress04-4325:0x14
client_label               |
transaction_start          | 2011-01-03 14:05:44.325781
transaction_id             | 45035996273728326
transaction_description    | user dbadmin (select * from SESSIONS;)
statement_start            | 2011-01-03 16:12:07.841298
statement_id               | 20
last_statement_duration_us | 2099
current_statement          | SELECT * FROM SESSIONS;
ssl_state                  | None
authentication_method      | Trust
&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;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/session-functions/close-all-sessions/#&#34;&gt;CLOSE_ALL_SESSIONS&lt;/a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;

&lt;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/db-functions/shutdown/#&#34;&gt;SHUTDOWN&lt;/a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CLOSE_USER_SESSIONS</title>
      <link>/en/sql-reference/functions/management-functions/session-functions/close-user-sessions/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/session-functions/close-user-sessions/</guid>
      <description>
        
        
        &lt;p&gt;Stops the session for a user, rolls back any transaction currently running, and closes the connection. To determine the status of the sessions to close, query the 
&lt;code&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/sessions/#&#34;&gt;SESSIONS&lt;/a&gt;&lt;/code&gt; table.

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

Running this function on your own sessions leaves one session running.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CLOSE_USER_SESSIONS ( &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;user-name&lt;/span&gt;&amp;#39; )
&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;user-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the user whose sessions are to be closed. If you specify your own user name, OpenText™ Analytics Database closes all sessions except the one in which you issue this function.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/admin/db-users-and-privileges/db-roles/predefined-db-roles/dbadmin/&#34;&gt;DBADMIN&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;This example closes all active session for user &lt;code&gt;u1&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT close_user_sessions(&amp;#39;u1&amp;#39;);
&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/functions/management-functions/session-functions/close-all-sessions/#&#34;&gt;CLOSE_ALL_SESSIONS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/session-functions/close-session/#&#34;&gt;CLOSE_SESSION&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/db-functions/shutdown/#&#34;&gt;SHUTDOWN&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: GET_NUM_ACCEPTED_ROWS</title>
      <link>/en/sql-reference/functions/management-functions/session-functions/get-num-accepted-rows/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/session-functions/get-num-accepted-rows/</guid>
      <description>
        
        
        &lt;p&gt;Returns the number of rows loaded into the database for the last completed load for the current session. GET_NUM_ACCEPTED_ROWS is a &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/meta-functions/&#34; title=&#34;Used to query or change the internal state of OpenText&amp;amp;trade; Analytics Database and are not part of the SQL standard.&#34;&gt;meta-function&lt;/a&gt;. Do not use it as a value in an INSERT query.&lt;/p&gt;
&lt;p&gt;The number of accepted rows is not available for a load that is currently in process. Check the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/load-streams/#&#34;&gt;LOAD_STREAMS&lt;/a&gt; system table for its status.&lt;/p&gt;
&lt;p&gt;This meta-function supports loads from STDIN, COPY LOCAL from an OpenText™ Analytics Database client, or a single file on the initiator. You cannot use GET_NUM_ACCEPTED_ROWS for multi-node loads.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;GET_NUM_ACCEPTED_ROWS();
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None

&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 data regarding accepted rows from the last load during the current session does not persist, and is lost when you initiate a new load.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;This examples shows the number of accepted rows from the vmart_load_data.sql meta-command.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \i vmart_load_data.sql;
=&amp;gt; SELECT GET_NUM_ACCEPTED_ROWS ();
GET_NUM_ACCEPTED_ROWS
-----------------------
300000
(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/functions/management-functions/session-functions/get-num-rejected-rows/#&#34;&gt;GET_NUM_REJECTED_ROWS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: GET_NUM_REJECTED_ROWS</title>
      <link>/en/sql-reference/functions/management-functions/session-functions/get-num-rejected-rows/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/session-functions/get-num-rejected-rows/</guid>
      <description>
        
        
        &lt;p&gt;Returns the number of rows that were rejected during the last completed load for the current session. GET_NUM_REJECTED_ROWS is a &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/meta-functions/&#34; title=&#34;Used to query or change the internal state of OpenText&amp;amp;trade; Analytics Database and are not part of the SQL standard.&#34;&gt;meta-function&lt;/a&gt;. Do not use it as a value in an INSERT query.&lt;/p&gt;
&lt;p&gt;Rejected row information is unavailable for a load that is currently running. The number of rejected rows is not available for a load that is currently in process. Check the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/load-streams/#&#34;&gt;LOAD_STREAMS&lt;/a&gt; system table for its status.&lt;/p&gt;
&lt;p&gt;This meta-function supports loads from STDIN, COPY LOCAL from an OpenText™ Analytics Database client, or a single file on the initiator. You cannot use GET_NUM_REJECTED_ROWS for multi-node loads.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;GET_NUM_REJECTED_ROWS();
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;None

&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 data regarding rejected rows from the last load during the current session does not persist, and is dropped when you initiate a new load.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;This example shows the number of rejected rows from the vmart_load_data.sql meta-command.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt;  \i vmart_load_data.sql
=&amp;gt; SELECT GET_NUM_REJECTED_ROWS ();
GET_NUM_REJECTED_ROWS
-----------------------
0
(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/functions/management-functions/session-functions/get-num-accepted-rows/#&#34;&gt;GET_NUM_ACCEPTED_ROWS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: INTERRUPT_STATEMENT</title>
      <link>/en/sql-reference/functions/management-functions/session-functions/interrupt-statement/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/session-functions/interrupt-statement/</guid>
      <description>
        
        
        &lt;p&gt;Interrupts the specified statement in a user session, rolls back the current transaction, and writes a success or failure message to the log file.&lt;/p&gt;
&lt;p&gt;Sessions can be interrupted during statement execution. Only statements run by user sessions can be interrupted.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;INTERRUPT_STATEMENT( &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;&lt;span class=&#34;code-variable&#34;&gt;session-id&lt;/span&gt;&#39;&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;&lt;span class=&#34;code-variable&#34;&gt;statement-id&lt;/span&gt;&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;session-id&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Identifies the session to interrupt. This identifier is unique within the cluster at any point in time.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;statement-id&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Identifies the statement to interrupt. If the &lt;em&gt;&lt;code&gt;*&lt;/code&gt;statement-id&lt;code&gt;*&lt;/code&gt;&lt;/em&gt; is valid, the statement can be interrupted and &lt;code&gt;INTERRUPT_STATEMENT&lt;/code&gt; returns a success message. Otherwise the system returns an error.&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;messages&#34;&gt;Messages&lt;/h2&gt;
&lt;p&gt;The following list describes messages you might encounter:

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



&lt;tr&gt; 

&lt;th &gt;
Message&lt;/th&gt; 

&lt;th &gt;
Meaning&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;Statement interrupt sent. Check SESSIONS for progress.&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


This message indicates success.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;Session &amp;lt;id&amp;gt; could not be successfully interrupted: session not found.&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


The session ID argument to the interrupt command does not match a running session.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;Session &amp;lt;id&amp;gt; could not be successfully interrupted: statement not found.&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


The statement ID does not match (or no longer matches) the ID of a running statement (if any).&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;No interruptible statement running&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


The statement is DDL or otherwise non-interruptible.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;Internal (system) sessions cannot be interrupted.&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


The session is internal, and only statements run by external sessions can be interrupted.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Two user sessions are open. RECORD 1 shows user session running &lt;code&gt;SELECT FROM SESSION&lt;/code&gt;, and RECORD 2 shows user session running &lt;code&gt;COPY DIRECT&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM SESSIONS;
-[ RECORD 1 ]--------------+----------------------------------------------------
node_name                  | v_vmartdb_node0001
user_name                  | dbadmin
client_hostname            | 127.0.0.1:52110
client_pid                 | 4554
login_timestamp            | 2011-01-03 14:05:40.252625-05
session_id                 | stress04-4325:0x14
client_label               |
transaction_start          | 2011-01-03 14:05:44.325781
transaction_id             | 45035996273728326
transaction_description    | user dbadmin (select * from sessions;)
statement_start            | 2011-01-03 15:36:13.896288
statement_id               | 10
last_statement_duration_us | 14978
current_statement          | select * from sessions;
ssl_state                  | None
authentication_method      | Trust
-[ RECORD 2 ]--------------+----------------------------------------------------
node_name                  | v_vmartdb_node0003
user_name                  | dbadmin
client_hostname            | 127.0.0.1:56367
client_pid                 | 1191
login_timestamp            | 2011-01-03 15:31:44.939302-05
session_id                 | stress06-25663:0xbec
client_label               |
transaction_start          | 2011-01-03 15:34:51.05939
transaction_id             | 54043195528458775
transaction_description    | user dbadmin (COPY Mart_Fact FROM &amp;#39;/data/Mart_Fact.tbl&amp;#39;
                             DELIMITER &amp;#39;|&amp;#39; NULL &amp;#39;\\n&amp;#39; DIRECT;)
statement_start            | 2011-01-03 15:35:46.436748
statement_id               | 5
last_statement_duration_us | 1591403
current_statement          | COPY Mart_Fact FROM &amp;#39;/data/Mart_Fact.tbl&amp;#39; DELIMITER &amp;#39;|&amp;#39;
                             NULL &amp;#39;\\n&amp;#39; DIRECT;
ssl_state                  | None
authentication_method      | Trust
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Interrupt the &lt;code&gt;COPY DIRECT&lt;/code&gt; statement running in session &lt;code&gt;stress06-25663:0xbec&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \x
Expanded display is off.
=&amp;gt; SELECT INTERRUPT_STATEMENT(&amp;#39;stress06-25663:0x1537&amp;#39;, 5);
                       interrupt_statement
------------------------------------------------------------------
 Statement interrupt sent. Check v_monitor.sessions for progress.
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Verify that the interrupted statement is no longer active by looking at the &lt;code&gt;current_statement&lt;/code&gt; column in the &lt;code&gt;SESSIONS&lt;/code&gt; system table. This column becomes blank when the statement is interrupted:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM SESSIONS;
-[ RECORD 1 ]--------------+----------------------------------------------------
node_name                  | v_vmartdb_node0001
user_name                  | dbadmin
client_hostname            | 127.0.0.1:52110
client_pid                 | 4554
login_timestamp            | 2011-01-03 14:05:40.252625-05
session_id                 | stress04-4325:0x14
client_label               |
transaction_start          | 2011-01-03 14:05:44.325781
transaction_id             | 45035996273728326
transaction_description    | user dbadmin (select * from sessions;)
statement_start            | 2011-01-03 15:36:13.896288
statement_id               | 10
last_statement_duration_us | 14978
current_statement          | select * from sessions;
ssl_state                  | None
authentication_method      | Trust
-[ RECORD 2 ]--------------+----------------------------------------------------
node_name                  | v_vmartdb_node0003
user_name                  | dbadmin
client_hostname            | 127.0.0.1:56367
client_pid                 | 1191
login_timestamp            | 2011-01-03 15:31:44.939302-05
session_id                 | stress06-25663:0xbec
client_label               |
transaction_start          | 2011-01-03 15:34:51.05939
transaction_id             | 54043195528458775
transaction_description    | user dbadmin (COPY Mart_Fact FROM &amp;#39;/data/Mart_Fact.tbl&amp;#39;
                             DELIMITER &amp;#39;|&amp;#39; NULL &amp;#39;\\n&amp;#39; DIRECT;)
statement_start            | 2011-01-03 15:35:46.436748
statement_id               | 5
last_statement_duration_us | 1591403
current_statement          |
ssl_state                  | None
authentication_method      | Trust
&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/system-tables/v-monitor-schema/sessions/#&#34;&gt;SESSIONS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/managing-db/managing-workloads/managing-system-resource-usage/managing-sessions/#&#34;&gt;Managing sessions&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: RELEASE_ALL_JVM_MEMORY</title>
      <link>/en/sql-reference/functions/management-functions/session-functions/release-all-jvm-memory/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/session-functions/release-all-jvm-memory/</guid>
      <description>
        
        
        &lt;p&gt;Forces all sessions to release the memory consumed by their Java Virtual Machines (JVM).&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;RELEASE_ALL_JVM_MEMORY();
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Must be a &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;superuser&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example demonstrates viewing the JVM memory use in all open sessions, then calling RELEASE_ALL_JVM_MEMORY() to release the memory:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; select user_name,external_memory_kb FROM V_MONITOR.SESSIONS;
 user_name | external_memory_kb
-----------+---------------
 dbadmin   |         79705
(1 row)

=&amp;gt; SELECT RELEASE_ALL_JVM_MEMORY();
                           RELEASE_ALL_JVM_MEMORY
-----------------------------------------------------------------------------
 Close all JVM sessions command sent. Check v_monitor.sessions for progress.
(1 row)

=&amp;gt; SELECT user_name,external_memory_kb FROM V_MONITOR.SESSIONS;
 user_name | external_memory_kb
-----------+---------------
 dbadmin   |             0
(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/functions/management-functions/session-functions/release-jvm-memory/#&#34;&gt;RELEASE_JVM_MEMORY&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: RELEASE_JVM_MEMORY</title>
      <link>/en/sql-reference/functions/management-functions/session-functions/release-jvm-memory/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/session-functions/release-jvm-memory/</guid>
      <description>
        
        
        &lt;p&gt;Terminates a Java Virtual Machine (JVM), making available the memory the JVM was using.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;RELEASE_JVM_MEMORY();
&lt;/code&gt;&lt;/pre&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;User session opened. RECORD 2 shows the user session running COPY DIRECT statement.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT RELEASE_JVM_MEMORY();
           release_jvm_memory
-----------------------------------------
Java process killed and memory released
(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/functions/management-functions/session-functions/release-all-jvm-memory/#&#34;&gt;RELEASE_ALL_JVM_MEMORY&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: RESERVE_SESSION_RESOURCE</title>
      <link>/en/sql-reference/functions/management-functions/session-functions/reserve-session-resource/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/session-functions/reserve-session-resource/</guid>
      <description>
        
        
        &lt;p&gt;Reserves memory resources from the general resource pool for the exclusive use of the backup and restore process. No other OpenText™ Analytics Database process can access reserved resources. If insufficient resources are available, the database queues the reservation request.&lt;/p&gt;
&lt;p&gt;This meta-function is a session level reservation. When a session ends, the database automatically releases any resources reserved in that session. Because the meta-function operates at the session level, the resource name does not need to be unique across multiple sessions.&lt;/p&gt;
&lt;p&gt;You can view reserved resources by querying the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/sessions/&#34;&gt;SESSIONS&lt;/a&gt; table.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;RESERVE_SESSION_RESOURCE ( &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;name&lt;/span&gt;&amp;#39;, &lt;span class=&#34;code-variable&#34;&gt;memory&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;name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the resource to reserve.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;memory&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The amount of memory in kilobytes to allocate to the resource.&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;Reserve 1024 kilobytes of memory for the backup and restore process:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT reserve_session_resource(&amp;#39;VBR_RESERVE&amp;#39;,1024);
   -[ RECORD 1 ]------------+----------------
   reserve_session_resource | Grant succeed
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: RESET_SESSION</title>
      <link>/en/sql-reference/functions/management-functions/session-functions/reset-session/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/session-functions/reset-session/</guid>
      <description>
        
        
        &lt;p&gt;Applies your default connection string configuration settings to your current session.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;RESET_SESSION()
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example shows how you use RESET_SESSION.&lt;/p&gt;
&lt;p&gt;Resets the current client connection string to the default connection string settings:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT RESET_SESSION();
    RESET_SESSION
----------------------
 Reset session: done.
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
  </channel>
</rss>
