<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – CREATE statements</title>
    <link>/en/sql-reference/statements/create-statements/</link>
    <description>Recent content in CREATE statements on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/sql-reference/statements/create-statements/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Sql-Reference: CREATE ACCESS POLICY</title>
      <link>/en/sql-reference/statements/create-statements/create-access-policy/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-access-policy/</guid>
      <description>
        
        
        &lt;p&gt;Creates an &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/access-policies/&#34;&gt;access policy&lt;/a&gt; that filters access to table data to users and roles. You can create access policies for table rows and columns. The database applies the access policy filters with each query and returns only the data that is permissible for the current user or role.&lt;/p&gt;
&lt;p&gt;You cannot set access policies on columns of complex data types other than native arrays. If the table contains complex-type columns, you can still set row access policies and column access policies on other columns.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
CREATE ACCESS POLICY ON [[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;table&lt;/span&gt;
    { FOR COLUMN &lt;span class=&#34;code-variable&#34;&gt;column&lt;/span&gt; | FOR ROWS WHERE } &lt;span class=&#34;code-variable&#34;&gt;expression&lt;/span&gt; [GRANT TRUSTED] { ENABLE | DISABLE }
&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;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;table&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The table with the target column or rows.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;FOR COLUMN &lt;/code&gt;&lt;em&gt;&lt;code&gt;column&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The column on which to apply this access policy. The column can be a native array, but other complex types are not supported. (See &lt;a href=&#34;../../../../en/sql-reference/data-types/complex-types/#&#34;&gt;Complex types&lt;/a&gt;.)&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;FOR ROWS WHERE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The rows on which to apply this access policy.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;expression&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A SQL expression that specifies conditions for accessing row or column data:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Row access policies limit access to specific rows in a table, as specified by the policy&#39;s &lt;span class=&#34;sql&#34;&gt;WHERE&lt;/span&gt; expression. Only rows that satisfy this expression are fetched from the table. For details and sample usage, see &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/access-policies/creating-row-access-policies/#&#34;&gt;Creating row access policies&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Column access policies limit access to specific table columns. The access policy expression can also specify how to render column data to specific users and roles. For details and sample usage, see &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/access-policies/creating-column-access-policies/#&#34;&gt;Creating column access policies&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;GRANT TRUSTED&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Specifies that GRANT statements take precedence over the access policy in determining whether users can perform DML operations on the target table. If omitted, users can only modify table data if the access policy allows them to see the stored data in its original, unaltered state. For more information, see &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/access-policies/access-policies-and-dml-operations/#&#34;&gt;Access policies and DML operations&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
GRANT TRUSTED only affects DML operations and does not enable users to see data that the access policy would otherwise mask. Specifying this option may allow users with certain grants to update data that they cannot see.
&lt;/div&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ENABLE | DISABLE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Whether to enable the access policy. You can enable and disable existing access policies with &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-access-policy/#&#34;&gt;ALTER ACCESS POLICY&lt;/a&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Non-superuser: Ownership of the table&lt;/p&gt;
&lt;h2 id=&#34;restrictions&#34;&gt;Restrictions&lt;/h2&gt;
&lt;p&gt;The following limitations apply to access policies:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A column can have only one access policy.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Column access policies cannot be set on columns of complex types other than native arrays.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Column access policies cannot be set for materialized columns on flex tables. While it is possible to set an access policy for the &lt;code&gt;__raw__&lt;/code&gt; column, doing so restricts access to the whole table.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Row access policies are invalid on temporary tables and tables with aggregate projections.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Access policy expressions cannot contain:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Subqueries&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Aggregate functions&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Analytic functions&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;User-defined transform functions (UDTF)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the query optimizer cannot replace a deterministic expression that involves only constants with their computed values, it blocks all DML operations such as &lt;span class=&#34;sql&#34;&gt;INSERT&lt;/span&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/db-users-and-privileges/access-policies/#&#34;&gt;Access policies&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-access-policy/#&#34;&gt;ALTER ACCESS POLICY&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-access-policy/#&#34;&gt;DROP ACCESS POLICY&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE ARCHIVE</title>
      <link>/en/sql-reference/statements/create-statements/create-archive/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-archive/</guid>
      <description>
        
        
        &lt;p&gt;&lt;strong&gt;Eon Mode only&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Creates an archive for &lt;a href=&#34;../../../../en/eon/revive-eon-db/in-db-restore-points/&#34;&gt;in-database restore points&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After you create an archive, you can save restore points to it using the &lt;a href=&#34;../../../../en/sql-reference/statements/save-restore-point/#&#34;&gt;SAVE RESTORE POINT TO ARCHIVE&lt;/a&gt; statement. The archive stores restore points in descending chronological order based on the time at which the restore points were saved, where an index of 1 specifies the most recently saved restore point.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE ARCHIVE &lt;span class=&#34;code-variable&#34;&gt;archive-name&lt;/span&gt; [ LIMIT &lt;span class=&#34;code-variable&#34;&gt;max-restore-points&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;archive-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the archive to create, where &lt;em&gt;&lt;code&gt;archive-name&lt;/code&gt;&lt;/em&gt; conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;max-restore-points&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Maximum number of restore points to store in the archive. If an archive contains &lt;em&gt;&lt;code&gt;max-restore-points&lt;/code&gt;&lt;/em&gt; restore points and a new restore point is created, the oldest restore point in the archive is deleted. The default value is &#39;unlimited&#39;.&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;The following statement creates an archive named &lt;code&gt;verticadb&lt;/code&gt; that stores a maximum of three restore points:&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;ARCHIVE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;verticadb&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LIMIT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;3&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ARCHIVE&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;p&gt;To view all archives in the database, query the &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/archives/#&#34;&gt;ARCHIVES&lt;/a&gt; system table:&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;o&#34;&gt;*&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ARCHIVES&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;n&#34;&gt;name&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;limit_count&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;verticadb&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;mi&#34;&gt;3&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;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-archive/#&#34;&gt;ALTER ARCHIVE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-archive/#&#34;&gt;DROP ARCHIVE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/save-restore-point/#&#34;&gt;SAVE RESTORE POINT TO ARCHIVE&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE AUTHENTICATION</title>
      <link>/en/sql-reference/statements/create-statements/create-authentication/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-authentication/</guid>
      <description>
        
        
        &lt;p&gt;Creates and enables an authentication record associated with users or roles. Authentication records are automatically enabled after creation.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE AUTHENTICATION &lt;span class=&#34;code-variable&#34;&gt;auth-record-name&lt;/span&gt;
            METHOD &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;auth-method&lt;/span&gt;&amp;#39;
            &lt;span class=&#34;code-variable&#34;&gt;access-method&lt;/span&gt;
            [ FALLTHROUGH ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;

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



&lt;tr&gt; 

&lt;th &gt;
Name&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;em&gt;&lt;code&gt;auth-record-name&lt;/code&gt;&lt;/em&gt;&lt;/td&gt; 

&lt;td &gt;
Name of the authentication record, where &lt;em&gt;&lt;code&gt;auth-record-name&lt;/code&gt;&lt;/em&gt; conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;em&gt;&lt;code&gt;auth-method&lt;/code&gt;&lt;/em&gt;&lt;/td&gt; 

&lt;td &gt;
































&lt;p&gt;The authentication method, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;trust&lt;/code&gt;: Users can authenticate with a valid username (that is, without a password).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;reject&lt;/code&gt;: Rejects the connection attempt.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;hash&lt;/code&gt;: Users must provide a valid username and password. For details, see &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/hash-authentication/#&#34;&gt;Hash authentication&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;gss&lt;/code&gt;: Authorizes clients that connect to the database with an MIT Kerberos implementation. The Key Distribution Center (KDC) must support Kerberos 5 using the GSS-API. Non-MIT Kerberos implementations must use the GSS-API. For details, see &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/kerberos-authentication/#&#34;&gt;Kerberos authentication&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ident&lt;/code&gt;: Authenticates the client against a username on an Ident server. For details, see &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/ident-authentication/#&#34;&gt;Ident authentication&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ldap&lt;/code&gt;: Authenticates a client and their username and password with an LDAP or Active Directory server. For details, see &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/ldap-authentication/#&#34;&gt;LDAP authentication&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;tls&lt;/code&gt;: Authenticates clients that provide a certificate with a Common Name (CN) that specifies a valid database username. The database must be configured for &lt;a href=&#34;../../../../en/security-and-authentication/tls-protocol/tls-overview/configuring-client-server-tls/&#34;&gt;mutual mode TLS&lt;/a&gt; to use this method. For details, see &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/tls-authentication/#&#34;&gt;TLS authentication&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;oauth&lt;/code&gt;: Authenticates a client with an access token. For details, see &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/oauth-2-0-authentication/#&#34;&gt;OAuth 2.0 authentication&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For details, see &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/configuring-client-authentication/#Supported&#34;&gt;Supported Client Authentication Methods&lt;/a&gt;.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;em&gt;&lt;code&gt;access-method&lt;/code&gt;&lt;/em&gt;&lt;/td&gt; 

&lt;td &gt;









&lt;p&gt;The access method the client uses to connect, specified in one of the following ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;LOCAL&lt;/code&gt;: Matches connection attempts made using local domain sockets.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;HOST [ TLS | NO TLS ] &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;host-ip-address&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;: Matches connection attempts made using TCP/IP, where &lt;em&gt;&lt;code&gt;host-ip-address&lt;/code&gt;&lt;/em&gt; can be an IPv4 or IPv6 address. You can qualify &lt;code&gt;HOST&lt;/code&gt; with one of the following options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;TLS&lt;/code&gt; (default): Match an SSL/TLS-wrapped TCP socket.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NO TLS&lt;/code&gt;: Match a plain (non-SSL/TLS) socket only.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;em&gt;&lt;code&gt;ENFORCEMFA&lt;/code&gt;&lt;/em&gt;&lt;/td&gt; 

&lt;td &gt;


Enables multi-factor authentication (MFA) for the authentication method. When enabled, users receive a Totp secret key the first time they sign in to the server through a client. Users must then register this secret key in an authenticator application to generate the Totp.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
[ FALLTHROUGH ]&lt;/td&gt; 

&lt;td &gt;



















&lt;p&gt;Whether to enable &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/fallthrough-authentication/&#34;&gt;fallthrough authentication&lt;/a&gt; for this record. To disable fallthrough, see &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-authentication/#&#34;&gt;ALTER AUTHENTICATION&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Fallthrough cannot be enabled for authentication records that use the following authentication methods:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;gss&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;oauth&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;reject&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;trust&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;DBADMIN&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/creating-authentication-records/#&#34;&gt;Creating authentication records&lt;/a&gt;.&lt;/p&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-authentication/#&#34;&gt;ALTER AUTHENTICATION&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-authentication/#&#34;&gt;DROP AUTHENTICATION&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-authentication/#&#34;&gt;GRANT (authentication)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/revoke-statements/revoke-authentication/#&#34;&gt;REVOKE (authentication)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE CA BUNDLE</title>
      <link>/en/sql-reference/statements/create-statements/create-ca-bundle/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-ca-bundle/</guid>
      <description>
        
        
        
&lt;div class=&#34;admonition deprecated&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Deprecated&lt;/h4&gt;

CA bundles are only usable with certain deprecated parameters in &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-notifier/&#34;&gt;Kafka notifiers&lt;/a&gt;. You should prefer using &lt;a href=&#34;../../../../en/security-and-authentication/tls-protocol/tls-overview/tls-configs/#&#34;&gt;TLS configurations&lt;/a&gt; and the TLS CONFIGURATION parameter for notifiers instead.

&lt;/div&gt;

&lt;p&gt;Creates a certificate authority (CA) bundle. These contain root CA certificates.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE CA BUNDLE &lt;span class=&#34;code-variable&#34;&gt;name&lt;/span&gt; [CERTIFICATES &lt;span class=&#34;code-variable&#34;&gt;ca_cert&lt;/span&gt;[, &lt;span class=&#34;code-variable&#34;&gt;ca_cert&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;name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the CA bundle.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ca_cert&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the CA certificate. If no certificates are specified, the bundle will be empty.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Ownership of the CA certificates in the CA bundle.&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/security-and-authentication/tls-protocol/tls-overview/managing-ca-bundles/#&#34;&gt;Managing CA bundles&lt;/a&gt;.&lt;/p&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-ca-bundle/#&#34;&gt;ALTER CA BUNDLE&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-ca-bundle/#&#34;&gt;DROP CA BUNDLE&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE CERTIFICATE</title>
      <link>/en/sql-reference/statements/create-statements/create-certificate/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-certificate/</guid>
      <description>
        
        
        &lt;p&gt;Creates or imports a certificate, Certificate Authority (CA), or intermediate CA. These certificates can be used with &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-tls-config/#&#34;&gt;ALTER TLS CONFIGURATION&lt;/a&gt; to set up &lt;a href=&#34;../../../../en/security-and-authentication/tls-protocol/tls-overview/configuring-client-server-tls/&#34;&gt;client-server TLS&lt;/a&gt;, &lt;a href=&#34;../../../../en/security-and-authentication/ldap-link-service/tls-ldap-link/&#34;&gt;LDAPLink TLS&lt;/a&gt;, &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/ldap-authentication/tls-ldap-authentication/&#34;&gt;LDAPAuth TLS&lt;/a&gt;, and &lt;a href=&#34;../../../../en/security-and-authentication/internode-tls/data-channel-tls/&#34;&gt;internode TLS&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;CREATE CERTIFICATE generates x509v3 certificates.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE [TEMP[ORARY]] [CA] CERTIFICATE &lt;span class=&#34;code-variable&#34;&gt;certificate_name&lt;/span&gt;
    {AS &lt;span class=&#34;code-variable&#34;&gt;cert&lt;/span&gt; [KEY &lt;span class=&#34;code-variable&#34;&gt;key_name&lt;/span&gt;]
    | SUBJECT &lt;span class=&#34;code-variable&#34;&gt;subject&lt;/span&gt;
      [ SIGNED BY &lt;span class=&#34;code-variable&#34;&gt;ca_cert&lt;/span&gt; ]
      [ VALID FOR &lt;span class=&#34;code-variable&#34;&gt;days&lt;/span&gt; ]
      [ EXTENSIONS &lt;span class=&#34;code-variable&#34;&gt;ext&lt;/span&gt; = &lt;span class=&#34;code-variable&#34;&gt;val&lt;/span&gt;[,...] ]
      [ KEY &lt;span class=&#34;code-variable&#34;&gt;private_key&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;TEMPORARY&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Create with session scope. The key is stored in memory and is valid only for the current session.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;CA&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Designates the certificate as a CA or intermediate certificate. If omitted, the operation creates a normal certificate.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;certificate_name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the certificate.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;AS &lt;/code&gt;&lt;em&gt;&lt;code&gt;cert&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The imported certificate (string).
&lt;p&gt;This parameter should include the entire chain of certificates, excluding the CA certificate.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;KEY &lt;/code&gt;&lt;em&gt;&lt;code&gt;key_name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the key.
&lt;p&gt;This parameter only needs to be set for client/server certificates and CA certificates that will be used to sign other certificates in OpenText™ Analytics Database. If your imported CA certificate is only for validating other certificates, you do not need to specify a key.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;SUBJECT &lt;/code&gt;&lt;em&gt;&lt;code&gt;subject&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The entity to issue the certificate to (string).&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;SIGNED BY &lt;/code&gt;&lt;em&gt;&lt;code&gt;ca_cert&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the CA that signed the certificate.
&lt;p&gt;When adding a CA certificate, this parameter is optional. Specifying it will create an intermediate CA that cannot be used to sign other CA certificates.&lt;/p&gt;
&lt;p&gt;When creating a certificate, this parameter is required.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;VALID FOR &lt;/code&gt;&lt;em&gt;&lt;code&gt;days&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The number of days that the certificate is valid.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;EXTENSIONS &lt;/code&gt;&lt;em&gt;&lt;code&gt;ext&lt;/code&gt;&lt;/em&gt;&lt;code&gt;=&lt;/code&gt;&lt;em&gt;&lt;code&gt;val&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Strings specifying certificate extensions. For a full list of extensions, see the &lt;a href=&#34;https://www.openssl.org/docs/man1.1.1/man5/x509v3_config.html&#34;&gt;OpenSSL documentation&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;KEY &lt;/code&gt;&lt;em&gt;&lt;code&gt;private_key&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the certificate&#39;s private key.
&lt;p&gt;When importing a certificate, this parameter is required.&lt;/p&gt;
&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;default-extensions&#34;&gt;Default extensions&lt;/h2&gt;
&lt;p&gt;CREATE CERTIFICATE generates x509v3 certificates and includes several extensions by default. These differ based on the type of certificate you create:&lt;/p&gt;
&lt;p&gt;CA Certificate:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&#39;basicConstraints&#39; = &#39;critical, CA:true&#39;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&#39;keyUsage&#39; = &#39;critical, digitalSignature, keyCertSign&#39;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&#39;nsComment&#39; = OpenText&amp;amp;trade; Analytics Database generated [CA] certificate&#39;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&#39;subjectKeyIdentifier&#39; = &#39;hash&#39;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Certificate:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&#39;basicConstraints&#39; = &#39;CA:false&#39;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&#39;keyUsage&#39; = &#39;critical, digitalSignature, keyEncipherment&#39;&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;See &lt;a href=&#34;../../../../en/security-and-authentication/tls-protocol/tls-overview/generating-tls-certificates-and-keys/#&#34;&gt;Generating TLS certificates and keys&lt;/a&gt;.&lt;/p&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/create-statements/create-key/#&#34;&gt;CREATE KEY&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE DATA LOADER</title>
      <link>/en/sql-reference/statements/create-statements/create-data-loader/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-data-loader/</guid>
      <description>
        
        
        &lt;p&gt;CREATE DATA LOADER creates an automatic data loader that executes a &lt;a href=&#34;../../../../en/sql-reference/statements/copy/#&#34;&gt;COPY&lt;/a&gt; statement when new data files appear in a specified path. The loader records which files have already been successfully loaded and skips them. These events are recorded in the &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/data-loader-events/#&#34;&gt;DATA_LOADER_EVENTS&lt;/a&gt; system table.&lt;/p&gt;
&lt;p&gt;You can execute a data loader in the following ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;On demand: Use &lt;a href=&#34;../../../../en/sql-reference/statements/execute-data-loader/#&#34;&gt;EXECUTE DATA LOADER&lt;/a&gt; to execute the data loader once.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;On a schedule: Use a &lt;a href=&#34;../../../../en/extending/stored-procedures/executing-stored-procedures/triggers/scheduled-execution/&#34;&gt;scheduled stored procedure&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In response to a notification (AWS SQS only): Define a &lt;a href=&#34;#triggers&#34;&gt;trigger&lt;/a&gt; on the data loader.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Executing the loader automatically commits the transaction.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/data-loaders/#&#34;&gt;DATA_LOADERS&lt;/a&gt; system table shows all defined loaders. The &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/data-loader-events/#&#34;&gt;DATA_LOADER_EVENTS&lt;/a&gt; system table records paths that were attempted and their outcomes. To prevent unbounded growth, records in DATA_LOADER_EVENTS are purged after a specified retention interval. If previously-loaded files are still in the source path after this purge, the data loader sees them as new files and loads them again.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE [ OR REPLACE ] DATA LOADER [ IF NOT EXISTS ]
   [&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;name&lt;/span&gt;
   [ RETRY LIMIT { NONE | DEFAULT | &lt;span class=&#34;code-variable&#34;&gt;limit&lt;/span&gt; } ]
   [ RETENTION INTERVAL &lt;span class=&#34;code-variable&#34;&gt;monitoring-retention&lt;/span&gt; ]
   [ TRIGGERED BY &lt;span class=&#34;code-variable&#34;&gt;integration-json&lt;/span&gt; ]
   AS &lt;span class=&#34;code-variable&#34;&gt;copy-statement&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;code&gt;OR REPLACE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;If a data loader with the same name in the same schema exists, replace it. The original data loader&#39;s monitoring table is dropped.
&lt;p&gt;This option cannot be used with &lt;code&gt;IF NOT EXISTS&lt;/code&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;IF NOT EXISTS&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;If an object with the same name exists, return without creating the object. If you do not use this directive and the object already exists, the database returns with an error message.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;IF NOT EXISTS&lt;/code&gt; clause is useful for SQL scripts where you might not know if the object already exists. The &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/on-error-stop/&#34;&gt;ON ERROR STOP&lt;/a&gt; directive can be helpful in scripts.&lt;/p&gt;

&lt;p&gt;This option cannot be used with &lt;code&gt;OR REPLACE&lt;/code&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Schema containing the data loader. The default schema is &lt;code&gt;public&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the data loader.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;RETRY LIMIT { NONE | DEFAULT | &lt;/code&gt; &lt;em&gt;&lt;code&gt;limit&lt;/code&gt;&lt;/em&gt; &lt;code&gt;}&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Maximum number of times to retry a failing file. Each time the data loader is executed, it attempts to load all files that have not yet been successfully loaded, up to this per-file limit. If set to DEFAULT, at load time the loader uses the value of the &lt;a href=&#34;../../../../en/sql-reference/config-parameters/general-parameters/#DataLoaderDefaultRetryLimit&#34;&gt;DataLoaderDefaultRetryLimit&lt;/a&gt; configuration parameter.
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; &lt;code&gt;DEFAULT&lt;/code&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;RETENTION INTERVAL&lt;/code&gt; &lt;em&gt;&lt;code&gt;monitoring-retention&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;How long to keep records in the events table. &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/data-loader-events/#&#34;&gt;DATA_LOADER_EVENTS&lt;/a&gt; records events for all data loaders, but each data loader has its own retention interval.
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; &lt;code&gt;14 days&lt;/code&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;TRIGGERED BY&lt;/code&gt; &lt;em&gt;&lt;code&gt;integration-json&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Information about an external input for the data loader, a JSON object with the following keys:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;provider&lt;/code&gt; (required): name of the provider; the only supported value is &amp;quot;AWS-SQS&amp;quot;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;resourceUrl&lt;/code&gt; (required): endpoint for the integration.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;timeout&lt;/code&gt;: number of seconds to wait between loads. The default is 10.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;minFileNumPerLoad&lt;/code&gt;: if the number of files waiting to be loaded reaches this threshold, the load begins immediately instead of waiting for the next scheduled load. The default is 10 files.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;minTotalSizePerLoad&lt;/code&gt;: if the total size of files waiting to be loaded reaches this threshold, the load begins immediately. The value is an integer with a unit of measure, one of &lt;code&gt;K&lt;/code&gt;, &lt;code&gt;M&lt;/code&gt;, &lt;code&gt;G&lt;/code&gt;, or &lt;code&gt;T&lt;/code&gt;. The default is &lt;code&gt;1G&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If a data loader has a trigger, the loader is initially disabled. When you are ready to use it, use &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-data-loader/#&#34;&gt;ALTER DATA LOADER&lt;/a&gt; with the ENABLE option. Once the loader is enabled, it is automatically executed when SQS produces notifications for new files. For details, see &lt;a href=&#34;#triggers&#34;&gt;Triggers&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;AS&lt;/code&gt; &lt;em&gt;&lt;code&gt;copy-statement&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The COPY statement that the loader executes. The FROM clause typically uses a glob.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Non-superuser: CREATE privileges on the schema.&lt;/p&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;

To use data loader commands with the TRIGGERED BY clause, you need to have READ permissions to the source storage location or (pseudo)superuser privileges.

&lt;/div&gt;
&lt;h2 id=&#34;restrictions&#34;&gt;Restrictions&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;COPY NO COMMIT is not supported.&lt;/li&gt;
&lt;li&gt;Data loaders are executed with COPY ABORT ON ERROR.&lt;/li&gt;
&lt;li&gt;The COPY statement must specify file paths. You cannot use COPY FROM VERTICA.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a name=&#34;triggers&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;triggers-aws-sqs-only&#34;&gt;Triggers (AWS SQS only)&lt;/h2&gt;
&lt;p&gt;If the data to be loaded is stored on AWS and you have configured an &lt;a href=&#34;https://aws.amazon.com/sqs/&#34;&gt;SQS queue&lt;/a&gt;, then instead of executing a data loader explicitly using &lt;a href=&#34;../../../../en/sql-reference/statements/execute-data-loader/#&#34;&gt;EXECUTE DATA LOADER&lt;/a&gt;, you can define the loader to respond to S3 events. When files are added to the AWS bucket, a service running on AWS adds a message to the SQS queue.  The database reads from this queue, executes the data loader, and, if the load was successful, removes the message from the queue. After the initial setup, this process is automatic.&lt;/p&gt;
&lt;p&gt;To configure the data loader to read from SQS, use the TRIGGERED BY option with a JSON object following this template:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;{
  &amp;#34;provider&amp;#34; : &amp;#34;AWS-SQS&amp;#34;,
  &amp;#34;resourceUrl&amp;#34; : &amp;#34;https://sqs.&lt;span class=&#34;code-variable&#34;&gt;region&lt;/span&gt;.amazonaws.com/&lt;span class=&#34;code-variable&#34;&gt;account_number&lt;/span&gt;/&lt;span class=&#34;code-variable&#34;&gt;queue_name&lt;/span&gt;&amp;#34;
}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can set additional values to control timing. See the description of the &lt;code&gt;TRIGGERED BY&lt;/code&gt; syntax.&lt;/p&gt;
&lt;p&gt;Use the following &lt;a href=&#34;../../../../en/sql-reference/config-parameters/sqs-parameters/#&#34;&gt;SQS parameters&lt;/a&gt; to authenticate to SQS:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;SQSAuth&lt;/code&gt;, to set an ID and key for all queue access.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;SQSQueueCredentials&lt;/code&gt;, to set per-queue access. Queue-specific values take precedence over &lt;code&gt;SQSAuth&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A data loader with an SQS trigger is initially disabled. Use &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-data-loader/#&#34;&gt;ALTER DATA LOADER&lt;/a&gt; with the ENABLE option when you are ready to begin processing events. To pause execution, call ALTER DATA LOADER with the DISABLE option.&lt;/p&gt;
&lt;p&gt;You can alter the trigger JSON using ALTER DATA LOADER. You must disable the loader before changing the trigger and then enable it again.&lt;/p&gt;
&lt;p&gt;If a data loader has a trigger, you must disable it before dropping it.&lt;/p&gt;
&lt;h2 id=&#34;file-systems&#34;&gt;File systems&lt;/h2&gt;
&lt;p&gt;The source path can be any shared file system or object store that all database nodes can access.  To use an HDFS or Linux file system safely, you must prevent the loader from reading a partially-written file.  One way to achieve this is to only execute the loader when files are not being written to the loader&#39;s path.  Another way to achieve this is to write new files in a temporary location and move them to the loader&#39;s path only when they are complete.&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following data loader can be executed manually or by using a scheduled stored procedure:&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;k&#34;&gt;DATA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;LOADER&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;dl1&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;RETRY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LIMIT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;NONE&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;AS&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;COPY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;local&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;s3://b/data/*.dat&amp;#39;&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&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;n&#34;&gt;name&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;n&#34;&gt;schemaname&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;n&#34;&gt;copystmt&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;n&#34;&gt;retrylimit&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;data_loaders&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;n&#34;&gt;name&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;schemaname&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;copystmt&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;retrylimit&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;dl1&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;s&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;COPY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;local&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;s3://b/data/*.dat&amp;#39;&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;o&#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&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;p&gt;The following data loader reads from an SQS queue on AWS and loads new files automatically at least every 10 seconds, or immediately when five files or 100MB of data accumulate:&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;k&#34;&gt;DATA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;LOADER&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;dl2&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;n&#34;&gt;TRIGGERED&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;BY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;{ &amp;#34;provider&amp;#34; : &amp;#34;AWS-SQS&amp;#34;, 
&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;s1&#34;&gt;                   &amp;#34;resourceUrl&amp;#34; : &amp;#34;https://sqs.us-east-1.amazonaws.com/accountID/queueName&amp;#34;,
&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;s1&#34;&gt;                   &amp;#34;minFileNumPerLoad&amp;#34; : &amp;#34;5&amp;#34;,
&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;s1&#34;&gt;                   &amp;#34;minTotalSizePerLoad&amp;#34; : &amp;#34;100M&amp;#34; }&amp;#39;&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;AS&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;COPY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;local&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;s3://b/data/*.dat&amp;#39;&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;p&gt;See &lt;a href=&#34;../../../../en/data-load/automatic-load/#&#34;&gt;Automatic load&lt;/a&gt; for an extended example.&lt;/p&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/execute-data-loader/#&#34;&gt;EXECUTE DATA LOADER&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-data-loader/#&#34;&gt;ALTER DATA LOADER&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-data-loader/#&#34;&gt;DROP DATA LOADER&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE DIRECTED QUERY</title>
      <link>/en/sql-reference/statements/create-statements/create-directed-query/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-directed-query/</guid>
      <description>
        
        
        &lt;p&gt;Saves an association between an input query and a query that is annotated with optimizer hints.&lt;/p&gt;
&lt;p&gt;CREATE DIRECTED QUERY has two variants:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../../../en/admin/managing-queries/directed-queries/creating-directed-queries/optimizer-generated-directed-queries/&#34;&gt;CREATE DIRECTED QUERY OPTIMIZER&lt;/a&gt; directs the query optimizer to generate annotated SQL from the specified input query. The annotated query contains hints that the optimizer can use to recreate its current query plan for that input query.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../../en/admin/managing-queries/directed-queries/creating-directed-queries/custom-directed-queries/&#34;&gt;CREATE DIRECTED QUERY CUSTOM&lt;/a&gt; specifies an annotated query supplied by the user. OpenText™ Analytics Database
associates the annotated query with the input query specified by the last &lt;a href=&#34;../../../../en/sql-reference/statements/save-query/#&#34;&gt;SAVE QUERY&lt;/a&gt; statement.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In both cases, the database associates the annotated query and input query, and registers their association in the system table &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/directed-queries/#&#34;&gt;DIRECTED_QUERIES&lt;/a&gt; under &lt;code&gt;query_name&lt;/code&gt;.&lt;/p&gt;

&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;h3 id=&#34;optimizer-generated&#34;&gt;Optimizer-generated&lt;/h3&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE DIRECTED QUERY OPT[IMIZER] &lt;span class=&#34;code-variable&#34;&gt;query-name &lt;/span&gt;[COMMENT &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;comments&lt;/span&gt;&amp;#39;] &lt;span class=&#34;code-variable&#34;&gt;input-query&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;user-defined-custom&#34;&gt;User-defined (custom)&lt;/h3&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE DIRECTED QUERY CUSTOM &lt;span class=&#34;code-variable&#34;&gt;query-name &lt;/span&gt;[COMMENT &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;comments&lt;/span&gt;&amp;#39;] &lt;span class=&#34;code-variable&#34;&gt;annotated-query&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;OPT[IMIZER]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Directs the query optimizer to generate an annotated query from &lt;em&gt;&lt;code&gt;input-query&lt;/code&gt;&lt;/em&gt;, and associate both in the new directed query.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;CUSTOM&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies to associate &lt;em&gt;&lt;code&gt;annotated-query&lt;/code&gt;&lt;/em&gt; with the query previously specified by &lt;a href=&#34;../../../../en/sql-reference/statements/save-query/#&#34;&gt;SAVE QUERY&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;query&lt;/code&gt;&lt;/em&gt;-&lt;em&gt;&lt;code&gt;name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A unique identifier for the directed query, a string that conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;COMMENT &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;comments&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Comment about the directed query, up to 128 characters. Comments can be useful for future reference—for example, to explain why a given directed query was created.
&lt;p&gt;If you omit this argument, one of the following comments will be inserted:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Optimizer-generated directed query&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Custom directed query&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;input-query&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The input query to associate with an optimizer-generated directed query. The input query supports only one optimizer hint, 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/language-elements/hints/v/#&#34;&gt;:v&lt;/a&gt;&lt;/code&gt; (alias IGNORECONST).&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;annotated-query&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A query with embedded optimizer hints to associate with the input query most recently saved with &lt;a href=&#34;../../../../en/sql-reference/statements/save-query/#&#34;&gt;SAVE QUERY&lt;/a&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Superuser&lt;/a&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../en/admin/managing-queries/directed-queries/creating-directed-queries/#&#34;&gt;Creating directed queries&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE EXTERNAL TABLE AS COPY</title>
      <link>/en/sql-reference/statements/create-statements/create-external-table-as-copy/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-external-table-as-copy/</guid>
      <description>
        
        
        &lt;p&gt;CREATE EXTERNAL TABLE AS COPY creates a table definition for data external to the database. This statement is a combination of the &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/#&#34;&gt;CREATE TABLE&lt;/a&gt; and &lt;a href=&#34;../../../../en/sql-reference/statements/copy/#&#34;&gt;COPY&lt;/a&gt; statements, supporting a subset of each statement&#39;s parameters.&lt;/p&gt;
&lt;p&gt;Canceling a CREATE EXTERNAL TABLE AS COPY statement can cause unpredictable results. If you need to make a change, allow the statement to complete, drop the table, and then retry.&lt;/p&gt;
&lt;p&gt;You can use &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-table/#&#34;&gt;ALTER TABLE&lt;/a&gt; to change the data types of columns instead of dropping and recreating the table.&lt;/p&gt;
&lt;p&gt;You can use CREATE EXTERNAL TABLE AS COPY with any types except types from the Place package.&lt;/p&gt;
&lt;p&gt;The database also supports external tables backed by Iceberg data. See &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-external-table-iceberg/#&#34;&gt;CREATE EXTERNAL TABLE ICEBERG&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 create superprojections for external tables, since external tables are not stored in the database.

&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;CREATE EXTERNAL TABLE [ IF NOT EXISTS ] [[{&lt;span class=&#34;code-variable&#34;&gt;namespace&lt;/span&gt;. | &lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;. }]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;table-name &lt;/span&gt;
    ( &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-definition/#&#34;&gt;column-definition&lt;/a&gt;&lt;/span&gt;[,...] )
[{INCLUDE | EXCLUDE} [SCHEMA] PRIVILEGES]
AS COPY
    [ ( { &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/copy/parameters/#&#34;&gt;column-as-expression&lt;/a&gt;&lt;/span&gt; | &lt;span class=&#34;code-variable&#34;&gt;column&lt;/span&gt; }
       [ DELIMITER [ AS ] &lt;span class=&#34;code-variable&#34;&gt;&#39;char&#39; &lt;/span&gt;]
       [ ENCLOSED [ BY ] &lt;span class=&#34;code-variable&#34;&gt;&#39;char&#39;&lt;/span&gt; ]
       [ ENFORCELENGTH ]
       [ ESCAPE [ AS ] &lt;span class=&#34;code-variable&#34;&gt;&#39;char&#39; &lt;/span&gt;| NO ESCAPE ]
       [ FILLER &lt;span class=&#34;code-variable&#34;&gt;datatype &lt;/span&gt;]
       [ FORMAT &lt;span class=&#34;code-variable&#34;&gt;&#39;format&#39;&lt;/span&gt; ]
       [ NULL [ AS ] &lt;span class=&#34;code-variable&#34;&gt;&#39;string&#39;&lt;/span&gt; ]
       [ TRIM &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;byte&lt;/span&gt;&amp;#39; ]
    [,...] ) ]
    [ COLUMN OPTION (&lt;span class=&#34;code-variable&#34;&gt; column &lt;/span&gt;
       [ DELIMITER [ AS ] &lt;span class=&#34;code-variable&#34;&gt;&#39;char&#39; &lt;/span&gt;]
       [ ENCLOSED [ BY ] &lt;span class=&#34;code-variable&#34;&gt;&#39;char&#39;&lt;/span&gt; ]
       [ ENFORCELENGTH ]
       [ ESCAPE [ AS ] &lt;span class=&#34;code-variable&#34;&gt;&#39;char&#39;&lt;/span&gt; | NO ESCAPE ]
       [ FORMAT &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;format&lt;/span&gt;&amp;#39; ]
       [ NULL [ AS ] &lt;span class=&#34;code-variable&#34;&gt;&#39;string&#39;&lt;/span&gt; ]
       [ TRIM &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;byte&lt;/span&gt;&amp;#39; ]
    [,...] ) ]


FROM {
   { &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;path-to-data&lt;/span&gt;&amp;#39;
       [ ON { &lt;span class=&#34;code-variable&#34;&gt;nodename&lt;/span&gt; | (&lt;span class=&#34;code-variable&#34;&gt;nodeset&lt;/span&gt;) | ANY NODE | EACH NODE } ] [ &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/copy/parameters/#compression&#34;&gt;compression&lt;/a&gt;&lt;/span&gt; ] }[,...]
     [ PARTITION COLUMNS &lt;span class=&#34;code-variable&#34;&gt;column&lt;/span&gt;[,...] ]
   | &lt;a href=&#34;../../../../en/sql-reference/statements/copy-local/#&#34;&gt;LOCAL&lt;/a&gt; &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;&lt;span class=&#34;code-variable&#34;&gt;path-to-data&lt;/span&gt;&lt;/span&gt;&amp;#39; [ &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/copy/parameters/#compression&#34;&gt;compression&lt;/a&gt;&lt;/span&gt; ] [,...]
   | &lt;a href=&#34;../../../../en/sql-reference/statements/copy-from/#&#34;&gt;VERTICA&lt;/a&gt; {&lt;span class=&#34;code-variable&#34;&gt;source-namespace&lt;/span&gt;. | &lt;span class=&#34;code-variable&#34;&gt;source-database&lt;/span&gt;. }[&lt;span class=&#34;code-variable&#34;&gt;source-schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;source-table&lt;/span&gt;[(&lt;span class=&#34;code-variable&#34;&gt; source-column&lt;/span&gt;[,...] ) ]
  }
      [ NATIVE
        | FIXEDWIDTH COLSIZES {( &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; )[,...]}
        | NATIVE VARCHAR
        | ORC
        | PARQUET
      ]
   [ ABORT ON ERROR ]
   [ DELIMITER [ AS ] &lt;span class=&#34;code-variable&#34;&gt;&#39;char&#39;&lt;/span&gt; ]
   [ ENCLOSED [ BY ] &lt;span class=&#34;code-variable&#34;&gt;&#39;char&#39;&lt;/span&gt; ]
   [ ENFORCELENGTH ]
   [ ERROR TOLERANCE ]
   [ ESCAPE AS &lt;span class=&#34;code-variable&#34;&gt;&#39;char&#39; &lt;/span&gt;| NO ESCAPE ]
   [ EXCEPTIONS &lt;span class=&#34;code-variable&#34;&gt;&#39;path&#39;&lt;/span&gt; [ ON &lt;span class=&#34;code-variable&#34;&gt;nodename &lt;/span&gt;] [,...] ]
   [ [ WITH ] FILTER &lt;span class=&#34;code-variable&#34;&gt;filter&lt;/span&gt;( [&lt;span class=&#34;code-variable&#34;&gt; arg&lt;/span&gt;=&lt;span class=&#34;code-variable&#34;&gt;value&lt;/span&gt;[,...] ] ) ]
   [ NULL [ AS ] &lt;span class=&#34;code-variable&#34;&gt;&#39;string&#39;&lt;/span&gt; ]
   [ [ WITH ] PARSER &lt;span class=&#34;code-variable&#34;&gt;parser&lt;/span&gt;([&lt;span class=&#34;code-variable&#34;&gt;arg=value&lt;/span&gt; [,...] ]) ]
   [ RECORD TERMINATOR &lt;span class=&#34;code-variable&#34;&gt;&#39;string&#39;&lt;/span&gt; ]
   [ REJECTED DATA &lt;span class=&#34;code-variable&#34;&gt;&#39;&lt;/span&gt;path&lt;span class=&#34;code-variable&#34;&gt;&#39;&lt;/span&gt; [ ON &lt;span class=&#34;code-variable&#34;&gt;nodename &lt;/span&gt;] [,...] ]
   [ REJECTMAX &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; ]
   [ SKIP &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; ]
   [ SKIP BYTES &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; ]
   [ TRAILING NULLCOLS ]
   [ TRIM &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;byte&lt;/span&gt;&amp;#39; ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;p&gt;For all supported parameters, see the &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/#&#34;&gt;CREATE TABLE&lt;/a&gt; and &lt;a href=&#34;../../../../en/sql-reference/statements/copy/#&#34;&gt;COPY&lt;/a&gt; statements. For information on using this statement with UDLs, see &lt;a href=&#34;../../../../en/extending/developing-udxs/user-defined-load-udl/#&#34;&gt;User-defined load (UDL)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For additional guidance on using COPY parameters, see &lt;a href=&#34;../../../../en/data-load/specifying-where-to-load-data-from/#&#34;&gt;Specifying where to load data from&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser, or non-superuser with the following privileges:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;READ privileges on the USER-accessible storage location. See &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-storage-location/#&#34;&gt;GRANT (storage location)&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Full access (including SELECT) to an external table that the user has privileges to create&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&#34;partitioned-data&#34;&gt;Partitioned data&lt;/h2&gt;
&lt;p&gt;Data can be partitioned using its directory structure, and the database can take advantage of that partitioning to improve query performance for external tables. For details, see&lt;a href=&#34;../../../../en/data-load/partitioned-file-paths/#&#34;&gt;Partitioned data&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you see unexpected results when reading data, verify that globs in your file paths correctly align with the partition structure. See &lt;a href=&#34;../../../../en/data-load/working-with-external-data/troubleshooting-external-tables/#&#34;&gt;Troubleshooting external tables&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;orc-and-parquet-data&#34;&gt;ORC and Parquet data&lt;/h2&gt;
&lt;p&gt;When using the ORC and Parquet formats, the database supports some additional options in the &lt;code&gt;COPY&lt;/code&gt; statement and data structures for columns. See &lt;a href=&#34;../../../../en/sql-reference/statements/copy/parsers/orc/#&#34;&gt;ORC&lt;/a&gt; and &lt;a href=&#34;../../../../en/sql-reference/statements/copy/parsers/parquet/#&#34;&gt;PARQUET&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example defines an external table for delimited data stored in HDFS:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE EXTERNAL TABLE sales (itemID INT, date DATE, price FLOAT)
    AS COPY FROM &amp;#39;hdfs:///data/ext1.csv&amp;#39; DELIMITER &amp;#39;,&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example uses data in the &lt;a href=&#34;../../../../en/sql-reference/statements/copy/parsers/orc/&#34;&gt;ORC&lt;/a&gt; format that is stored in S3. The data has two partition columns. For more information about partitions, see &lt;a href=&#34;../../../../en/data-load/partitioned-file-paths/#&#34;&gt;Partitioned data&lt;/a&gt;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE EXTERNAL TABLE records (id int, name varchar(50), created date, region varchar(50))
   AS COPY FROM &amp;#39;s3://datalake/sales/*/*/*&amp;#39;
   PARTITION COLUMNS created, region;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example shows how you can read from all &lt;a href=&#34;../../../../en/sql-reference/statements/copy/parsers/parquet/&#34;&gt;Parquet&lt;/a&gt; files in a local directory, with no partitions and no globs:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE EXTERNAL TABLE sales (itemID INT, date DATE, price FLOAT)
    AS COPY FROM &amp;#39;/data/sales/*.parquet&amp;#39; PARQUET;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The following example creates an external table for data containing arrays:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE EXTERNAL TABLE cust (cust_custkey int,
        cust_custname varchar(50),
        cust_custstaddress ARRAY[varchar(100)],
        cust_custaddressln2 ARRAY[varchar(100)],
        cust_custcity ARRAY[varchar(50)],
        cust_custstate ARRAY[char(2)],
        cust_custzip ARRAY[int],
        cust_email varchar(50), cust_phone varchar(30))
   AS COPY FROM &amp;#39;webhdfs://data/*.parquet&amp;#39; PARQUET;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To allow users without superuser access to use external tables with data on the local file system, S3, or GCS, create a location for &#39;user&#39; usage and grant access to it. This example shows granting access to a user named Bob to any external table whose data is located under /tmp (including in subdirectories to any depth):&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LOCATION &amp;#39;/tmp&amp;#39; ALL NODES USAGE &amp;#39;user&amp;#39;;
=&amp;gt; GRANT ALL ON LOCATION &amp;#39;/tmp&amp;#39; to Bob;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example shows CREATE EXTERNAL TABLE using a user-defined source:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE SOURCE curl AS LANGUAGE &amp;#39;C++&amp;#39; NAME &amp;#39;CurlSourceFactory&amp;#39; LIBRARY curllib;
=&amp;gt; CREATE EXTERNAL TABLE curl_table1 as COPY SOURCE CurlSourceFactory;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../en/data-load/working-with-external-data/creating-external-tables/#&#34;&gt;Creating external tables&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE EXTERNAL TABLE ICEBERG</title>
      <link>/en/sql-reference/statements/create-statements/create-external-table-iceberg/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-external-table-iceberg/</guid>
      <description>
        
        
        &lt;p&gt;Creates an external table for data stored by &lt;a href=&#34;https://iceberg.apache.org/spec/&#34;&gt;Apache Iceberg&lt;/a&gt;. An Iceberg table consists of data files and metadata describing the schema. Unlike other external tables, an Iceberg external table need not specify column definitions (DDL). The information is read from Iceberg metadata at query time. For certain data types you can adjust column definitions, for example to specify VARCHAR sizes.&lt;/p&gt;
&lt;p&gt;A single Iceberg table can have more than one metadata file, each describing a different version of the table. Iceberg supports two types of tables based on how their metadata files are stored:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://iceberg.apache.org/spec/#file-system-tables&#34;&gt;File System Tables&lt;/a&gt; - In this type, the writer is responsible for naming and organizing the metadata files. For file system tables, you can create an external table using either the base location of the table or a specific metadata file.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://iceberg.apache.org/spec/#metastore-tables&#34;&gt;Metastore Tables&lt;/a&gt; - In this type, a separate metastore handles metadata management. OpenText™ Analytics Database supports AWS Glue, Hive (version 2.3.0 or later), and any metastore that complies with the &lt;a href=&#34;https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml&#34;&gt;Iceberg Standard Rest Open API&lt;/a&gt;, such as &lt;a href=&#34;https://projectnessie.org/&#34;&gt;Project Nessie&lt;/a&gt;, &lt;a href=&#34;https://docs.lakekeeper.io/&#34;&gt;Lakekeeper&lt;/a&gt;,  and others.&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;AWS Glue tables - You can create an external table by specifying the Glue database location and using the &lt;code&gt;glue-db&lt;/code&gt; and &lt;code&gt;glue-table&lt;/code&gt; parameters.
For optional Glue integration parameters (GlueEnableHttps, GlueRegion, GlueEndpoint), see &lt;a href=&#34;../../../../en/sql-reference/config-parameters/glue-integration-parameters/&#34;&gt;Glue Integration Parameters&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Hive Metastore (HMS) tables - You can create an external table by specifying the HMS thrift URI (hms-path) and using the &lt;code&gt;hms-db&lt;/code&gt; and &lt;code&gt;hms-table&lt;/code&gt; parameters.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Rest Open API tables - You can create an external table by specifying the HTTP or HTTPs endpoint location and using the &lt;code&gt;rest-auth&lt;/code&gt; parameter.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If a metadata file specifies columns or struct fields that are not present in the data, the missing values are treated as NULL.&lt;/p&gt;
&lt;p&gt;All Iceberg files, both data and metadata, must be accessible to all database nodes.&lt;/p&gt;
&lt;p&gt;Iceberg stores data in several file formats. The data is read in the Parquet format only and with either &lt;a href=&#34;https://iceberg.apache.org/spec&#34;&gt;version 1 or version 2 metadata&lt;/a&gt;. If the Parquet files encode field IDs, they are used directly; otherwise, the field IDs are read from the metadata (the &lt;code&gt;schema.name-mapping.default&lt;/code&gt; property) using Iceberg&#39;s fallback name mapping. If the metadata does not contain a mapping for a field, the column values are set to NULL.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE EXTERNAL TABLE [[{&lt;span class=&#34;code-variable&#34;&gt;namespace&lt;/span&gt;. | &lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;. }]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;table&lt;/span&gt;
   STORED BY ICEBERG LOCATION { &lt;span class=&#34;code-variable&#34;&gt;path&lt;/span&gt; | &lt;span class=&#34;code-variable&#34;&gt;metadata-file&lt;/span&gt; | &lt;span class=&#34;code-variable&#34;&gt;glue-path&lt;/span&gt; | &lt;span class=&#34;code-variable&#34;&gt;hms-path&lt;/span&gt; | &lt;span class=&#34;code-variable&#34;&gt;rest-endpoint&lt;/span&gt; }
   [GLUE_DB glue-db]
   [GLUE_TABLE glue-table]
   [HMS_DB hms-db]
   [HMS_TABLE hms-table]
   [REST_AUTH rest-auth]
   [COLUMN TYPES (&lt;span class=&#34;code-variable&#34;&gt;column-name&lt;/span&gt; &lt;span class=&#34;code-variable&#34;&gt;type&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;code&gt;{ &lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt; &lt;code&gt;|&lt;/code&gt; &lt;em&gt;&lt;code&gt;namespace&lt;/code&gt;&lt;/em&gt;&lt;code&gt; }&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the database or &lt;a href=&#34;../../../../en/architecture/eon-concepts/shards-and-subscriptions/&#34;&gt;namespace&lt;/a&gt; that contains &lt;em&gt;&lt;code&gt;table&lt;/code&gt;&lt;/em&gt;:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Database name: If specified, it must be the current database.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Namespace name (Eon Mode only): You must specify the namespace of objects in non-default namespaces. If no namespace is provided, it is assumed the object is in the default namespace.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the schema, by default &lt;code&gt;public&lt;/code&gt;. If you specify the namespace or database name, you must provide the schema name, even if the schema is &lt;code&gt;public&lt;/code&gt;.
&lt;p&gt;If you specify a schema name that contains a period, the part before the period cannot be the same as the name of an existing namespace.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;

&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;table&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the table to create, which must be unique among names of all sequences, tables, projections, views, and models within the schema.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;glue-db&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the AWS Glue database. If specified &lt;code&gt;glue-table&lt;/code&gt; must also be specified.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;glue-table&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the AWS Glue table. If specified &lt;code&gt;glue-db&lt;/code&gt; must also be specified.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;hms-db&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the Hive Metastore database. If specified &lt;code&gt;hms-table&lt;/code&gt; must also be specified.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;hms-table&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the Hive Metastore table. If specified &lt;code&gt;hms-db&lt;/code&gt; must also be specified.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;rest-auth&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A JSON parameter for authentication credentials to access an Iceberg table through a REST OpenAPI endpoint. It can include either a &lt;code&gt;bearerToken&lt;/code&gt; (used for stateless authentication) or &lt;code&gt;OAuth2&lt;/code&gt; fields to acquire its own tokens.
&lt;ul&gt;
&lt;li&gt;oauthTokenUri: The URL used to obtain the OAuth2 token.&lt;/li&gt;
&lt;li&gt;oauthClientId: The client ID used for OAuth2 authentication.&lt;/li&gt;
&lt;li&gt;oauthClientSecret: The secret associated with the client ID.&lt;/li&gt;
&lt;li&gt;oauthAllowedScopes: A list of scopes determining the access granted.&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;STORED BY ICEBERG LOCATION { &lt;/code&gt;&lt;em&gt;&lt;code&gt;path&lt;/code&gt;&lt;/em&gt;&lt;code&gt;|&lt;/code&gt;&lt;em&gt;&lt;code&gt;metadata-file&lt;/code&gt;&lt;/em&gt;&lt;code&gt;|&lt;/code&gt;&lt;em&gt;&lt;code&gt;glue-path&lt;/code&gt;&lt;/em&gt;&lt;code&gt;|&lt;/code&gt;&lt;em&gt;&lt;code&gt;hms-path&lt;/code&gt;&lt;/em&gt;&lt;code&gt;|&lt;/code&gt;&lt;em&gt;&lt;code&gt;rest-endpoint&lt;/code&gt;&lt;/em&gt;&lt;code&gt; }&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Location of Iceberg data, one of:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Base location of an Iceberg &lt;a href=&#34;https://iceberg.apache.org/spec/#file-system-tables&#34;&gt;File System table&lt;/a&gt;. The latest metadata file is used in this location.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Path to a metadata file with a name ending in &lt;code&gt;.metadata.json&lt;/code&gt;. This metadata file is used even if it is not the latest.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;AWS Glue database path (glue-path): An S3 path where the specified Glue database (&lt;code&gt;glue-db&lt;/code&gt;) is located, or the S3 bucket containing this path.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Hive Metastore path (hms-path): A URI with the &lt;code&gt;thrift://&lt;/code&gt; scheme that provides the address of the Hive Metastore service hosting the specified HMS database (&lt;code&gt;hms-db&lt;/code&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;HTTP or HTTPS endpoint (rest-endpoint) of a table managed by an Iceberg metastore that follows Iceberg&#39;s REST OpenAPI specification.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the paths embedded in the Iceberg data are not accessible to the database, use the IcebergPathMapping configuration parameter to provide mappings. See &lt;a href=&#34;#prefixes&#34;&gt;Path Prefixes&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;COLUMN TYPES (&lt;/code&gt;&lt;em&gt;&lt;code&gt;column-name&lt;/code&gt;&lt;/em&gt;&lt;code&gt; &lt;/code&gt;&lt;em&gt;&lt;code&gt;type&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[,...])&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Column names and types for VARCHAR, VARBINARY, or ARRAY columns or ROW fields only. You can specify types only to set lengths or array bounds, not type coercion. See &lt;a href=&#34;#Data&#34;&gt;Data Types&lt;/a&gt;. If you do not specify a type, the table uses the defaults.
&lt;p&gt;You cannot specify any other column properties, such as defaults or constraints.&lt;/p&gt;
&lt;p&gt;Columns that are specified but not found in the Iceberg schema are ignored.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser, or non-superuser with the following privileges:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;READ privileges on the USER-accessible storage location. See &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-storage-location/#&#34;&gt;GRANT (storage location)&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Full access (including SELECT) to an external table that the user has privileges to create&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a name=&#34;prefixes&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;path-prefixes&#34;&gt;Path prefixes&lt;/h2&gt;
&lt;p&gt;Iceberg tables store file paths in the metadata as absolute URIs (host and port). Sometimes this URI differs from the URI that the database can use to access the data. This can particularly be an issue for files stored on HDFS, where the metadata can use a different URI scheme and port number than what the database expects.&lt;/p&gt;
&lt;p&gt;To change the URIs, set the &lt;a href=&#34;../../../../en/sql-reference/config-parameters/general-parameters/#IcebergPathMapping&#34;&gt;IcebergPathMapping&lt;/a&gt; configuration parameter. The value is a list of one or more pairs of Iceberg URI prefixes and corresponding database prefixes:&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;ALTER&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;SET&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;IcebergPathMapping&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&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;s1&#34;&gt;&amp;#39;{&amp;#34;hdfs://node-196.example.com:9000&amp;#34;:&amp;#34;webhdfs://node-196.example.com:9870&amp;#34;}&amp;#39;&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;p&gt;Include only the URI prefix (up through the port), not complete paths. If IcebergPathMapping contains more than one mapping that could apply, it uses the longest matching entry.&lt;/p&gt;
&lt;p&gt;You can set IcebergPathMapping at the database, session, or user level.&lt;/p&gt;
&lt;p&gt;&lt;a name=&#34;Data&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;data-types&#34;&gt;Data types&lt;/h2&gt;
&lt;p&gt;The following table shows the mappings of Iceberg data types to the database data types. For types that allow it, you can use the COLUMN TYPES clause to override these defaults.

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



&lt;tr&gt; 

&lt;th &gt;
Iceberg Type&lt;/th&gt; 

&lt;th &gt;
OpenText™ Analytics Database Type&lt;/th&gt; 

&lt;th &gt;
Allows Override?&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
boolean&lt;/td&gt; 

&lt;td &gt;
BOOLEAN&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
int (32-bit)&lt;/td&gt; 

&lt;td &gt;
INT&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
long (64-bit)&lt;/td&gt; 

&lt;td &gt;
INT&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
float (32-bit)&lt;/td&gt; 

&lt;td &gt;
FLOAT&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
double (64-bit)&lt;/td&gt; 

&lt;td &gt;
FLOAT&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
decimal(precision, scale)&lt;/td&gt; 

&lt;td &gt;
NUMERIC with same precision and scale&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
date&lt;/td&gt; 

&lt;td &gt;
DATE&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
time&lt;/td&gt; 

&lt;td &gt;
TIME&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
timestamp&lt;/td&gt; 

&lt;td &gt;
TIMESTAMP&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
timestamptz&lt;/td&gt; 

&lt;td &gt;
TIMESTAMP WITH TIMEZONE&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
string&lt;/td&gt; 

&lt;td &gt;
VARCHAR(80)&lt;/td&gt; 

&lt;td &gt;
VARCHAR or LONG VARCHAR with custom length&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
uuid&lt;/td&gt; 

&lt;td &gt;
UUID&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
fixed(length)&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;BINARY(length) if length &amp;lt;= 65000&lt;/p&gt;
&lt;p&gt;LONG VARBINARY(length) otherwise&lt;/p&gt;
&lt;/td&gt; 

&lt;td &gt;
No&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
binary (variable length)&lt;/td&gt; 

&lt;td &gt;
VARBINARY(80)&lt;/td&gt; 

&lt;td &gt;
VARBINARY or LONG VARBINARY with custom length&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
struct&lt;/td&gt; 

&lt;td &gt;
ROW&lt;/td&gt; 

&lt;td &gt;
No, but you can override individual fields if their types permit&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
list&lt;/td&gt; 

&lt;td &gt;
ARRAY (default bound)&lt;/td&gt; 

&lt;td &gt;
ARRAY with custom bound&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
map&amp;lt;key, value&amp;gt;&lt;/td&gt; 

&lt;td &gt;
ARRAY[ROW(key, value)] (default bound)&lt;/td&gt; 

&lt;td &gt;
ARRAY[ROW(key, value)] with custom bound&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;
&lt;h2 id=&#34;restrictions&#34;&gt;Restrictions&lt;/h2&gt;
&lt;p&gt;The following restrictions apply to external tables backed by Iceberg:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Data files must be in Parquet format.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Metadata files must use &lt;a href=&#34;https://iceberg.apache.org/spec&#34;&gt;version 1 or version 2 format&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Iceberg column defaults are not supported.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Iceberg delete files are not supported.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Malformed data is an error that aborts the load. You cannot reject bad data and continue.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;VARCHAR values are not truncated. If a string is too long, it is treated as an error.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following restrictions apply to queries of Iceberg tables:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;You cannot use a column in an Iceberg table as a DEFAULT or SET USING option in another table. The following example is an error:&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;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;t&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;n&#34;&gt;id&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;INT&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;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#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;COUNT&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;*&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;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;iceberg_table&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;n&#34;&gt;ERROR&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;0&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;Default&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;and&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;using&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;expressions&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;cannot&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;refer&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;k&#34;&gt;external&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;iceberg&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;tables&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;Errors in Iceberg data or metadata, such as missing files or type mismatches, can manifest as query errors such as the following:&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;o&#34;&gt;*&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;iceberg_table&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;n&#34;&gt;ERROR&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;0&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;n&#34;&gt;Problem&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;reading&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;metadata&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;for&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;table&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;iceberg_table&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;n&#34;&gt;Detail&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;n&#34;&gt;Could&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;not&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;determine&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;type&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;of&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;column&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;a&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;User&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;specified&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;type&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;nb&#34;&gt;int&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;n&#34;&gt;Iceberg&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;type&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;nb&#34;&gt;boolean&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;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example creates a table based on the Parquet data files with no overrides:&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;k&#34;&gt;EXTERNAL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;sales&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;n&#34;&gt;STORED&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;BY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ICEBERG&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;s3:/sales/*&amp;#39;&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;p&gt;In the following example, the data uses a struct for the shipping address, with fields for street address (string), city (string), and zip code (integer). The following table definition overrides the default VARCHAR lengths. Note that the zip code is not included in COLUMN TYPES overrides. The ROW column contains only the fields being changed, but all fields including the zip code are part of the table definition and are included in query results:&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;k&#34;&gt;EXTERNAL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;sales&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;n&#34;&gt;STORED&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;BY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ICEBERG&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;s3:/sales/*&amp;#39;&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;COLUMN&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;TYPES&lt;/span&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;n&#34;&gt;address&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;n&#34;&gt;street&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;VARCHAR&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;50&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;n&#34;&gt;city&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;VARCHAR&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;50&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;p&gt;The following example creates an external table named &lt;code&gt;users_glue&lt;/code&gt; for the Iceberg table &lt;code&gt;users&lt;/code&gt; in the Glue database &lt;code&gt;testdb&lt;/code&gt;. The metadata is stored at &lt;code&gt;s3://vertica-fleeting/my-iceberg&lt;/code&gt;:&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;k&#34;&gt;EXTERNAL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;users_glue&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;n&#34;&gt;STORED&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;BY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ICEBERG&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;s3://vertica-fleeting/my-iceberg&amp;#39;&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;n&#34;&gt;GLUE_DB&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;testdb&amp;#39;&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;n&#34;&gt;GLUE_TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;users&amp;#39;&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;p&gt;The following example creates an external table named &lt;code&gt;users_hms&lt;/code&gt; for the Iceberg table users, managed by Hive Metastore hosted on &lt;code&gt;my.hms.host.com&lt;/code&gt;:&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;k&#34;&gt;EXTERNAL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;users_hms&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;n&#34;&gt;STORED&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;BY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ICEBERG&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;thrift://my.hms.host.com:9083&amp;#39;&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;n&#34;&gt;HMS_DB&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;testdb&amp;#39;&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;n&#34;&gt;HMS_TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;users&amp;#39;&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;p&gt;The following example creates an external table named &lt;code&gt;rest_t1&lt;/code&gt; for the Iceberg table &lt;code&gt;my_t1&lt;/code&gt;, managed by an Iceberg metastore through a REST OpenAPI endpoint. Authentication is provided using a &lt;code&gt;bearerToken&lt;/code&gt;:&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;k&#34;&gt;EXTERNAL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;rest_t1&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;n&#34;&gt;STORED&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;BY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ICEBERG&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;https://myhost:19120/iceberg/v1/main/namespaces/my_ice_db/tables/my_t1&amp;#39;&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;n&#34;&gt;REST_AUTH&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;{&amp;#34;bearerToken&amp;#34;: &amp;#34;eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIzWFRweHB&amp;#34;}&amp;#39;&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;p&gt;The following example creates an external table named &lt;code&gt;rest_t2&lt;/code&gt; for the Iceberg table &lt;code&gt;my_t2&lt;/code&gt;, managed by an Iceberg metastore through a REST OpenAPI endpoint. Authentication is provided using &lt;code&gt;OAuth2&lt;/code&gt; fields:&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;k&#34;&gt;EXTERNAL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;rest_t2&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;n&#34;&gt;STORED&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;BY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ICEBERG&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;https://myhost:19120/iceberg/v1/main/namespaces/my_ice_db/tables/my_t2&amp;#39;&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;n&#34;&gt;REST_AUTH&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;{&amp;#34;oauthTokenUri&amp;#34;: &amp;#34;http://myhost:8080/realms/iceberg/protocol/openid-connect/token&amp;#34;,
&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;s1&#34;&gt;         &amp;#34;oauthClientId&amp;#34;: &amp;#34;client1&amp;#34;,
&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;s1&#34;&gt;         &amp;#34;oauthClientSecret&amp;#34;: &amp;#34;s3cr3t&amp;#34;,
&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;s1&#34;&gt;         &amp;#34;oauthAllowedScopes&amp;#34;: [&amp;#34;profile&amp;#34;, &amp;#34;catalog&amp;#34;]}&amp;#39;&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;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;p&gt;EXTERNAL_DATA_FILES_PRUNED event in &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/query-events/#&#34;&gt;QUERY_EVENTS&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE FAULT GROUP</title>
      <link>/en/sql-reference/statements/create-statements/create-fault-group/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-fault-group/</guid>
      <description>
        
        
        &lt;p&gt;Enterprise Mode only&lt;/p&gt;

&lt;p&gt;Creates a fault group, which can contain the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;One or more nodes&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;One or more child fault groups&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;One or more nodes and one or more child fault groups&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;CREATE FAULT GROUP creates an empty fault group. Use &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-fault-group/#&#34;&gt;ALTER FAULT GROUP&lt;/a&gt; to add nodes or other fault groups to an existing fault group.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE FAULT GROUP &lt;span class=&#34;code-variable&#34;&gt;name&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 fault group to create, unique among all fault groups, where &lt;em&gt;&lt;code&gt;name&lt;/code&gt;&lt;/em&gt; conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&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;The following command creates a fault group called &lt;code&gt;parent0&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE FAULT GROUP parent0;
CREATE FAULT GROUP
&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-catalog-schema/fault-groups/#&#34;&gt;FAULT_GROUPS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/cluster-layout/#&#34;&gt;CLUSTER_LAYOUT&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/managing-db/managing-nodes/fault-groups/#&#34;&gt;Fault groups&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/architecture/enterprise-concepts/high-availability-with-fault-groups/#&#34;&gt;High availability with fault groups&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE FLEXIBLE EXTERNAL TABLE AS COPY</title>
      <link>/en/sql-reference/statements/create-statements/create-flexible-external-table-as-copy/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-flexible-external-table-as-copy/</guid>
      <description>
        
        
        &lt;p&gt;CREATE FLEXIBLE EXTERNAL TABLE AS COPY creates a flexible external table. This statement combines statements &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-flexible-table/#&#34;&gt;CREATE FLEXIBLE TABLE&lt;/a&gt; and &lt;a href=&#34;../../../../en/sql-reference/statements/copy/&#34;&gt;COPY&lt;/a&gt; statements, supporting a subset of each statement&#39;s parameters.&lt;/p&gt;
&lt;p&gt;You can also use &lt;a href=&#34;../../../../en/extending/developing-udxs/user-defined-load-udl/&#34;&gt;user-defined load functions &lt;/a&gt;(UDLs) to create external flex tables. For details about creating and using flex tables, see Using Flex Tables.

&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 create a superprojection for an external table when you create it.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;For details about creating and using flex tables, see &lt;a href=&#34;../../../../en/flex-tables/creating-flex-tables/#&#34;&gt;Creating flex tables&lt;/a&gt; in Using Flex Tables.

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

Canceling a &lt;code&gt;CREATE FLEX EXTERNAL TABLE AS COPY&lt;/code&gt; statement can cause unpredictable results. It is recommended to let the statement complete, then use &lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-table/#&#34;&gt;DROP TABLE&lt;/a&gt; after the table has been created.

&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;CREATE FLEX[IBLE] EXTERNAL TABLE [ IF NOT EXISTS ] [[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;table-name&lt;/span&gt;
   ( [ &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-definition/#&#34;&gt;column-definition&lt;/a&gt;&lt;/span&gt;[,...] ] )
   [ INCLUDE | EXCLUDE [SCHEMA] PRIVILEGES ]
AS COPY [ ( { &lt;span class=&#34;code-variable&#34;&gt;column-as-expression&lt;/span&gt; | &lt;span class=&#34;code-variable&#34;&gt;column&lt;/span&gt; } [ FILLER &lt;span class=&#34;code-variable&#34;&gt;datatype&lt;/span&gt; ] ]
   FROM {
      &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;path-to-data&lt;/span&gt;&amp;#39; [ ON &lt;span class=&#34;code-variable&#34;&gt;nodename&lt;/span&gt; | ON ANY NODE | ON (&lt;span class=&#34;code-variable&#34;&gt;nodeset&lt;/span&gt;) ] &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/copy/parameters/#&#34;&gt;input-format&lt;/a&gt;&lt;/span&gt; [,...]
      | [ WITH ] &lt;span class=&#34;code-variable&#34;&gt;UDL-clause&lt;/span&gt;[...]
   }
   [ ABORT ON ERROR ]
   [ DELIMITER [ AS ] &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;char&lt;/span&gt;&amp;#39; ]
   [ ENCLOSED [ BY ] &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;char&lt;/span&gt;&amp;#39; ]
   [ ENFORCELENGTH ]
   [ ESCAPE [ AS ] &lt;span class=&#34;code-variable&#34;&gt;&#39;char&#39; &lt;/span&gt;| NO ESCAPE ]
   [ EXCEPTIONS &lt;span class=&#34;code-variable&#34;&gt;&#39;path&#39;&lt;/span&gt; [ ON &lt;span class=&#34;code-variable&#34;&gt;nodename &lt;/span&gt;] [,...] ]
   [ NULL [ AS ] &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;string&lt;/span&gt;&amp;#39; ]
   [ RECORD TERMINATOR &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;string&lt;/span&gt;&amp;#39; ]
   [ REJECTED DATA &lt;span class=&#34;code-variable&#34;&gt;&#39;&lt;/span&gt;path&lt;span class=&#34;code-variable&#34;&gt;&#39;&lt;/span&gt; [ ON &lt;span class=&#34;code-variable&#34;&gt;nodename &lt;/span&gt;][,...] ]
   [ REJECTMAX &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; ]
   [ SKIP &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; ]
   [ SKIP BYTES &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; ]
   [ TRAILING NULLCOLS ]
   [ TRIM &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;byte&lt;/span&gt;&amp;#39; ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;p&gt;For parameter descriptions, see &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/#&#34;&gt;CREATE TABLE&lt;/a&gt; and &lt;a href=&#34;../../../../en/sql-reference/statements/copy/parameters/#&#34;&gt;Parameters&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;

CREATE FLEXIBLE EXTERNAL TABLE AS COPY supports only a subset of CREATE TABLE and COPY parameters.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser, or non-superuser with the following privileges:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;READ privileges on the USER-accessible storage location. See &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-storage-location/#&#34;&gt;GRANT (storage location)&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Full access (including SELECT) to an external table that the user has privileges to create&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;To create an external flex table:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE flex external table mountains() AS COPY FROM &amp;#39;home/release/KData/kmm_ountains.json&amp;#39; PARSER fjsonparser();
CREATE TABLE
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;As with other flex tables, creating an external flex table produces two regular tables: the named table and its associated &lt;code&gt;_keys&lt;/code&gt; table. The keys table is not an external table:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \dt mountains
                 List of tables
 Schema |   Name    | Kind  |  Owner  | Comment
--------+-----------+-------+---------+---------
 public | mountains | table | release |
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can use the helper function, &lt;a href=&#34;../../../../en/sql-reference/functions/flex-functions/flex-data-functions/compute-flextable-keys-and-build-view/#&#34;&gt;COMPUTE_FLEXTABLE_KEYS_AND_BUILD_VIEW&lt;/a&gt;, to compute keys and create a view for the external table:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT compute_flextable_keys_and_build_view (&amp;#39;appLog&amp;#39;);

                     compute_flextable_keys_and_build_view
--------------------------------------------------------------------------------------------------
Please see public.appLog_keys for updated keys
The view public.appLog_view is ready for querying
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Check the keys from the &lt;code&gt;_keys&lt;/code&gt; table for the results of running the helper application:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM appLog_keys;
                          key_name                       | frequency |   data_type_guess
----------------------------------------------------------+-----------+------------------
contributors                                             |         8 | varchar(20)
coordinates                                              |         8 | varchar(20)
created_at                                               |         8 | varchar(60)
entities.hashtags                                        |         8 | long varbinary(186)
.
.
.
retweeted_status.user.time_zone                          |         1 | varchar(20)
retweeted_status.user.url                                |         1 | varchar(68)
retweeted_status.user.utc_offset                         |         1 | varchar(20)
retweeted_status.user.verified                           |         1 | varchar(20)
(125 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can query the view:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT &amp;#34;user.lang&amp;#34; FROM appLog_view;
 user.lang
-----------
it
en
es
en
en
es
tr
en
(12 rows)
&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/create-statements/create-external-table-as-copy/#&#34;&gt;CREATE EXTERNAL TABLE AS COPY&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE FLEXIBLE TABLE</title>
      <link>/en/sql-reference/statements/create-statements/create-flexible-table/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-flexible-table/</guid>
      <description>
        
        
        &lt;p&gt;Creates a flexible (flex) table in the logical schema.&lt;/p&gt;
&lt;p&gt;When you create a flex table, the database automatically creates two dependent objects:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Keys table that is named &lt;em&gt;&lt;code&gt;flex-table-name&lt;/code&gt;&lt;/em&gt;&lt;code&gt;_keys&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;View that is named &lt;em&gt;&lt;code&gt;flex-table-name&lt;/code&gt;&lt;/em&gt;&lt;code&gt;_view&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The flex table requires the keys table and view. Neither of these objects can exist independently of the flex table.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Create with column definitions&lt;/strong&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE [[ &lt;span class=&#34;code-variable&#34;&gt;scope&lt;/span&gt; ] TEMP[ORARY]] FLEX[IBLE] TABLE [ IF NOT EXISTS ]
   [[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;table-name&lt;/span&gt;
   ( [ &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-definition/#&#34;&gt;column-definition&lt;/a&gt;&lt;/span&gt;[,...] [, &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/table-constraint/#&#34;&gt;table-constraint&lt;/a&gt;&lt;/span&gt; ][,...] ] )
   [ &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/#ORDER_BY&#34;&gt;ORDER BY&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;column&lt;/span&gt;[,...] ]
   [ &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/#segmentation-spec&#34;&gt;segmentation-spec &lt;/a&gt;&lt;/span&gt;]
   [ &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/#KSAFE&#34;&gt;KSAFE&lt;/a&gt; [&lt;span class=&#34;code-variable&#34;&gt;k-num&lt;/span&gt;] ]
   [ &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/partition-clause/#&#34;&gt;partition-clause&lt;/a&gt;&lt;/span&gt;]
   [ {INCLUDE | EXCLUDE} [SCHEMA] PRIVILEGES ]
   [ DISK_QUOTA &lt;span class=&#34;code-variable&#34;&gt;quota&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Create from another table:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE FLEX[IBLE] TABLE [[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;] &lt;span class=&#34;code-variable&#34;&gt;table-name&lt;/span&gt;
   [ ( &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-name-list/#&#34;&gt;column-name-list&lt;/a&gt;&lt;/span&gt; ) ]
   [ {INCLUDE | EXCLUDE} [SCHEMA] PRIVILEGES ]
   AS  &lt;span class=&#34;code-variable&#34;&gt;query&lt;/span&gt; [ ENCODED BY &lt;span class=&#34;code-variable&#34;&gt;column-ref-list&lt;/span&gt; ]
   [ DISK_QUOTA &lt;span class=&#34;code-variable&#34;&gt;quota&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;p&gt;For general parameter descriptions, see &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/#&#34;&gt;CREATE TABLE&lt;/a&gt;; for parameters specific to temporary flex tables, see &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-temporary-table/#&#34;&gt;CREATE TEMPORARY TABLE&lt;/a&gt; and &lt;a href=&#34;../../../../en/flex-tables/creating-flex-tables/#&#34;&gt;Creating flex tables&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You cannot partition a flex table on any virtual column (key).&lt;/p&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Non-superuser: CREATE privilege on table schema&lt;/p&gt;
&lt;h2 id=&#34;default-columns&#34;&gt;Default columns&lt;/h2&gt;
&lt;p&gt;The CREATE statement can omit specifying any column definitions. CREATE FLEXIBLE TABLE always creates two columns automatically:&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;__raw__&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;LONG VARBINARY type column to store unstructured data that you load. By default, this column has a &lt;code&gt;NOT NULL&lt;/code&gt; constraint.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;__identity__&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&#34;../../../../en/admin/working-with-native-tables/sequences/identity-sequences/&#34;&gt;IDENTITY&lt;/a&gt; column that is used for segmentation and sorting when no other column is defined.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;default-projections&#34;&gt;Default projections&lt;/h2&gt;
&lt;p&gt;&lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/superprojection/&#34; title=&#34;A projection that includes all columns in an anchor table.&#34;&gt;Superprojections&lt;/a&gt; are automatically created for both the flex table and keys tables when they are created.&lt;/p&gt;
&lt;p&gt;If you create a flex table with one or more of the ORDER BY, ENCODED BY, SEGMENTED BY, or KSAFE clauses, the clause information is used to create projections. If no clauses are specified, the database uses the following defaults:

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



&lt;tr&gt; 

&lt;th &gt;
Table&lt;/th&gt; 

&lt;th &gt;
Sort order&lt;/th&gt; 

&lt;th &gt;
Encoding&lt;/th&gt; 

&lt;th &gt;
Segmentation&lt;/th&gt; 

&lt;th &gt;
K-safety&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Flexible table&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;ORDER BY *.__identity__&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
none&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;SEGMENTED BY hash *.__identity__  ALL NODES OFFSET 0&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;1&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Keys table&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;ORDER BY *._keys_frequency&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
none&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;UNSEGMENTED ALL NODES&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;code&gt;1&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&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;

When you build a view for a flex table (see &lt;a href=&#34;../../../../en/sql-reference/functions/flex-functions/flex-data-functions/build-flextable-view/#&#34;&gt;BUILD_FLEXTABLE_VIEW&lt;/a&gt;), the view is ordered by &lt;span class=&#34;sql&#34;&gt;frequency&lt;/span&gt;, &lt;span class=&#34;sql&#34;&gt;desc&lt;/span&gt;, and &lt;span class=&#34;sql&#34;&gt;key_name&lt;/span&gt;.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example creates a flex table named &lt;code&gt;darkdata&lt;/code&gt; without specifying any column information. The database automatically creates a default superprojection and buddy projection as part of the table creation:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE FLEXIBLE TABLE darkdata();
CREATE TABLE
=&amp;gt; \dj darkdata1*
                         List of projections
 Schema |         Name         |  Owner  |       Node       | Comment
--------+----------------------+---------+------------------+---------
 public | darkdata1_b0         | dbadmin |                  |
 public | darkdata1_b1         | dbadmin |                  |
 public | darkdata1_keys_super | dbadmin | v_vmart_node0001 |
 public | darkdata1_keys_super | dbadmin | v_vmart_node0002 |
 public | darkdata1_keys_super | dbadmin | v_vmart_node0003 |
(5 rows)

=&amp;gt; SELECT export_objects(&amp;#39;&amp;#39;,&amp;#39;darkdata1_b0&amp;#39;);
CREATE PROJECTION public.darkdata1_b0 /*+basename(darkdata1),createtype(P)*/
(
 __identity__,
 __raw__
)
AS
 SELECT darkdata1.__identity__,
        darkdata1.__raw__
 FROM public.darkdata1
 ORDER BY darkdata1.__identity__
SEGMENTED BY hash(darkdata1.__identity__) ALL NODES OFFSET 0;

SELECT MARK_DESIGN_KSAFE(1);
(1 row)

=&amp;gt; select export_objects(&amp;#39;&amp;#39;,&amp;#39;darkdata1_keys_super&amp;#39;);
CREATE PROJECTION public.darkdata1_keys_super /*+basename(darkdata1_keys),createtype(P)*/
(
 key_name,
 frequency,
 data_type_guess
)
AS
 SELECT darkdata1_keys.key_name,
        darkdata1_keys.frequency,
        darkdata1_keys.data_type_guess
 FROM public.darkdata1_keys
 ORDER BY darkdata1_keys.frequency
UNSEGMENTED ALL NODES;

SELECT MARK_DESIGN_KSAFE(1);
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example creates a table called &lt;code&gt;darkdata1&lt;/code&gt; with one column definition (&lt;code&gt;date_col&lt;/code&gt;). The statement specifies the &lt;code&gt;partition by&lt;/code&gt; clause to partition the data by year. The database automatically creates a default superprojection and buddy projection as part of the table creation:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE FLEX TABLE darkdata1 (date_col date NOT NULL) partition by
  extract(&amp;#39;year&amp;#39; from date_col);
CREATE TABLE
&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/flex-tables/creating-flex-tables/#&#34;&gt;Creating flex tables&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;

&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-flexible-external-table-as-copy/#&#34;&gt;CREATE FLEXIBLE EXTERNAL TABLE AS COPY&lt;/a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE FUNCTION statements</title>
      <link>/en/sql-reference/statements/create-statements/create-function-statements/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-function-statements/</guid>
      <description>
        
        
        &lt;p&gt;The OpenText™ Analytics Database provides CREATE statements for each type of &lt;a href=&#34;../../../../en/extending/udxs/&#34;&gt;user-defined extension&lt;/a&gt;. Each CREATE statement adds a user-defined function to the database catalog:

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



&lt;tr&gt; 

&lt;th &gt;
CREATE statement&lt;/th&gt; 

&lt;th &gt;
Extension&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-function-statements/create-function-scalar/#&#34;&gt;CREATE FUNCTION (scalar)&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../en/extending/developing-udxs/scalar-functions-udsfs/&#34;&gt;User-defined scalar functions&lt;/a&gt; (UDSFs)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-function-statements/create-aggregate-function/#&#34;&gt;CREATE AGGREGATE FUNCTION&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../en/extending/developing-udxs/aggregate-functions-udafs/&#34;&gt;User-defined aggregate functions&lt;/a&gt; (UDAFs)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-function-statements/create-analytic-function/#&#34;&gt;CREATE ANALYTIC FUNCTION&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../en/extending/developing-udxs/analytic-functions-udanfs/&#34;&gt;User-defined analytic functions&lt;/a&gt; (UDAnF)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-function-statements/create-transform-function/#&#34;&gt;CREATE TRANSFORM FUNCTION&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../en/extending/developing-udxs/transform-functions-udtfs/&#34;&gt;User-defined transform functions&lt;/a&gt; (UDTFs)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td  colspan=&#34;2&#34; &gt;
CREATE statements for &lt;a href=&#34;../../../../en/extending/developing-udxs/user-defined-load-udl/&#34;&gt;user-defined load&lt;/a&gt;:&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
• &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-function-statements/create-source/#&#34;&gt;CREATE SOURCE&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../en/extending/developing-udxs/user-defined-load-udl/user-defined-source/&#34;&gt;Load source functions&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
• &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-function-statements/create-filter/#&#34;&gt;CREATE FILTER&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../en/extending/developing-udxs/user-defined-load-udl/user-defined-filter/&#34;&gt;Load filter functions&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
• &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-function-statements/create-parser/#&#34;&gt;CREATE PARSER&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../en/extending/developing-udxs/user-defined-load-udl/user-defined-parser/&#34;&gt;Load parser functions&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;
&lt;p&gt;The database also provides &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-function-statements/create-function-sql/#&#34;&gt;CREATE FUNCTION (SQL)&lt;/a&gt;, which stores SQL expressions as functions that you can invoke in a query.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE HCATALOG SCHEMA</title>
      <link>/en/sql-reference/statements/create-statements/create-hcatalog-schema/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-hcatalog-schema/</guid>
      <description>
        
        
        &lt;p&gt;Define a schema for data stored in a Hive data warehouse using the HCatalog Connector. For more information, see &lt;a href=&#34;../../../../en/hadoop-integration/using-hcatalog-connector/#&#34;&gt;Using the HCatalog Connector&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Most of the optional parameters are read out of Hadoop configuration files if available. If you copied the Hadoop configuration files as described in &lt;a href=&#34;../../../../en/hadoop-integration/using-hcatalog-connector/configuring-hcatalog/#&#34;&gt;Configuring OpenText&amp;amp;trade; Analytics Database for HCatalog&lt;/a&gt;, you can omit most parameters. By default this statement uses the values specified in those configuration files. If the configuration files are complete, the following is a valid statement:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE HCATALOG SCHEMA hcat;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If a value is not specified in the configuration files and a default is shown in the parameter list, then that default value is used.&lt;/p&gt;
&lt;p&gt;Some parameters apply only if you are using HiveServer2 (the default). Others apply only if you are using WebHCat, a legacy Hadoop service. When using HiveServer2, use HIVESERVER2_HOSTNAME to specify the server host. When using WebHCat, use WEBSERVICE_HOSTNAME to specify the server host.&lt;/p&gt;
&lt;p&gt;If you need to use WebHCat you must also set the HCatalogConnectorUseHiveServer2 configuration parameter to 0. See &lt;a href=&#34;../../../../en/sql-reference/config-parameters/hadoop-parameters/#&#34;&gt;Hadoop parameters&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After creating the schema, you can change many (but not all) parameters using &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-hcatalog-schema/#&#34;&gt;ALTER HCATALOG SCHEMA&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;CREATE HCATALOG SCHEMA [IF NOT EXISTS] &lt;span class=&#34;code-variable&#34;&gt;schemaName&lt;/span&gt;
    [AUTHORIZATION &lt;span class=&#34;code-variable&#34;&gt;user-id&lt;/span&gt;]
    [WITH [&lt;span class=&#34;code-variable&#34;&gt;param&lt;/span&gt;=&lt;span class=&#34;code-variable&#34;&gt;value&lt;/span&gt; [,...] ] ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;

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



&lt;tr&gt; 

&lt;th &gt;
Argument&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;[IF NOT EXISTS]&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


If given, the statement exits without an error when the schema named in &lt;em&gt;&lt;code&gt;schemaName&lt;/code&gt;&lt;/em&gt; already exists.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;em&gt;&lt;code&gt;schemaName&lt;/code&gt;&lt;/em&gt;&lt;/td&gt; 

&lt;td &gt;


The name of the schema to create in the OpenText™ Analytics Database catalog. The tables in the Hive database will be available through this schema.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;AUTHORIZATION &lt;/code&gt;&lt;em&gt;&lt;code&gt;user-id&lt;/code&gt;&lt;/em&gt;&lt;/td&gt; 

&lt;td &gt;
The name of the OpenText™ Analytics Database account to own the schema being created. This parameter is ignored if Kerberos authentication is being used; in that case the current vsql user is used.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;

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



&lt;tr&gt; 

&lt;th &gt;
Parameter&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;HOSTNAME&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;








&lt;p&gt;The hostname, IP address, or URI of the database server that stores the Hive data warehouse&#39;s metastore information.&lt;/p&gt;
&lt;p&gt;If you specify this parameter and do not also specify &lt;code&gt;PORT&lt;/code&gt;, then this value must be in the URI format used for hive.metastore.uris in hive-site.xml.&lt;/p&gt;
&lt;p&gt;If the Hive metastore supports High Availability, you can specify a comma-separated list of URIs for this value.&lt;/p&gt;
&lt;p&gt;If this value is not specified, hive-site.xml must be available.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PORT&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The port number on which the metastore database is running. If you specify this parameter, you must also specify &lt;code&gt;HOSTNAME&lt;/code&gt; and it must be a name or IP address (not a URI).&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;HIVESERVER2_HOSTNAME&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;








&lt;p&gt;The hostname or IP address of the HiveServer2 service. This parameter is optional if in hive-site.xml you set one of the following properties:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;hive.server2.thrift.bind.host to a valid host&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;hive.server2.support.dynamic.service.discovery to true&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This parameter is ignored if you are using WebHCat.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;WEBSERVICE_HOSTNAME&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The hostname or IP address of the WebHCat service, if using WebHCat instead of HiveServer2. If this value is not specified, webhcat-site.xml must be available.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;WEBSERVICE_PORT&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The port number on which the WebHCat service is running, if using WebHCat instead of HiveServer2. If this value is not specified, webhcat-site.xml must be available.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;WEBHDFS_ADDRESS&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The host and port (&amp;quot;host:port&amp;quot;) for the WebHDFS service. This parameter is used only for reading ORC and Parquet files. If this value is not set, hdfs-site.xml must be available to read these file types through the HCatalog Connector.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;HCATALOG_SCHEMA&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The name of the Hive schema or database that the OpenText™ Analytics Database schema is being mapped to. The default is &lt;em&gt;&lt;code&gt;schemaName&lt;/code&gt;&lt;/em&gt;.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;CUSTOM_PARTITIONS&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
Whether the Hive schema uses custom partition locations (&#39;YES&#39; or &#39;NO&#39;). If the schema uses custom partition locations, then the database queries Hive to get those locations when executing queries. These additional Hive queries can be expensive, so use this parameter only if you need to. The default is &#39;NO&#39; (disabled). For more information, see &lt;a href=&#34;../../../../en/hadoop-integration/using-hcatalog-connector/defining-schema-using-hcatalog-connector/#hive-partitions&#34;&gt;Using Partitioned Data&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;HCATALOG_USER&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The username of the HCatalog user to use when making calls to the HiveServer2 or WebHCat server. The default is the current database user.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;HCATALOG_CONNECTION_TIMEOUT&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The number of seconds the HCatalog Connector waits for a successful connection to the HiveServer or WebHCat server. A value of 0 means wait indefinitely.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;HCATALOG_SLOW_TRANSFER_LIMIT&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The lowest data transfer rate (in bytes per second) from the HiveServer2 or WebHCat server that the HCatalog Connector accepts. See HCATALOG_SLOW_TRANSFER_TIME for details.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;HCATALOG_SLOW_TRANSFER_TIME&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The number of seconds the HCatalog Connector waits before enforcing the data transfer rate lower limit. After this time has passed, the HCatalog Connector tests whether the data transfer rate is at least as fast as the value set in HCATALOG_SLOW_TRANSFER_LIMIT. If it is not, then the HCatalog Connector breaks the connection and terminates the query.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;SSL_CONFIG&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The path of the Hadoop ssl-client.xml configuration file. This parameter is required if you are using HiveServer2 and it uses SSL wire encryption. This parameter is ignored if you are using WebHCat.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;p&gt;The default values for HCATALOG_CONNECTOR_TIMEOUT, HCATALOG_SLOW_TRANSFER_LIMIT, and HCATALOG_SLOW_TRANSFER_TIME are set by the database configuration parameters HCatConnectionTimeout, HCatSlowTransferLimit, and HCatSlowTransferTime. See &lt;a href=&#34;../../../../en/sql-reference/config-parameters/hadoop-parameters/#&#34;&gt;Hadoop parameters&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h2 id=&#34;configuration-files&#34;&gt;Configuration files&lt;/h2&gt;
&lt;p&gt;The HCatalog Connector uses the following values from the Hadoop configuration files if you do not override them when creating the schema.

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



&lt;tr&gt; 

&lt;th &gt;
File&lt;/th&gt; 

&lt;th &gt;
Properties&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td  rowspan=&#34;10&#34; &gt;
&lt;code&gt;hive-site.xml&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
hive.server2.thrift.bind.host (used for HIVESERVER2_HOSTNAME)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
hive.server2.thrift.port&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
hive.server2.transport.mode&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
hive.server2.authentication&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
hive.server2.authentication.kerberos.principal&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
hive.server2.support.dynamic.service.discovery&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
hive.zookeeper.quorum (used as HIVESERVER2_HOSTNAME if dynamic service discovery is enabled)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
hive.zookeeper.client.port&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
hive.server2.zookeeper.namespace&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
hive.metastore.uris (used for HOSTNAME and PORT)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td  rowspan=&#34;2&#34; &gt;
&lt;code&gt;ssl-client.xml&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
ssl.client.truststore.location&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
ssl.client.truststore.password&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;

&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;The user must be a superuser or be granted all permissions on the database to use this statement.&lt;/p&gt;
&lt;p&gt;The user also requires access to Hive data in one of the following ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Have USAGE permissions on &lt;em&gt;&lt;code&gt;hcatalog_schema&lt;/code&gt;&lt;/em&gt;, if Hive does not use an authorization service (Sentry or Ranger) to manage access.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Have permission through an authorization service, if Hive uses it to manage access. In this case you must either set EnableHCatImpersonation to 0, to access data as the database principal, or grant users access to the HDFS data. For Sentry, you can use ACL synchronization to manage HDFS access.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Be the dbadmin user, with or without an authorization service.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example shows how to use CREATE HCATALOG SCHEMA to define a new schema for tables stored in a Hive database and then query the system tables that contain information about those tables:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE HCATALOG SCHEMA hcat WITH HOSTNAME=&amp;#39;hcathost&amp;#39; PORT=9083
   HCATALOG_SCHEMA=&amp;#39;default&amp;#39; HIVESERVER2_HOSTNAME=&amp;#39;hs.example.com&amp;#39;
   SSL_CONFIG=&amp;#39;/etc/hadoop/conf/ssl-client.xml&amp;#39; HCATALOG_USER=&amp;#39;admin&amp;#39;;
CREATE SCHEMA
=&amp;gt; \x
Expanded display is on.

=&amp;gt; SELECT * FROM v_catalog.hcatalog_schemata;
-[ RECORD 1 ]----------------+-------------------------------------------
schema_id                    | 45035996273748224
schema_name                  | hcat
schema_owner_id              | 45035996273704962
schema_owner                 | admin
create_time                  | 2017-12-05 14:43:03.353404-05
hostname                     | hcathost
port                         | -1
hiveserver2_hostname         | hs.example.com
webservice_hostname          |
webservice_port              | 50111
webhdfs_address              | hs.example.com:50070
hcatalog_schema_name         | default
ssl_config                   | /etc/hadoop/conf/ssl-client.xml
hcatalog_user_name           | admin
hcatalog_connection_timeout  | -1
hcatalog_slow_transfer_limit | -1
hcatalog_slow_transfer_time  | -1
custom_partitions            | f

=&amp;gt; SELECT * FROM v_catalog.hcatalog_table_list;
-[ RECORD 1 ]------+------------------
table_schema_id    | 45035996273748224
table_schema       | hcat
hcatalog_schema    | default
table_name         | nation
hcatalog_user_name | admin
-[ RECORD 2 ]------+------------------
table_schema_id    | 45035996273748224
table_schema       | hcat
hcatalog_schema    | default
table_name         | raw
hcatalog_user_name | admin
-[ RECORD 3 ]------+------------------
table_schema_id    | 45035996273748224
table_schema       | hcat
hcatalog_schema    | default
table_name         | raw_rcfile
hcatalog_user_name | admin
-[ RECORD 4 ]------+------------------
table_schema_id    | 45035996273748224
table_schema       | hcat
hcatalog_schema    | default
table_name         | raw_sequence
hcatalog_user_name | admin
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The following example shows how to specify more than one metastore host.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE HCATALOG SCHEMA hcat
   WITH HOSTNAME=&amp;#39;thrift://node1.example.com:9083,thrift://node2.example.com:9083&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example shows how to include custom partition locations:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE HCATALOG SCHEMA hcat WITH HCATALOG_SCHEMA=&amp;#39;default&amp;#39;
    HIVESERVER2_HOSTNAME=&amp;#39;hs.example.com&amp;#39;
    CUSTOM_PARTITIONS=&amp;#39;yes&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE ICEBERG NAMESPACE</title>
      <link>/en/sql-reference/statements/create-statements/create-iceberg-namespaces/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-iceberg-namespaces/</guid>
      <description>
        
        
        &lt;p&gt;Iceberg namespaces are supported only in Eon Mode.&lt;/p&gt;
&lt;p&gt;Creates an Iceberg namespace that maps OpenText™ Analytics Database namespace to an external Apache Iceberg catalog. An Iceberg namespace provides the entry point for accessing Iceberg metadata and data from the database and enables querying Iceberg tables without needing to define separate external tables for each Iceberg table.&lt;/p&gt;
&lt;p&gt;OpenText™ Analytics Database integrates with Apache Iceberg at the namespace level, where each Iceberg catalog (that can be of type filesystem, AWS Glue, Hive Metastore, or REST) is represented as a database namespace. Iceberg objects (for example, tables) are resolved dynamically through the external catalog at query time.
Once created, the namespace can be used as the top‑level qualifier in fully qualified object references when querying Iceberg tables.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE ICEBERG NAMESPACE &lt;span class=&#34;code-variable&#34;&gt;namespace_name&lt;/span&gt; 
[WITH [&lt;span class=&#34;code-variable&#34;&gt;CATALOG&lt;/span&gt;=&lt;span class=&#34;code-variable&#34;&gt;&#39;type of catalog&#39;&lt;/span&gt; LOCATION=&lt;span class=&#34;code-variable&#34;&gt;&#39;path/to/storage_uri&#39;&lt;/span&gt;]]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;

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



&lt;tr&gt; 

&lt;th &gt;
Argument&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;NAMESPACE_NAME&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The name of the namespace that represents the Iceberg catalog. This namespace becomes the top‑level qualifier for Iceberg object access.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;CATALOG&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;
The type of the Iceberg metadata catalog. The supported catalog types are filesystem, glue, hive, and rest.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;LOCATION&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;








&lt;p&gt;Path to the Iceberg warehouse that contains Iceberg metadata.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Base location of an Iceberg Catalog that contains subdirectories for each Iceberg database (namespace), which in turn contain subdirectories for individual Iceberg &lt;a href=&#34;https://iceberg.apache.org/spec/#file-system-tables&#34;&gt;File System tables&lt;/a&gt;. At query time, the system uses the provided database and table name to locate and resolve the latest table metadata file within this directory structure.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;AWS Glue catalog path (glue-path): An S3 path used as the warehouse location for the AWS Glue catalog, or the S3 bucket containing that path.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Hive Metastore path (hms-path): A URI with the &lt;code&gt;thrift://&lt;/code&gt; scheme that provides the address of the Hive Metastore service.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;HTTP or HTTPS endpoint (rest-endpoint) of an Iceberg catalog exposed via a metastore that implements the Iceberg REST OpenAPI specification. The endpoint typically ends with /namespaces, for example: https://myhost:19120/iceberg/v1/main/namespaces.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;rest_auth&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;

The authentication method for the REST catalog which supports either &lt;code&gt;bearerToken&lt;/code&gt; or &lt;code&gt;OAuth2&lt;/code&gt; authentication. Applicable only when CATALOG is &lt;code&gt;rest&lt;/code&gt;. For more information about &lt;code&gt;rest_auth&lt;/code&gt;, see &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-external-table-iceberg/#&#34;&gt;CREATE EXTERNAL TABLE ICEBERG&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Superuser privileges to create, alter or drop Iceberg namespaces in the database.&lt;/li&gt;
&lt;li&gt;Non‑superusers can query Iceberg data if they have appropriate access to the underlying storage.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Assume the following Iceberg directory structure:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/iceberg/warehouse/
├── prod_analytics/
|   ├── click_events/
│   |   ├── data/
│   │   │   ├── 00000-0.parquet
│   │   │   ├── 00001-0.parquet
│   │   │   └── 00002-0.parquet
|   |   |
|   |   └── metadata/
|   |       ├── v1.metadata.json
|   |       ├── v2.metadata.json
|   |       ├── v3.metadata.json
│   │       ├── snap-1001.avro
│   │       ├── snap-1002.avro
│   │       ├── manifest-list-1001.avro
│   │       ├── manifest-list-1002.avro
│   │       └── manifests/
│   │           ├── 8a1f.manifest.avro
│   │           ├── 91c3.manifest.avro
│   │           └── a77b.manifest.avro
|   |
│   └── user_sessions/
│       ├── data/
│       │   ├── 00000-0.parquet
│       │   └── 00001-0.parquet
|       |
│       └── metadata/
│           ├── v1.metadata.json
│           ├── v2.metadata.json
│           ├── manifest-list-2001.avro
│           └── manifests/
│              ├── 11aa.manifest.avro
│              └── 22bb.manifest.avro
|
├── prod_billing/
│   └── invoices/
│       ├── data/
│       │   ├── 00000-0.parquet
│       │   └── 00001-0.parquet
|       |
│       └── metadata/
│           ├── v1.metadata.json
│           ├── manifest-list-3001.avro
│           └── manifests/
|               └── ff10.manifest.avro
│
└── dev_sandbox/
    └── test_table/
        ├── data/
        │   └── 00000-0.parquet
        |
        └── metadata/
            ├── v1.metadata.json
            ├── manifest-list-1.avro
            └── manifests/
                └── abcd.manifest.avro
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Create an Iceberg namespace named &lt;em&gt;iceberg_namespace_fs&lt;/em&gt; with &lt;code&gt;filesystem&lt;/code&gt; catalog that points to a filesystem warehouse.&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;ICEBERG&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;NAMESPACE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;iceberg_namespace_fs&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;WITH&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CATALOG&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;filesystem&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;/iceberg/warehouse&amp;#39;&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;p&gt;Create an Iceberg namespace named &lt;em&gt;iceberg_namespace_glue&lt;/em&gt; with &lt;code&gt;AWS Glue&lt;/code&gt; catalog that points to a Glue warehouse.&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;ICEBERG&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;NAMESPACE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;iceberg_namespace_glue&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;WITH&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CATALOG&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;glue&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;s3://my-glue-warehouse/&amp;#39;&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;p&gt;Query namespaces to verify that the new namespaces are created.&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;n&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;from&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;v_catalog&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;iceberg_namespaces&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;n&#34;&gt;name&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;n&#34;&gt;default_namespace&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;n&#34;&gt;iceberg_namespace_glue&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;2&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;rows&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;p&gt;Retrieve the count of all records from the iceberg_namespace_glue namespace.&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;COUNT&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;*&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;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;iceberg_namespace_glue&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;testdb&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;compare&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;COUNT&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;mi&#34;&gt;10&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;p&gt;Create an Iceberg namespace named &lt;em&gt;iceberg_namespace_hms&lt;/em&gt; with &lt;code&gt;Hive Metastore&lt;/code&gt; catalog that points to a Hive warehouse.&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;ICEBERG&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;NAMESPACE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;iceberg_namespace_hms&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;WITH&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CATALOG&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;hms&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;thrift://my.hms.host.com:9083&amp;#39;&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;p&gt;Create an Iceberg namespace named &lt;em&gt;iceberg_namespace_rest&lt;/em&gt; with &lt;code&gt;REST&lt;/code&gt; catalog that points to a REST warehouse.&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;ICEBERG&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;NAMESPACE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;iceberg_namespace_rest&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;WITH&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CATALOG&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;rest&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;https://myhost:19120/iceberg/v1/main/namespaces&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;REST_AUTH&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;{&amp;#34;bearerToken&amp;#34;: &amp;#34;eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIzWFRweHB&amp;#34;}&amp;#39;&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: CREATE KEY</title>
      <link>/en/sql-reference/statements/create-statements/create-key/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-key/</guid>
      <description>
        
        
        &lt;p&gt;Creates a private key.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE [TEMP[ORARY]] KEY &lt;span class=&#34;code-variable&#34;&gt;name&lt;/span&gt;
       { &amp;#39;AES&amp;#39; [ PASSWORD &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;password&lt;/span&gt;&amp;#39; ] | &amp;#39;RSA&amp;#39; }
       {LENGTH &lt;span class=&#34;code-variable&#34;&gt;length&lt;/span&gt; | AS &lt;span class=&#34;code-variable&#34;&gt;key_text&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;TEMPORARY&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Create with session scope. The key is stored in memory and is valid only for the current session.&lt;/dd&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 key.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;password&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Password for the key.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;length&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Size of the key in bits.
&lt;p&gt;Example: 2048&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;key_text&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The contents of the key to import.
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;-----BEGIN RSA PRIVATE KEY-----...ABCD1234...-----END RSA PRIVATE KEY-----
&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;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/security-and-authentication/tls-protocol/tls-overview/generating-tls-certificates-and-keys/#&#34;&gt;Generating TLS certificates and keys&lt;/a&gt;.&lt;/p&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/create-statements/create-certificate/#&#34;&gt;CREATE CERTIFICATE&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE LIBRARY</title>
      <link>/en/sql-reference/statements/create-statements/create-library/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-library/</guid>
      <description>
        
        
        &lt;p&gt;Loads a library containing user-defined extensions (UDxs) into the database catalog. The database automatically distributes copies of the library file and supporting libraries to all cluster nodes.&lt;/p&gt;
&lt;p&gt;Because libraries are added to the database catalog, they persist across database restarts.&lt;/p&gt;
&lt;p&gt;After loading a library in the catalog, you can use statements such as &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-function-statements/&#34;&gt;CREATE FUNCTION&lt;/a&gt; to define the extensions contained in the library. See &lt;a href=&#34;../../../../en/extending/developing-udxs/#&#34;&gt;Developing user-defined extensions (UDxs)&lt;/a&gt; for details.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE [OR REPLACE] LIBRARY
    [[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;name&lt;/span&gt;
    AS &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;path&lt;/span&gt;&amp;#39;
    [ DEPENDS &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;depends-path&lt;/span&gt;&amp;#39; ]
    [ LANGUAGE &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;language&lt;/span&gt;&amp;#39; ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;OR REPLACE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;If a library with the same name exists, replace it. UDxs defined in the catalog that reference the updated library automatically start using the new library file.
&lt;p&gt;If you do not use this directive and the library already exists, the CREATE statement returns with an error.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the library to create. This is the name used when creating functions in the library (see &lt;a href=&#34;../../../../en/extending/udxs/loading-udxs/#Creating&#34;&gt;Creating UDx Functions&lt;/a&gt;). While not required, it is good practice to match the file name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;AS &lt;/code&gt;&lt;em&gt;&lt;code&gt;path&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Path of the library to load, either an absolute path on the initiator node file system or a URI for another &lt;a href=&#34;../../../../en/sql-reference/file-systems-and-object-stores/&#34;&gt;supported file system or object store&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;DEPENDS &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;depends-path&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Files or libraries on which this library depends, one or more files or directories on the initiator node file system or other &lt;a href=&#34;../../../../en/sql-reference/file-systems-and-object-stores/&#34;&gt;supported file systems or object stores&lt;/a&gt;. For a directory, end the path entry with a slash (&lt;code&gt;/&lt;/code&gt;), optionally followed by a wildcard (&lt;code&gt;*&lt;/code&gt;). To specify more than one file, separate entries with colons (&lt;code&gt;:&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;If any path entry contain colons, such as a URI, place brackets around the entire DEPENDS path and use double quotes for the individual path elements, as in the following example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;DEPENDS &amp;#39;[&amp;#34;s3://mybucket/gson-2.3.1.jar&amp;#34;]&amp;#39;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To specify libraries with multiple directory levels, see &lt;a href=&#34;#MultiLevelDependencies&#34;&gt;Multi-level Library Dependencies&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;DEPENDS has no effect for libraries written in R. R packages must be installed locally on each node, including external dependencies.

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
The performance of CREATE LIBRARY can degrade in Eon Mode, in proportion to the number and depth of dependencies specified by the DEPENDS clause.
&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;If a Java library depends on native libraries (SO files), use DEPENDS to specify the path and call &lt;code&gt;System.loadLibrary()&lt;/code&gt; in your UDx to load the native libraries from that path.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;LANGUAGE &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;language&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The programming language of the functions in the library, one of:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;C++&lt;/code&gt; (default)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;Python&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;Java&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;R&lt;/code&gt;&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;Superuser, or &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-roles/predefined-db-roles/udxdeveloper/#&#34;&gt;UDXDEVELOPER&lt;/a&gt; and CREATE on the schema. Non-superusers must explicitly enable the UDXDEVELOPER role, as in the following example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET ROLE UDXDEVELOPER;
SET

-- Not required, but you can confirm the role as follows:
=&amp;gt; SHOW ENABLED ROLES;
     name      |   setting
---------------+--------------
 enabled roles | udxdeveloper
(1 row)

=&amp;gt; CREATE LIBRARY MyLib AS &amp;#39;/home/dbadmin/my_lib.so&amp;#39;;
CREATE LIBRARY

-- Create functions...

-- UDXDEVELOPER also grants DROP (replace):
=&amp;gt; CREATE OR REPLACE LIBRARY MyLib AS &amp;#39;/home/dbadmin/my_lib.so&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;requirements&#34;&gt;Requirements&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;OpenText™ Analytics Database makes its own copies of the library files. Later modification or deletion of the original files specified in the statement does not affect the library defined in the catalog. To update the library, use &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-library/#&#34;&gt;ALTER LIBRARY&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Loading a library does not guarantee that it functions correctly. CREATE LIBRARY performs some basic checks on the library file to verify it is compatible with the database. The statement fails if it detects that the library was not correctly compiled or it finds other basic incompatibilities. However, CREATE LIBRARY cannot detect many other issues in shared libraries.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a name=&#34;MultiLevelDependencies&#34;&gt;&lt;/a&gt;
&lt;h2 id=&#34;multi-level-library-dependencies&#34;&gt;Multi-level library dependencies&lt;/h2&gt;
&lt;p&gt;If a DEPENDS clause specifies a library with multiple directory levels, Vertica follows the library path to include all subdirectories of that library. For example, the following CREATE LIBRARY statement enables the UDx library &lt;code&gt;mylib&lt;/code&gt; to import all Python packages and modules that it finds in subdirectories of &lt;code&gt;site-packages&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LIBRARY mylib AS &amp;#39;/path/to/python_udx&amp;#39; DEPENDS &amp;#39;/path/to/python/site-packages&amp;#39; LANGUAGE &amp;#39;Python&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
DEPENDS can specify Java library dependencies that are up to 100 levels deep.
&lt;/div&gt;
&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Load a library in the home directory of the dbadmin account:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LIBRARY MyFunctions AS &amp;#39;/home/dbadmin/my_functions.so&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Load a library located in the directory where you started &lt;code&gt;vsql&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \set libfile &amp;#39;\&amp;#39;&amp;#39;`pwd`&amp;#39;/MyOtherFunctions.so\&amp;#39;&amp;#39;;
=&amp;gt; CREATE LIBRARY MyOtherFunctions AS :libfile;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Load a library from the cloud:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LIBRARY SomeFunctions AS &amp;#39;S3://mybucket/extensions.so&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Load a library that depends on multiple JAR files in the same directory:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LIBRARY DeleteVowelsLib AS &amp;#39;/home/dbadmin/JavaLib.jar&amp;#39;
   DEPENDS &amp;#39;/home/dbadmin/mylibs/*&amp;#39; LANGUAGE &amp;#39;Java&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Load a library with multiple explicit dependencies:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LIBRARY mylib AS &amp;#39;/path/to/java_udx&amp;#39;
   DEPENDS &amp;#39;/path/to/jars/this.jar:/path/to/jars/that.jar&amp;#39; LANGUAGE &amp;#39;Java&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Load a library with dependencies in the cloud:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LIBRARY s3lib AS &amp;#39;s3://mybucket/UdlLib.jar&amp;#39;
   DEPENDS &amp;#39;[&amp;#34;s3://mybucket/gson-2.3.1.jar&amp;#34;]&amp;#39; LANGUAGE &amp;#39;Java&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE LOAD BALANCE GROUP</title>
      <link>/en/sql-reference/statements/create-statements/create-load-balance-group/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-load-balance-group/</guid>
      <description>
        
        
        &lt;p&gt;Creates a group of network addresses that can be targeted by a load balancing routing rule. You create a group either using a list of network addresses, or basing it on one or more fault groups or subclusters.

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

You cannot add multiple network addresses for one node to the same load balancing group.

&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;CREATE LOAD BALANCE GROUP &lt;span class=&#34;code-variable&#34;&gt;group_name&lt;/span&gt; WITH {
      ADDRESS &lt;span class=&#34;code-variable&#34;&gt;address&lt;/span&gt;[,...]
    | FAULT GROUP  &lt;span class=&#34;code-variable&#34;&gt;fault_group&lt;/span&gt;[,...] FILTER &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;IP_range&lt;/span&gt;&amp;#39;
    | SUBCLUSTER &lt;span class=&#34;code-variable&#34;&gt;subcluster&lt;/span&gt;[,...] FILTER &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;IP_range&lt;/span&gt;&amp;#39;
    }
    [ POLICY &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;policy_setting&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;group_name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the group to create. You use this name later when defining load balancing rules.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;address&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[,...]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Comma-delimited list of network addresses you created earlier.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;fault_group&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[,...]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Comma-delimited list of fault groups to use as the basis of the load balance group.

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

Before you create your load balance group from a fault group, you must create network addresses on the nodes you want in your load balance group. Load balance groups only work with the network addresses you define on nodes, rather than IP addresses. See &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-network-address/#&#34;&gt;CREATE NETWORK ADDRESS&lt;/a&gt;.

&lt;/div&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[,...]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Comma-delimited list of subclusters to use as the basis of the load balance group.

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

As with fault groups, you must create network addresses on the nodes in the subcluster you want to be part of the load balance group.

&lt;/div&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;IP_range&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Range of IP addresses in CIDR notation to include in the load balance group from the fault groups or subclusters. This range can be either IPv4 or IPv6. Only nodes that have a network address with an IP address that falls within this range are added to the load balancing group.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;policy_setting&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Determines how the initially-contacted node chooses a target from the group, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;ROUNDROBIN (default) rotates among the available members of the load balancing group. The initially-contacted node keeps track of which node it chose last time, and chooses the next one in the cluster.&lt;/p&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;

Each node in the cluster maintains its own round-robin pointer that indicates which node it should pick next for each load-balancing group. Therefore, if clients connect to different initial nodes, they may be redirected to the same node.

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;RANDOM chooses an available node from the group randomly.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;NONE disables load balancing.&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;

Superuser
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following statement demonstrates creating a load balance group that contains several network addresses:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NETWORK ADDRESS addr01 ON v_vmart_node0001 WITH &amp;#39;10.20.110.21&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS addr02 ON v_vmart_node0002 WITH &amp;#39;10.20.110.22&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS addr03 on v_vmart_node0003 WITH &amp;#39;10.20.110.23&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS addr04 on v_vmart_node0004 WITH &amp;#39;10.20.110.24&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE LOAD BALANCE GROUP group_1 WITH ADDRESS addr01, addr02;
CREATE LOAD BALANCE GROUP
=&amp;gt; CREATE LOAD BALANCE GROUP group_2 WITH ADDRESS addr03, addr04;
CREATE LOAD BALANCE GROUP

=&amp;gt; SELECT * FROM LOAD_BALANCE_GROUPS;
    name    |   policy   |     filter      |         type          | object_name
------------+------------+-----------------+-----------------------+-------------
 group_1    | ROUNDROBIN |                 | Network Address Group | addr01
 group_1    | ROUNDROBIN |                 | Network Address Group | addr02
 group_2    | ROUNDROBIN |                 | Network Address Group | addr03
 group_2    | ROUNDROBIN |                 | Network Address Group | addr04
(4 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This example demonstrates creating a load balancing group using a fault group:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE FAULT GROUP fault_1;
CREATE FAULT GROUP
=&amp;gt; ALTER FAULT GROUP fault_1 ADD NODE  v_vmart_node0001;
ALTER FAULT GROUP
=&amp;gt; ALTER FAULT GROUP fault_1 ADD NODE  v_vmart_node0002;
ALTER FAULT GROUP
=&amp;gt; ALTER FAULT GROUP fault_1 ADD NODE  v_vmart_node0003;
ALTER FAULT GROUP
=&amp;gt; ALTER FAULT GROUP fault_1 ADD NODE  v_vmart_node0004;
ALTER FAULT GROUP
=&amp;gt; SELECT node_name,node_address,node_address_family,export_address
   FROM v_catalog.nodes;
    node_name     | node_address | node_address_family | export_address
------------------+--------------+---------------------+----------------
 v_vmart_node0001 | 10.20.110.21 | ipv4                | 10.20.110.21
 v_vmart_node0002 | 10.20.110.22 | ipv4                | 10.20.110.22
 v_vmart_node0003 | 10.20.110.23 | ipv4                | 10.20.110.23
 v_vmart_node0004 | 10.20.110.24 | ipv4                | 10.20.110.24
(4 rows)

=&amp;gt; CREATE LOAD BALANCE GROUP group_all WITH FAULT GROUP fault_1 FILTER
   &amp;#39;0.0.0.0/0&amp;#39;;
CREATE LOAD BALANCE GROUP

=&amp;gt; CREATE LOAD BALANCE GROUP group_some WITH FAULT GROUP fault_1 FILTER
   &amp;#39;10.20.110.21/30&amp;#39;;
CREATE LOAD BALANCE GROUP

=&amp;gt; SELECT * FROM LOAD_BALANCE_GROUPS;
      name      |   policy   |     filter      |         type          | object_name
----------------+------------+-----------------+-----------------------+-------------
 group_all      | ROUNDROBIN | 0.0.0.0/0       | Fault Group           | fault_1
 group_some     | ROUNDROBIN | 10.20.110.21/30 | Fault Group           | fault_1
(2 rows)
&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-load-balance-group/&#34;&gt;ALTER LOAD BALANCE GROUP&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-network-address/&#34;&gt;ALTER NETWORK ADDRESS&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-routing-rule/&#34;&gt;ALTER ROUTING RULE&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/load-balance-groups/&#34;&gt;LOAD_BALANCE_GROUPS&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/network-addresses/&#34;&gt;NETWORK_ADDRESSES&lt;/a&gt;&lt;/li&gt;
	
&lt;/ul&gt;



      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE LOCAL TEMPORARY VIEW</title>
      <link>/en/sql-reference/statements/create-statements/create-local-temporary-view/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-local-temporary-view/</guid>
      <description>
        
        
        &lt;p&gt;Creates or replaces a local temporary view. Views are read only, so they do not support insert, update, delete, or copy operations. Local temporary views are session-scoped, so they are visible only to their creator in the current session. The database drops the view when the session ends.

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

Global temporary views are not supported.

&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;CREATE [OR REPLACE] LOCAL TEMP[ORARY] VIEW &lt;span class=&#34;code-variable&#34;&gt;view&lt;/span&gt; [ (&lt;span class=&#34;code-variable&#34;&gt;column&lt;/span&gt;[,...] ) ] AS &lt;span class=&#34;code-variable&#34;&gt;query&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;OR REPLACE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies to overwrite the existing view &lt;em&gt;&lt;code&gt;view-name&lt;/code&gt;&lt;/em&gt;. If you omit this option and &lt;em&gt;&lt;code&gt;view-name&lt;/code&gt;&lt;/em&gt; already exists, &lt;code&gt;CREATE VIEW&lt;/code&gt; returns an error.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;view&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Identifies the view to create, where &lt;em&gt;&lt;code&gt;view&lt;/code&gt;&lt;/em&gt; conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;. It must also be unique among all names of sequences, tables, projections, views, and models within the same schema.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;column&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[,...]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;List of up to 9800 names to use as view column names. The database maps view column names to query columns according to the order of their respective lists. By default, the view uses column names as they are specified in the query.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;AS &lt;/code&gt;&lt;em&gt;&lt;code&gt;query &lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt;&lt;/code&gt; statement that the temporary view executes. The &lt;code&gt;SELECT&lt;/code&gt; statement can reference tables, temporary tables, and other views.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/data-analysis/views/creating-views/#&#34;&gt;Creating views&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following &lt;code&gt;CREATE LOCAL TEMPORARY VIEW&lt;/code&gt; statement creates the temporary view &lt;code&gt;myview&lt;/code&gt;. This view sums all individual incomes of customers listed in the &lt;code&gt;store.store_sales_fact&lt;/code&gt; table, and groups results by state:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LOCAL TEMP VIEW myview AS
   SELECT SUM(annual_income), customer_state FROM public.customer_dimension
     WHERE customer_key IN (SELECT customer_key FROM store.store_sales_fact)
     GROUP BY customer_state
     ORDER BY customer_state ASC;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example uses the temporary view &lt;code&gt;myview&lt;/code&gt; with a &lt;code&gt;WHERE&lt;/code&gt; clause that limits the results to combined salaries greater than $2 billion:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM myview WHERE SUM &amp;gt; 2000000000;


     SUM     | customer_state
-------------+----------------
  2723441590 | AZ
 29253817091 | CA
  4907216137 | CO
  3769455689 | CT
  3330524215 | FL
  4581840709 | IL
  3310667307 | IN
  2793284639 | MA
  5225333668 | MI
  2128169759 | NV
  2806150503 | PA
  2832710696 | TN
 14215397659 | TX
  2642551509 | UT
(14 rows)
&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-view/#&#34;&gt;ALTER VIEW&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-view/#&#34;&gt;CREATE VIEW&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/data-analysis/views/creating-views/#&#34;&gt;Creating views&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE LOCATION</title>
      <link>/en/sql-reference/statements/create-statements/create-location/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-location/</guid>
      <description>
        
        
        &lt;p&gt;Creates a storage location where OpenText™ Analytics Database can store data. After you create the location, you create storage policies that assign the storage location to the database objects that will store data in the location.

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

&lt;p&gt;While no technical issue prevents you from using &lt;code&gt;CREATE LOCATION&lt;/code&gt; to add one or more Network File System (NFS) storage locations, OpenText™ Analytics Database does not support NFS data or catalog storage except for MapR mount points. You will be unable to run queries against any other NFS data. When creating locations on MapR file systems, you must specify &lt;code&gt;ALL NODES SHARED&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you use HDFS storage locations, the HDFS data must be available when you start Vertica. Your HDFS cluster must be operational, and the ROS files must be present. If you moved data files, or they are corrupted, or your HDFS cluster is not responsive, Vertica cannot start.&lt;/p&gt;


&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;CREATE LOCATION &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;path&lt;/span&gt;&amp;#39;
    [NODE &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;node&lt;/span&gt;&amp;#39; | ALL NODES]
    [ SHARED ]
    [ COMMUNAL ]
    [ USAGE &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;usage&lt;/span&gt;&amp;#39;]
    [LABEL &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;label&lt;/span&gt;&amp;#39;]
    [LIMIT &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;size&lt;/span&gt;&amp;#39;]
&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;path&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Where to store this location&#39;s data. The type of file system on which the location is based determines the &lt;em&gt;&lt;code&gt;path&lt;/code&gt;&lt;/em&gt; format:
&lt;ul&gt;
&lt;li&gt;Linux: Absolute path to the directory where the database writes the storage location&#39;s data.&lt;/li&gt;
&lt;li&gt;Shared file systems: See the URL specifications in &lt;a href=&#34;../../../../en/sql-reference/file-systems-and-object-stores/hdfs-file-system/#&#34;&gt;HDFS file system&lt;/a&gt;, &lt;a href=&#34;../../../../en/sql-reference/file-systems-and-object-stores/s3-object-store/#&#34;&gt;S3 object store&lt;/a&gt;, &lt;a href=&#34;../../../../en/sql-reference/file-systems-and-object-stores/google-cloud-storage-gcs-object-store/#&#34;&gt;Google Cloud Storage (GCS) object store&lt;/a&gt;, and &lt;a href=&#34;../../../../en/sql-reference/file-systems-and-object-stores/azure-blob-storage-object-store/#&#34;&gt;Azure Blob Storage object store&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;HDFS storage locations have &lt;a href=&#34;../../../../en/admin/managing-storage-locations/storage-locations-on-hdfs/requirements-hdfs-storage-locations/&#34;&gt;additional requirements&lt;/a&gt;.

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
The database performs no validation on storage location paths. Confirm that the path value points to a valid location.
&lt;/div&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ALL NODES | NODE &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;node&lt;/code&gt;&lt;/em&gt;&#39;&lt;/dt&gt;
&lt;dd&gt;The node or nodes on which the storage location is defined, one of the following:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;ALL NODES&lt;/code&gt; (default): Create the storage location on each node that is currently part of the cluster. If you later add nodes, you must also create the location on those nodes. If SHARED is also specified, create the storage location once for use by all nodes.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;NODE &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;node&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;: Create the storage location on a single node, where &lt;em&gt;&lt;code&gt;node&lt;/code&gt;&lt;/em&gt; is the name of the node in the &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/nodes/#&#34;&gt;NODES&lt;/a&gt; system table. You cannot use this option with SHARED.&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;SHARED&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Indicates the location set by &lt;em&gt;&lt;code&gt;path&lt;/code&gt;&lt;/em&gt; is shared (used by all nodes) rather than local to each node. You cannot specify individual nodes with SHARED; you must use ALL NODES.
&lt;p&gt;Most remote file systems such as HDFS and S3 are shared. For these file systems, the &lt;em&gt;&lt;code&gt;path&lt;/code&gt;&lt;/em&gt; argument represents a single location in the remote file system where all nodes store data. If using a remote file system, you must specify SHARED, even for one-node clusters.&lt;/p&gt;
&lt;p&gt;If &lt;em&gt;&lt;code&gt;path&lt;/code&gt;&lt;/em&gt; is set to S3 communal storage, &lt;code&gt;SHARED&lt;/code&gt; is always implied and can be omitted.&lt;/p&gt;

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

SHARED DATA and SHARED DATA,TEMP storage locations are deprecated.

&lt;/div&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;COMMUNAL&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The location set by &lt;em&gt;&lt;code&gt;path&lt;/code&gt;&lt;/em&gt; is to be a communal storage location.
&lt;p&gt;If you specify &lt;code&gt;COMMUNAL&lt;/code&gt;, you do not need to provide the &lt;code&gt;SHARED&lt;/code&gt;, &lt;code&gt;ALL NODES&lt;/code&gt;, or &lt;code&gt;NODE&lt;/code&gt; options because the storage location is necessarily shared by all nodes in the database. For the &lt;code&gt;USAGE&lt;/code&gt; option, you must specify a value of &lt;code&gt;DATA&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;After the communal storage location is created, you can assign objects to it using the &lt;a href=&#34;../../../../en/sql-reference/functions/management-functions/storage-functions/set-object-storage-policy/#&#34;&gt;SET_OBJECT_STORAGE_POLICY&lt;/a&gt; function.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;USAGE&#34;&gt;&lt;/a&gt;USAGE &#39;&lt;span class=&#34;code-variable&#34;&gt;usage&lt;/span&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The type of data the storage location can hold, where &lt;em&gt;&lt;code&gt;usage&lt;/code&gt;&lt;/em&gt; is one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;DATA,TEMP&lt;/code&gt; (default): The storage location can store persistent and temporary DML-generated data, and data for temporary tables.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;TEMP&lt;/code&gt;: A &lt;em&gt;&lt;code&gt;path&lt;/code&gt;&lt;/em&gt;-specified location to store DML-generated temporary data. If &lt;em&gt;&lt;code&gt;path&lt;/code&gt;&lt;/em&gt; is set to S3, then this location is used only when the RemoteStorageForTemp configuration parameter is set to 1, and &lt;code&gt;TEMP&lt;/code&gt; must be qualified with ALL NODES SHARED. For details, see &lt;a href=&#34;../../../../en/admin/managing-storage-locations/creating-storage-locations/#Temporar&#34;&gt;S3 Storage of Temporary Data&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;DATA&lt;/code&gt;: The storage location can only store persistent data.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;USER&lt;/code&gt;: Users with READ and WRITE &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-storage-location/&#34;&gt;privileges&lt;/a&gt; can access data and &lt;a href=&#34;../../../../en/data-load/working-with-external-data/&#34;&gt;external tables&lt;/a&gt; of this storage location.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;DEPOT&lt;/code&gt;: The storage location is used in &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/eon/&#34; title=&#34;Eon Mode is the database mode that optimizes your database for scalability.&#34;&gt;Eon Mode&lt;/a&gt; to store the depot. Only create &lt;code&gt;DEPOT&lt;/code&gt; storage locations on local Linux file systems.&lt;/p&gt;
&lt;p&gt;Vertica allows a single &lt;code&gt;DEPOT&lt;/code&gt; storage location per node. If you want to move your depot to different location (on a different file system, for example) you must first drop the old depot storage location, then create the new location.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;LABEL &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;label&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A label for the storage location, used when assigning the storage location to data objects. You use this name later when assigning the storage location to data objects.

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
You must supply a label for depot storage locations.
&lt;/div&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;LIMIT &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;size&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Valid only if the storage location usage type is set to &lt;code&gt;DEPOT&lt;/code&gt;, specifies the maximum amount of disk space that the depot can allocate from the storage location&#39;s file system.&lt;/p&gt;
&lt;p&gt;You can specify &lt;em&gt;&lt;code&gt;size&lt;/code&gt;&lt;/em&gt; in two ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;%&lt;/code&gt;: Percentage of storage location disk size.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;{K|M|G|T}&lt;/code&gt;: Amount of storage location disk size in kilobytes, megabytes, gigabytes, or terabytes.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
The depot size cannot exceed 80 percent of the file system disk space where the depot is stored. If you specify a value that is too large, Vertica issues a warning and automatically changes the value to 80 percent of the file system size.
&lt;/div&gt;

&lt;p&gt;If you do not specify a limit, it is set to 60 percent.&lt;/p&gt;
&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;file-system-access&#34;&gt;File system access&lt;/h2&gt;
&lt;p&gt;The database must have read and write permissions to the location where data is to be stored. Each file system has its own requirements:

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



&lt;tr&gt; 

&lt;th &gt;
File system&lt;/th&gt; 

&lt;th &gt;
Requirements&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Linux&lt;/td&gt; 

&lt;td &gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Database superuser&lt;/a&gt; account (usually named dbadmin) must have full read and write access to the directory in the &lt;em&gt;&lt;code&gt;path&lt;/code&gt;&lt;/em&gt; argument.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
HDFS without Kerberos&lt;/td&gt; 

&lt;td &gt;
A Hadoop user whose username matches the OpenText™ Analytics Database administrator username (usually dbadmin) must have read and write access to the HDFS directory specified in the &lt;em&gt;&lt;code&gt;path&lt;/code&gt;&lt;/em&gt; argument. The &lt;a href=&#34;../../../../en/sql-reference/config-parameters/general-parameters/#UseServerIdentityOverUserIdentity&#34;&gt;UseServerIdentityOverUserIdentity&lt;/a&gt; configuration parameter must be set to true in the user session; otherwise the database tries to use the identity associated with the logged-in user.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
HDFS with Kerberos&lt;/td&gt; 

&lt;td &gt;


A Hadoop user whose username matches the principal in the keytab file on each database node must have read and write access to the HDFS directory stored in the path argument. This is not the same as the database administrator username. The &lt;a href=&#34;../../../../en/sql-reference/config-parameters/general-parameters/#UseServerIdentityOverUserIdentity&#34;&gt;UseServerIdentityOverUserIdentity&lt;/a&gt; configuration parameter must be set to true in the user session; otherwise the database tries to use the Kerberos principal associated with the logged-in user.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Object stores (S3, GCS, Azure)&lt;/td&gt; 

&lt;td &gt;
Database-level credentials must be specified and provide full read and write access to the location in the path argument. If session-level credentials are specified they are used, directly overriding the use of the storage location.&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;Create a storage location in the local Linux file system for temporary data storage:&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;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;/home/dbadmin/testloc&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USAGE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;TEMP&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;LABEL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;tempfiles&amp;#39;&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;p&gt;Create a storage location on HDFS. The HDFS cluster does not use Kerberos:&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;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;hdfs://hadoopNS/vertica/colddata&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ALL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;NODES&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;SHARED&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;USAGE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;data&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;LABEL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;coldstorage&amp;#39;&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;p&gt;Create the same storage location, but on a Hadoop cluster that uses Kerberos. Note the output that reports the principal being used:&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;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;hdfs://hadoopNS/vertica/colddata&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ALL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;NODES&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;SHARED&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;USAGE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;data&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;LABEL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;coldstorage&amp;#39;&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;n&#34;&gt;NOTICE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;0&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;n&#34;&gt;Performing&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;HDFS&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;operations&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;using&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;kerberos&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;principal&lt;/span&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;n&#34;&gt;vertica&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;/&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;hadoop&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;example&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;com&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&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;p&gt;Create a location for user data, grant access to it, and use it to create an external table:&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;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;/tmp&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ALL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;NODES&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USAGE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;user&amp;#39;&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&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;GRANT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ALL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;/tmp&amp;#39;&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;Bob&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;GRANT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;PRIVILEGE&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;EXTERNAL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ext1&lt;/span&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;n&#34;&gt;x&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;integer&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;AS&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;COPY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;/tmp/data/ext1.dat&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;DELIMITER&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;,&amp;#39;&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&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;p&gt;Create a user storage location on S3 and a role, so that users without their own S3 credentials can read data from S3 using the server credential:&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;w&#34;&gt;   &lt;/span&gt;&lt;span class=&#34;c1&#34;&gt;--- set database-level credential (once):
&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;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;ALTER&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;DATABASE&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;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;n&#34;&gt;AWSAuth&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;s1&#34;&gt;&amp;#39;myaccesskeyid123456:mysecretaccesskey123456789012345678901234&amp;#39;&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&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;s3://datalake&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;SHARED&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USAGE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;USER&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;LABEL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;s3user&amp;#39;&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&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ROLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;ExtUsers&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;c1&#34;&gt;--- Assign users to this role using GRANT (Role).
&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&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;GRANT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;READ&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;s3://datalake&amp;#39;&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;ExtUsers&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;p&gt;Create a communal storage location on S3 with the label &lt;code&gt;cold-storage&lt;/code&gt;:&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;k&#34;&gt;LOCATION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;s3://bucket/s3&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;COMMUNAL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USAGE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;DATA&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;LABEL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;cold-storage&amp;#39;&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;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-storage-locations/#&#34;&gt;Managing storage locations&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/hadoop-integration/using-hdfs-storage-locations/#&#34;&gt;Using HDFS storage locations&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/functions/management-functions/storage-functions/alter-location-label/#&#34;&gt;ALTER_LOCATION_LABEL&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/functions/management-functions/storage-functions/alter-location-use/#&#34;&gt;ALTER_LOCATION_USE&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/functions/management-functions/storage-functions/retire-location/#&#34;&gt;RETIRE_LOCATION&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/functions/management-functions/storage-functions/set-object-storage-policy/#&#34;&gt;SET_OBJECT_STORAGE_POLICY&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE NAMESPACE</title>
      <link>/en/sql-reference/statements/create-statements/create-namespace/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-namespace/</guid>
      <description>
        
        
        &lt;p&gt;&lt;strong&gt;Eon Mode only&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Creates a &lt;a href=&#34;../../../../en/architecture/eon-concepts/shards-and-subscriptions/&#34;&gt;namespace&lt;/a&gt; for an Eon Mode database.&lt;/p&gt;
&lt;p&gt;When you create a database, a namespace named &lt;code&gt;default_namespace&lt;/code&gt; is created with the shard count defined during database creation. This function lets you create additional namespaces. Each namespace has a distinct shard count that determines the segmentation of its member objects. For more information, see &lt;a href=&#34;../../../../en/eon/managing-namespaces/#&#34;&gt;Managing namespaces&lt;/a&gt; and &lt;a href=&#34;../../../../en/architecture/eon-concepts/shards-and-subscriptions/#&#34;&gt;Namespaces and shards&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Every schema and table in an Eon Mode database belongs to a namespace. When you create a table or schema, you optionally specify the namespace under which to create the object. If no namespace is specified, the table or schema is created in &lt;code&gt;default_namespace&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
If you create a non-default namespace, you cannot reshard &lt;code&gt;default_namespace&lt;/code&gt; or save an in-database restore point.
&lt;/div&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE NAMESPACE &lt;span class=&#34;code-variable&#34;&gt;namespace&lt;/span&gt; [ SHARD COUNT &lt;span class=&#34;code-variable&#34;&gt;shards&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;namespace&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the namespace. Cannot be the same as the initial substring of any schema name containing a period. For example, if a schema named &lt;code&gt;prefix.s&lt;/code&gt; exists, you cannot create a namespace named &lt;code&gt;prefix&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;SHARD COUNT &lt;/code&gt;&lt;em&gt;&lt;code&gt;shards&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Shard count of the namespace. If unspecified, the shard count is set to that of &lt;code&gt;default_namespace&lt;/code&gt;.&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;Create the &lt;code&gt;analytics&lt;/code&gt; namespace with a shard count of 12:&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;NAMESPACE&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;n&#34;&gt;SHARD&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;COUNT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;12&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;NAMESPACE&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;p&gt;You can view all namespaces in your database by querying the &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/namespaces/#&#34;&gt;NAMESPACES&lt;/a&gt; system table:&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;n&#34;&gt;namespace_name&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;n&#34;&gt;is_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 class=&#34;n&#34;&gt;default_shard_count&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;NAMESPACES&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;n&#34;&gt;namespace_name&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;is_default&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;default_shard_count&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;default_namespace&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;t&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;mi&#34;&gt;6&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;n&#34;&gt;analytics&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;f&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;mi&#34;&gt;12&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;2&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;rows&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;p&gt;For a more in-depth example, see &lt;a href=&#34;../../../../en/eon/managing-namespaces/#&#34;&gt;Managing namespaces&lt;/a&gt;.&lt;/p&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/drop-statements/drop-namespace/#&#34;&gt;DROP NAMESPACE&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE NETWORK ADDRESS</title>
      <link>/en/sql-reference/statements/create-statements/create-network-address/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-network-address/</guid>
      <description>
        
        
        &lt;p&gt;Creates a network address that can be used as part of a connection load balancing policy. A network address creates a name in the database catalog for an IP address and port number associated with a node. Nodes can have multiple network addresses, up to one for each IP address they have on the network.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE NETWORK ADDRESS &lt;span class=&#34;code-variable&#34;&gt;name&lt;/span&gt; ON &lt;span class=&#34;code-variable&#34;&gt;node&lt;/span&gt; WITH &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;ip-address&lt;/span&gt;&amp;#39; [PORT &lt;span class=&#34;code-variable&#34;&gt;port-number&lt;/span&gt;] [ENABLED | DISABLED]
&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 new network address. Use this name when creating connection load balancing groups.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;node&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the node on which to create the network address. This should be name of the node as it appears in the &lt;code&gt;node_name&lt;/code&gt; column of system table &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/nodes/#&#34;&gt;NODES&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;ip-address&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The IPv4 or and IPv6 address on the node to associate with the network address.

&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 verify that the IP address you supply in this parameter is associated with the specified node. Be sure that the IP address belongs to the node. Otherwise, your load balancing policy is liable to send a client connection to the wrong node, or a host that is not part of the database cluster. The database rejects IP address that are invalid for a node. For example, it checks whether the IP address falls in the loopback address range of 127.0.0.0/8. If it finds that the IP address is invalid, CREATE NETWORK ADDRESS returns an error.

&lt;/div&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;PORT &lt;/code&gt;&lt;em&gt;&lt;code&gt;port-number&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Sets the port number for the network address. You must supply a network address when altering the port number.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ENABLED | DISABLED&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Enables or disables the network address.&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;Create three network addresses, one for each node in a three-node cluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name,export_address from v_catalog.nodes;
      node_name      | export_address
---------------------+----------------
 v_vmart_br_node0001 | 10.20.100.62
 v_vmart_br_node0002 | 10.20.100.63
 v_vmart_br_node0003 | 10.20.100.64
(3 rows)

=&amp;gt; CREATE NETWORK ADDRESS node01 ON v_vmart_br_node0001 WITH &amp;#39;10.20.100.62&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node02 ON v_vmart_br_node0002 WITH &amp;#39;10.20.100.63&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node03 ON v_vmart_br_node0003 WITH &amp;#39;10.20.100.64&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;





      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE NETWORK INTERFACE</title>
      <link>/en/sql-reference/statements/create-statements/create-network-interface/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-network-interface/</guid>
      <description>
        
        
        &lt;p&gt;Identifies a network interface to which a node belongs.&lt;/p&gt;
&lt;p&gt;Use this statement when you want to configure &lt;a href=&#34;../../../../en/data-export/db-export-and-import/&#34;&gt;import/export&lt;/a&gt; operations from individual nodes to other OpenText™ Analytics Database
clusters. By default, when you install the database, it creates interfaces for all connected networks. You would only need CREATE NETWORK INTERFACE in situations where the network topology has changed since you installed the database.

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

Do not confuse this statement with &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-network-address/#&#34;&gt;CREATE NETWORK ADDRESS&lt;/a&gt;, which is used to identify network addresses for connection load balancing (see &lt;a href=&#34;../../../../en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/#&#34;&gt;Connection load balancing policies&lt;/a&gt;).

&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;CREATE NETWORK INTERFACE &lt;span class=&#34;code-variable&#34;&gt;network-interface-name&lt;/span&gt; ON &lt;span class=&#34;code-variable&#34;&gt;node-name&lt;/span&gt; [WITH] &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;node-IP-address&lt;/span&gt;&amp;#39; [PORT &lt;span class=&#34;code-variable&#34;&gt;port-number&lt;/span&gt;] [ENABLED | DISABLED]
&lt;/code&gt;&lt;/pre&gt;&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;network-interface-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name you assign to the network interface, where &lt;em&gt;&lt;code&gt;network-interface-name&lt;/code&gt;&lt;/em&gt; conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;node-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the node.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;node-IP-address&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The node&#39;s IP address, either a public or private IP address. For more information, see &lt;a href=&#34;../../../../en/data-export/db-export-and-import/using-public-and-private-ip-networks/&#34;&gt;Using Public and Private IP Networks&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;PORT &lt;em&gt;&lt;code&gt;port-number&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Sets the port number for the network interface. You must supply a network interface when altering the port number.&lt;/dd&gt;
&lt;dt&gt;[ENABLED | DISABLED]&lt;/dt&gt;
&lt;dd&gt;Enables or disables the network interface.&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;Create a network interface:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NETWORK INTERFACE mynetwork ON v_vmart_node0001 WITH &amp;#39;123.4.5.6&amp;#39; PORT 456 ENABLED;
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE NOTIFIER</title>
      <link>/en/sql-reference/statements/create-statements/create-notifier/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-notifier/</guid>
      <description>
        
        
        &lt;p&gt;Creates a push-based notifier to send event notifications and messages out of OpenText™ Analytics Database.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE NOTIFIER [ IF NOT EXISTS ] &lt;span class=&#34;code-variable&#34;&gt;notifier-name&lt;/span&gt; ACTION &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;notifier-type&lt;/span&gt;&amp;#39;
    [ ENABLE | DISABLE ]
    [ MAXPAYLOAD &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt;{K|M}&amp;#39; ]
    MAXMEMORYSIZE &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt;{K|M|G|T}&amp;#39;
    [ TLS CONFIGURATION &lt;span class=&#34;code-variable&#34;&gt;tls-configuration&lt;/span&gt; ]
    [ TLSMODE &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;tls-mode&lt;/span&gt;&amp;#39; ]
    [ CA BUNDLE &lt;span class=&#34;code-variable&#34;&gt;bundle-name&lt;/span&gt; [ CERTIFICATE &lt;span class=&#34;code-variable&#34;&gt;certificate-name&lt;/span&gt; ] ]
    [ IDENTIFIED BY &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;uuid&lt;/span&gt;&amp;#39; ]
    [ [NO] CHECK COMMITTED ]
    [ PARAMETERS &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;adapter-params&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;code&gt;IF NOT EXISTS&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;If an object with the same name exists, return without creating the object. If you do not use this directive and the object already exists, the database returns with an error message.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;IF NOT EXISTS&lt;/code&gt; clause is useful for SQL scripts where you might not know if the object already exists. The &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/on-error-stop/&#34;&gt;ON ERROR STOP&lt;/a&gt; directive can be helpful in scripts.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;notifier-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;This notifier&#39;s unique identifier.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ACTION &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;notifier-type&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;String, the type of notifier, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;URL, with the following format, that identifies one or more target Kafka servers:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;kafka://&lt;span class=&#34;code-variable&#34;&gt;kafka-server-ip-address&lt;/span&gt;:&lt;span class=&#34;code-variable&#34;&gt;port-number&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To enable failover when a Kafka server is unavailable, specify additional hosts in a comma-delimited list. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;kafka://192.0.2.0:9092,192.0.2.1:9092,192.0.2.2:9092
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;syslog&lt;/code&gt;: Notifications are sent to &lt;a href=&#34;../../../../en/admin/monitoring/monitoring-events/configuring-event-reporting/configuring-reporting-syslog/&#34;&gt;syslog&lt;/a&gt;. To use notifiers of this type, you must set the &lt;code&gt;SyslogEnabled&lt;/code&gt; parameter:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SyslogEnabled = 1
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Events monitored by this notifier type are not logged to &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/monitoring-events/#&#34;&gt;MONITORING_EVENTS&lt;/a&gt; nor &lt;code&gt;vertica.log&lt;/code&gt;.&lt;/p&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;sns&lt;/code&gt;: Notifications are sent to a &lt;a href=&#34;../../../../en/admin/monitoring/monitoring-events/configuring-event-reporting/configuring-reporting-simple-notification-service-sns/&#34;&gt;Simple Notification Service (SNS) endpoint&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ENABLE | DISABLE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies whether to enable or disable the notifier.
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; &lt;code&gt;ENABLE&lt;/code&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;MAXPAYLOAD&lt;/code&gt; &#39;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;{K|M}&lt;/code&gt;&#39;&lt;/dt&gt;
&lt;dd&gt;The maximum size of the message, up to 10^9 bytes, specified in kilobytes or megabytes.
&lt;p&gt;The following restrictions apply:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;MAXPAYLOAD&lt;/code&gt; cannot be greater than &lt;code&gt;MAXMEMORYSIZE&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you configure syslog to send messages to a remote destination, ensure that &lt;code&gt;MaxMessageSize&lt;/code&gt; (in &lt;code&gt;/etc/rsyslog&lt;/code&gt; for &lt;code&gt;rsyslog&lt;/code&gt;) is greater than or equal to &lt;code&gt;MAXPAYLOAD&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;code&gt;MAXPAYLOAD&lt;/code&gt; for SNS notifiers cannot exceed 256KB.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Defaults:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Kafka: 1M&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;syslog: 1M&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SNS: 256K&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;MAXMEMORYSIZE&lt;/code&gt; &#39;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;{K|M|G|T}&lt;/code&gt;&#39;&lt;/dt&gt;
&lt;dd&gt;The maximum size of the internal notifier, up to 2 TB, specified in kilobytes, megabytes, gigabytes, or terabytes.
&lt;p&gt;&lt;code&gt;MAXMEMORYSIZE&lt;/code&gt; must be greater than &lt;code&gt;MAXPAYLOAD&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If the size of the message queue exceeds &lt;code&gt;MAXMEMORYSIZE&lt;/code&gt;, the notifier drops excess messages.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;TLS CONFIGURATION &lt;em&gt;&lt;code&gt;tls-configuration&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;The &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-tls-config/&#34;&gt;TLS CONFIGURATION&lt;/a&gt; to use for TLS.&lt;/p&gt;
&lt;p&gt;Notifiers support the following TLS modes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;DISABLE&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;TRY_VERIFY (behaves like VERIFY_CA)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;VERIFY_CA&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;VERIFY_FULL&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the notifier &lt;code&gt;ACTION&lt;/code&gt; is &lt;code&gt;&#39;syslog&#39;&lt;/code&gt; or &lt;code&gt;&#39;sns&#39;&lt;/code&gt;, this parameter has no effect.&lt;/p&gt;
&lt;p&gt;To encrypt messages sent to syslog, you must configure syslog for TLS.&lt;/p&gt;
&lt;p&gt;To encrypt messages sent to an SNS endpoint, you must set the following configuration parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;SNSCAFile or AWSCAFile&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SNSCAPath or AWSCAPath&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SNSEnableHttps&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;TLSMODE &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;tls-mode&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;div class=&#34;admonition deprecated&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Deprecated&lt;/h4&gt;

This parameter has been superseded by the TLS CONFIGURATION parameter. If you use this parameter while the TLS CONFIGURATION parameter is not set, the database automatically creates a new TLS Configuration for the notifier uses the same values as the deprecated parameter.

&lt;/div&gt;
&lt;p&gt;Specifies the type of connection between the notifier and an endpoint, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;disable&lt;/code&gt; (default): Plaintext connection.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;verify-ca&lt;/code&gt;: Encrypted connection, and the server&#39;s certificate is verified as being signed by a trusted CA.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you set this parameter to &lt;code&gt;verify-ca&lt;/code&gt;, the generated TLS Configuration will be set to TRY_VERIFY, which has the same behavior as VERIFY_CA.&lt;/p&gt;
&lt;p&gt;If the notifier &lt;code&gt;ACTION&lt;/code&gt; is &lt;code&gt;&#39;syslog&#39;&lt;/code&gt; or &lt;code&gt;&#39;sns&#39;&lt;/code&gt;, this parameter has no effect.&lt;/p&gt;
&lt;p&gt;To encrypt messages sent to syslog, you must configure syslog for TLS.&lt;/p&gt;
&lt;p&gt;To encrypt messages sent to an SNS endpoint, you must set the following configuration parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;SNSCAFile or AWSCAFile&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SNSCAPath or AWSCAPath&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SNSEnableHttps&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;CA BUNDLE &lt;/code&gt;&lt;em&gt;&lt;code&gt;bundle-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;div class=&#34;admonition deprecated&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Deprecated&lt;/h4&gt;

This parameter has been superseded by the TLS CONFIGURATION parameter. If you use this parameter while the TLS CONFIGURATION parameter is not set, the database automatically creates a new TLS Configuration for the notifier uses the same values as the deprecated parameter.

&lt;/div&gt;
&lt;p&gt;Specifies a &lt;a href=&#34;../../../../en/security-and-authentication/tls-protocol/tls-overview/managing-ca-bundles/&#34;&gt;CA bundle&lt;/a&gt;. The certificates inside the bundle are used to validate the Kafka server&#39;s certificate if the &lt;code&gt;TLSMODE&lt;/code&gt; requires it.&lt;/p&gt;
&lt;p&gt;If a CA bundle is specified for a notifier that currently uses &lt;code&gt;disable&lt;/code&gt;, which doesn&#39;t validate the Kafka server&#39;s certificate, the bundle will go unused when connecting to the Kafka server. This behavior persists unless the &lt;code&gt;TLSMODE&lt;/code&gt; is changed to one that validates server certificates.&lt;/p&gt;
&lt;p&gt;Changes to contents of the CA bundle take effect either after the notifier is disabled and re-enabled or after the database restarts. However, changes to which CA bundle the notifier uses takes effect immediately.&lt;/p&gt;
&lt;p&gt;If the notifier &lt;code&gt;ACTION&lt;/code&gt; is &lt;code&gt;&#39;syslog&#39;&lt;/code&gt; or &lt;code&gt;&#39;sns&#39;&lt;/code&gt;, this parameter has no effect.&lt;/p&gt;
&lt;p&gt;To encrypt messages sent to syslog, you must configure syslog for TLS.&lt;/p&gt;
&lt;p&gt;To encrypt messages sent to an SNS endpoint, you must set the following configuration parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;SNSCAFile or AWSCAFile&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SNSCAPath or AWSCAPath&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SNSEnableHttps&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;CERTIFICATE &lt;/code&gt;&lt;em&gt;&lt;code&gt;certificate-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;div class=&#34;admonition deprecated&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Deprecated&lt;/h4&gt;

This parameter has been superseded by the TLS CONFIGURATION parameter. If you use this parameter while the TLS CONFIGURATION parameter is not set, the database automatically creates a new TLS Configuration for the notifier uses the same values as the deprecated parameter.

&lt;/div&gt;
&lt;p&gt;Specifies a &lt;a href=&#34;../../../../en/security-and-authentication/tls-protocol/tls-overview/generating-tls-certificates-and-keys/&#34;&gt;client certificate&lt;/a&gt; for validation by the endpoint.&lt;/p&gt;
&lt;p&gt;If the notifier &lt;code&gt;ACTION&lt;/code&gt; is &lt;code&gt;&#39;syslog&#39;&lt;/code&gt; or &lt;code&gt;&#39;sns&#39;&lt;/code&gt;, this parameter has no effect.&lt;/p&gt;
&lt;p&gt;To encrypt messages sent to syslog, you must configure syslog for TLS.&lt;/p&gt;
&lt;p&gt;To encrypt messages sent to an SNS endpoint, you must set the following configuration parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;SNSCAFile or AWSCAFile&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SNSCAPath or AWSCAPath&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SNSEnableHttps&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;IDENTIFIED BY &lt;/code&gt;&lt;em&gt;&lt;code&gt;uuid&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the notifier&#39;s unique identifier. If set, all the messages published by this notifier have this attribute.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;[NO] CHECK COMMITTED&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies to wait for delivery confirmation before sending the next message in the queue.
&lt;p&gt;Some messaging systems, like syslog, do not support delivery confirmation.&lt;/p&gt;
&lt;p&gt;For SNS notifiers, CHECK COMMITTED must be specified, and NO CHECK COMMITTED behaves like CHECK COMMITTED.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;PARAMETERS &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;adapter-params&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies one or more optional adapter parameters that are passed as a string to the adapter. Adapter parameters apply only to the adapter associated with the notifier.
&lt;p&gt;For Kafka notifiers, refer to &lt;a href=&#34;../../../../en/kafka-integration/configuring-and-kafka/kafka-and-config-settings/#&#34;&gt;Kafka and OpenText Analytics Database configuration settings&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For syslog notifiers, specify the severity of the event with &lt;code&gt;eventSeverity=&lt;/code&gt;&lt;em&gt;&lt;code&gt;severity&lt;/code&gt;&lt;/em&gt;, where &lt;em&gt;&lt;code&gt;severity&lt;/code&gt;&lt;/em&gt; is one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;0&lt;/code&gt;: Emergency&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;1&lt;/code&gt;: Alert&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;2&lt;/code&gt;: Critical&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;3&lt;/code&gt;: Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;4&lt;/code&gt;: Warning&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;5&lt;/code&gt;: Notice&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;6&lt;/code&gt;: Informational&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;7&lt;/code&gt;: Debug&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Most syslog implementations, by default, do not log events with a severity level of 7. You must configure syslog to record these types of events.&lt;/p&gt;
&lt;p&gt;Parameters cannot be set for SNS notifiers.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Superuser&lt;/a&gt;
&lt;h2 id=&#34;encrypted-notifiers-for-sasl_ssl-kafka-configurations&#34;&gt;Encrypted notifiers for SASL_SSL Kafka configurations&lt;/h2&gt;
&lt;p&gt;Follow this procedure to create or alter notifiers for Kafka endpoints that use SASL_SSL. Note that you must repeat this procedure whenever you change the TLSMODE, certificates, or CA bundle for a given notifier.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-tls-config/&#34;&gt;Create a TLS Configuration&lt;/a&gt; with the desired TLS mode, certificate, and CA certificates.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use CREATE or ALTER to disable the notifier and set the TLS Configuration:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER NOTIFIER encrypted_notifier
    DISABLE
    TLS CONFIGURATION kafka_tls_config;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ALTER the notifier and set the proper rdkafka adapter parameters for SASL_SSL:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER NOTIFIER encrypted_notifier PARAMETERS
    &amp;#39;sasl.username=user;sasl.password=password;sasl.mechanism=PLAIN;security.protocol=SASL_SSL&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enable the notifier:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER NOTIFIER encrypted_notifier ENABLE;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;h3 id=&#34;kafka-notifiers&#34;&gt;Kafka notifiers&lt;/h3&gt;
&lt;p&gt;Create a Kafka notifier:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NOTIFIER my_dc_notifier
    ACTION &amp;#39;kafka://172.16.20.10:9092&amp;#39;
    MAXMEMORYSIZE &amp;#39;1G&amp;#39;
    IDENTIFIED BY &amp;#39;f8b0278a-3282-4e1a-9c86-e0f3f042a971&amp;#39;
    NO CHECK COMMITTED;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Create a notifier with an adapter-specific parameter:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NOTIFIER my_notifier
    ACTION &amp;#39;kafka://127.0.0.1:9092&amp;#39;
    MAXMEMORYSIZE &amp;#39;10M&amp;#39;
    PARAMETERS &amp;#39;queue.buffering.max.ms=1000&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Create a notifier that uses an encrypted connection and verifies the Kafka server&#39;s certificate with the CA certificates in the notifier_tls_config object:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NOTIFIER encrypted_notifier
    ACTION &amp;#39;kafka://127.0.0.1:9092&amp;#39;
    MAXMEMORYSIZE &amp;#39;10M&amp;#39;
    TLS CONFIGURATION &amp;#39;notifier_tls_config&amp;#39;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&#34;syslog-notifiers&#34;&gt;Syslog notifiers&lt;/h3&gt;
&lt;p&gt;The following example creates a notifier that writes a message to syslog when the &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/data-collector/&#34; title=&#34;A utility that collects and retains database monitoring information.&#34;&gt;Data collector&lt;/a&gt; (DC) component &lt;code&gt;LoginFailures&lt;/code&gt; updates:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Enable syslog notifiers for the current database:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SyslogEnabled = 1;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create and enable a syslog notifier &lt;code&gt;v_syslog_notifier&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NOTIFIER v_syslog_notifier ACTION &amp;#39;syslog&amp;#39;
    ENABLE
    MAXMEMORYSIZE &amp;#39;10M&amp;#39;
    IDENTIFIED BY &amp;#39;f8b0278a-3282-4e1a-9c86-e0f3f042a971&amp;#39;
    PARAMETERS &amp;#39;eventSeverity = 5&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Configure the syslog notifier &lt;code&gt;v_syslog_notifier&lt;/code&gt; for updates to the &lt;code&gt;LoginFailures&lt;/code&gt; DC component with &lt;a href=&#34;../../../../en/sql-reference/functions/management-functions/notifier-functions/set-data-collector-notify-policy/#&#34;&gt;SET_DATA_COLLECTOR_NOTIFY_POLICY&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT SET_DATA_COLLECTOR_NOTIFY_POLICY(&amp;#39;LoginFailures&amp;#39;,&amp;#39;v_syslog_notifier&amp;#39;, &amp;#39;Login failed!&amp;#39;, true);
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This notifier writes the following message to syslog (default location: &lt;code&gt;/var/log/messages&lt;/code&gt;) when a user fails to authenticate as the user &lt;code&gt;Bob&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Apr 25 16:04:58
vertica_host_01
vertica:
    Event Posted:
        Event Code:21
        Event Id:0
        Event Severity: Notice [5]
        PostedTimestamp: 2022-04-25 16:04:58.083063
        ExpirationTimestamp: 2022-04-25 16:04:58.083063
        EventCodeDescription: Notifier
        ProblemDescription: (Login failed!)
    {
       &amp;#34;_db&amp;#34;:&amp;#34;VMart&amp;#34;,
       &amp;#34;_schema&amp;#34;:&amp;#34;v_internal&amp;#34;,
       &amp;#34;_table&amp;#34;:&amp;#34;dc_login_failures&amp;#34;,
       &amp;#34;_uuid&amp;#34;:&amp;#34;f8b0278a-3282-4e1a-9c86-e0f3f042a971&amp;#34;,
       &amp;#34;authentication_method&amp;#34;:&amp;#34;Reject&amp;#34;,
       &amp;#34;client_authentication_name&amp;#34;:&amp;#34;default: Reject&amp;#34;,
       &amp;#34;client_hostname&amp;#34;:&amp;#34;::1&amp;#34;,
       &amp;#34;client_label&amp;#34;:&amp;#34;&amp;#34;,
       &amp;#34;client_os_user_name&amp;#34;:&amp;#34;dbadmin&amp;#34;,
       &amp;#34;client_pid&amp;#34;:523418,
       &amp;#34;client_version&amp;#34;:&amp;#34;&amp;#34;,
       &amp;#34;database_name&amp;#34;:&amp;#34;dbadmin&amp;#34;,
       &amp;#34;effective_protocol&amp;#34;:&amp;#34;3.8&amp;#34;,
       &amp;#34;node_name&amp;#34;:&amp;#34;v_vmart_node0001&amp;#34;,
       &amp;#34;reason&amp;#34;:&amp;#34;REJECT&amp;#34;,
       &amp;#34;requested_protocol&amp;#34;:&amp;#34;3.8&amp;#34;,
       &amp;#34;ssl_client_fingerprint&amp;#34;:&amp;#34;&amp;#34;,
       &amp;#34;ssl_client_subject&amp;#34;:&amp;#34;&amp;#34;,
       &amp;#34;time&amp;#34;:&amp;#34;2022-04-25 16:04:58.082568-05&amp;#34;,
       &amp;#34;user_name&amp;#34;:&amp;#34;Bob&amp;#34;
    }#012
    DatabaseName: VMart
    Hostname: vertica_host_01
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For details on syslog notifiers, see &lt;a href=&#34;../../../../en/admin/monitoring/monitoring-events/configuring-event-reporting/configuring-reporting-syslog/#&#34;&gt;Configuring reporting for syslog&lt;/a&gt;.&lt;/p&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-notifier/#&#34;&gt;ALTER NOTIFIER&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-notifier/#&#34;&gt;DROP NOTIFIER&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/admin/monitoring/monitoring-using-notifiers/&#34;&gt;Monitoring OpenText™ Analytics Database Using Notifiers&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE PROCEDURE (external)</title>
      <link>/en/sql-reference/statements/create-statements/create-procedure-external/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-procedure-external/</guid>
      <description>
        
        
        &lt;p&gt;Enterprise Mode only&lt;/p&gt;

&lt;p&gt;Adds an &lt;a href=&#34;../../../../en/extending/external-procedures/&#34;&gt;external procedure&lt;/a&gt; to OpenText™ Analytics Database. See &lt;a href=&#34;../../../../en/extending/external-procedures/#&#34;&gt;External procedures&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE PROCEDURE [ IF NOT EXISTS ]
    [[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;procedure&lt;/span&gt;( [ &lt;span class=&#34;code-variable&#34;&gt;argument-list&lt;/span&gt; ] )
    AS &lt;span class=&#34;code-variable&#34;&gt;executable&lt;/span&gt;
    LANGUAGE &amp;#39;EXTERNAL&amp;#39;
    USER &lt;span class=&#34;code-variable&#34;&gt;OS-user&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;IF NOT EXISTS&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;If an object with the same name exists, return without creating the object. If you do not use this directive and the object already exists, the database returns with an error message.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;IF NOT EXISTS&lt;/code&gt; clause is useful for SQL scripts where you might not know if the object already exists. The &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/on-error-stop/&#34;&gt;ON ERROR STOP&lt;/a&gt; directive can be helpful in scripts.&lt;/p&gt;

&lt;p&gt;This option cannot be used with &lt;code&gt;OR REPLACE&lt;/code&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;procedure&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies a name for the external procedure, where &lt;em&gt;&lt;code&gt;procedure-name&lt;/code&gt;&lt;/em&gt; conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;argument-list&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A comma-delimited list of procedure arguments, where each argument is specified as follows:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[ &lt;span class=&#34;code-variable&#34;&gt;argname&lt;/span&gt; ] &lt;span class=&#34;code-variable&#34;&gt;argtype&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;argname&lt;/code&gt;&lt;/em&gt; optionally provides a descriptive name for this argument.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;argtype&lt;/code&gt;&lt;/em&gt; must be one of the following data types:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;BIGINT&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;BOOLEAN&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;DECIMAL&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;DOUBLE PRECISION&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;FLOAT&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;FLOAT8&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;INT&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;INT8&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;INTEGER&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;MONEY&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;NUMBER&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;NUMERIC&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;REAL&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SMALLINT&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;TINYINT&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;VARCHAR&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;executable&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the executable program in the procedures directory, a string.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;OS-user&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The owner of the file, a string. The owner:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Cannot be root&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Must have execute privileges on &lt;em&gt;&lt;code&gt;executable&lt;/code&gt;&lt;/em&gt;&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;Superuser&lt;/p&gt;
&lt;h2 id=&#34;system-security&#34;&gt;System security&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The procedure file must be owned by the database administrator (OS account) or by a user in the same group as the administrator. The procedure file must also have the set UID attribute enabled, and allow read and execute permission for the group.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;External procedures that you create with &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-procedure-external/#&#34;&gt;CREATE PROCEDURE (external)&lt;/a&gt; are always run with Linux dbadmin privileges. If a dbadmin or pseudosuperuser grants a non-dbadmin permission to run a procedure using &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-procedure/#&#34;&gt;GRANT (procedure)&lt;/a&gt;, be aware that the non-dbadmin user runs the procedure with full Linux dbadmin privileges.&lt;/p&gt;

&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example shows how to create a procedure named &lt;code&gt;helloplanet&lt;/code&gt; for the procedure file &lt;code&gt;helloplanet.sh&lt;/code&gt;. This file accepts one VARCHAR argument.&lt;/p&gt;
&lt;p&gt;Create the file:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#!/bin/bash
echo &amp;#34;hello planet argument: $1&amp;#34; &amp;gt;&amp;gt; /tmp/myprocedure.log
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Create the procedure with the following SQL:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE PROCEDURE helloplanet(arg1 varchar) AS &amp;#39;helloplanet.sh&amp;#39; LANGUAGE &amp;#39;external&amp;#39; USER &amp;#39;dbadmin&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/statements/drop-statements/drop-procedure-external/#&#34;&gt;DROP PROCEDURE (external)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/extending/external-procedures/installing-external-procedure-executable-files/#&#34;&gt;Installing external procedure executable files&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE PROCEDURE (stored)</title>
      <link>/en/sql-reference/statements/create-statements/create-procedure-stored/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-procedure-stored/</guid>
      <description>
        
        
        &lt;p&gt;Creates a &lt;a href=&#34;../../../../en/extending/stored-procedures/&#34;&gt;stored procedure&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;CREATE [ OR REPLACE ] PROCEDURE [ IF NOT EXISTS ]
    [[{&lt;span class=&#34;code-variable&#34;&gt;namespace&lt;/span&gt;. | &lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;. }]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;procedure&lt;/span&gt;( [ &lt;span class=&#34;code-variable&#34;&gt;parameter-list&lt;/span&gt; ] )
    [ LANGUAGE &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;language-name&lt;/span&gt;&amp;#39; ]
    [ SECURITY { DEFINER | INVOKER } ]
    AS $$ &lt;span class=&#34;code-variable&#34;&gt;source&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;OR REPLACE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;If a procedure with the same name already exists, replace it. Users and roles with privileges on the original procedure retain these privileges on the new procedure.
&lt;p&gt;This option cannot be used with &lt;code&gt;IF NOT EXISTS&lt;/code&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;IF NOT EXISTS&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;If an object with the same name exists, return without creating the object. If you do not use this directive and the object already exists, the database returns with an error message.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;IF NOT EXISTS&lt;/code&gt; clause is useful for SQL scripts where you might not know if the object already exists. The &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/on-error-stop/&#34;&gt;ON ERROR STOP&lt;/a&gt; directive can be helpful in scripts.&lt;/p&gt;

&lt;p&gt;This option cannot be used with &lt;code&gt;OR REPLACE&lt;/code&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;{ &lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt; &lt;code&gt;|&lt;/code&gt; &lt;em&gt;&lt;code&gt;namespace&lt;/code&gt;&lt;/em&gt;&lt;code&gt; }&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the database or &lt;a href=&#34;../../../../en/architecture/eon-concepts/shards-and-subscriptions/&#34;&gt;namespace&lt;/a&gt; that contains &lt;em&gt;&lt;code&gt;table&lt;/code&gt;&lt;/em&gt;:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Database name: If specified, it must be the current database.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Namespace name (Eon Mode only): You must specify the namespace of objects in non-default namespaces. If no namespace is provided, it is assumed the object is in the default namespace.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the schema, by default &lt;code&gt;public&lt;/code&gt;. If you specify the namespace or database name, you must provide the schema name, even if the schema is &lt;code&gt;public&lt;/code&gt;.
&lt;p&gt;If you specify a schema name that contains a period, the part before the period cannot be the same as the name of an existing namespace.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;

&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;procedure&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the stored procedure, where *&lt;code&gt;procedure-name&lt;/code&gt;*conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;parameter-list&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A comma-delimited list of formal parameters, each specified as follows:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[ &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/extending/stored-procedures/parameter-modes/#&#34;&gt;parameter-mode&lt;/a&gt;&lt;/span&gt; ] &lt;span class=&#34;code-variable&#34;&gt;parameter-name&lt;/span&gt; &lt;span class=&#34;code-variable&#34;&gt;parameter-type&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;parameter-name&lt;/code&gt;&lt;/em&gt;: the name of the parameter.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;parameter-type&lt;/code&gt;&lt;/em&gt;: Any &lt;a href=&#34;../../../../en/sql-reference/data-types/&#34;&gt;SQL data type&lt;/a&gt;, with the following exceptions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;DECIMAL&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;NUMERIC&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;NUMBER&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;MONEY&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;UUID&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;GEOGRAPHY&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;GEOMETRY&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Complex types&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;language-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the language of the procedure &lt;em&gt;&lt;code&gt;source&lt;/code&gt;&lt;/em&gt;, one of the following (both options refer to &lt;a href=&#34;../../../../en/extending/stored-procedures/plvsql/&#34;&gt;PLvSQL&lt;/a&gt;; PLpgSQL is included to maintain compatibility with existing scripts):
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;PLvSQL&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;PLpgSQL&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; &lt;code&gt;PLvSQL&lt;/code&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;SECURITY { DEFINER | INVOKER }&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Determines whose privileges to use when the procedure is called and executes it as if the user is one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;DEFINER: User who defined the procedure&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;INVOKER: User who &lt;a href=&#34;../../../../en/sql-reference/statements/call/&#34;&gt;called&lt;/a&gt; the procedure&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A procedure with SECURITY DEFINER effectively executes the procedure as that user, so changes to the database appear to be performed by the procedure&#39;s definer rather than its caller.

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

Improper use of SECURITY DEFINER can lead to the &lt;a href=&#34;https://en.wikipedia.org/wiki/Confused_deputy_problem&#34;&gt;confused deputy problem&lt;/a&gt; and introduce vulnerabilities into your system like SQL injection.

&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;For more information, see &lt;a href=&#34;../../../../en/extending/stored-procedures/executing-stored-procedures/#&#34;&gt;Executing stored procedures&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;source&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The procedure source code. For details, see &lt;a href=&#34;../../../../en/extending/stored-procedures/plvsql/scope-and-structure/#&#34;&gt;Scope and structure&lt;/a&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Non-superuser: CREATE on the procedure&#39;s schema&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;For more complex examples, see &lt;a href=&#34;../../../../en/extending/stored-procedures/stored-procedures-use-cases-and-examples/#&#34;&gt;Stored procedures: use cases and examples&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The following procedure echoes its inputs as a result set:&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;k&#34;&gt;PROCEDURE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;echo_int_varchar&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;INOUT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;x&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;INT&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;INOUT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;y&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;VARCHAR&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;LANGUAGE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;PLvSQL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;AS&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;err&#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;BEGIN&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;n&#34;&gt;RAISE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;NOTICE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;This procedure outputs a result set of its inputs:&amp;#39;&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;END&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;err&#34;&gt;$$&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&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;CALL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;echo_int_varchar&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;3&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;s1&#34;&gt;&amp;#39;a string&amp;#39;&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;n&#34;&gt;NOTICE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;2005&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;n&#34;&gt;This&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;procedure&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;outputs&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;result&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;of&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;its&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;inputs&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;n&#34;&gt;x&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;y&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;mi&#34;&gt;3&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;a&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;string&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;p&gt;The example uses a set of procedures that convert a given Fahrenheit temperature to Celsius and Kelvin and returns them all as a result set. The procedure &lt;code&gt;f_to_c_and_k()&lt;/code&gt; calls the helper procedures &lt;code&gt;f_to_c()&lt;/code&gt; and &lt;code&gt;f_to_k()&lt;/code&gt; to convert to Celsius and Kelvin, respectively. The &lt;code&gt;f_to_k()&lt;/code&gt; procedure uses the output of &lt;code&gt;f_to_c()&lt;/code&gt; for part of the conversion:&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;k&#34;&gt;PROCEDURE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;f_to_c_and_k&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;IN&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;f_temp&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;DOUBLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;PRECISION&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;OUT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;c_temp&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;DOUBLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;PRECISION&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;OUT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;k_temp&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;DOUBLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;PRECISION&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;AS&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;err&#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;BEGIN&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;n&#34;&gt;c_temp&lt;/span&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;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CALL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;f_to_c&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;f_temp&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;n&#34;&gt;k_temp&lt;/span&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;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CALL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;f_to_k&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;f_temp&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;END&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;err&#34;&gt;$$&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&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;PROCEDURE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;f_to_c&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;INOUT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;temp&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;DOUBLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;PRECISION&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;AS&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;err&#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;BEGIN&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;n&#34;&gt;temp&lt;/span&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;o&#34;&gt;=&lt;/span&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;n&#34;&gt;temp&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;mi&#34;&gt;32&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;o&#34;&gt;*&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;5&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;/&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;9&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;END&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;err&#34;&gt;$$&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&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;PROCEDURE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;f_to_k&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;INOUT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;temp&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;DOUBLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;PRECISION&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;AS&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;err&#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;BEGIN&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;n&#34;&gt;temp&lt;/span&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;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CALL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;f_to_c&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;temp&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;n&#34;&gt;temp&lt;/span&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;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;temp&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;mi&#34;&gt;273&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;15&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;END&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;err&#34;&gt;$$&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&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;CALL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;f_to_c_and_k&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;80&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;n&#34;&gt;c_temp&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;k_temp&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;mi&#34;&gt;26&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;6666666666667&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;mi&#34;&gt;299&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;816666666667&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;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/extending/stored-procedures/plvsql/#&#34;&gt;PL/vSQL&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/call/#&#34;&gt;CALL&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/do/#&#34;&gt;DO&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-procedure-stored/#&#34;&gt;DROP PROCEDURE (stored)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE PROFILE</title>
      <link>/en/sql-reference/statements/create-statements/create-profile/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-profile/</guid>
      <description>
        
        
        &lt;p&gt;Creates a &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/hash-authentication/passwords/profiles/&#34;&gt;profile&lt;/a&gt; that controls password requirements for users.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE PROFILE &lt;span class=&#34;code-variable&#34;&gt;profile-name&lt;/span&gt; LIMIT [
    PASSWORD_LIFE_TIME &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_MIN_LIFE_TIME &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_GRACE_TIME &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    FAILED_LOGIN_ATTEMPTS &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_LOCK_TIME &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_REUSE_MAX &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_REUSE_TIME &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_MAX_LENGTH &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_MIN_LENGTH &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_MIN_LETTERS &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_MIN_UPPERCASE_LETTERS &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_MIN_LOWERCASE_LETTERS &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_MIN_DIGITS &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_MIN_SYMBOLS &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt;
    PASSWORD_MIN_CHAR_CHANGE &lt;span class=&#34;code-variable&#34;&gt;setting&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&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;

All parameters that are not explicitly set in a new profile are set to &lt;code&gt;default&lt;/code&gt;, and inherit their settings from the default profile.

&lt;/div&gt;

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



&lt;tr&gt; 

&lt;th &gt;
Name&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;em&gt;&lt;code&gt;name&lt;/code&gt;&lt;/em&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;The name of the profile to create, where *&lt;code&gt;name&lt;/code&gt;*conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To modify the default profile, set &lt;em&gt;&lt;code&gt;name&lt;/code&gt;&lt;/em&gt; to &lt;code&gt;default&lt;/code&gt;. For example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ALTER PROFILE DEFAULT LIMIT PASSWORD_MIN_SYMBOLS 1;&lt;/code&gt;&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_LIFE_TIME&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;








&lt;p&gt;Set to an integer value, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;≥ 1: The number of days a password remains valid.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: Password remains valid indefinitely.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After your password&#39;s lifetime and grace period expire, you must change your password on your next login, if you have not done so already.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_MIN_LIFE_TIME&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;








&lt;p&gt;Set to an integer value, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Default: 0&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;≥ 1: The number of days a password must be set before it can be changed&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: Password can be reset at any time.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_GRACE_TIME&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Set to an integer value, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;≥ 1: The number of days a password can be used after it expires.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: No grace period.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;FAILED_LOGIN_ATTEMPTS&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Set to an integer value, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;≥ 1: The number of consecutive failed login attempts allowed by the database before your account is locked.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: The database allows an unlimited number of failed login attempts.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_LOCK_TIME&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;




&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;≥ 1: The number of days (units configurable with &lt;a href=&#34;../../../../en/sql-reference/config-parameters/security-parameters/&#34;&gt;PasswordLockTimeUnit&lt;/a&gt;) a user&#39;s account is locked after &lt;code&gt;FAILED_LOGIN_ATTEMPTS&lt;/code&gt; number of login attempts. The account is automatically unlocked when the lock time elapses.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: Account remains indefinitely inaccessible until a superuser manually unlocks it.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_REUSE_MAX&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Set to an integer value, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;≥ 1: The number of times you must change your password before you can reuse an earlier password.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: You can reuse an earlier password without any intervening changes.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_REUSE_TIME&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Set to an integer value, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;≥ 1: The number of days that must pass after a password is set before you can reuse it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: You can reuse an earlier password immediately.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_MAX_LENGTH&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;




&lt;p&gt;The maximum number of characters allowed in a password, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Integer between 8 and 512, inclusive&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_MIN_LENGTH&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;The minimum number of characters required in a password, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;0 to &lt;code&gt;PASSWORD_MAX_LENGTH&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: Minimum of &lt;code&gt;PASSWORD_MAX_LENGTH&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_MIN_LETTERS&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Minimum number of letters (a-z and A-Z) that must be in a password, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Integer between 0 and &lt;code&gt;PASSWORD_MAX_LENGTH&lt;/code&gt;, inclusive&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: 0 (no minimum)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_MIN_UPPERCASE_LETTERS&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Minimum number of uppercase letters (A-Z) that must be in a password, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Integer between 0 and &lt;code&gt;PASSWORD_MAX_LENGTH&lt;/code&gt;, inclusive&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: 0 (no minimum)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_MIN_LOWERCASE_LETTERS&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Minimum number of lowercase letters (a-z) that must be in a password, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Integer between 0 and &lt;code&gt;PASSWORD_MAX_LENGTH&lt;/code&gt;, inclusive&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: 0 (no minimum)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_MIN_DIGITS&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Minimum number of digits (0-9) that must be in a password, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Integer between 0 and &lt;code&gt;PASSWORD_MAX_LENGTH&lt;/code&gt;, inclusive&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: 0 (no minimum)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_MIN_SYMBOLS&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;






&lt;p&gt;Minimum number of symbols—printable non-letter and non-digit characters such as $, #, @—that must be in a password, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Integer between 0 and &lt;code&gt;PASSWORD_MAX_LENGTH&lt;/code&gt;, inclusive&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: 0 (no minimum)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;code&gt;PASSWORD_MIN_CHAR_CHANGE&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;








&lt;p&gt;Minimum number of characters that must be different from the previous password:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Default: 0&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Integer between 0 and &lt;code&gt;PASSWORD_MAX_LENGTH&lt;/code&gt;, inclusive&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLIMITED&lt;/code&gt;: 0 (no minimum)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;


&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;profile-settings-and-client-authentication&#34;&gt;Profile settings and client authentication&lt;/h2&gt;
&lt;p&gt;The following profile settings affect &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/&#34;&gt;client authentication methods&lt;/a&gt;, such as LDAP or GSS:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;FAILED_LOGIN_ATTEMPTS&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;PASSWORD_LOCK_TIME&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All other profile settings are used only by the database to manage its passwords.&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; CREATE PROFILE sample_profile LIMIT PASSWORD_MAX_LENGTH 20;
&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-profile/#&#34;&gt;ALTER PROFILE&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-profile/#&#34;&gt;DROP PROFILE&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/create-an-empty-db/creating-db-name-and-password/#&#34;&gt;Creating a database name and password&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/hash-authentication/passwords/profiles/#&#34;&gt;Profiles&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE PROJECTION</title>
      <link>/en/sql-reference/statements/create-statements/create-projection/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-projection/</guid>
      <description>
        
        
        &lt;p&gt;Creates metadata for a &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/projection/&#34; title=&#34;Optimized collections of table columns that provide physical storage for data.&#34;&gt;projection&lt;/a&gt; in the OpenText™ Analytics Database catalog. The database supports four types of projections:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/standard-projection/&#34;&gt;Standard projection&lt;/a&gt;: Stores a collection of table data in a format that optimizes execution of certain queries on that table.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/live-aggregate-projection/&#34;&gt;Live aggregate projection&lt;/a&gt;: Stores the grouped results of queries that invoke aggregate functions (such as SUM) on table columns.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/top-k-projection/&#34;&gt;Top-K projection&lt;/a&gt;: Stores the top &lt;em&gt;k&lt;/em&gt; rows from partitions of selected rows.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/udtf-projection/&#34;&gt;UDTF projection&lt;/a&gt;: Stores newly-loaded data after it is transformed and/or aggregated by user-defined transformation functions (UDTFs).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/sql-reference/data-types/complex-types/&#34;&gt;Complex data types&lt;/a&gt; have additional restrictions when used within a projection:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Each projection must include at least one column that is a primitive type or native array.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;An &lt;span class=&#34;sql&#34;&gt;AS SELECT&lt;/span&gt; clause can use a complex-type column, but any other expression must be of a scalar type or native array.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;span class=&#34;sql&#34;&gt;ORDER BY&lt;/span&gt;, &lt;span class=&#34;sql&#34;&gt;PARTITION BY&lt;/span&gt;, and &lt;span class=&#34;sql&#34;&gt;GROUP BY&lt;/span&gt; clauses cannot use complex types.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If a projection does not include an &lt;span class=&#34;sql&#34;&gt;ORDER BY&lt;/span&gt; or segmentation clause, the database uses only the primitive columns from the select list to order or segment data.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Projection columns cannot be complex types returned from functions such as &lt;span class=&#34;sql&#34;&gt;ARRAY_CAT&lt;/span&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;TopK and UDTF projections do not support complex types.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE RESOURCE POOL</title>
      <link>/en/sql-reference/statements/create-statements/create-resource-pool/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-resource-pool/</guid>
      <description>
        
        
        &lt;p&gt;Creates a user-defined 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;CREATE RESOURCE POOL &lt;span class=&#34;code-variable&#34;&gt;pool-name&lt;/span&gt; [ FOR &lt;span class=&#34;code-variable&#34;&gt;subcluster&lt;/span&gt; ] [ &lt;span class=&#34;code-variable&#34;&gt;parameter-name&lt;/span&gt; &lt;span class=&#34;code-variable&#34;&gt;setting&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;pool-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the resource pool. If you specify a resource pool name with uppercase letters, OpenText™ Analytics Database converts them to lowercase letters.
&lt;p&gt;The following naming requirements apply:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-pools/&#34;&gt;Built-in pool&lt;/a&gt; names cannot be used for user-defined pools.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;All user-defined global resource pools must have unique names.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Names of global and subcluster-assigned resource pools cannot be the same. However, the same name can be shared by resource pools of different subclusters.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;FOR &lt;/code&gt;&lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Eon Mode only, the subcluster to associate with this resource pool, where &lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt; is one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;SUBCLUSTER &lt;/code&gt;&lt;em&gt;&lt;code&gt;subcluster-name&lt;/code&gt;&lt;/em&gt;: Resource pool for an existing subcluster. You cannot be connected to this subcluster, otherwise the database returns an error.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;CURRENT SUBCLUSTER&lt;/code&gt;: Resource pool for the subcluster that you are connected to.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If omitted, the resource pool is created globally.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;parameter-name setting&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A resource pool parameter and its initial value. If you omit this argument, the database sets this resource pool&#39;s parameters to their default values (see &lt;a href=&#34;#ResourcePoolParameters&#34;&gt;Parameters&lt;/a&gt;).&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;&lt;a name=&#34;ResourcePoolParameters&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;p&gt;Default values specified here pertain only to user-defined resource pools. For built-in pool default values, see &lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-resource-pools-config/#&#34;&gt;Built-in resource pools configuration&lt;/a&gt;, or query system table &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/resource-pool-defaults/#&#34;&gt;RESOURCE_POOL_DEFAULTS&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;CASCADE&#34;&gt;&lt;/a&gt;CASCADE TO&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Secondary resource pool for executing queries that exceed the
&lt;code&gt;&lt;a href=&#34;#RUNTIMECAP&#34;&gt;RUNTIMECAP&lt;/a&gt;&lt;/code&gt; setting of their assigned resource pool:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CASCADE TO &lt;span class=&#34;code-variable&#34;&gt;secondary-pool&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;CPUAFFINITYMODE&#34;&gt;&lt;/a&gt;CPUAFFINITYMODE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Specifies whether the resource pool has exclusive or shared use of the CPUs specified in
&lt;code&gt;&lt;a href=&#34;#CPUAFFINITYSET&#34;&gt;CPUAFFINITYSET&lt;/a&gt;&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CPUAFFINITYMODE { SHARED | EXCLUSIVE | ANY }
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;SHARED&lt;/code&gt;: Queries that run in this resource pool share its &lt;code&gt;CPUAFFINITYSET&lt;/code&gt; CPUs with other database resource pools.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;EXCLUSIVE&lt;/code&gt;: Dedicates &lt;code&gt;CPUAFFINITYSET&lt;/code&gt; CPUs to this resource pool only, and excludes other database resource pools. If &lt;code&gt;CPUAFFINITYSET&lt;/code&gt; is set as a percentage, that percentage of CPU resources available to the database is assigned solely to this resource pool.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ANY&lt;/code&gt;: Queries in this resource pool can run on any CPU, invalid if &lt;code&gt;CPUAFFINITYSET&lt;/code&gt; designates CPU resources.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: &lt;code&gt;ANY&lt;/code&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;CPUAFFINITYSET&#34;&gt;&lt;/a&gt;CPUAFFINITYSET&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;CPUs available to this resource pool. All cluster nodes must have the same number of CPUs. The CPU resources assigned to this set are unavailable to general resource pools.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CPUAFFINITYSET {
  &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;cpu-index&lt;/span&gt;[,...]&amp;#39;
| &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;cpu-indexi&lt;/span&gt;-&lt;span class=&#34;code-variable&#34;&gt;cpu-index&lt;/span&gt;n&amp;#39;
| &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt;%&amp;#39;
| NONE
}
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;cpu-index&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[,...]&lt;/code&gt;: Dedicates one or more comma-delimited CPUs to this resource pool.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;cpu-indexi-cpu-indexn&lt;/code&gt;&lt;/em&gt;: Dedicates a range of contiguous CPU indexes &lt;em&gt;&lt;code&gt;i&lt;/code&gt;&lt;/em&gt; through &lt;em&gt;&lt;code&gt;n&lt;/code&gt;&lt;/em&gt; to this resource pool.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;%&lt;/code&gt;: Percentage of all available CPUs to use for this resource pool. The database rounds this percentage down to include whole CPU units.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;NONE&lt;/code&gt; (empty string): No affinity set is assigned to this resource pool. Queries associated with this pool are executed on any CPU.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: &lt;code&gt;NONE&lt;/code&gt;

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
&lt;code&gt;CPUAFFINITYSET&lt;/code&gt; and &lt;code&gt;CPUAFFINITYMODE&lt;/code&gt; must be set together in the same statement.
&lt;/div&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;EXECUTIONPARALLELISM&#34;&gt;&lt;/a&gt;EXECUTIONPARALLELISM&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Number of threads used to process any single query issued in this resource pool.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;EXECUTIONPARALLELISM { &lt;span class=&#34;code-variable&#34;&gt;limit&lt;/span&gt; | AUTO }
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;limit&lt;/code&gt;&lt;/em&gt;: An integer value between 1 and the number of cores. Setting this parameter to a reduced value increases throughput of short queries issued in the resource pool, especially if queries are executed concurrently.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;AUTO&lt;/code&gt; or &lt;code&gt;0&lt;/code&gt;: The database calculates the setting from the number of cores, available memory, and amount of data in the system. Unless memory is limited, or the amount of data is very small, the database sets this parameter to the number of cores on the node.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: &lt;code&gt;AUTO&lt;/code&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;MAXCONCURRENCY&#34;&gt;&lt;/a&gt;MAXCONCURRENCY&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Maximum number of concurrent execution slots available to the resource pool across the cluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;MAXCONCURRENCY { &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; | NONE }
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (empty string): Unlimited number of concurrent execution slots.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: &lt;code&gt;NONE&lt;/code&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;MAXMEMORYSIZE&#34;&gt;&lt;/a&gt;MAXMEMORYSIZE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Maximum size per node the resource pool can grow by borrowing memory from the 
&lt;code&gt;&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-pools/#GENERAL&#34;&gt;GENERAL&lt;/a&gt;&lt;/code&gt; pool:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;MAXMEMORYSIZE {
  &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt;%&amp;#39;
  |&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt;{K|M|G|T}&amp;#39;
  NONE
}
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;%&lt;/code&gt;: Percentage of total memory&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;{K|M|G|T}&lt;/code&gt;: Amount of memory in kilobytes, megabytes, gigabytes, or terabytes&lt;/li&gt;
&lt;li&gt;&lt;code&gt;NONE&lt;/code&gt; (empty string): Unlimited, resource pool can borrow any amount of available memory from the &lt;code&gt;GENERAL&lt;/code&gt; pool.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: &lt;code&gt;NONE&lt;/code&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;MAXQUERYMEMORYSIZE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Maximum amount of memory this resource pool can allocate at runtime to process a query. If the query requires more memory than this setting, the database stops execution and returns an error.&lt;/p&gt;
&lt;p&gt;Set this parameter as follows:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;MAXQUERYMEMORYSIZE {
  &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt;%&amp;#39;
| &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt;{K|M|G|T}&amp;#39;
| NONE
}
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;%&lt;/code&gt;: Percentage of 
&lt;code&gt;&lt;a name=&#34;MAXMEMORYSIZE&#34;&gt;&lt;/a&gt;MAXMEMORYSIZE&lt;/code&gt; for this resource pool.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;{K|M|G|T}&lt;/code&gt;: Amount of memory in kilobytes, megabytes, gigabytes, or terabytes, up to the value of 
&lt;code&gt;&lt;a name=&#34;MAXMEMORYSIZE&#34;&gt;&lt;/a&gt;MAXMEMORYSIZE&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;NONE&lt;/code&gt; (empty string): Unlimited; resource pool can borrow any amount of available memory from the GENERAL pool, within the limits set by 
&lt;code&gt;&lt;a name=&#34;MAXMEMORYSIZE&#34;&gt;&lt;/a&gt;MAXMEMORYSIZE&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: &lt;code&gt;NONE&lt;/code&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;MEMORYSIZE&#34;&gt;&lt;/a&gt;MEMORYSIZE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Total per-node memory available to the database resource manager that is allocated to this resource pool:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;MEMORYSIZE {
  &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt;%&amp;#39;
| &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt;{K|M|G|T}&amp;#39;
}
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;%&lt;/code&gt;: Percentage of total memory&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;{K|M|G|T}&lt;/code&gt;: Amount of memory in kilobytes, megabytes, gigabytes, or terabytes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; 0%. No memory allocated, the resource pool borrows memory from the 
&lt;code&gt;&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-pools/#GENERAL&#34;&gt;GENERAL&lt;/a&gt;&lt;/code&gt; pool.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;PLANNEDCONCURRENCY&#34;&gt;&lt;/a&gt;PLANNEDCONCURRENCY&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Preferred number of queries to execute concurrently in the resource pool. This setting applies to the entire cluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;PLANNEDCONCURRENCY { &lt;span class=&#34;code-variable&#34;&gt;num-queries&lt;/span&gt; | AUTO }
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;num-queries&lt;/code&gt;&lt;/em&gt;: Integer value ≥ 1, the preferred number of queries to execute concurrently in the resource pool. When possible, query resource budgets are limited to allow this level of concurrent execution.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;AUTO&lt;/code&gt;: Value is calculated automatically at query runtime. The database sets this parameter to the lower of these two calculations, but never less than 4:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Number of logical cores&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Memory divided by 2GB&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the number of logical cores on each node is different, &lt;code&gt;AUTO&lt;/code&gt; is calculated differently for each node. Distributed queries run like the minimal effective planned concurrency. Single node queries run with the planned concurrency of the initiator.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: &lt;code&gt;AUTO&lt;/code&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;

Change this parameter only after evaluating performance over a period of time.

&lt;/div&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;PRIORITY&#34;&gt;&lt;/a&gt;PRIORITY&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Priority of queries in this resource pool when they compete for resources in the 
&lt;code&gt;&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-pools/#GENERAL&#34;&gt;GENERAL&lt;/a&gt;&lt;/code&gt; pool:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;PRIORITY { &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; | HOLD }
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;: Negative or positive integer value, where higher numbers denote higher priority:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;User-defined resource pool: &lt;code&gt;-100&lt;/code&gt; to &lt;code&gt;100&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Built-in resource pools 
&lt;code&gt;&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-pools/#SYSQUERY&#34;&gt;SYSQUERY&lt;/a&gt;&lt;/code&gt;, 
&lt;code&gt;&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-pools/#RECOVERY&#34;&gt;RECOVERY&lt;/a&gt;&lt;/code&gt;, and 
&lt;code&gt;&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-pools/#TM&#34;&gt;TM&lt;/a&gt;&lt;/code&gt;: &lt;code&gt;-110&lt;/code&gt; to &lt;code&gt;110&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;HOLD&lt;/code&gt;: Sets priority to &lt;code&gt;-999&lt;/code&gt;. Queries in this resource pool are queued until
&lt;code&gt;&lt;a href=&#34;#QUEUETIMEOUT&#34;&gt;QUEUETIMEOUT&lt;/a&gt;&lt;/code&gt; is reached.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: 0&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;QUEUETIMEOUT&#34;&gt;&lt;/a&gt;QUEUETIMEOUT&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Maximum time a request can wait for pool resources before it is rejected, not more than one year:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;QUEUETIMEOUT { &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; | &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/#&#34;&gt;interval&lt;/a&gt;&lt;/span&gt;&amp;#39; | &amp;#39;NONE&amp;#39; }
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;: Maximum wait time in seconds&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;code-variable&#34;&gt;[interval](/en/sql-reference/language-elements/literals/datetime-literals/interval-literal/)&lt;/span&gt;: Maximum wait time expressed in the following format:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;num&lt;/span&gt; year &lt;span class=&#34;code-variable&#34;&gt;num&lt;/span&gt; months &lt;span class=&#34;code-variable&#34;&gt;num&lt;/span&gt; [days] HH:MM:SS.ms
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (empty string): No maximum wait time, request can be queued indefinitely, up to one year.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the value that you specify resolves to more than one year, the database returns with a warning and sets the parameter to 365 days:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER RESOURCE POOL user_0 QUEUETIMEOUT &amp;#39;11 months 50 days 08:32&amp;#39;;
WARNING 5693:  Using 1 year for QUEUETIMEOUT
ALTER RESOURCE POOL
=&amp;gt; SELECT QUEUETIMEOUT FROM resource_pools WHERE name = &amp;#39;user_0&amp;#39;;
 QUEUETIMEOUT
--------------
 365
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;:&lt;span class=&#34;code-input&#34;&gt; 00:05 (5 minutes)&lt;/span&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;a name=&#34;RUNTIMECAP&#34;&gt;&lt;/a&gt;&lt;code&gt;RUNTIMECAP&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Maximum execution time allowed to queries in this resource pool, not more than one year, otherwise the database returns with an error. If a query exceeds this setting, it tries to cascade to a secondary pool:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;RUNTIMECAP { &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;interval&lt;/span&gt;&amp;#39; | NONE }
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;a href=&#34;../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/&#34;&gt;&lt;code&gt;interval&lt;/code&gt;&lt;/a&gt;&lt;/em&gt;: Maximum wait time expressed in the following format:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;num&lt;/span&gt; year &lt;span class=&#34;code-variable&#34;&gt;num&lt;/span&gt; month &lt;span class=&#34;code-variable&#34;&gt;num&lt;/span&gt; [day] HH:MM:SS.ms
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (empty string): No maximum wait time, request can be queued indefinitely, up to one year.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the user or session also has a &lt;code&gt;RUNTIMECAP&lt;/code&gt;, the shorter limit applies.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;RUNTIMEPRIORITY&#34;&gt;&lt;/a&gt;RUNTIMEPRIORITY&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Determines how the resource manager should prioritize dedication of run-time resources (CPU, I/O bandwidth) to queries already running in this resource pool:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;RUNTIMEPRIORITY { HIGH | MEDIUM | LOW }
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: &lt;code&gt;MEDIUM&lt;/code&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a name=&#34;RUNTIMEPRIORITYTHRESHOLD&#34;&gt;&lt;/a&gt;RUNTIMEPRIORITYTHRESHOLD&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Maximum time (in seconds) in which query processing must complete before the resource manager assigns to it the resource pool&#39;s &lt;code&gt;RUNTIMEPRIORITY&lt;/code&gt;. All queries begin execution with a priority of HIGH.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;RUNTIMEPRIORITYTHRESHOLD &lt;span class=&#34;code-variable&#34;&gt;seconds&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Default&lt;/strong&gt;: &lt;code&gt;2&lt;/code&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;SINGLEINITIATOR&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Set to false for backward compatibility. Do not change this setting.&lt;/p&gt;
&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;This example shows how to create a resource pool with &lt;code&gt;MEMORYSIZE&lt;/code&gt; of 1800 MB.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE RESOURCE POOL ceo_pool MEMORYSIZE &amp;#39;1800M&amp;#39; PRIORITY 10;
CREATE RESOURCE POOL
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Assuming the CEO report user already exists, associate this user with the preceding resource pool using &lt;code&gt;ALTER USER&lt;/code&gt; statement.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; GRANT USAGE ON RESOURCE POOL ceo_pool to ceo_user;
GRANT PRIVILEGE
=&amp;gt; ALTER USER ceo_user RESOURCE POOL ceo_pool;
ALTER USER
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Issue the following command to confirm that the ceo_user is associated with the ceo_pool:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM users WHERE user_name =&amp;#39;ceo_user&amp;#39;;
-[ RECORD 1 ]-----+--------------------------------------------------
user_id           | 45035996273733402
user_name         | ceo_user
is_super_user     | f
profile_name      | default
is_locked         | f
lock_time         |
resource_pool     | ceo_pool
memory_cap_kb     | unlimited
temp_space_cap_kb | unlimited
run_time_cap      | unlimited
all_roles         |
default_roles     |
search_path       | &amp;#34;$user&amp;#34;, public, v_catalog, v_monitor, v_internal
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This exampleshows how to create and designate secondary resource pools.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE RESOURCE POOL rp3 RUNTIMECAP &amp;#39;5 minutes&amp;#39;;
=&amp;gt; CREATE RESOURCE POOL rp2 RUNTIMECAP &amp;#39;3 minutes&amp;#39; CASCADE TO rp3;
=&amp;gt; CREATE RESOURCE POOL rp1 RUNTIMECAP &amp;#39;1 minute&amp;#39; CASCADE TO rp2;
=&amp;gt; SET SESSION RESOURCE_POOL = rp1;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This Eon Mode example confirms the current subcluster name, then creates a resource pool for the current subcluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT CURRENT_SUBCLUSTER_NAME();
 CURRENT_SUBCLUSTER_NAME
-------------------------
 analytics_1
(1 row)

=&amp;gt; CREATE RESOURCE POOL dashboard FOR SUBCLUSTER analytics_1;
CREATE RESOURCE POOL
&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-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/set-statements/set-session-resource-pool/#&#34;&gt;SET SESSION 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;li&gt;
&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-pools/#&#34;&gt;Built-in pools&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-resource-pools-config/#&#34;&gt;Built-in resource pools configuration&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE ROLE</title>
      <link>/en/sql-reference/statements/create-statements/create-role/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-role/</guid>
      <description>
        
        
        &lt;p&gt;Creates a &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/role/&#34; title=&#34;A role groups together a set of privileges that can be assigned to a user or another role.&#34;&gt;role&lt;/a&gt;. After creating a role, use &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/&#34;&gt;GRANT statements&lt;/a&gt; to specify role permissions.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE ROLE &lt;span class=&#34;code-variable&#34;&gt;role&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;role&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name for the new role, where &lt;em&gt;&lt;code&gt;role&lt;/code&gt;&lt;/em&gt; conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&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;This example shows to create an empty role called roleA.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE ROLE roleA;
CREATE ROLE
&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-role/#&#34;&gt;ALTER ROLE&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-role/#&#34;&gt;DROP ROLE&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE ROUTING RULE</title>
      <link>/en/sql-reference/statements/create-statements/create-routing-rule/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-routing-rule/</guid>
      <description>
        
        
        &lt;p&gt;Creates one of the following rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A load balancing routing rule that directs incoming client connections from an IP address range to a group of OpenText™ Analytics Database nodes. This group of database nodes is defined by a load balance group. Once you create a routing rule, any client connection originating from the rule&#39;s IP address range is redirected to one of the nodes in the load balance group if the client opts into load balancing.&lt;/li&gt;
&lt;li&gt;A &lt;a href=&#34;../../../../en/admin/managing-client-connections/connection-load-balancing/workload-routing/&#34;&gt;workload routing&lt;/a&gt; rule that routes incoming client connections to the specified subcluster. To view existing workload routing rules, see &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/workload-routing-rules/#&#34;&gt;WORKLOAD_ROUTING_RULES&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE ROUTING RULE
{
    &lt;span class=&#34;code-variable&#34;&gt;rule_name&lt;/span&gt; ROUTE &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;address_range&lt;/span&gt;&amp;#39; TO &lt;span class=&#34;code-variable&#34;&gt;group_name&lt;/span&gt; |
    ROUTE WORKLOAD &lt;span class=&#34;code-variable&#34;&gt;workload_name&lt;/span&gt; TO SUBCLUSTER &lt;span class=&#34;code-variable&#34;&gt;subcluster_name&lt;/span&gt; [,...] [ PRIORITY &lt;span class=&#34;code-variable&#34;&gt;priority&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;rule_name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A name for the load balancing routing rule.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;address_range&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;An IPv4 or IPv6 address range in CIDR format, the address range of client connections that this rule applies to.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;group_name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the load balance group to handle the client connections from the address range. You create this group with &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-load-balance-group/#&#34;&gt;CREATE LOAD BALANCE GROUP&lt;/a&gt;.&lt;/dd&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 name of the &lt;a href=&#34;../../../../en/admin/managing-client-connections/connection-load-balancing/workload-routing/&#34;&gt;workload&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster_name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A list of subclusters to &lt;a href=&#34;../../../../en/admin/managing-client-connections/connection-load-balancing/workload-routing/&#34;&gt;route&lt;/a&gt; client connections to.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;priority&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A non-negative &lt;a href=&#34;../../../../en/sql-reference/data-types/numeric-data-types/integer/#&#34;&gt;INTEGER&lt;/a&gt;, the priority of the workload (default: 0). The greater the value, the greater the priority. If a user or their role is &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-workload/&#34;&gt;granted&lt;/a&gt; multiple &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-routing-rule/&#34;&gt;routing rules&lt;/a&gt;, the one with the greatest priority applies.&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;The following example creates a routing rule that routes all client connections from 192.168.1.0 to 192.168.1.255 to a load balance group named internal_clients:&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;internal_clients&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;s1&#34;&gt;&amp;#39;192.168.1.0/24&amp;#39;&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;internal_clients&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;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&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The following example creates a routing rule that routes &lt;code&gt;analytics&lt;/code&gt; workloads to subclusters &lt;code&gt;sc_analytics&lt;/code&gt; and &lt;code&gt;sc_analytics_2&lt;/code&gt; with a priority of 5. For details, see &lt;a href=&#34;../../../../en/admin/managing-client-connections/connection-load-balancing/workload-routing/#&#34;&gt;Workload routing&lt;/a&gt;:&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;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;sc_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 class=&#34;n&#34;&gt;sc_analytics_2&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;PRIORITY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;5&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;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-routing-rule/#&#34;&gt;ALTER ROUTING RULE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-routing-rule/#&#34;&gt;DROP ROUTING RULE&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE SCHEDULE</title>
      <link>/en/sql-reference/statements/create-statements/create-schedule/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-schedule/</guid>
      <description>
        
        
        &lt;p&gt;Creates a schedule. For details, see &lt;a href=&#34;../../../../en/extending/stored-procedures/executing-stored-procedures/triggers/scheduled-execution/#&#34;&gt;Scheduled execution&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To view existing schedules, query &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/user-schedules/#&#34;&gt;USER_SCHEDULES&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;CREATE SCHEDULE [ IF NOT EXISTS ] [[&lt;span class=&#34;code-variable&#34;&gt;database.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;schedule&lt;/span&gt;
    { USING CRON &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;cron_expression&lt;/span&gt;&amp;#39; | USING DATETIMES &lt;span class=&#34;code-variable&#34;&gt;timestamp_list&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;IF NOT EXISTS&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;If an object with the same name exists, return without creating the object. If you do not use this directive and the object already exists, the database returns with an error message.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;IF NOT EXISTS&lt;/code&gt; clause is useful for SQL scripts where you might not know if the object already exists. The &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/on-error-stop/&#34;&gt;ON ERROR STOP&lt;/a&gt; directive can be helpful in scripts.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;schedule&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the schedule.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;cron_expression&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A &lt;code&gt;cron&lt;/code&gt; expression. You should use this for recurring tasks. Value separators are not currently supported.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;timestamp_list&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A comma-separated list of timestamps. You should use this to schedule non-recurring events at arbitrary times.&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;To create a schedule for October 2, 2022 and November 2, 2022:&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;SCHEDULE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;oct_nov_2&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USING&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;DATETIMES&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;2022-10-02 12:00:00&amp;#39;&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;s1&#34;&gt;&amp;#39;2022-11-02 12:00:00&amp;#39;&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;p&gt;To create a schedule for January 1 at 12:00 PM:&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;SCHEDULE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;annual_schedule&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USING&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;CRON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;0 12 1 1 *&amp;#39;&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;p&gt;To create a schedule for the first of every month:&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;SCHEDULE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;monthly_schedule&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USING&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;CRON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;0 0 1 * *&amp;#39;&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;p&gt;To create a schedule for Sunday at 12:00 AM:&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;SCHEDULE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;weekly_schedule&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USING&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;CRON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;0 0 * * 0&amp;#39;&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;p&gt;To create a schedule for every day at 1:00 PM:&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;SCHEDULE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;daily_schedule&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USING&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;CRON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;0 13 * * *&amp;#39;&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;p&gt;To create a schedule for every five minutes:&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;SCHEDULE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;every_5_minutes&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USING&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;CRON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;*/5 * * * *&amp;#39;&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;p&gt;To create a schedule for every hour from 9:00 AM to 4:59 PM:&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;SCHEDULE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;9&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;_to_5&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USING&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;CRON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;0 9-16 * * *&amp;#39;&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: CREATE SCHEMA</title>
      <link>/en/sql-reference/statements/create-statements/create-schema/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-schema/</guid>
      <description>
        
        
        &lt;p&gt;Defines a schema.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE SCHEMA [ IF NOT EXISTS ] [{ &lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt; | &lt;span class=&#34;code-variable&#34;&gt;namespace&lt;/span&gt; }.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;
   [ AUTHORIZATION &lt;span class=&#34;code-variable&#34;&gt;username&lt;/span&gt;]
   [ DEFAULT { INCLUDE | EXCLUDE } [ SCHEMA ] PRIVILEGES ]
   [ DISK_QUOTA &lt;span class=&#34;code-variable&#34;&gt;quota&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;code&gt;IF NOT EXISTS&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;If an object with the same name exists, return without creating the object. If you do not use this directive and the object already exists, the database returns with an error message.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;IF NOT EXISTS&lt;/code&gt; clause is useful for SQL scripts where you might not know if the object already exists. The &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/on-error-stop/&#34;&gt;ON ERROR STOP&lt;/a&gt; directive can be helpful in scripts.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the database. If specified, it must be the current database.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;namespace&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;For Eon Mode databases, &lt;a href=&#34;../../../../en/architecture/eon-concepts/shards-and-subscriptions/&#34;&gt;namespace&lt;/a&gt; under which to create the schema. If unspecified, the schema is created in the default namespace.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the schema to create, with the following requirements:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Must be unique among all other schema names in the namespace under which the schema is created.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Must comply with &lt;a href=&#34;../../../../en/sql-reference/language-elements/keywords/&#34;&gt;keyword restrictions&lt;/a&gt; and rules for &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Cannot begin with &lt;code&gt;v_&lt;/code&gt;; this prefix is reserved for OpenText™ Analytics Database &lt;a href=&#34;../../../../en/sql-reference/system-tables/&#34;&gt;system tables&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If &lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt; contains a period, the part before the period cannot be the same as the name of an existing namespace.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;AUTHORIZATION&lt;/code&gt; &lt;em&gt;&lt;code&gt;username&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Valid only for superusers, assigns ownership of the schema to another user. By default, the user who creates a schema is also assigned ownership.
&lt;p&gt;After you create a schema, you can reassign ownership to another user with 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-schema/#&#34;&gt;ALTER SCHEMA&lt;/a&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;DEFAULT {INCLUDE | EXCLUDE} [SCHEMA] PRIVILEGES&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Specifies whether to enable or disable default inheritance of privileges for new tables in the specified schema:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;EXCLUDE SCHEMA PRIVILEGES&lt;/code&gt; (default): Disables inheritance of schema privileges.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;INCLUDE SCHEMA PRIVILEGES&lt;/code&gt;: Specifies to grant tables in the specified schema the same privileges granted to that schema. This option has no effect on existing tables in the schema.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you omit &lt;code&gt;INCLUDE PRIVILEGES&lt;/code&gt;, you must explicitly grant schema privileges on the desired tables.&lt;/p&gt;
&lt;p&gt;For more information see &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-privileges/inherited-privileges/enabling-schema-inheritance/#&#34;&gt;Enabling schema inheritance&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;DISK_QUOTA&lt;/code&gt; &lt;em&gt;&lt;code&gt;quota&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;String, an integer followed by a supported unit: K, M, G, or T. Data-load, DML, and ILM operations that increase the schema&#39;s usage beyond the set quota fail. For details, see &lt;a href=&#34;../../../../en/admin/working-with-native-tables/disk-quotas/#&#34;&gt;Disk quotas&lt;/a&gt;.
&lt;p&gt;If not specified, the schema has no quota.&lt;/p&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;Superuser (required to set disk quota)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-db/&#34;&gt;CREATE privilege for the database&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;supported-sub-statements&#34;&gt;Supported sub-statements&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;CREATE SCHEMA&lt;/code&gt; can include one or more sub-statements—for example, to create tables or projections within the new schema. Supported sub-statements include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;

&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/#&#34;&gt;CREATE TABLE&lt;/a&gt; / &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-temporary-table/#&#34;&gt;CREATE TEMPORARY TABLE&lt;/a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/#&#34;&gt;GRANT statements&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;

&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/#&#34;&gt;CREATE PROJECTION&lt;/a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;

&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-sequence/#&#34;&gt;CREATE SEQUENCE&lt;/a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;

&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-text-index/#&#34;&gt;CREATE TEXT INDEX&lt;/a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;

&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-view/#&#34;&gt;CREATE VIEW&lt;/a&gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;CREATE SCHEMA&lt;/code&gt; statement and all sub-statements are treated as a single transaction. If any statement fails, the database rolls back the entire transaction. The owner of the new schema is assigned ownership of all objects that are created within this transaction.&lt;/p&gt;
&lt;p&gt;For example, the following &lt;code&gt;CREATE SCHEMA&lt;/code&gt; statement also grants privileges on the new schema, and creates a table and view of that table:&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;err&#34;&gt;\&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;c&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;Joan&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;n&#34;&gt;You&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;are&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;now&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;connected&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;as&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;user&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;Joan&amp;#34;&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s1&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;GRANT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USAGE&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s1&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;k&#34;&gt;public&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;t1&lt;/span&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;n&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;varchar&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;VIEW&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;t1v&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;AS&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;o&#34;&gt;*&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;t1&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SCHEMA&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;err&#34;&gt;\&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;dtv&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s1&lt;/span&gt;&lt;span class=&#34;p&#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&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;n&#34;&gt;List&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;of&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;tables&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;Schema&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;Name&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;Kind&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;Owner&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;Comment&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;s1&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;t1&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;table&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;Joan&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&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;n&#34;&gt;s1&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;t1v&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;view&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;Joan&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&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;2&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;rows&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;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Create schema &lt;code&gt;s1&lt;/code&gt;:&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;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s1&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;p&gt;Create schema &lt;code&gt;s2&lt;/code&gt; if it does not already exist:&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;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;IF&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;NOT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;EXISTS&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s2&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;p&gt;In an Eon Mode database, create schema &lt;code&gt;s3&lt;/code&gt; in namespace &lt;code&gt;n1&lt;/code&gt;:&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;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;n1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s3&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SCHEMA&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;p&gt;In an Eon Mode database, create schema &lt;code&gt;s3&lt;/code&gt; in the &lt;code&gt;default_namespace&lt;/code&gt;:&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;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s3&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SCHEMA&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;p&gt;If the schema already exists, the database returns a rollback message:&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;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;IF&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;NOT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;EXISTS&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s2&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;n&#34;&gt;NOTICE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;4214&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;Object&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;s2&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;already&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;exists&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;nothing&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;was&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;done&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;p&gt;Create table &lt;code&gt;t1&lt;/code&gt; in schema &lt;code&gt;s1&lt;/code&gt;, then grant users &lt;code&gt;Fred&lt;/code&gt; and &lt;code&gt;Aniket&lt;/code&gt; access to all existing tables and all privileges on table &lt;code&gt;t1&lt;/code&gt;:&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;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;t1&lt;/span&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;k&#34;&gt;c&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;INT&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&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;GRANT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USAGE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s1&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;Fred&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;n&#34;&gt;Aniket&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;GRANT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;PRIVILEGE&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;GRANT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ALL&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;PRIVILEGES&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;t1&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;Fred&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;n&#34;&gt;Aniket&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;GRANT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;PRIVILEGE&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;p&gt;Enable inheritance on new schema &lt;code&gt;s3&lt;/code&gt; so all tables created in it automatically inherit its privileges. In this case, new table &lt;code&gt;s3.t2&lt;/code&gt; inherits USAGE, CREATE, and SELECT privileges, which are automatically granted to all database users:&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;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s3&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;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;INCLUDE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;PRIVILEGES&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SCHEMA&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&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;GRANT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;USAGE&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;CREATE&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;SELECT&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;INSERT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ON&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;S3&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;k&#34;&gt;PUBLIC&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;GRANT&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;PRIVILEGE&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&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;s3&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;t2&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;i&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;int&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;n&#34;&gt;WARNING&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;6978&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;Table&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;t2&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;will&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;include&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;privileges&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;from&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;schema&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;s3&amp;#34;&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&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;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-schema/#&#34;&gt;ALTER SCHEMA&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-schema/#&#34;&gt;DROP SCHEMA&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE SEQUENCE</title>
      <link>/en/sql-reference/statements/create-statements/create-sequence/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-sequence/</guid>
      <description>
        
        
        &lt;p&gt;Defines a named sequence number generator. Named sequences let you set the default values of primary key columns. Sequences guarantee uniqueness and avoid constraint enforcement issues.&lt;/p&gt;
&lt;p&gt;A sequence has minimum and maximum values, a starting position, and an increment. The increment can be positive (ascending) or negative (descending).  By default, an ascending sequence starts at 1, its minimum value, and a descending sequence starts at -1, its maximum value. You can specify minimum, maximum, increment, and start values for a new sequence, so long as the values are mathematically consistent.&lt;/p&gt;
&lt;p&gt;For more information about sequence types and usage, see &lt;a href=&#34;../../../../en/admin/working-with-native-tables/sequences/#&#34;&gt;Sequences&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;CREATE SEQUENCE [ IF NOT EXISTS ] [[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;sequence&lt;/span&gt;
   [ INCREMENT [ BY ] &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; ]
   [ MINVALUE &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; | NO MINVALUE ]
   [ MAXVALUE &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; | NO MAXVALUE ]
   [ START [ WITH ] &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; ]
   [ CACHE &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; | NO CACHE ]
   [ CYCLE | NO CYCLE ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;IF NOT EXISTS&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;If an object with the same name exists, return without creating the object. If you do not use this directive and the object already exists, the database returns with an error message.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;IF NOT EXISTS&lt;/code&gt; clause is useful for SQL scripts where you might not know if the object already exists. The &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/on-error-stop/&#34;&gt;ON ERROR STOP&lt;/a&gt; directive can be helpful in scripts.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;sequence&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the sequence to create, where the name conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;. It must also be unique among all names of sequences, tables, projections, views, and models within the same schema.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;INCREMENT&lt;/code&gt; &lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Positive or negative minimum value change on each call to &lt;a href=&#34;../../../../en/sql-reference/functions/data-type-specific-functions/sequence-functions/nextval/#&#34;&gt;NEXTVAL&lt;/a&gt;. The default is 1.&lt;/p&gt;
&lt;p&gt;This value is a minimum increment size.  The sequence can increment by more than this value unless you also specify &lt;code&gt;NO CACHE&lt;/code&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;MINVALUE&lt;/code&gt; &lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt; &lt;code&gt;| NO MINVALUE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Minimum value the sequence can generate. The default depends on the direction of the sequence:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Ascending sequence: 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Descending sequence: -2&lt;sup&gt;63&lt;/sup&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;MAXVALUE&lt;/code&gt; &lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt; &lt;code&gt;| NO MAXVALUE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Maximum value the sequence can generate. The default depends on the direction of the sequence:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Ascending sequence: 2&lt;sup&gt;63&lt;/sup&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Descending sequence: -1&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;START [WITH]&lt;/code&gt; &lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Initial value of the sequence. The next call to &lt;a href=&#34;../../../../en/sql-reference/functions/data-type-specific-functions/sequence-functions/nextval/#&#34;&gt;NEXTVAL&lt;/a&gt; returns this start value. By default, an ascending sequence begins with the minimum value and a descending sequence begins with the maximum value.&lt;/dd&gt;
&lt;dt&gt;&lt;a name=&#34;CACHE_NO_CACHE&#34;&gt;&lt;/a&gt;&lt;code&gt;CACHE&lt;/code&gt; &lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt; &lt;code&gt;| NO CACHE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;How many unique sequence numbers to pre-allocate and store in memory on each node for faster access. OpenText™ Analytics Database sets up caching for each session and distributes it across all nodes.  A value of 0 or 1 is equivalent to &lt;code&gt;NO CACHE&lt;/code&gt;.

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

If sequence caching is set to a low number, nodes might request a new set of cache values more frequently. While it supplies a new cache, the database must lock the catalog. Until the database releases the lock, other database activities such as table inserts are blocked, which can adversely affect overall performance.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;By default, the sequence cache is set to 250,000.&lt;/p&gt;
&lt;p&gt;For details, see &lt;a href=&#34;../../../../en/admin/working-with-native-tables/sequences/named-sequences/distributing-sequences/#&#34;&gt;Distributing sequences&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;a name=&#34;CYCLE_NO_CYCLE&#34;&gt;&lt;/a&gt;&lt;code&gt;CYCLE | NO CYCLE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;How to handle reaching the end of the sequence.  The default is &lt;code&gt;NO CYCLE&lt;/code&gt;, meaning that a call to &lt;a href=&#34;../../../../en/sql-reference/functions/data-type-specific-functions/sequence-functions/nextval/#&#34;&gt;NEXTVAL&lt;/a&gt; returns an error after the sequence reaches its upper or lower limit. &lt;code&gt;CYCLE&lt;/code&gt; instead wraps, as follows:
&lt;ul&gt;
&lt;li&gt;Ascending sequence: wraps to the minimum value.&lt;/li&gt;
&lt;li&gt;Descending sequence: wraps to the maximum value.&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: CREATE privilege on the schema&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/admin/working-with-native-tables/sequences/named-sequences/creating-and-using-named-sequences/#&#34;&gt;Creating and using named sequences&lt;/a&gt;.&lt;/p&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-sequence/#&#34;&gt;ALTER SEQUENCE&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-sequence/#&#34;&gt;DROP SEQUENCE&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE SUBNET</title>
      <link>/en/sql-reference/statements/create-statements/create-subnet/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-subnet/</guid>
      <description>
        
        
        &lt;p&gt;Identifies the subnet to which the nodes of an OpenText™ Analytics Database belong. Use this statement to configure import/export from a database to other database clusters.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE SUBNET &lt;span class=&#34;code-variable&#34;&gt;subnet-name&lt;/span&gt; WITH &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subnet-prefix&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;subnet-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A name you assign to the subnet, where &lt;em&gt;&lt;code&gt;subnet-name&lt;/code&gt;&lt;/em&gt; conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subnet-prefix&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The subnet prefix in either a dotted-quad number format for IPv4 addresses, or four colon-delimited four-digit hexadecimal numbers for IPv6 addresses. Refer to system table 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/network-interfaces/#&#34;&gt;NETWORK_INTERFACES&lt;/a&gt;&lt;/code&gt; to get the prefix of all available IP networks.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;You can then configure the database to use the subnet for import/export. For details, see &lt;a href=&#34;../../../../en/data-export/db-export-and-import/using-public-and-private-ip-networks/identify-db-or-nodes-used-importexport/#&#34;&gt;Identify the database or nodes used for import/export&lt;/a&gt;.&lt;/p&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;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE SUBNET mySubnet WITH &amp;#39;123.4.5.6&amp;#39;;
=&amp;gt; CREATE SUBNET mysubnet WITH &amp;#39;fd9b:1fcc:1dc4:78d3::&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE TABLE</title>
      <link>/en/sql-reference/statements/create-statements/create-table/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-table/</guid>
      <description>
        
        
        &lt;p&gt;Creates a table in the logical schema. You can specify the column definitions directly, or you can base a table on an existing table using AS or LIKE.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;h3 id=&#34;create-with-column-definitions&#34;&gt;Create with column definitions&lt;/h3&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE TABLE [ IF NOT EXISTS ] [[ { &lt;span class=&#34;code-variable&#34;&gt;namespace&lt;/span&gt;. | &lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;. } ]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;table&lt;/span&gt;
   ( &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-definition/#&#34;&gt;column-definition&lt;/a&gt;&lt;/span&gt;[,...] [, &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/table-constraint/#&#34;&gt;table-constraint&lt;/a&gt;&lt;/span&gt; [,...]] )
   [ ORDER BY &lt;span class=&#34;code-variable&#34;&gt;column&lt;/span&gt;[,...] ]
   [ &lt;span class=&#34;code-variable&#34;&gt;segmentation-spec&lt;/span&gt; ]
   [ KSAFE [&lt;span class=&#34;code-variable&#34;&gt;safety&lt;/span&gt;] ]
   [ &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/partition-clause/#&#34;&gt;partition-clause&lt;/a&gt;&lt;/span&gt;]
   [ { INCLUDE | EXCLUDE } [SCHEMA] PRIVILEGES ]
   [ DISK_QUOTA &lt;span class=&#34;code-variable&#34;&gt;quota&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;create-from-another-table&#34;&gt;Create from another table&lt;/h3&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE TABLE [ IF NOT EXISTS ] [[{ &lt;span class=&#34;code-variable&#34;&gt;namespace&lt;/span&gt;. | &lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;. } ]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;table&lt;/span&gt;
   { &lt;span class=&#34;code-variable&#34;&gt;AS-clause&lt;/span&gt; | &lt;span class=&#34;code-variable&#34;&gt;LIKE-clause&lt;/span&gt; }
   [ DISK_QUOTA &lt;span class=&#34;code-variable&#34;&gt;quota&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;AS-clause:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[ ( &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-name-list/#&#34;&gt;column-name-list &lt;/a&gt;&lt;/span&gt;) ]
[ {INCLUDE | EXCLUDE} [SCHEMA] PRIVILEGES ]
AS  [ /*+ LABEL */ ] [ AT &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/data-analysis/queries/historical-queries/#&#34;&gt;epoch&lt;/a&gt;&lt;/span&gt; ] &lt;span class=&#34;code-variable&#34;&gt;query &lt;/span&gt;[ ENCODED BY &lt;span class=&#34;code-variable&#34;&gt;column-ref-list&lt;/span&gt; ] [ &lt;span class=&#34;code-variable&#34;&gt;segmentation-spec&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;LIKE-clause:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;LIKE [[{ &lt;span class=&#34;code-variable&#34;&gt;namespace&lt;/span&gt;. | &lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;. } ]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;existing-table&lt;/span&gt;
  [ { INCLUDING | EXCLUDING } PROJECTIONS ]
  [ { INCLUDE | EXCLUDE } [SCHEMA] PRIVILEGES ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;IF NOT EXISTS&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;If an object with the same name exists, return without creating the object. If you do not use this directive and the object already exists, the database returns with an error message.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;IF NOT EXISTS&lt;/code&gt; clause is useful for SQL scripts where you might not know if the object already exists. The &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/on-error-stop/&#34;&gt;ON ERROR STOP&lt;/a&gt; directive can be helpful in scripts.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;namespace&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;For Eon Mode databases, name of the &lt;a href=&#34;../../../../en/architecture/eon-concepts/shards-and-subscriptions/&#34;&gt;namespace&lt;/a&gt; under which to create the table. If unspecified, the table is created under the &lt;code&gt;default_namespace&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;For Enterprise Mode databases, name of the database. If specified, it must be the current database.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the schema under which to create the table. If no schema is specified, the table is created in the &lt;code&gt;public&lt;/code&gt; schema.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;table&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the table to create, which must be unique among names of all sequences, tables, projections, views, and models within the schema.&lt;/dd&gt;
&lt;dt&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-definition/&#34;&gt;column-definition&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;Column name, &lt;a href=&#34;../../../../en/sql-reference/data-types/&#34;&gt;data type&lt;/a&gt;, and optional constraints. A table can have up to 9800 columns. At least one column in the table must be of a scalar type or native array.&lt;/dd&gt;
&lt;dt&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/table-constraint/&#34;&gt;table-constraint&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;Table-level constraint, as opposed to column constraints.&lt;/dd&gt;
&lt;dt&gt;&lt;a name=&#34;ORDER_BY&#34;&gt;&lt;/a&gt;&lt;code&gt;ORDER BY &lt;/code&gt;&lt;em&gt;&lt;code&gt;column&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[,...]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Invalid for external tables, specifies columns from the &lt;code&gt;SELECT&lt;/code&gt; list on which to sort the superprojection that is automatically created for this table. The &lt;code&gt;ORDER BY&lt;/code&gt; clause cannot include qualifiers &lt;code&gt;ASC&lt;/code&gt; or &lt;code&gt;DESC&lt;/code&gt;. The database always stores projection data in ascending sort order.&lt;/p&gt;
&lt;p&gt;If you omit the 
&lt;code&gt;`ORDER BY`&lt;/code&gt; clause, the database uses the &lt;code&gt;SELECT&lt;/code&gt; list order as the projection sort order.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;a name=&#34;segmentation-spec&#34;&gt;&lt;/a&gt;&lt;em&gt;&lt;code&gt;segmentation-spec&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Invalid for external tables, specifies how to distribute data for auto-projections of this table. Supply one of the following clauses:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/hash-segmentation-clause/&#34;&gt;hash-segmentation-clause&lt;/a&gt;&lt;/span&gt;: Specifies to segment data evenly and distribute across cluster nodes. OpenText recommends segmenting large tables.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/unsegmented-clause/&#34;&gt;unsegmented-clause&lt;/a&gt;&lt;/span&gt;: Specifies to create an unsegmented projection.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If this clause is omitted, the database generates &lt;a href=&#34;../../../../en/admin/projections/auto-projections/&#34;&gt;auto-projections&lt;/a&gt; with &lt;a href=&#34;../../../../en/admin/projections/auto-projections/#Default&#34;&gt;default hash segmentation&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;a name=&#34;KSAFE&#34;&gt;&lt;/a&gt;&lt;code&gt;KSAFE [&lt;/code&gt; &lt;em&gt;&lt;code&gt;safety&lt;/code&gt;&lt;/em&gt; &lt;code&gt;]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Invalid for external tables, specifies &lt;a href=&#34;../../../../en/architecture/enterprise-concepts/k-safety-an-enterprise-db/&#34;&gt;K-safety&lt;/a&gt; of &lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-tables/#AutoProjectCreation&#34;&gt;auto-projections&lt;/a&gt; created for this table, where &lt;em&gt;&lt;code&gt;k-num&lt;/code&gt;&lt;/em&gt; must be equal to or greater than system K-safety. If you omit this option, the projection uses the system K-safety level.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/partition-clause/&#34;&gt;partition-clause&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;Invalid for external tables, logically divides table data storage through a &lt;span class=&#34;sql&#34;&gt;PARTITION BY&lt;/span&gt; clause:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;PARTITION BY &lt;span class=&#34;code-variable&#34;&gt;partition-expression&lt;/span&gt;
  [ GROUP BY &lt;span class=&#34;code-variable&#34;&gt;group-expression&lt;/span&gt; ] [ ACTIVEPARTITIONCOUNT &lt;span class=&#34;code-variable&#34;&gt;integer&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-name-list/&#34;&gt;column-name-list&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Valid only when creating a table from a query (&lt;code&gt;AS &lt;/code&gt;&lt;em&gt;&lt;code&gt;query&lt;/code&gt;&lt;/em&gt;), defines column names that map to the query output. If you omit this list, the database uses the query output column names.&lt;/p&gt;
&lt;p&gt;This clause and the &lt;code&gt;ENCODED BY&lt;/code&gt; clause are mutually exclusive. Column name lists are invalid for external tables.&lt;/p&gt;
&lt;p&gt;The names in &lt;em&gt;&lt;code&gt;column-name-list&lt;/code&gt;&lt;/em&gt; and queried columns must be the same in number.&lt;/p&gt;

&lt;p&gt;For example:&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;k&#34;&gt;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;customer_occupations&lt;/span&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;n&#34;&gt;name&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;n&#34;&gt;profession&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;AS&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;n&#34;&gt;customer_name&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;n&#34;&gt;occupation&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;customer_dimension&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;/dd&gt;
&lt;dt&gt;&lt;a name=&#34;paramIncludePrivileges&#34;&gt;&lt;/a&gt;&lt;code&gt;{INCLUDE | EXCLUDE} [SCHEMA] PRIVILEGES&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Default inheritance of schema privileges for this table:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;INCLUDE PRIVILEGES&lt;/span&gt; specifies that the table inherits privileges that are set on its schema. This is the default behavior if privileges inheritance is enabled for the schema.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;EXCLUDE PRIVILEGES&lt;/span&gt; disables inheritance of privileges from the schema.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For details, see &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-privileges/inherited-privileges/#&#34;&gt;Inherited privileges&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;a name=&#34;AsClause&#34;&gt;&lt;/a&gt;&lt;code&gt;AS &lt;/code&gt;&lt;em&gt;&lt;code&gt;query&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Creates and loads a table from the &lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-table-from-other-tables/creating-table-from-query/&#34;&gt;results of a query&lt;/a&gt;, specified as follows:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;AS  [ /*+ &lt;a href=&#34;../../../../en/sql-reference/language-elements/hints/label/#&#34;&gt;LABEL&lt;/a&gt; */ ] [ &lt;a href=&#34;../../../../en/data-analysis/queries/historical-queries/#&#34;&gt;AT &lt;/a&gt; ] &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/data-analysis/queries/historical-queries/#&#34;&gt;epoch&lt;/a&gt; query&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The query cannot include &lt;a href=&#34;../../../../en/sql-reference/data-types/complex-types/&#34;&gt;complex type&lt;/a&gt; columns.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ENCODED BY &lt;/code&gt;&lt;em&gt;&lt;code&gt;column-ref-list&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;A comma-delimited list of columns from the source table, where each column is qualified by one or both of the following encoding options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ACCESSRANK &lt;/code&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;: Overrides the default access rank for a column, useful for prioritizing access to a column. See &lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/creating-custom-designs/design-fundamentals/prioritizing-column-access-speed/#&#34;&gt;Prioritizing column access speed&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;
&lt;code&gt;ENCODING &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/encoding-types/#&#34;&gt;encoding-type&lt;/a&gt;&lt;/span&gt;&lt;/code&gt;: Specifies the type of encoding to use on the column. The default encoding type is &lt;code&gt;AUTO&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This option and *&lt;code&gt;column-name-list &lt;/code&gt;*are mutually exclusive. This option is invalid for external tables.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;a name=&#34;LikeClause&#34;&gt;&lt;/a&gt;&lt;code&gt;LIKE &lt;/code&gt;&lt;em&gt;&lt;code&gt;existing-table&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Creates the table by &lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-table-from-other-tables/replicating-table/&#34;&gt;replicating an existing table&lt;/a&gt;. The user issuing the CREATE TABLE LIKE statement owns the new table, not the original owner.
&lt;p&gt;You can qualify the &lt;span class=&#34;sql&#34;&gt;LIKE&lt;/span&gt; clause with one of the following options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;EXCLUDING PROJECTIONS&lt;/span&gt; (default): Do not copy projections from the source table.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;INCLUDING PROJECTIONS&lt;/span&gt;: Copy current projections from the source table for the new table.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;{INCLUDE|EXCLUDE} [SCHEMA] PRIVILEGES&lt;/span&gt;: See description &lt;a href=&#34;#paramIncludePrivileges&#34;&gt;above&lt;/a&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;DISK_QUOTA&lt;/code&gt; &lt;em&gt;&lt;code&gt;quota&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;String, an integer followed by a supported unit: K, M, G, or T. Data-load, DML, and ILM operations that increase the table&#39;s usage beyond the set quota fail. For details, see &lt;a href=&#34;../../../../en/admin/working-with-native-tables/disk-quotas/#&#34;&gt;Disk quotas&lt;/a&gt;.
&lt;p&gt;If not specified, the table has no quota.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser to set disk quota.&lt;/p&gt;
&lt;p&gt;Non-superuser:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;CREATE&lt;/span&gt; privileges on the table schema&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If creating a table that includes a named sequence:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;SELECT&lt;/span&gt; privilege on sequence object&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;USAGE&lt;/span&gt; privilege on sequence schema&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;restrictions-for-complex-types&#34;&gt;Restrictions for complex types&lt;/h2&gt;
&lt;p&gt;Complex types used in native tables have some restrictions, in addition to the restrictions for individual types listed on their reference pages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A native table must have at least one column that is a primitive type or a native array (one-dimensional array of a primitive type). If a flex table has real columns, it must also have at least one column satisfying this restriction.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Complex type columns cannot be used in ORDER BY or PARTITION BY clauses nor as FILLER columns.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Complex type columns cannot have &lt;a href=&#34;../../../../en/admin/constraints/supported-constraints/&#34;&gt;constraints&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Complex type columns cannot use DEFAULT or SET USING.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Expressions returning complex types cannot be used as projection columns, and projections cannot be segmented or ordered by columns of complex types.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example creates a table in the public schema:&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;k&#34;&gt;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;public&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Premium_Customer&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;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;n&#34;&gt;ID&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;IDENTITY&lt;/span&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;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;n&#34;&gt;lname&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;varchar&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;25&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;n&#34;&gt;fname&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;varchar&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;25&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;n&#34;&gt;store_membership_card&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;int&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;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In an Eon Mode database, the following example creates the same table from the previous example, but in the &lt;code&gt;store&lt;/code&gt; schema of the &lt;code&gt;company&lt;/code&gt; namespace:&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;k&#34;&gt;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;company&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;store&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Premium_Customer&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;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;n&#34;&gt;ID&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;IDENTITY&lt;/span&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;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;n&#34;&gt;lname&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;varchar&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;25&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;n&#34;&gt;fname&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;varchar&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;25&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;n&#34;&gt;store_membership_card&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;int&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;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The following example uses LIKE to create a new table from the &lt;code&gt;Premium_Customer&lt;/code&gt; table:&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;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;All_Customers&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;LIKE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Premium_Customer&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&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;p&gt;The following example selects columns from one table to use in a new table, using an AS clause:&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;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;cust_basic_profile&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;AS&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&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;n&#34;&gt;customer_key&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;n&#34;&gt;customer_gender&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;n&#34;&gt;customer_age&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;n&#34;&gt;marital_status&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;n&#34;&gt;annual_income&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;n&#34;&gt;occupation&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;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;customer_dimension&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;WHERE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;customer_age&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;18&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;AND&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;customer_gender&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;s1&#34;&gt;&amp;#39;&amp;#39;&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&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&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;n&#34;&gt;customer_age&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;n&#34;&gt;annual_income&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;n&#34;&gt;occupation&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;FROM&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;cust_basic_profile&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;WHERE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;customer_age&lt;/span&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;mi&#34;&gt;23&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;ORDER&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;BY&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;customer_age&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;n&#34;&gt;customer_age&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;annual_income&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;occupation&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;mi&#34;&gt;24&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;mi&#34;&gt;469210&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;Hairdresser&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;mi&#34;&gt;24&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;mi&#34;&gt;140833&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;Butler&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;mi&#34;&gt;24&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;mi&#34;&gt;558867&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;Lumberjack&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;mi&#34;&gt;24&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;mi&#34;&gt;529117&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;Mechanic&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;mi&#34;&gt;24&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;mi&#34;&gt;322062&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;Acrobat&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;mi&#34;&gt;24&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;mi&#34;&gt;213734&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;Writer&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;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The following example creates a table using array columns:&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;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;orders&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;n&#34;&gt;orderkey&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;INT&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;n&#34;&gt;custkey&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;     &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;INT&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;n&#34;&gt;prodkey&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;     &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;ARRAY&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;VARCHAR&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;10&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;n&#34;&gt;orderprices&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;ARRAY&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;DECIMAL&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;12&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;2&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;n&#34;&gt;orderdate&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;   &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;DATE&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;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The following example uses a ROW complex type:&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;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;inventory&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;n&#34;&gt;store&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;INT&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;n&#34;&gt;products&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;n&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;VARCHAR&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;n&#34;&gt;code&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;VARCHAR&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;p&gt;The following example uses quotas:&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;k&#34;&gt;SCHEMA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;internal&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;DISK_QUOTA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;10T&amp;#39;&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;SCHEMA&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&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;internal&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;sales&lt;/span&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;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;DISK_QUOTA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;5T&amp;#39;&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&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&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;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;internal&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;leads&lt;/span&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;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;DISK_QUOTA&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;12T&amp;#39;&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;n&#34;&gt;WARNING&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;0&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;Table&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;leads&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;has&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;disk&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;quota&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;greater&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;than&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;its&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;k&#34;&gt;schema&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;internal&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;p&gt;The following statement creates a &lt;code&gt;flights&lt;/code&gt; table in the &lt;code&gt;airline&lt;/code&gt; schema under the &lt;code&gt;airport&lt;/code&gt; namespace:&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;k&#34;&gt;TABLE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;airport&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;airline&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;flights&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;n&#34;&gt;flight_number&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;INT&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;n&#34;&gt;leaving_from&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;VARCHAR&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;n&#34;&gt;arriving_at&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;VARCHAR&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;n&#34;&gt;expected_departure&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;DATE&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;n&#34;&gt;gate&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;VARCHAR&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;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&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/working-with-native-tables/creating-tables/#&#34;&gt;Creating tables&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-table-from-other-tables/replicating-table/#&#34;&gt;Replicating a table&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-table-from-other-tables/creating-table-from-query/#&#34;&gt;Creating a table from a query&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-temporary-table/#&#34;&gt;CREATE TEMPORARY TABLE&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-external-table-as-copy/#&#34;&gt;CREATE EXTERNAL TABLE AS COPY&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-flexible-table/#&#34;&gt;CREATE FLEXIBLE TABLE&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE TEMPORARY TABLE</title>
      <link>/en/sql-reference/statements/create-statements/create-temporary-table/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-temporary-table/</guid>
      <description>
        
        
        &lt;p&gt;Creates a table whose data persists only during the current session. By default, temporary table data is not visible to other sessions.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Create with column definitions:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE [ &lt;span class=&#34;code-variable&#34;&gt;scope&lt;/span&gt; ] TEMP[ORARY] TABLE [ IF NOT EXISTS ] [[{&lt;span class=&#34;code-variable&#34;&gt;namespace&lt;/span&gt;. | &lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;. }]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;table-name &lt;/span&gt;
   ( &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-definition/#&#34;&gt;column-definition&lt;/a&gt;&lt;/span&gt;[,...] )
   [ &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/table-constraint/#&#34;&gt;table-constraint&lt;/a&gt;&lt;/span&gt; ]
   [ ON COMMIT { DELETE | PRESERVE } ROWS ]
   [ NO PROJECTION ]
   [ ORDER BY &lt;span class=&#34;code-variable&#34;&gt;table-column&lt;/span&gt;[,...] ]
   [ &lt;span class=&#34;code-variable&#34;&gt;segmentation-spec&lt;/span&gt; ]
   [ KSAFE [&lt;span class=&#34;code-variable&#34;&gt;safety-level&lt;/span&gt;] ]
   [ {INCLUDE | EXCLUDE} [SCHEMA] PRIVILEGES ]
   [ DISK_QUOTA &lt;span class=&#34;code-variable&#34;&gt;quota&lt;/span&gt; ]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Create from another table:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
CREATE TEMP[ORARY] TABLE [ IF NOT EXISTS ] [[{&lt;span class=&#34;code-variable&#34;&gt;namespace&lt;/span&gt;. | &lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;. }]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;table-name&lt;/span&gt;
   [ ( &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-name-list/#&#34;&gt;column-name-list &lt;/a&gt;&lt;/span&gt;) ]
   [ ON COMMIT { DELETE | PRESERVE } ROWS ]
   AS  [ /*+ LABEL */ ] [ AT &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/data-analysis/queries/historical-queries/#&#34;&gt;epoch&lt;/a&gt;&lt;/span&gt; ] &lt;span class=&#34;code-variable&#34;&gt;query&lt;/span&gt; [ ENCODED BY &lt;span class=&#34;code-variable&#34;&gt;column-ref-list&lt;/span&gt; ]
   [ DISK_QUOTA &lt;span class=&#34;code-variable&#34;&gt;quota&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;scope&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Visibility of the table definition:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;GLOBAL&lt;/span&gt;: The table definition is visible to all sessions, and persists until you explicitly drop the table.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;LOCAL&lt;/span&gt;: the table definition is visible only to the session in which it is created, and is dropped when the session ends.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If no scope is specified, OpenText™ Analytics Database uses the default that is set by the &lt;a href=&#34;../../../../en/sql-reference/config-parameters/general-parameters/#DefaultTempTableLocal&#34;&gt;DefaultTempTableLocal&lt;/a&gt; configuration parameter.&lt;/p&gt;
&lt;p&gt;Regardless of this setting, retention of temporary table data is set by the keywords ON COMMIT DELETE and &lt;span class=&#34;sql&#34;&gt;ON COMMIT PRESERVE&lt;/span&gt; (see below).&lt;/p&gt;
&lt;p&gt;For more information, see &lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-temporary-tables/#&#34;&gt;Creating temporary tables&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;IF NOT EXISTS&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;If an object with the same name exists, return without creating the object. If you do not use this directive and the object already exists, the database returns with an error message.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;IF NOT EXISTS&lt;/code&gt; clause is useful for SQL scripts where you might not know if the object already exists. The &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/on-error-stop/&#34;&gt;ON ERROR STOP&lt;/a&gt; directive can be helpful in scripts.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;{ &lt;/code&gt;&lt;em&gt;&lt;code&gt;namespace.&lt;/code&gt;&lt;/em&gt;&lt;code&gt; | &lt;/code&gt;&lt;em&gt;&lt;code&gt;database.&lt;/code&gt;&lt;/em&gt;&lt;code&gt; }&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Qualifies the &lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt; name with one of the following names, depending on the mode of the database:
&lt;ul&gt;
&lt;li&gt;Eon Mode: name of the &lt;a href=&#34;../../../../en/architecture/eon-concepts/shards-and-subscriptions/&#34;&gt;namespace&lt;/a&gt; to which the schema belongs. If unspecified, the namespace is assumed to be &lt;code&gt;default_namespace&lt;/code&gt;. If &lt;em&gt;&lt;code&gt;scope&lt;/code&gt;&lt;/em&gt; is set to LOCAL, the namespace must be &lt;code&gt;default_namespace&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Enterprise Mode: name of the database. If specified, it must be the current database.&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the schema, by default &lt;code&gt;public&lt;/code&gt;. If you specify the &lt;em&gt;&lt;code&gt;namespace&lt;/code&gt;&lt;/em&gt; or &lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt; name, you must specify the schema name, even if the schema is &lt;code&gt;public&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;table-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the table to create, where &lt;em&gt;&lt;code&gt;table-name&lt;/code&gt;&lt;/em&gt; conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;. It must also be unique among all names of sequences, tables, projections, views, and models within the same schema.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-definition/#&#34;&gt;column-definition&lt;/a&gt;&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Column names and types. A table can have up to 9800 columns.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/table-constraint/#&#34;&gt;table-constraint&lt;/a&gt;&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Adds a constraint to table metadata.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ON COMMIT&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Whether data is transaction- or session-scoped:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ON COMMIT {PRESERVE | DELETE} ROWS
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;DELETE&lt;/span&gt; (default) marks the temporary table for transaction-scoped data. The database removes all table data after each commit.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;PRESERVE&lt;/span&gt; marks the temporary table for session-scoped data, which is preserved beyond the lifetime of a single transaction. The database removes all table data when the session ends.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;NO PROJECTION&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Prevents the database from creating auto-projections for this table. A superprojection is created only when data is explicitly loaded into this table.
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;NO PROJECTION&lt;/span&gt; is invalid with the following clauses:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;ORDER BY&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;KSAFE&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Any segmentation clause (&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/hash-segmentation-clause/#&#34;&gt;hash-segmentation-clause&lt;/a&gt;&lt;/span&gt; or &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/unsegmented-clause/#&#34;&gt;unsegmented-clause&lt;/a&gt;&lt;/span&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;{INCLUDE | EXCLUDE} [SCHEMA] PRIVILEGES&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Default inheritance of schema privileges for this table:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;INCLUDE PRIVILEGES&lt;/span&gt; specifies that the table inherits privileges that are set on its schema. This is the default behavior if privileges inheritance is enabled for the schema.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;EXCLUDE PRIVILEGES&lt;/span&gt; disables inheritance of privileges from the schema.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For details, see &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-privileges/inherited-privileges/#&#34;&gt;Inherited privileges&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ORDER BY &lt;/code&gt;&lt;em&gt;&lt;code&gt;table-column&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[,...]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Invalid for external tables, specifies columns from the &lt;code&gt;SELECT&lt;/code&gt; list on which to sort the superprojection that is automatically created for this table. The &lt;code&gt;ORDER BY&lt;/code&gt; clause cannot include qualifiers &lt;code&gt;ASC&lt;/code&gt; or &lt;code&gt;DESC&lt;/code&gt;. The database always stores projection data in ascending sort order.&lt;/p&gt;
&lt;p&gt;If you omit the 
&lt;code&gt;`ORDER BY`&lt;/code&gt; clause, the database uses the &lt;code&gt;SELECT&lt;/code&gt; list order as the projection sort order.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;segmentation-spec&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Invalid for external tables, specifies how to distribute data for auto-projections of this table. Supply one of the following clauses:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/hash-segmentation-clause/&#34;&gt;hash-segmentation-clause&lt;/a&gt;&lt;/span&gt;: Specifies to segment data evenly and distribute across cluster nodes. OpenText recommends segmenting large tables.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/unsegmented-clause/&#34;&gt;unsegmented-clause&lt;/a&gt;&lt;/span&gt;: Specifies to create an unsegmented projection.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If this clause is omitted, the database generates &lt;a href=&#34;../../../../en/admin/projections/auto-projections/&#34;&gt;auto-projections&lt;/a&gt; with &lt;a href=&#34;../../../../en/admin/projections/auto-projections/#Default&#34;&gt;default hash segmentation&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;KSAFE [&lt;/code&gt;&lt;em&gt;&lt;code&gt;safety-level&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Invalid for external tables, specifies &lt;a href=&#34;../../../../en/architecture/enterprise-concepts/k-safety-an-enterprise-db/&#34;&gt;K-safety&lt;/a&gt; of &lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-tables/#AutoProjectCreation&#34;&gt;auto-projections&lt;/a&gt; created for this table, where &lt;em&gt;&lt;code&gt;k-num&lt;/code&gt;&lt;/em&gt; must be equal to or greater than system K-safety. If you omit this option, the projection uses the system K-safety level.&lt;/p&gt;

&lt;p&gt;Eon Mode: K-safety of temporary tables is always set to 0, regardless of system K-safety. If a &lt;code&gt;CREATE TEMPORARY TABLE&lt;/code&gt; statement sets &lt;em&gt;&lt;code&gt;k-num&lt;/code&gt;&lt;/em&gt; greater than 0, the database returns an warning.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/column-name-list/&#34;&gt;column-name-list&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Valid only when creating a table from a query (&lt;code&gt;AS &lt;/code&gt;&lt;em&gt;&lt;code&gt;query&lt;/code&gt;&lt;/em&gt;), defines column names that map to the query output. If you omit this list, the database uses the query output column names.&lt;/p&gt;
&lt;p&gt;This clause and the &lt;code&gt;ENCODED BY&lt;/code&gt; clause are mutually exclusive. Column name lists are invalid for external tables.&lt;/p&gt;
&lt;p&gt;The names in &lt;em&gt;&lt;code&gt;column-name-list&lt;/code&gt;&lt;/em&gt; and queried columns must be the same in number.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE TEMP TABLE customer_occupations (name, profession)
   AS SELECT customer_name, occupation FROM customer_dimension;
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;AS &lt;/code&gt;&lt;em&gt;&lt;code&gt;query&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Creates and loads a table from the &lt;a href=&#34;../../../../en/admin/working-with-native-tables/creating-table-from-other-tables/creating-table-from-query/&#34;&gt;results of a query&lt;/a&gt;, specified as follows:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;AS  [ /*+ &lt;a href=&#34;../../../../en/sql-reference/language-elements/hints/label/#&#34;&gt;LABEL&lt;/a&gt; */ ] [ &lt;a href=&#34;../../../../en/data-analysis/queries/historical-queries/#&#34;&gt;AT &lt;/a&gt; ] &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/data-analysis/queries/historical-queries/#&#34;&gt;epoch&lt;/a&gt; query&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The query cannot include &lt;a href=&#34;../../../../en/sql-reference/data-types/complex-types/&#34;&gt;complex type&lt;/a&gt; columns.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ENCODED BY&lt;/code&gt; &lt;em&gt;&lt;code&gt;column-ref-list&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;A comma-delimited list of columns from the source table, where each column is qualified by one or both of the following encoding options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ACCESSRANK &lt;/code&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;: Overrides the default access rank for a column, useful for prioritizing access to a column. See &lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/creating-custom-designs/design-fundamentals/prioritizing-column-access-speed/#&#34;&gt;Prioritizing column access speed&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;
&lt;code&gt;ENCODING &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/encoding-types/#&#34;&gt;encoding-type&lt;/a&gt;&lt;/span&gt;&lt;/code&gt;: Specifies the type of encoding to use on the column. The default encoding type is &lt;code&gt;AUTO&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This option and *&lt;code&gt;column-name-list &lt;/code&gt;*are mutually exclusive. This option is invalid for external tables.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;DISK_QUOTA&lt;/code&gt; &lt;em&gt;&lt;code&gt;quota&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;String, an integer followed by a supported unit: K, M, G, or T. If the schema has a quota, this value must be smaller than the schema quota. Data-load and ILM operations that increase the table&#39;s usage beyond the set quota fail. For details, see &lt;a href=&#34;../../../../en/admin/working-with-native-tables/disk-quotas/#&#34;&gt;Disk quotas&lt;/a&gt;.
&lt;p&gt;If not specified, the table has no quota.&lt;/p&gt;
&lt;p&gt;Disk quota is valid for global temporary tables but not local ones.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;The following privileges are required:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;CREATE&lt;/span&gt; privileges on the table schema&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If creating a temporary table that includes a named sequence:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;SELECT&lt;/span&gt; privilege on sequence object&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;sql&#34;&gt;USAGE&lt;/span&gt; privilege on sequence schema&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;restrictions&#34;&gt;Restrictions&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Queries on temporary tables are subject to the same restrictions on SQL support as persistent tables.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You cannot add projections to non-empty, global temporary tables (ON COMMIT PRESERVE ROWS). Make sure that projections exist before you load data. See &lt;a href=&#34;../../../../en/admin/projections/auto-projections/#&#34;&gt;Auto-projections&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;While you can add projections for temporary tables that are defined with ON COMMIT DELETE ROWS specified, be aware that you might lose all data.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Mergeout operations cannot be used on session-scoped temporary data.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In general, session-scoped temporary table data is not visible using system (virtual) tables.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Temporary tables do not recover. If a node fails, queries that use the temporary table also fail. Restart the session and populate the temporary table.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Local temporary tables cannot have disk quotas.&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/working-with-native-tables/creating-temporary-tables/#&#34;&gt;Creating temporary tables&lt;/a&gt;.&lt;/p&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-table/#&#34;&gt;ALTER TABLE&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/#&#34;&gt;CREATE TABLE&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE TEXT INDEX</title>
      <link>/en/sql-reference/statements/create-statements/create-text-index/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-text-index/</guid>
      <description>
        
        
        &lt;p&gt;Creates a text index used to perform text searches. When the text index is created, it immediately processes and indexes all existing data in the source table. The index stays synchronized with the source table through subsequent DML operations. If data within a table is partitioned, then an extra column appears in the text index, showing the partition.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE TEXT INDEX [[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;txtindex-name&lt;/span&gt;
 ON [&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;source-table&lt;/span&gt; (&lt;span class=&#34;code-variable&#34;&gt;unique-id&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;text-field&lt;/span&gt; [, &lt;span class=&#34;code-variable&#34;&gt;column-name&lt;/span&gt;,...])
 [STEMMER {&lt;span class=&#34;code-variable&#34;&gt;stemmer-name(stemmer-input-data-type)&lt;/span&gt;| NONE}]
 [TOKENIZER &lt;span class=&#34;code-variable&#34;&gt;tokenizer-name(tokenizer-input-data-type&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;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;

&lt;p&gt;If you do not specify a schema, the table is created in the default schema.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;txtindex-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The text index name.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;source-table&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The source table to index.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;unique-id&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the column in the source table that contains a unique identifier. Any data type is permissible. The column must be the primary key in the source table.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;text-field&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the column in the source table that contains the text field. Valid data types are:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;CHAR&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;VARCHAR&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;LONG VARCHAR&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;VARBINARY&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;LONG VARBINARY&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Nulls are allowed.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;column-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of a column or columns to be included as additional columns.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;stemmer-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the stemmer.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;stemmer-input-data-type&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The input data type of the &lt;em&gt;&lt;code&gt;stemmer-name&lt;/code&gt;&lt;/em&gt; function.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;tokenizer-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the name of the tokenizer.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;tokenizer-input-data-type&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;This value is the input data type of the &lt;em&gt;&lt;code&gt;tokenizer-name&lt;/code&gt;&lt;/em&gt; function. It can accept any number of arguments.
&lt;p&gt;If a &lt;a href=&#34;../../../../en/admin/using-text-search/stemmers-and-tokenizers/tokenizers/#&#34;&gt;Tokenizers&lt;/a&gt; is used, then this parameter can be omitted.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;The index automatically inherits the query permissions of its parent table. The table owner and dbadmin will be allowed to create and/or modify the indices.

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
Do not alter the contents or definitions of the text index. If the contents or definitions of the text index are altered, then the results will not appropriately match the source table.
&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;requirements&#34;&gt;Requirements&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Requires there be a column with a unique identifier set as the primary key.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The source table must have an associated projection, and must be both sorted and segmented by the primary key.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example shows how to create a text index with an additional unindexed column on the table t_log using the CREATE TEXT INDEX statement:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TEXT INDEX t_log_index ON t_log (id, text, day_of_week);
CREATE INDEX
=&amp;gt; SELECT * FROM t_log_index;
        token          | doc_id | day_of_week
-----------------------+--------+-------------
&amp;#39;catalog               |      1 | Monday
&amp;#39;dbadmin&amp;#39;              |      2 | Monday
2014-06-04             |      1 | Monday
2014-06-04             |      2 | Monday
2014-06-04             |      3 | Monday
2014-06-04             |      4 | Monday
2014-06-04             |      5 | Monday
2014-06-04             |      6 | Monday
2014-06-04             |      7 | Monday
2014-06-04             |      8 | Monday
45035996273704966      |      3 | Tuesday
45035996273704968      |      4 | Tuesday
&amp;lt;INFO&amp;gt;                 |      1 | Tuesday
&amp;lt;INFO&amp;gt;                 |      6 | Tuesday
&amp;lt;INFO&amp;gt;                 |      7 | Tuesday
&amp;lt;INFO&amp;gt;                 |      8 | Tuesday
&amp;lt;WARNING&amp;gt;              |      2 | Tuesday
&amp;lt;WARNING&amp;gt;              |      3 | Tuesday
&amp;lt;WARNING&amp;gt;              |      4 | Tuesday
&amp;lt;WARNING&amp;gt;              |      5 | Tuesday

...

(97 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example shows a text index, tpart_index, created from a partitioned source table:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM tpart_index;
         token          | doc_id | partition
------------------------+--------+-----------
 0                      |      4 |      2014
 0                      |      5 |      2014
 11:00:49.568           |      4 |      2014
 11:00:49.568           |      5 |      2014
 11:00:49.569           |      6 |      2014
 &amp;lt;INFO&amp;gt;                 |      6 |      2014
 &amp;lt;WARNING&amp;gt;              |      4 |      2014
 &amp;lt;WARNING&amp;gt;              |      5 |      2014
 Database               |      6 |      2014
 Execute:               |      6 |      2014
 Object                 |      4 |      2014
 Object                 |      5 |      2014
 [Catalog]              |      4 |      2014
 [Catalog]              |      5 |      2014
 &amp;#39;catalog               |      1 |      2013
 &amp;#39;dbadmin&amp;#39;              |      2 |      2013
 0                      |      3 |      2013
 11:00:49.568           |      1 |      2013
 11:00:49.568           |      2 |      2013
 11:00:49.568           |      3 |      2013
 11:00:49.570           |      7 |      2013
 11:00:49.571           |      8 |      2013
 45035996273704966      |      3 |      2013

...

(89 rows)
&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/using-text-search/#&#34;&gt;Using text search&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../../en/admin/using-text-search/creating-text-index/#&#34;&gt;Creating a text index&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-text-index/#&#34;&gt;DROP TEXT INDEX&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE TLS CONFIGURATION</title>
      <link>/en/sql-reference/statements/create-statements/create-tls-config/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-tls-config/</guid>
      <description>
        
        
        &lt;p&gt;Creates a TLS Configuration object. For information on existing TLS Configuration objects, query &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/tls-configs/#&#34;&gt;TLS_CONFIGURATIONS&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To modify an existing TLS Configuration object, see &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-tls-config/#&#34;&gt;ALTER TLS CONFIGURATION&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;CREATE TLS CONFIGURATION &lt;span class=&#34;code-variable&#34;&gt;tls_config_name&lt;/span&gt; {
    [ CERTIFICATE { NULL | &lt;span class=&#34;code-variable&#34;&gt;cert_name&lt;/span&gt; } ]
    [ CA CERTIFICATES &lt;span class=&#34;code-variable&#34;&gt;ca_cert_name&lt;/span&gt; [,...] ]
    [ CIPHER SUITES { &amp;#39;&amp;#39; | &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;openssl_cipher&lt;/span&gt; [,...]&amp;#39; } ]
    [ TLSMODE &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;tlsmode&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;tls_config_name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the TLS Configuration object.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;cert_name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A certificate created with &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-certificate/#&#34;&gt;CREATE CERTIFICATE&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;ca_cert_name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A CA certificate created with &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-certificate/#&#34;&gt;CREATE CERTIFICATE&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;openssl_cipher&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A comma-separated list of cipher suites to use instead of the default set of cipher suites. Providing an empty string for this parameter clears the alternate cipher suite list and instructs the specified TLS Configuration to use the default set of cipher suites.
&lt;p&gt;To view enabled cipher suites, use &lt;a href=&#34;../../../../en/sql-reference/functions/system-information-functions/list-enabled-ciphers/#&#34;&gt;LIST_ENABLED_CIPHERS&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;tlsmode&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;How OpenText™ Analytics Database establishes TLS connections and handles client certificates, one of the following, in order of ascending security:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;DISABLE&lt;/code&gt;: Disables TLS. All other options for this parameter enable TLS.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ENABLE&lt;/code&gt;: Enables TLS. The database does not check client certificates.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;TRY_VERIFY&lt;/code&gt;: Establishes a TLS connection if one of the following is true:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;the other host presents a valid certificate&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;the other host doesn&#39;t present a certificate&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the other host presents an invalid certificate, the connection will use plaintext.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;VERIFY_CA&lt;/code&gt;: Connection succeeds if the database verifies that the other host&#39;s certificate is from a trusted CA. If the other host does not present a certificate, the connection uses plaintext.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;VERIFY_FULL&lt;/code&gt;: Connection succeeds if the database verifies that the other host&#39;s certificate is from a trusted CA and the certificate&#39;s &lt;code&gt;cn&lt;/code&gt; (Common Name) or &lt;code&gt;subjectAltName&lt;/code&gt; attribute matches the hostname or IP address of the other host.&lt;/p&gt;
&lt;p&gt;Note that for client certificates, &lt;code&gt;cn&lt;/code&gt; is used for the username, so &lt;code&gt;subjectAltName&lt;/code&gt; must match the hostname or IP address of the other host.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;VERIFY_FULL&lt;/code&gt; is unsupported for client-server TLS (the &lt;code&gt;server&lt;/code&gt; TLS Configuration context) and behaves as &lt;code&gt;VERIFY_CA&lt;/code&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE TRIGGER</title>
      <link>/en/sql-reference/statements/create-statements/create-trigger/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-trigger/</guid>
      <description>
        
        
        &lt;p&gt;Creates a trigger. For details, see &lt;a href=&#34;../../../../en/extending/stored-procedures/executing-stored-procedures/triggers/#&#34;&gt;Triggers&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;CREATE TRIGGER [ IF NOT EXISTS ] [[&lt;span class=&#34;code-variable&#34;&gt;database.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;trigger&lt;/span&gt;
    ON SCHEDULE [[&lt;span class=&#34;code-variable&#34;&gt;database.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;schedule&lt;/span&gt;
    EXECUTE PROCEDURE &lt;span class=&#34;code-variable&#34;&gt;procedure&lt;/span&gt; AS DEFINER
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;IF NOT EXISTS&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;If an object with the same name exists, return without creating the object. If you do not use this directive and the object already exists, the database returns with an error message.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;IF NOT EXISTS&lt;/code&gt; clause is useful for SQL scripts where you might not know if the object already exists. The &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/on-error-stop/&#34;&gt;ON ERROR STOP&lt;/a&gt; directive can be helpful in scripts.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;trigger&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the trigger.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;schedule&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The &lt;a href=&#34;../../../../en/extending/stored-procedures/executing-stored-procedures/triggers/scheduled-execution/&#34;&gt;schedule&lt;/a&gt; with which to associate the trigger.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;procedure&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The function signature of the &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-procedure-stored/&#34;&gt;stored procedure&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;AS DEFINER&lt;/dt&gt;
&lt;dd&gt;The user to &lt;a href=&#34;../../../../en/extending/stored-procedures/executing-stored-procedures/&#34;&gt;execute&lt;/a&gt; the stored procedure as. Currently, the only option is DEFINER, which executes the stored procedure as the definer of the trigger.&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;CREATE TRIGGER requires a &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-schedule/&#34;&gt;schedule&lt;/a&gt; and &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-procedure-stored/&#34;&gt;stored procedure&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE PROCEDURE revoke_all_on_table(table_name VARCHAR, user_name VARCHAR)
LANGUAGE PLvSQL
AS $$
BEGIN
    EXECUTE &amp;#39;REVOKE ALL ON &amp;#39; || QUOTE_IDENT(table_name) || &amp;#39; FROM &amp;#39; || QUOTE_IDENT(user_name);
END;
$$;

=&amp;gt; CREATE SCHEDULE 24_hours_later USING DATETIMES(&amp;#39;2022-12-16 12:00:00&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To create the trigger with schedule &lt;code&gt;24_hours_later&lt;/code&gt; and stored procedure &lt;code&gt;revoke_all_on_table()&lt;/code&gt; with arguments &lt;code&gt;customer_dimension&lt;/code&gt; and &lt;code&gt;Bob&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TRIGGER revoke_trigger ON SCHEDULE 24_hours_later EXECUTE PROCEDURE revoke_all_on_table(&amp;#39;customer_dimension&amp;#39;, &amp;#39;Bob&amp;#39;) AS DEFINER;;
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE USER</title>
      <link>/en/sql-reference/statements/create-statements/create-user/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-user/</guid>
      <description>
        
        
        &lt;p&gt;Adds a name to the list of authorized database users.

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

New users lack default access to the PUBLIC schema. Be sure to grant new users &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-schema/&#34;&gt;USAGE privileges on the PUBLIC schema&lt;/a&gt;.

&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;CREATE USER &lt;span class=&#34;code-variable&#34;&gt;user-name&lt;/span&gt; [ &lt;span class=&#34;code-variable&#34;&gt;parameter&lt;/span&gt; &lt;span class=&#34;code-variable&#34;&gt;value&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;user-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the new user, where the value conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;parameter&lt;/code&gt;&lt;/em&gt;&lt;code&gt; &lt;/code&gt;&lt;em&gt;&lt;code&gt;value&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;One or more user account parameter settings (see below). Note that the parameter name and value are separated by a space, not &lt;code&gt;=&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;ACCOUNT&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Locks or unlocks user access to the database, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UNLOCK&lt;/code&gt; (default)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;LOCK&lt;/code&gt; prevents a new user from logging in. This can be useful when creating an account for a user who does not need immediate access.&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 automate account locking, set a maximum number of failed login attempts with &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-profile/#&#34;&gt;CREATE PROFILE&lt;/a&gt;.

&lt;/div&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;GRACEPERIOD&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Specifies how long a user query can block on any session socket, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (default): Removes any grace period previously set on 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 grace period for current session queries, up to 20 days.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For details, 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;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;IDENTIFIED BY { &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;password&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39; | &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;hashed-password&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39; SALT &#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;hash-salt&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39; }&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Sets the user&#39;s password. Options are:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;password&lt;/code&gt;&lt;/em&gt;: ASCII password that OpenText™ Analytics Database then hashes for internal storage. An empty string enables this user to access the database with no password.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;hashed-password&lt;/code&gt;&lt;/em&gt;: A pre-hashed password and its associated hex string &lt;em&gt;&lt;code&gt;hash-salt&lt;/code&gt;&lt;/em&gt;. Setting a password this way bypasses all &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/hash-authentication/passwords/profiles/&#34;&gt;password complexity requirements&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
If you omit this parameter, this user can access the database with no password.
&lt;/div&gt;
&lt;p&gt;For details, see &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/hash-authentication/passwords/password-guidelines/#&#34;&gt;Password guidelines&lt;/a&gt; and &lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/create-an-empty-db/creating-db-name-and-password/#&#34;&gt;Creating a database name and password&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;IDLESESSIONTIMEOUT&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;The length of time the system waits before disconnecting an idle session, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (default): No limit set for this user. If you omit this parameter, no limit is set for this user.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;
&lt;code&gt;&#39;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/#&#34;&gt;interval&lt;/a&gt;&lt;/span&gt;&#39;&lt;/code&gt;: An interval value, up to one year.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For details, see &lt;a href=&#34;../../../../en/admin/managing-client-connections/#&#34;&gt;Managing client connections&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;MAXCONNECTIONS&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Sets the maximum number of connections the user can have to the server, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (default): No limit set. If you omit this parameter, the user can have an unlimited number of connections across the database cluster.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt; ON DATABASE&lt;/code&gt;: Sets to &lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt; the maximum number of connections across the database cluster.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt; ON NODE&lt;/code&gt;: Sets to &lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt; the maximum number of connections to each node.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For details, see &lt;a href=&#34;../../../../en/admin/managing-client-connections/#&#34;&gt;Managing client connections&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;MEMORYCAP&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Sets how much memory can be allocated to user requests, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (default): No limit&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A string value that specifies the memory limit, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&#39;&lt;em&gt;&lt;code&gt;int&lt;/code&gt;&lt;/em&gt;&lt;code&gt;%&#39;&lt;/code&gt; expresses the maximum as a percentage of total memory 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;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;code&gt;&#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;int&lt;/code&gt;&lt;/em&gt;&lt;code&gt;{K|M|G|T}&#39;&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;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;PASSWORD EXPIRE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Forces immediate expiration of the user&#39;s password. The user must change the password on the next login.

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

&lt;code&gt;PASSWORD EXPIRE&lt;/code&gt; has no effect when using external password authentication methods such as LDAP or Kerberos.

&lt;/div&gt;&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;PROFILE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Assigns a &lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/hash-authentication/passwords/profiles/&#34;&gt;profile&lt;/a&gt; that controls password requirements for this user, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;DEFAULT&lt;/code&gt; (default): Assigns the default database profile to this user.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/security-and-authentication/client-authentication/hash-authentication/passwords/profiles/&#34;&gt;profile-name&lt;/a&gt;&lt;/span&gt;: A profile that is defined by &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-profile/#&#34;&gt;CREATE PROFILE&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you omit this parameter, the user is assigned the default profile.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;a name=&#34;RESOURCE_POOL&#34;&gt;&lt;/a&gt;&lt;code&gt;RESOURCE POOL &lt;/code&gt;&lt;em&gt;&lt;code&gt;pool-name&lt;/code&gt;&lt;/em&gt;&lt;code&gt; [FOR SUBCLUSTER &lt;/code&gt;&lt;em&gt;&lt;code&gt;sc-name&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Assigns a resource pool to this user. The user must also be &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-resource-pool/&#34;&gt;granted privileges to this pool&lt;/a&gt;, unless privileges to the pool are set to &lt;code&gt;PUBLIC&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;FOR SUBCLUSTER&lt;/code&gt; clause assigns a subcluster-specific resource pool to the user. You can assign only one subcluster-specific resource pool to each user.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;RUNTIMECAP&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Sets how long this user&#39;s queries can execute, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (default): No limit set for this user. If you omit this parameter, no limit is set for this user.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;
&lt;code&gt;&#39;&lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/#&#34;&gt;interval&lt;/a&gt;&lt;/span&gt;&#39;&lt;/code&gt;: An interval value, up to one year.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A query&#39;s runtime limit can be set at three levels: the user&#39;s runtime limit, the user&#39;s resource pool, and the session setting. For more information, see &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;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;SEARCH_PATH&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Specifies the user&#39;s default search path, that tells the database which schemas to search for unqualified references to tables and UDFs, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;DEFAULT&lt;/code&gt; (default): Sets the search path as follows:&lt;/p&gt;
&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;/li&gt;
&lt;li&gt;
&lt;p&gt;Comma-delimited list of schemas.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;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;/dd&gt;
&lt;dt&gt;&lt;code&gt;TEMPSPACECAP&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Sets how much temporary file storage is available for user requests, one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;NONE&lt;/code&gt; (default): No limit&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;String value 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;p&gt;&lt;code&gt;TEMPSPACECAP &#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 storage allocation in kilobytes, megabytes, gigabytes, or terabytes. For example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;TEMPSPACECAP &#39;10G&#39;&lt;/code&gt;&lt;/p&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;Superuser&lt;/p&gt;
&lt;h2 id=&#34;user-name-best-practices&#34;&gt;User name best practices&lt;/h2&gt;
&lt;p&gt;The database user names are logically separate from user names of the operating system in which the server runs. If all the users of a particular server also have accounts on the server&#39;s machine, it makes sense to assign database user names that match their operating system user names. However, a server that accepts remote connections might many database users with no local operating system account. In this case, there is no need to connect database and system user names.&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; CREATE USER Fred IDENTIFIED BY &amp;#39;Mxyzptlk&amp;#39;;
=&amp;gt; GRANT USAGE ON SCHEMA PUBLIC to Fred;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/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/drop-statements/drop-user/#&#34;&gt;DROP USER&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CREATE VIEW</title>
      <link>/en/sql-reference/statements/create-statements/create-view/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/statements/create-statements/create-view/</guid>
      <description>
        
        
        &lt;p&gt;Defines a &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/view/&#34; title=&#34;A named logical relation specified by an associated query that can be accessed similarly to a table in the FROM clause of a SQL statement.&#34;&gt;view&lt;/a&gt;. Views are read only, so they do not support insert, update, delete, or copy operations.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE [ OR REPLACE ] VIEW [[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema.&lt;/span&gt;]&lt;span class=&#34;code-variable&#34;&gt;view&lt;/span&gt; [ (&lt;span class=&#34;code-variable&#34;&gt;column&lt;/span&gt;[,...]) ]
  [ {INCLUDE|EXCLUDE} [SCHEMA] PRIVILEGES ] AS &lt;span class=&#34;code-variable&#34;&gt;query&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;OR REPLACE&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies to overwrite the existing view &lt;em&gt;&lt;code&gt;view-name&lt;/code&gt;&lt;/em&gt;. If you omit this option and &lt;em&gt;&lt;code&gt;view-name&lt;/code&gt;&lt;/em&gt; already exists, &lt;code&gt;CREATE VIEW&lt;/code&gt; returns an error.
&lt;p&gt;Any grants assigned to the view before you execute a CREATE OR REPLACE remain on the updated view. See &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-view/#&#34;&gt;GRANT (view)&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;view&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Identifies the view to create, where &lt;em&gt;&lt;code&gt;view&lt;/code&gt;&lt;/em&gt; conforms to conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;. It must also be unique among all names of sequences, tables, projections, views, and models within the same schema.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;column&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[,...]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;List of up to 9800 names to use as view column names. OpenText™ Analytics Database maps view column names to query columns according to the order of their respective lists. By default, the view uses column names as they are specified in the query.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;query &lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/select/#&#34;&gt;SELECT&lt;/a&gt;&lt;/code&gt; statement that the temporary view executes. The &lt;code&gt;SELECT&lt;/code&gt; statement can reference tables, temporary tables, and other views.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;{INCLUDE|EXCLUDE}[SCHEMA] PRIVILEGES&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies whether this view inherits schema privileges:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;INCLUDE PRIVILEGES&lt;/code&gt; specifies that the view inherits privileges that are set on its schema. This is the default behavior if privileges inheritance is enabled for the schema.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;EXCLUDE PRIVILEGES&lt;/code&gt; disables inheritance of privileges from the schema.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For details, see &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-privileges/inherited-privileges/#&#34;&gt;Inherited privileges&lt;/a&gt;.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/data-analysis/views/creating-views/#&#34;&gt;Creating views&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example shows how to create a view that contains data from multiple tables.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE VIEW temp_t0 AS SELECT * from t0_p1 UNION ALL
     SELECT * from t0_p2 UNION ALL
       SELECT * from t0_p3 UNION ALL
         SELECT * from t0_p4 UNION ALL
           SELECT * from t0_p5;
&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-view/#&#34;&gt;ALTER VIEW&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-local-temporary-view/#&#34;&gt;CREATE LOCAL TEMPORARY VIEW&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/data-analysis/views/creating-views/#&#34;&gt;Creating views&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/drop-statements/drop-view/#&#34;&gt;DROP VIEW&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-view/#&#34;&gt;GRANT (view)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/revoke-statements/revoke-view/#&#34;&gt;REVOKE (view)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

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